Step5 Timers
English
mnenonics |
German
mnenonics |
Timer |
Name |
Diagram |
SD |
SE |
S_ODT |
On-Delay Timer |
|
SF |
SA |
S_OFFDT |
Off-Delay Timer |
|
SP |
SI |
S_PULSE |
Pulse Timer |
|
SE |
SV |
S_PEXT |
Extended Pulse Timer |
|
SS |
SS |
S_ODTS |
Retentive On-Delay Timer |
|
FR |
FR |
|
Enable Timer (Free) |
|
R |
R |
|
Reset Timer |
|
L |
L |
|
Load Current Timer Value
into ACCU 1 as Integer |
|
LC |
LC |
|
Load Current Timer Value
into ACCU 1 as BCD |
|
Step5 Timer example for STL (AWL)
// Example STL Timer - English syntax
A I 0.0 // Test input bit 0.0
L KT 010.2 // Preset 10 seconds into ACCU 1.
SD T1 // Start On-Delay Timer
A T1 // Check signal state of timer T1.
= Q 4.0 // Make output bit 4.0 |
// German syntax
U E 0.0
L KT 010.2
SE T1
U T1
= A 4.0 |
Time Value Constants
KT <BCD>.<resolution>
- • <BCD> integer (3 decimal digits)
- Integer from 001 to 999.
- • <Resolution> (1 decimal code number)
-
Code |
Resolution or
Time Base |
Range of Time value |
min |
max |
0 |
0.01 s (10 ms) |
10 ms |
9s 990ms |
1 |
0.1 s (100 ms) |
100 ms |
1m 39s 900ms |
2 |
1 s |
1 s |
16m 39 s |
3 |
10 s |
10 s |
2h 46m 30s |
// Step 5 Example
// Resolution = 10 ms, range = [10ms; 9s990ms]
L KT 001.0 // 10 ms
L KT 002.0 // 20 ms
L KT 500.0 // 5 s (5000 ms)
L KT 999.0 // 9 s, 990 ms
// Resolution = 100 ms, range = [100ms; 1m39s900ms]
L KT 001.1 // 100 ms
L KT 002.1 // 200 ms
L KT 010.1 // 1 s (1000 ms)
L KT 050.1 // 5 s (5000 ms)
L KT 999.1 // 1 m, 39 s, 900 ms (99900 ms)
// Resolution = 1 s, range = [1s; 16m39s]
L KT 001.2 // 1 s
L KT 002.2 // 2 s
L KT 005.2 // 5 s
L KT 060.2 // 1 m (60 s)
L KT 999.2 // 16 m, 39 s (999 s)
// Resolution = 10 s, range = [10s; 2h46m30s]
L KT 001.3 // 10 s
L KT 002.3 // 20 s
L KT 006.3 // 1 m (60 s)
L KT 030.3 // 5 m (300 s)
L KT 360.3 // 1 h (3600 s)
L KT 999.3 // 2 h, 46 m, 30 s (9990 s)
|
|