Delta Electronics A10 User Manual page 249

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

Advertisement

Chapter 4 Macro Function|ScrEdit Software User Manual
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
V1 == V2
V1 != V2
V1 > V2
V1 >= V2
V1 < V2
V1<= V2
V1 && V2 == 0
V1 && V2 != 0
V1== ON
V1== OFF
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.
4-28
Description
V1 is equal to V2
V1 is not equal to V2
V1 is greater than V2
V1 is greater than or equal to V2
V1 is smaller than V2
V1 is smaller than or equal to V2
Perform AND command on V1 andV2 and
the result of AND operation is equal to 0
Perform AND command on V1 andV2 and
the result of AND operation is not equal to 0
V1 is ON
V1 is OFF
Table 4.3.5 Comparison command table
Remark
V1 and V2 should be internal
memory or constant.
Revision Apr. 30th, 2007, 2007PDD23000002

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents