79
5-228
5.12 Standard Timer Function Blocks
5.12.1 Pulse timer
TP(_E), TP_HIGH(_E)
(1) TP(_E)
Uses a low-speed timer to count the elapsed time.
Output time can be set between 1ms and 1000ms. The unit is set in Timer limit setting on the
PLC system of PLC parameter.
Valid setting range for n is T#0ms to T#3276700ms.
(2) TP_HIGH(_E)
Uses a high-speed timer to count the elapsed time.
Output time can be set within the following range. The unit is set in Timer limit setting on the
PLC system of PLC parameter.
Valid setting range for n is T#0ms to T#327670ms.
Operation result
(1) Function without EN/ENO
An operation is executed and the operation value is output from and .
[Timing chart]
(2) Function with EN/ENO
The following table shows the executing conditions and operation results.
CPU module
Setting range
Basic model QCPU, High Performance model QCPU, Process CPU, Redundant CPU
0.1ms to 100ms
Universal model QCPU, LCPU
0.01ms to 100ms
EN
ENO
,
TRUE (Operation execution)
TRUE
Operation output value
FALSE (Operation stop)
FALSE
Previous output value
d1
d2
OFF
ON
OFF
ON
ON
s
OFF
OFF
ON
d1
d2
Turns ON when = ON.
Starts measuring when = ON.
Turns OFF when
reaches the time set to n.
Initializes when = OFF and = OFF.
When n = T#5s (5 seconds)
ON
3
4
2
1
0
0
5
4
3
2
1
0
0
d1
d1
d2
d2
d1
s
s
d2
s
d1
d2
72
5.12 Standard Timer Function Blocks
5.12.1 Pulse timer
5-229
5
APPLICATION
FUNCTIONS
TP(_E),
TP_HIGH(_E)
TP(_E), TP_HIGH(_E)
[Timing chart]
Operation Error
No operation error occurs in the execution of the TP (_E) function.
Program Example
The program which turns ON bit type data of for 10 seconds after bit type data input to is
turned ON.
(a) Function without EN/ENO (TP)
[Structured ladder/FBD]
[ST]
TP_Inst(IN:= g_bool1 ,PT:= T#10s ,Q:= g_bool2 ,ET:= g_time1 );
(b) Function with EN/ENO (TP_E)
[Structured ladder/FBD]
[ST]
TP_E_Inst(EN:= M0 ,IN:= g_bool1 ,PT:= T#10s ,Q:= g_bool2 ,ET:= g_time1,
ENO:= M10 );
OFF
ON
ON
ON
ON
ON
EN
OFF
ON
OFF
s
OFF
ENO
OFF
OFF
ON
ON
d1
d2
Turns ON when EN = ON and = ON.
Starts measuring when EN = ON and = ON.
Turns OFF when reaches the time set to n .
Initializes when EN = ON, = OFF and = OFF.
Measuring time counts up every time when
EN = ON after starting measuring.
When n = T#5s (5 seconds)
3
2
1
0
4
5
3
2
1
0
0
d1
s
d1
d2
d2
s
d1
d2
s
d1
s
71
5-230
5.12 Standard Timer Function Blocks
5.12.2 On delay timer
TON(_E), TON_HIGH(_E)
5.12.2
On delay timer
TON(_E), TON_HIGH(_E)
Function
Operation processing
Turns ON when is turned ON after the elapse of the time set to n. Elapsed delay time until
is turned ON is set to .
When is turned OFF, turns OFF and the elapsed delay time is reset.
(1) TON(_E)
Uses a low-speed timer to count the elapsed time.
Output time can be set between 1ms and 1000ms. The unit is set in Timer limit setting on the
PLC system of PLC parameter.
Valid setting range for n is T#0ms to T#3276700ms.
TON(_E)
TON_HIGH(_E)
_E: With EN/ENO
indicates any of the following
functions.
TON
TON_E
TON_HIGH
TON_HIGH_E
Input argument,
EN:
Executing condition (TRUE: Execution, FALSE: Stop)
:Bit
s(IN):
Input
:Bit
n(PT):
Delay time setting value
:Time
Output argument,
ENO:
Execution result (TRUE: Normal, FALSE: Error or stop)
:Bit
d1(Q):
Output
:Bit
d2(ET):
Elapsed time
:Time
Basic
Process
High
performance
Redundant
Universal
LCPU
Structured ladder/FBD
TON_HIGH_E
EN
ENO
s
n
d1
d2
ST
TON_HIGH_E
(EN, s, n, d1, d2);
ENO:=
d1
s
d1
d2
s
d1
C# HTML5 Viewer: Deployment on ASP.NET MVC under Views according to config in picture above. RasterEdge.XDoc.PDF.HTML5Editor. dll. Open RasterEdge_MVC3 DemoProject, copy following content to your project:
how to copy picture from pdf and paste in word; copy and paste image from pdf to pdf C# HTML5 Viewer: Deployment on IIS Copy according dll files listed below under RasterEdge.DocImagSDK/Bin directory and paste to Xdoc.HTML5 ViewerDemo/Bin folder. (see picture).
pdf cut and paste image; paste image into pdf preview
114
5.12 Standard Timer Function Blocks
5.12.2 On delay timer
5-231
5
APPLICATION
FUNCTIONS
TON(_E),
TON_HIGH(_E)
TON(_E), TON_HIGH(_E)
(2) TON_HIGH(_E)
Uses a high-speed timer to count the elapsed time.
Output time can be set within the following range. The unit is set in Timer limit setting on the
PLC system of PLC parameter.
Valid setting range for n is T#0ms to T#327670ms.
Operation result
(1) Function without EN/ENO
An operation is executed and the operation value is output from and .
[Timing chart]
(2) Function with EN/ENO
The following table shows the executing conditions and operation results.
[Timing chart]
CPU module
Setting range
Basic model QCPU, High Performance model QCPU, Process CPU, Redundant CPU
0.1ms to 100ms
Universal model QCPU, LCPU
0.01ms to 100ms
EN
ENO
,
TRUE (Operation execution)
TRUE
Operation output value
FALSE (Operation stop)
FALSE
Previous output value
d1
d2
OFF
OFF
ON
ON
s
OFF
OFF
ON
d1
d2
Starts measuring when = ON.
Turns ON when
reaches the time set to n .
Resets at the falling of .
When n = T#5s (5 seconds)
0
3
2
2
3
4
1
1
0
0
0
0
5
d2
s
d1
d2
d2
s
d1
d2
OFF
ON
ON
ON
ON
ON
EN
OFF
OFF
ON
OFF
ON
s
ENO
OFF
OFF
ON
0
0
1
2
3
4
5
0
d1
d2
Starts measuring when EN = ON and = ON.
Turns ON when reaches
the time set to n .
Turns OFF and resets
when EN = ON and = OFF.
When n = T#5s (5 seconds)
d2
s
d1
d2
d1
d2
s
C# Raster - Modify Image Palette in C#.NET & pages edit, C#.NET PDF pages extract, copy, paste, C#.NET VB.NET How-to, VB.NET PDF, VB.NET Word, VB is used to reduce the size of the picture, especially in
copy picture from pdf to powerpoint; copy pdf picture VB Imaging - VB Code 128 Generation Guide Code 128 settings), then the barcode is drawn on the picture! Copy the VB sample code below to your .NET imaging Create Code 128 on PDF, Multi-Page TIFF, Word
copying a pdf image to word; how to copy pdf image into word
20
5-232
5.12 Standard Timer Function Blocks
5.12.2 On delay timer
TON(_E), TON_HIGH(_E)
Operation Error
No operation error occurs in the execution of the TON (_E) function.
Program Example
The program which turns ON bit type data of 10 seconds after bit type data input to is
turned ON.
(a) Function without EN/ENO (TON)
[Structured ladder/FBD]
[ST]
TON_Inst(IN:= g_bool1 ,PT:= T#10s ,Q:= g_bool2 ,ET:= g_time1 );
(b) Function with EN/ENO (TON_E)
[Structured ladder/FBD]
[ST]
TON_E_Inst(EN:= M0 ,IN:= g_bool1 ,PT:= T#10s ,Q:= g_bool2 ,ET:= g_time1,
ENO:= M10 );
d1
s
78
5.12 Standard Timer Function Blocks
5.12.3 Off delay timer
5-233
5
APPLICATION
FUNCTIONS
TOF(_E),
TOF_HIGH(_E)
TOF(_E), TOF_HIGH(_E)
5.12.3
Off delay timer
TOF(_E), TOF_HIGH(_E)
Function
Operation processing
Turns ON when is turned ON.
Turns OFF when is turned from ON to OFF after the elapse of the time set to n. Elapsed
time until is turned OFF is set to .
When is turned ON again, turns ON and the elapsed time is reset.
(1) TOF(_E)
Uses a low-speed timer to count the elapsed time.
Output time can be set between 1ms and 1000ms. The unit is set in Timer limit setting on the
PLC system of PLC parameter.
Valid setting range for n is T#0ms to T#3276700ms.
TOF(_E)
TOF_HIGH(_E)
_E: With EN/ENO
indicates any of the following
functions.
TOF
TOF_E
TOF_HIGH
TOF_HIGH_E
Input argument,
EN:
Executing condition (TRUE: Execution, FALSE: Stop)
:Bit
s(IN):
Input
:Bit
n(PT):
Delay time setting value
:Time
Output argument,
ENO:
Execution result (TRUE: Normal, FALSE: Error or stop)
:Bit
d1(Q):
Output
:Bit
d2(ET): Elapsed time
:Time
Basic
Process
High
performance
Redundant
Universal
LCPU
Structured ladder/FBD
TOF_HIGH_E
EN
ENO
s
n
d1
d2
ST
TOF_HIGH_E
(EN, s, n, d1, d2);
ENO:=
d1
s
d1
s
d1
d2
s
d1
125
5-234
5.12 Standard Timer Function Blocks
5.12.3 Off delay timer
TOF(_E), TOF_HIGH(_E)
(2) TOF_HIGH(_E)
Uses a high-speed timer to count the elapsed time.
Output time can be set within the following range. The unit is set in Timer limit setting on the
PLC system of PLC parameter.
Valid setting range for n is T#0ms to T#327670ms.
Operation result
(1) Function without EN/ENO
An operation is executed and the operation value is output from and .
[Timing chart]
(2) Function with EN/ENO
The following table shows the executing conditions and operation results.
[Timing chart]
CPU module
Setting range
Basic model QCPU, High Performance model QCPU, Process CPU, Redundant CPU
0.1ms to 100ms
Universal model QCPU, LCPU
0.01ms to 100ms
EN
ENO
,
TRUE (Operation execution)
TRUE
Operation output value
FALSE (Operation stop)
FALSE
Previous output value
d1
d2
2
0
0
1
3
4
5
2
0
1
3
4
0
1
OFF
OFF
ON
OFF
ON
ON
s
OFF
OFF
ON
ON
d1
d2
Starts measuring
when = OFF.
Turns OFF when reaches
the time set to n .
Resets when = ON.
When n = T#5s (5 seconds)
d2
d1
d2
d2
s
s
d1
d2
OFF
OFF
OFF
ON
OFF
OFF
ON
ON
OFF
OFF
ON
ON
OFF
OFF
ON
ON
ON
ON
EN
OFF
OFF
OFF
ON
ON
OFF
ON
ON
s
OFF
ON
d1
d2
ENO
Starts measuring
when EN = ON and = OFF.
Resets when EN = ON and = ON.
When n = T#5s (5 seconds)
0
1
0
0
4
3
2
1
0
0
d2
d2
s
s
27
5.12 Standard Timer Function Blocks
5.12.3 Off delay timer
5-235
5
APPLICATION
FUNCTIONS
TOF(_E),
TOF_HIGH(_E)
TOF(_E), TOF_HIGH(_E)
Operation Error
No operation error occurs in the execution of the TOF(_E) function.
Program Example
The program which turns ON bit type data of when bit type data input to is turned ON, and
turns OFF 10 seconds after is turned OFF.
(a) Function without EN/ENO (TOF)
[Structured ladder/FBD]
[ST]
TOF_Inst(IN:= g_bool1 ,PT:= T#10s ,Q:= g_bool2 ,ET:= g_time1 );
(b) Function with EN/ENO (TOF_E)
[Structured ladder/FBD]
[ST]
TOF_E_Inst(EN:= M0 ,IN:= g_bool1 ,PT:= T#10s ,Q:= g_bool2 ,ET:= g_time1,
ENO:= M10 );
d1
s
d1
s
78
5-236
5.12 Standard Timer Function Blocks
5.12.4 Timer function blocks
TIMER_10_FB_M
5.12.4
Timer function blocks
TIMER_10_FB_M
Function
Operation processing
(1) TIMER_10_FB_M
(a) Starts measuring the current value when the executing condition of turns ON.
Starts measuring from the value input to 10ms, and when the measuring value
reaches to the value input to 10ms, turns ON.
The current value is output from .
(b) When the executing condition of turns OFF, the current value is set to the value input
to , and turns OFF.
(c) When the unit of measurement (time period) for the high-speed timer is changed from
default value of PLC parameter, warning C9047 occurs in compilation.
(d) Valid setting range for is 0 to 32767.
(e) Valid setting range for is -32768 to 32767. However, if negative value is specified,
the initial value is 0.
TIMER_10_FB_M
TIMER_100_FB_M
TIMER_HIGH_FB_M
TIMER_LOW_FB_M
TIMER_CONT_FB_M
TIMER_CONTHFB_M
indicates any of the following
functions.
TIMER_10_FB_M
TIMER_HIGH_FB_M
TIMER_CONT_FB_M
TIMER_100_FB_M
TIMER_LOW_FB_M
TIMER_CONTHFB_M
Input argument,
s1(Coil):
Executing condition (TRUE: Execution, FALSE: Stop)
:Bit
s2(Preset):
Timer setting value
:Word (signed)
s3(ValueIn): Timer initial value
:Word (signed)
Output argument,
d1(ValueOut): Timer current value
:ANY16
d2(Status):
Output
:Bit
Basic
Process
High
performance
Redundant
Universal
LCPU
ST
Structured ladder/FBD
s1
d1
d2
s2
s3
TIMER_10_FB_M
(s1, s2, s3, d1, d2)
CAL
TIMER_10_FB_M
s1
s3
s2
d2
d1
s1
s3
d2
s2
s3
Documents you may be interested
Documents you may be interested