Timer Function Block - Mitsubishi Electric MELSEC iQ-R Series Programming Manual

Motion module instructions, standard functions/ function blocks
Hide thumbs Also See for MELSEC iQ-R Series:
Table of Contents

Advertisement

19.4

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.
Structured text
Instance name(Coil:=s1,Preset:=s2,ValueIn:=s3,ValueOut:=d1,Status:=d2);
Setting data
■Description, type, data type
Argument
Description
s1 (Coil)
Execution condition (TRUE: Executed, FALSE: Not executed)
s2 (Preset)
Timer setting value
s3 (ValueIn)
Initial timer value
d1 (ValueOut)
Current timer value
d2 (Status)
Output
Processing details
■TIMER_HIGH_FB_M
• This is a high-speed timer whose unit of measurement is 0.1 to 100 ms. When (s1) turns on, measurement of the current
value starts. The measurement starts from (s3)×0.1 to 100 ms (variable; set in parameter). When the value reaches
(s2)×0.1 to 100 ms, (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 (d2) also turns off.
• The unit of measurement of the high-speed timer is 10 ms by default. The unit can be changed in the range from 0.01 to
100 ms.
• 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.
Ex.
[Label definitions]
Label name
TIMER_HIGH_FB_M_1
i_Coil_B
o_ValueOut_I
o_Status_B
[Program]
TIMER_HIGH_FB_M_1(
Coil := i_Coil_B ,
Preset := 10 ,
ValueIn := 1 ,
ValueOut => o_ValueOut_I ,
Status => o_Status_B );
[Timing chart]
ON
i_Coil_B
OFF
o_ValueOut_I
1
o_Status_B
OFF
Data type
TIMER_HIGH_FB_M
Bit
Word (signed)
Bit
10
90ms
Type
Input variable
Input variable
Input variable
Output variable
Output variable
Class
VAR
VAR
VAR
VAR
19 TIMER FUNCTION BLOCKS
Data type
BOOL
INT
INT
INT
BOOL
Description
An instance of standard FB
Executing condition (TRUE:
Execution, FALSE: Stop)
Timer current value
Output
203
19.4 Timer Function Block
19

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents