Fc_Ucmp - Delta Standard AX Series Instruction Manual

Table of Contents

Advertisement

AX Seri es-St andard I nst ruct i ons Manual

2.2 FC_UCMP

Supported Products
AX Series
DFC_UCMP: Comparison between ULINT variables.
FB/FC
Instruction
FC
DFC_UCMP
Input
Name
lwSrc1
lwSrc2
*Note: The variable types USINT, UINT, UDINT, ULINT, BYTE, WORD, DWORD and LWORD can be used for inputs.
Output
Name
DFC_UCMP
Function
The FC instruction is used to compare the values in variable 1(lwSrc1) with that in variable 2(lwSrc2).
Function
Variable 1
Variable 2
Function
Execution result
(Return type)
Graphic Expression
Data Type
ULINT/LWORD*
ULINT/LWORD*
Data Type
WORD
Chapt er 2
ST Language
DFC_UCMP(
lwSrc1:= ,
lwSrc2:= )
Setting Value
(Default Value)
ULINT/LWORD:0 ~ 2
-1
64
(0)
ULINT/LWORD:0 ~ 2
64
-1
(0)
Output Range
(Default Value)
1:lwSrc1 = lwSrc2
2:lwSrc1 < lwSrc2
3:lwSrc1 > lwSrc2
(0)
1 3

Advertisement

Table of Contents
loading

This manual is also suitable for:

Standard as02puStandard as04pu

Table of Contents