Timers
- Last UpdatedJul 03, 2020
- 1 minute read
The following table summarizes data format, item or point, suffix, data type, and range only for the S7-300, S7-400, and S7-1200 Timers.
|
Data Format |
Item/Point |
Suffix |
Data Type |
Range |
|
Word |
Tx TREALx |
None BCD KT S5T None |
VT_UI2 VT_UI2 VT_BSTR VT_BSTR VT_R4 |
0 to 14745 0 to 9999 0.0 to 999.3 0ms to 2h46m30s0ms 0.0 to 9990.00 |
Where:
|
x |
is the start address, with a range from 0 to 65535. |
When the suffix is used, the client is responsible for ensuring the correct value is specified or returned.
Note: S7-1200 and S7-1500 PLCs do not support "direct" counter\timer access by the client/server. That is, you cannot use the current S7-300/400 item name Cx or Tx and its associated suffixes to subscribe to counter\timer values from the S7-1200 and S7-1500 PLCs. However, you can use the database items to indirectly output the associated system counter\timer value (internal IEC counter\timer) from the PLC.
For example:
If the value of timer T0 is 42, the value read by just using the "T0" item syntax is 42. However, if the item syntax is "T0BCD," the value returned by the Communication Driver is 66.
A similar principle applies to poking:
If the value for the timer is 42, using the "T0" pokes a value of 42 into the timer T0. However, with the "T0BCD" syntax, the poke value is 66.
Note: All timers are Read/Write. The Communication Driver processes a write (POKE) to a timer. Although the Communication Driver allows poking any word value into timers, the S7 PLC can only process values that represent a valid time format.