Human Machine Interface User Manual
Table Of Contents
- Cover
- Preface
- Table of Contents
- Chapter 1 Introduction
- Chapter 2 Creating and Editing Screens
- 2.1 ScrEdit (Screen Editor) Setup
- 2.2 How to Start ScrEdit
- 2.3 Menu Bar and Toolbar (File)
- 2.4 Menu Bar and Toolbar (Edit)
- 2.5 Menu Bar and Toolbar (View)
- 2.6 Menu Bar and Toolbar (Element)
- 2.7 Menu Bar and Toolbar (Screen)
- 2.8 Menu Bar and Toolbar (Tools)
- 2.9 Menu Bar and Toolbar (Options)
- 2.10 Menu Bar and Toolbar (Window)
- 2.11 Menu Bar and Toolbar (Help)
- Chapter 3 Element Function
- Chapter 4 Macro Function
- Chapter 5 Control Block and Status Block
- Chapter 6 Internal Memory
- Chapter 7 Example Explanation
- Appendix A Specifications and Installation
- Appendix B USB Flash Drive Function
- Appendix C Main Menu Operation of HMI System
Chapter 4 Macro Function|ScrEdit Software User Manual
4-38 Revision Apr. 30th, 2007, 2007PDD23000002
$20 = 3A00H Set starting Bit. Because the value of high byte and low
byte will be exchanged when HMI sends command, even
though the starting Bit is 3A when sending data, it is
needed to input 3A00.
$28 = 0A0DH Set end Bit. Because the value of high byte and low byte
will be exchanged when HMI sends command, even
though the end Bit is 0D0A when sending data, it is
needed to input 0A0D.
$50 = PUTCHARS($20, 18, 500) Start to send data from $10, the data length is 18 bytes
and the timeout setting is 500ms.
$51 = GETCHARS($110, 18, 500) Receive the PLC response data after communication. The
received data is stored in $100, the data length is 18 bytes
and the timeout setting is 500ms.
DTB
When using ON Macro, the communication commands used to set SV value (1001H) of DTB
temperature controller to 20
o
C are listed as follows:
ASCII : 0 1 0 6 1 0 0 1 0 0 C 8 2 0 \r \n
HEX 3A 30 31 30 36 31 30 30 31 30 30 43 38 32 30 0D 0A
ON Macro
$100 = INITCOM(1, 2, 0, 2, 0, 6, 0) Set communication setting as COM2, RS485, 9600, 7, E,
1 (Regarding the communication setting of DTB series
temperature controller, please refer to DTB series user
manual).
SELECTCOM(1) Select COM2 port.
CHR($1002, "0106100100C820") Convert the string of commands to ASCII code and store
data from $1002.