Timer and Counter
operations
To load a timer using a start operation or a counter using a set
operation, you must first load the value in ACCU 1.
The following load operations are preferable:
For timers:
L KT, L IW, L QW, L FW, L DW, L SW.
For counters: L KC, L IW, L QW, L FW, L DW, L SW.
Starting a timer with the selected timer value requires an RLO signal
change.
A counter is set or started with the selected counter value when a
positive-going RLO signal edge is detected.
The following table indicates the signal edge change with
corresponding arrows.
Operation
Operand
RLO
1)
Function
SP
SE
SD
SS
SF
R
T 0 to 255
T 0 to 255
T 0 to 255
T 0 to 255
T 0 to 255
T 0 to 255
↑
↑
↑
↑
↓
1
Start a timer as a pulse
Start a timer as extended pulse
Start a timer as ON delay
Start a timer as stored ON delay
Start a timer as OFF delay
Reset a timer
S
R
CU
CD
C 0 to 255
C 0 to 255
C 0 to 255
C 0 to 255
↑
1
↑
↑
Set a counter (BCD number from 0 to 999)
Reset a counter
Count up
Count down
1)
positive-going edge (
↑
):
signal change from ’0’ to ’1’
negative-going edge (
↓
):
signal change from ’1’ to ’0’
When executing the timer or counter operations SP T, SE T, SD T, SS T,
SF T and S C the value in ACCU 1 is transferred to the timer or
counter (as with the transfer operation) and the appropriate operation
is started.
Table 3-6
Timer and counter operations
Basic Operations
CPU 948 Programming Guide
3 - 26
C79000-G8576-C848-04
Summary of Contents for CPU 948
Page 10: ...Contents CPU 948 Programming Guide 1 2 C79000 G8576 C848 04 ...
Page 32: ...Contents CPU 948 Programming Guide 2 2 C79000 G8576 C848 04 ...
Page 72: ...Data Blocks CPU 948 Programming Guide 2 42 C79000 G8576 C848 04 ...
Page 74: ...Contents CPU 948 Programming Guide 3 2 C79000 G8576 C848 04 ...
Page 154: ...Contents CPU 948 Programming Guide 4 2 C79000 G8576 C848 04 ...
Page 200: ...Contents CPU 948 Programming Guide 5 2 C79000 G8576 C848 04 ...
Page 308: ...Contents CPU 948 Programming Guide 7 2 C79000 G8576 C848 04 ...
Page 324: ...Examples of Parameter Assignment CPU 948 Programming Guide 7 18 C79000 G8576 C848 04 ...
Page 326: ...Contents CPU 948 Programming Guide 8 2 C79000 G8576 C848 04 ...
Page 370: ...Addressable System Data Area CPU 948 Programming Guide 8 46 C79000 G8576 C848 04 ...
Page 372: ...Contents CPU 948 Programming Guide 9 2 C79000 G8576 C848 04 ...
Page 486: ...Contents CPU 948 Programming Guide 11 2 C79000 G8576 C848 04 ...
Page 522: ...PG Functions via the S5 Bus CPU 948 Programming Guide 11 38 C79000 G8576 C848 04 ...
Page 524: ...Contents CPU 948 Programming Guide 12 2 C79000 G8576 C848 04 ...
Page 538: ...Contents CPU 948 Programming Guide 13 2 C79000 G8576 C848 04 ...
Page 546: ...List of Key Words CPU 948 Programming Guide Index 6 C79000 G8576 C848 04 ...