Chapter 19 Timer Function Blocks; Pulse Timer - 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
TIMER FUNCTION BLOCKS
19.1

Pulse Timer

TP
These function blocks keep the signal on for the specified period of time.
Structured text
Instance name(IN:=s,PT:=n,Q:=d1,ET:=d2);
Setting data
■Description, type, data type
Argument
Description
s (IN)
Start of output
n (PT)
Output time setting value
d1 (Q)
Output
d2 (ET)
Elapsed time
Processing details
■Operation processing
1.
Output
• When (s) turns on, (d1) turns on for the period of time set by (n). The time elapsed after (d1) turns on is set to (d2).
• Use the long timer to count the elapsed time.
2.
End of output
• Once the elapsed time reaches the setting time, (d1) turns off.
• If (s) is off after (d1) turns off, the elapsed time is reset.
• Even when (s) turns off while (d1) is on, (d1) does not turn off.
3.
Output time setting
The valid setting range of (n) is T#1 ms to T#2147483 ms. Note that the valid setting range will be as follows by changing the
timer limit setting using the engineering tool.
Minimum value
Identical to the long timer setting value [ms] in the timer limit setting.
Note that if the long timer setting value is smaller than 1 ms, the
minimum value will be 1 ms.
The value at the rising edge (off to on) of (d1) is used for the setting value of (n). When the (n) value is changed when (d1) is
on, the new value will be enabled at the next output start timing.
Type
Input variable
Input variable
Output variable
Output variable
Maximum value
The time satisfying the following condition is used.
Note that the maximum value is a value that can be included within the range of time
type because the output time setting value is of time type (32-bit value).
• Output time setting value [ms] ≤ 2147483647 [ms] × Long timer setting value in the
timer limit setting [ms]
[Example]
• If the long timer setting value is 0.001 ms: T#1 ms to T#2147483 ms
• If the long timer setting value is 1000 ms: T#1000 ms to T#2147483000 ms
Data type
BOOL
TIME
BOOL
TIME
19 TIMER FUNCTION BLOCKS
19.1 Pulse Timer
19
197

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents