Chapter 4 Macro Function
|
ScrEdit Software User Manual
Revision Apr. 30th, 2007, 2007PDD23000002
4-27
Example:
$1 = 2
$2 = 10
$0 = MIN($1, $2)
The result is $0 = 2
A2H
Convert 4 ASCII code to a four digits integer in hexadecimal format
Equation: V1 = A2H(V2)
Convert the ASCII code of V2 (4 WORDS) to integer and store the result in V1.
Example:
$10 = 0034H
$11 = 0033H
$12 = 0036H
$13 = 0038H
$1 = A2H($10)
After executing A2H command, the data in $1 will be converted to 4368H.
H2A
Convert a four digits integer in hexadecimal format to 4 ASCII code
Equation: V1= H2A (V2)
Convert V2 (1 WORD in hexadecimal format) to the ASCII (4 WORDS) code and store the result
in V1.
Example:
$2 = 1234H
$10 = H2A($2)
After executing H2A command, the result will be $10=0031H, $11=0032H, $12=0033H and $13=0034H.
FCNV
Convert integer to floating point value
Equation: V1= FCNV (V2) (Signed DW)
Convert floating point value or integer in V2 to floating point value and store in V1.
Example:
$0 = 100
$2 = FCNV($0)(Signed DW)
The result is $2 = 100.0
Summary of Contents for AE80THTD
Page 1: ......