Delta Electronics A10 User Manual page 245

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

Advertisement

Chapter 4 Macro Function|ScrEdit Software User Manual
Command
MAX
MIN
A2H
H2A
FCNV
ICNV
BCD
Convert BIN Data into BCD value
Equation: V1 = BCD(V2)
The binary data in V2 is converted into BCD value, and stored in V1.
Example:
The binary data in $4 is 5564. After executing BCD command, the binary data in $5 is converted to
5564H.
$4 = 5564
$5 = BCD($4)
BIN
Converts BCD Data into BIN value
Equation: V1 = BIN(V2)
The BCD data in V2 is converted into BCD value, and stored in V1.
Example:
The BCD (hexadecimal) data in $4 is 5564H. After executing BIN command, the BCD data in $5 is
converted to 5564.
$4 = 5564H
$5 = BIN($4)
W2D
Convert WORD to DWORD
Equation: V1 = W2D(V2)
The WORD value in V2 is converted into DWORD value, and stored in V1.
Example:
The WORD value in decimal format in $4 is -10. After executing W2D command, the value in $7 is
converted to -10 in Double Word format. As it is in DWORD format, it indicates that the value has
occupied $7 and $8 these two addresses.
4-24
Equation
V1 = MAX(V2, V3)
V1 = MIN(V2, V3)
V1 = A2H(V2)
V1= H2A (V2)
V1= FCNV (V2)
V1= ICNV (V2)
Table 4.3.4 Data conversion command table
Description
Get Maximum value
Get Minimum value
Convert ASCII code to 4-digit integer
Convert hexadecimal integer to ASCII code
Convert integer to floating point value
Convert floating point value to integer
Revision Apr. 30th, 2007, 2007PDD23000002

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents