AX Seri es-St andard I nst ruct i ons Manual
3.5 DFB_PresetValue
Supported Products
•
AX-308E, AX-364E, AX-324N
DFB_PresetValue is the application function block for high-speed counters, its role is to reset the current counter value back to
the default value.
FB/FC
Instruction
FB
DFB_PresetValue
Input
•
Name
Function
Execute the
instruction when
bExecute
bEnable changes
Define when the
TriggerType
default value
would be preset.
The preset
counter value for
diPresetValue
high speed
counters.
*Note: DFB_PRESET_TRIGGER_TYPE: Enumeration (Enum)
EXECUTE_TRIGGER: Set the default value right after the input bExecute shifts to True.
EXTERNAL_TRIGGER: Set the default value right after the external signal of high-speed counter being triggered.
Output
•
Name
bDone
bBusy
Data Type
to True.
DFB_PRESET_TRIGGER_
Function
The default value of the counter
has been changed.
True when the instruction is
Graphic Expression
BOOL
0:EXECUTE_TRIGGER
1:EXTERNAL_TRIGGER
TYPE *
(EXECUTE_TRIGGER)
Positive number, negative
DINT
Data Type
DFB_PresetValue_instance(
bCommandAborted =>,
Setting Value
(Default value)
True/False
(False)
number or 0(0)
Output Range(Default value)
BOOL
BOOL
Chapt er 4
ST Language
Counter :=,
bExecute :=,
TriggerType :=,
diPresetValue :=,
bDone =>,
bBusy =>,
bError =>,
ErrorID =>);
Timing for Updating
-
When bExecute shifts
to True and bBusy is
False.
When bExecute shifts
to True and bBusy is
False
True/False(False)
True/False(False)
4 9