36 COUNTER/TIMER FUNCTION BLOCKS
36.8 Timer Function Block
1997
36
36.8 Timer Function Block
TIMER__M
These function blocks start counting a timer when the execution condition is satisfied, and continue counting until the timer
reaches the set value.
■Description, type, data type
■TIMER_10_FB_M
• When (s1) turns on, measurement of the current value starts. The measurement starts from (s3)10ms. When the value
reaches (s2)10ms, (d2) turns on. The measured current value is output to (d1).
• When (s1) turns off, the current value returns to the initial value (s3), and (s2) also turns off.
• If the unit of measurement of the high-speed timer (in the timer limit setting) is changed from the default value using the
engineering tool, a warning will be issued during compilation.
• The valid setting range of (s2) is 0 to 32767.
• The valid setting range of (s3) is -32768 to 32767. Note that if a negative value is specified, 0 will be used as the initial
value.
• [RnPCPU (redundant)] If these function blocks are used in a program executed in both systems, there are restrictions on their operation when the systems
are switched. ( MELSEC iQ-R CPU Module User's Manual (Application))
Ladder, FBD/LD Structured text
( is to be replaced by any of the following: TIMER_10_FB_M,
TIMER_100_FB_M, TIMER_HIGH_FB_M, TIMER_LOW_FB_M,
TIMER_CONT_FB_M, or TIMER_CONTHFB_M.)
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) Timer setting value Input variable INT
s3 (ValueIn) Initial timer value Input variable INT
d1 (ValueOut) Current timer value Output variable ANY16
d2 (Status) Output Output variable BOOL
RnCPU
RnENCPU
RnSFCPU RnSFCPURnPCPURnPCPU
(Standard) (Safety)
(Redundant)
(Process)