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.
Setting data
■
Description, type, data type
Processing details
■
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 RnSFCPU
RnPCPU
RnPCPU
(Standard)
(Safety)
(Redundant)
(Process)
s1
d1
d2
s2
s3
Summary of Contents for MELSEC iQ-R Series
Page 1: ...MELSEC iQ R Programming Manual Instructions Standard Functions Function Blocks ...
Page 2: ......
Page 24: ...22 INDEX 2092 INSTRUCTION INDEX 2093 REVISIONS 2104 WARRANTY 2105 TRADEMARKS 2106 ...
Page 34: ...32 MEMO ...
Page 35: ...33 PART 1 PART 1 OVERVIEW This part consists of the following chapter 1 OVERVIEW ...
Page 68: ...66 1 OVERVIEW 1 5 Precautions on Programming MEMO ...
Page 1448: ...1446 14 REDUNDANT SYSTEM INSTRUCTIONS 14 2 Disabling Enabling System Switching MEMO ...
Page 1972: ...1970 33 TIME DATA TYPE FUNCTIONS 33 4 Division MEMO ...
Page 2067: ...APPX Appendix 5 PID Control Program Examples 2065 A 252 Set PID control data for loop 2 ...
Page 2109: ......