Siemens CPU 948 Programming Manual page 98

Simatic s5 s5-155u
Table of Contents

Advertisement

Basic Operations
Timer and Counter
operations
Table 3-6
Timer and counter operations
Operation
Operand
SP
T 0 to 255
SE
T 0 to 255
SD
T 0 to 255
SS
T 0 to 255
SF
T 0 to 255
R
T 0 to 255
S
C 0 to 255
R
C 0 to 255
CU
C 0 to 255
CD
C 0 to 255
1)
positive-going edge ( ↑ ):
negative-going edge ( ↓ ):
3 - 26
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.
RLO
Function
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
1
Set a counter (BCD number from 0 to 999)
1
Reset a counter
Count up
Count down
signal change from '0' to '1'
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.
CPU 948 Programming Guide
C79000-G8576-C848-04

Advertisement

Table of Contents
loading

Table of Contents