![Delta Electronics AE80THTD User Manual Download Page 249](http://html1.mh-extra.com/html/delta-electronics/ae80thtd/ae80thtd_user-manual_2475936249.webp)
Chapter 4 Macro Function
|
ScrEdit Software User Manual
4-28
Revision Apr. 30th, 2007, 2007PDD23000002
ICNV
Convert floating point value to integer
Equation: V1= ICNV (V2) (Signed DW)
Convert floating point value or integer in V2 to integer and store in V1.
Example:
$2 = FMOV(100.5) (Signed DW)
$0 = ICNV ($2) (Signed DW)
The result is $0 = 100
Comparison
IF…THEN GOTO LABEL …
Equation: IF
expression
THEN GOTO LABEL
identifier
If the command of
expression
is true, then it will go to LABEL
identifier
and perform the program.
Please refer to the following table for the command of
expression
.
Command
Description
Remark
V1 == V2
V1 is equal to V2
V1 != V2
V1 is not equal to V2
V1 > V2
V1 is greater than V2
V1 >= V2
V1 is greater than or equal to V2
V1 < V2
V1 is smaller than V2
V1<= V2
V1 is smaller than or equal to V2
V1 && V2 == 0
Perform AND command on V1 andV2 and
the result of AND operation is equal to 0
V1 && V2 != 0
Perform AND command on V1 andV2 and
the result of AND operation is not equal to 0
V1== ON
V1 is ON
V1== OFF
V1 is OFF
V1 and V2 should be internal
memory or constant.
Table 4.3.5 Comparison command table
Example:
When $2 is greater than or equal to 10, it will go to LABEL 1 and continue to perform the program.
IF $2 >= 10 THEN GOTO LABEL 1
…..
LABEL 1
…..
Equation: IFB
V1
== {ON | OFF} THEN GOTO LABEL
identifier
If V1 is ON or OFF, it will go to LABEL
identifier
to perform the program. V1 is PLC address.
Summary of Contents for AE80THTD
Page 1: ......