Delta Electronics A10 User Manual page 260

Dop series hmi
Hide thumbs Also See for A10:
Table of Contents

Advertisement

$1001 = 3A00H
$1009 = 0A0DH
$1500 = PUTCHARS($1001, 20, 500)
$1501 = GETCHARS($1121, 20, 500)
$1050 = B2W($1125, 6)
$1060 = A2H($1051)
Others
Command
TIMETICK
GETLASSERROR
#
delay
GETSYSTEMTIME
Revision Apr. 30th, 2007, 2007PDD23000002
Chapter 4 Macro Function|ScrEdit Software User Manual
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.
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.
Start to send data from $1001, the data length is 20
bytes and the timeout setting is 500ms.
Receive the PLC response data after communication.
The received data is stored in $1121, the data length is
20 bytes and the timeout setting is 500ms.
Decompose received ACSII code into one BYTE and
one BYTE from $1125 respectively and convert them
into WORD format.
Then, start to convert the WORD data into the value in
hexadecimal format from $1051 and display the result in
decimal format on the screen.
Equation
V1 = TIMETICK
V1 = GETLASTERROR
#V1
delay V1
V1 = GETSYSTEMTIME
Descrption
Get the time from system startup to
present
Get last error value
Comment
System delay
Get system time
4-39

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents