Delta Electronics DOP-A Series Network Card User Manual


 
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.