AX Seri es-St andard I nst ruct i ons Manual
3.2 DFB_Compare
Supported Products
AX-308E, AX-364E, AX-324N, AX-332E
DFB_Compare compares the designated source value and the setting value and then to Set or Reset the desired device when
the comparison result is True or False.
FB/FC
Instruction
FB
DFB_Compare
•
Input
Name
Designates the
Counter
source of high-speed
counter.
Execute the
instruction when
bEnable
bEnable changes to
True.
Comparison
Mode
condition
Define the output
OutputAction
*4
mode.
Define the cycle time
wRefreshCycle
to refresh the status
of the output device.
Specifies the
diCmpValue
compare value
Graphic Expression
Function
Data Type
DFB_
COUNTER_
REF*
BOOL
DFB_
COMPARE_
MODE*
DFB_
COMPARE_
OUTPUT_ACTION
WORD
Setting Value
(Default value)
DFB_COUNTER_REF
(Cannot be null.)
1
True/False
0:Equal(=)
1:Bigger_Equal(≧)
2:Smaller_Equal(≦)
2
2: RESET
Positive number or 0(0)
Positive number, negative
DINT
number or 0(0)
ST Language
DFB_Compare_instance(
OutputAction :=,
wRefreshCycle :=,
diCmpValue :=,
diTablePosition :=,
uiTableSize :=,
Timing for Updating
(False)
When bEnable shifts to
True and bBusy is False.
(Equal)
1: SET
When bEnable is rising
edge and bBusy is False.
(SET)
When bEnable shifts to
True and bBusy is False.
When bEnable shifts to
True and bBusy is False.
Chapt er 3
Compare :=,
Counter :=,
bEnable :=,
Mode :=,
bValid =>,
bBusy =>,
bError =>,
ErrorID =>);
-
-
3 2