AX Seri es-St andard I nst ruct i ons Manual
2.5 DFC_UZCP
Supported Products
•
AX Series
DFC_UZCP: Compares a range with a value of ULINT variable.
FB/FC
Instruction
FC
DFC_UZCP
•
Input
Name
lwLowbound
lwHighbound
lwSrc
*Note: The variable types USINT, UINT, UDINT, ULINT, BYTE, WORD, DWORD, and LWORD can be used for inputs.
Output
•
Name
DFC_UZCP
Function
•
The FC instruction is used to compare the values in variable (lwSrc) with the upper and lower value of the range.
Graphic Expression
Function
Lower value
Upper value
Variable
Function
Execution result
(Return type)
Data Type
ULINT/LWORD*
ULINT/LWORD*
ULINT/LWORD*
Data Type
WORD
ST Language
DFC_UZCP(
lwLowbound:= ,
lwHighbound:= ,
lwSrc:= );
Setting Value
(Default Value)
ULINT/LWORD:0 ~ 2
(0)
ULINT/LWORD:0 ~ 2
(0)
ULINT/LWORD:0 ~ 2
(0)
Output Range
(Default Value)
1:lwSrc < Lower value
2: Lower value < lwSrc < Upper value
3:lwSrc > Upper value
(0)
Chapt er 2
-1
64
64
-1
64
-1
1 9