Siemens SIMATIC S5-95F Manual page 193

Table of Contents

Advertisement

S5-95F
Loading and Transferring a Time (See also Timer and Counter Operations)
During graphic input, QW62 is assigned to output BI of
a timer. The programmer automatically stores the
corresponding load and transfer operation in the control
program. Thus the contents of the memory location
addressed with T 10 are loaded into ACCU 1.
Afterwards, the contents of the accumulator are
transferred to the process image addressed with QW62.
In this example, you can see timer T 10 at QW62 in
binary code.
Outputs BI and DE are digital outputs. The time at out-
put BI is in binary code. The time at output DE is in
BCD code with time base.
STL
A
I
0.0
L
IW
22
SP
T
10
NOP 0
L
T
10
T
QW
62
NOP 0
NOP 0
Note
The timers are divided into two areas T 0 to T 63 and T 64 to T 127. Please note that
the timers are updated at different times:
Timers T 0 to T 63 are updated by the operating system always when you scan the
timer in the control program.
Timers T 64 to T 127 are updated by the operating system always prior to
processing of OB1. The timers are not updated during the start-up organization
blocks OB21/OB22.
EWA 4NEB 812 6210-02
Example
CSF
T 10
1
I 0.0
TW
IW 22
BI
DE
R
Q
T 10
QW 62
I 0.0
IW 22
QW 62
STEP 5 Operations
Representation
Load
Transfer
LAD
T 10
1
TV
QW 62
BI
DE
R
Q
8-13

Advertisement

Table of Contents
loading

Table of Contents