AX Seri es-St andard I nst ruct i ons Manual
2.4 DFC_ZCP
Supported Products
•
AX Series
DFC_ZCP: Compares a range with a value of LINT variable.
FB/FC
Instruction
FC
DFC_ZCP
•
Input
Name
liLowbound
liHighbound
liSrc
*Note: The variable types SINT, INT, DINT and LINT can be used for inputs.
Output
•
Name
DFC_ZCP
Function
•
The FC instruction is used to compare the values in variable (liSrc) with the upper and lower value of the range.
Graphic Expression
Function
Lower value
Upper value
Variable
Function
Execution result
(Return type)
Data Type
LINT*
LINT*
LINT*
Data Type
WORD
ST Language
DFC_ZCP(
liLowbound:= ,
liHighbound:= ,
liSrc:= );
Setting Value
(Default Value)
LINT:-2
~ 2
-1
63
63
(0)
LINT:-2
~ 2
-1
63
63
(0)
LINT:-2
63
~ 2
63
-1
(0)
Output Range
(Default Value)
1:liSrc < Lower value
2: Lower value < liSrc < Upper value
3:liSrc > Upper value
(0)
Chapt er 2
1 7