AX Seri es-St andard I nst ruct i ons Manual
2.6 DFC_LRZCP
Supported Products
•
AX Series
DFC_LRZCP: Compares a range with a value of LREAL variable.
FB/FC
Instruction
FC
DFC_LRZCP
Input
•
Name
lrLowbound
lrHighbound
lrSrc
*Note: The variable types REAL and LREAL can be used for inputs.
Output
•
Name
DFC_LRZCP
•
Function
The FC instruction is used to compare the values in variable (lrSrc) with the upper and lower value of the range.
Function
Lower value
Upper value
Variable
Function
Execution result
(Return type)
Graphic Expression
Data Type
LREAL*
LREAL*
LREAL*
Data Type
WORD
ST Language
DFC_LRZCP(
lrLowbound:= ,
lrHighbound:= ,
lrSrc:= );
Setting Value
(Default Value)
LREAL:-1.7976931348623157E+308 ~
1.7976931348623157E+308
(0)
LREAL:-1.7976931348623157E+308 ~
1.7976931348623157E+308
(0)
LREAL:-1.7976931348623157E+308 ~
1.7976931348623157E+308
(0)
Output Range
(Default Value)
1:lrSrc < Lower value
2: Lower value < lrSrc < Upper value
3:lrSrc > Upper value
(0)
Chapt er 2
2 1