36 COUNTER/TIMER FUNCTION BLOCKS
36.4 Counter Function Block
1987
36
36.4 Counter Function Block
COUNTER_FB_M
This function block starts counting up when the execution condition is satisfied.
■Description, type, data type
Ladder, FBD/LD Structured text
Instance name(Coil:=s1,Preset:=s2,ValueIn:=s3,ValueOut:=d1,Status:=d2);
Argument Description Type Data type
s1 (Coil) Execution condition (TRUE: Executed, FALSE: Not executed) Input variable BOOL
s2 (Preset) Counter setting value Input variable INT
s3 (ValueIn) Initial counter value Input variable INT
d1 (ValueOut) Current counter value Output variable ANY16
d2 (Status) Output Output variable BOOL
RnCPU
RnENCPU
RnSFCPU RnSFCPURnPCPURnPCPU
(Standard) (Safety)
(Redundant)
(Process)