Siemens S7-1200 System Manual page 213

Hide thumbs Also See for S7-1200:
Table of Contents

Advertisement

Table 7- 19
Data types for the parameters
Parameter
Box: IN
Coil: Power flow
R
Box: PT
Coil: "PRESET_Tag"
Box: Q
Coil: DBdata.Q
Box: ET
Coil: DBdata.ET
Table 7- 20
Effect of value changes in the PT and IN parameters
Timer
Changes in the PT and IN box parameters and the corresponding coil parameters
TP
Changing PT has no effect while the timer runs.
Changing IN has no effect while the timer runs.
TON
Changing PT has no effect while the timer runs.
Changing IN to FALSE, while the timer runs, resets and stops the timer.
TOF
Changing PT has no effect while the timer runs.
Changing IN to TRUE, while the timer runs, resets and stops the timer.
TONR
Changing PT has no effect while the timer runs, but has an effect when the timer resumes.
Changing IN to FALSE, while the timer runs, stops the timer but does not reset the timer. Changing
IN back to TRUE will cause the timer to start timing from the accumulated time value.
PT (preset time) and ET (elapsed time) values are stored in the specified IEC_TIMER DB
data as signed double integers that represent milliseconds of time. TIME data uses the T#
identifier and can be entered as a simple time unit (T#200ms or 200) and as compound time
units like T#2s_200ms.
Table 7- 21
Size and range of the TIME data type
Data type
Size
TIME
32 bits, stored
as DInt data
The negative range of the TIME data type shown above cannot be used with the timer instructions. Negative PT (preset
1
time) values are set to zero when the timer instruction is executed. ET (elapsed time) is always a positive value.
S7-1200 Programmable controller
System Manual, 03/2014, A5E02486680-AG
Data type
Description
Bool
TP, TON, and TONR:
Box: 0=Disable timer, 1=Enable timer
Coil: No power flow=Disable timer, Power flow=Enable timer
TOF:
Box: 0=Enable timer, 1=Disable timer
Coil: No power flow=Enable timer, Power flow=Disable timer
Bool
TONR box only:
0=No reset
1= Reset elapsed time and Q bit to 0
Time
Timer box or coil: Preset time input
Bool
Timer box: Q box output or Q bit in the timer DB data
Timer coil: you can only address the Q bit in the timer DB data
Time
Timer box: ET (elapsed time) box output or ET time value in the timer DB
data
Timer coil: you can only address the ET time value in the timer DB data.
Valid number ranges
1
T#-24d_20h_31m_23s_648ms to T#24d_20h_31m_23s_647ms
Stored as -2,147,483,648 ms to +2,147,483,647 ms
Basic instructions
7.2 Timer operations
213

Advertisement

Table of Contents
loading

Table of Contents