EasyManua.ls Logo

Siemens SIMATIC S5-95F - Page 196

Siemens SIMATIC S5-95F
579 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
STEP 5 Operations S5-95F
Updating the Timers
The operating system of the S5-95F ensures that the same times or timer statuses are present in
both subunits when a timer is scanned.
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.
Loading a Time
Timer operations call internal timers.
When a timer operation is started, the word in ACCU 1 is used as a time value. You must therefore
first specify time values in the accumulator.
You can load a timer with any of the following data types:
KT constant time value
or
DW data word
IW input word
QW output word
FW flag word
These data types must be
in BCD code.
Loading a Constant Time Value:
The following example shows how you can load a time value of 40 s.
L KT 40.2
Operation
Operand
Coded time base (0 to 3)
Time (0 to 999)
Key for Time Base
Base 0 1 2 3
Factor 0.01 s 0.1 s 1 s 10
s
8-16
EWA 4NEB 812 6210-02

Table of Contents

Related product manuals