Forcing Of Timers And Counters; Forcing With The Programmer - Siemens Simatic S5-101U Programming Instructions Manual

Table of Contents

Advertisement

4.2.4
Forcing of timers and counters
Timers and counters can be forced
i n both o p e r a t i n g modes o f the PC,
u s i n g t h e 605U, 615 and O P 393
programmer on l y
.
Programming (from v e r s i o n 1 .l onwards)
Data words DW
0
t o DE 15 i n data block
DB 1 are reserved f o r t h e p r e s e t values
f o r t i m e r s and counters.
I n t h e user program, reference i s made
t o t h e associated data word when t i m e r s
and counters are s t a r t e d .
DWP
T 15
C
P
t o
I f both t i m e r s
counters are t o
be forced, d i f f e r e n t numbers should
be used, e.g.
A maximum o f 16 timers/counters
i n any combination can be forced.
The f o l l o w i n g program i s r e q u i r e d
i n t h e PC:
Programming (from v e r s i o n 1.2 onwards)
Data words D W ! l t o DW 15 i n data b l o c k
DB 1 are reserved f o r t h e p r e s e t values
f o r t i m e r s and counters.
I n t h e user program, reference i s made
t o t h e associated data word when t i m e r s
and counters are s t a r t e d .
T B-DW
0
t o
T 15-DW
15
C 0-DW
15
t o
C 16-DW
31
16 t i m e r s and 16 counters can be forced.
-
The f o l l o w i n g program i s r e q u i r e d i n
t h e PC:
LKT i s r e p l aced by
;
L D W
L D ~ 16
i
LKC i s r e p l aced by
S C
1
L D W (16.. .31)
~ D W
0
L I T i s replaced
SIT Q
by L D W
~ M D 1
LKC i s rep1 aced
S C
1
by L D W
Make sure t h a t t h e r e are meaningful
time values i n the data words used when
changing from t h e "STOP" t o the "RUN"
mode. It i s advisable t o f o r c e t h e t i m e r s /
counters ( w i t h t h e preset values) i n
t h e "STOP" s t a t u s o f t h e PC.
Forcing w i t h t h e programmer
The data word assigned t o a t i m e r
For f u r t h e r information, p1 ease r e f e r
o r counter i s loaded w i t h t h e p r e s e t
t o t h e Programning I n s t r u c t i o n s o f t h e
value, u s i n g t h e " D i r e c t s i g n a l s t a t u s
605U programmer i n t h e S e c t i o n e n t i t l e d
d i s p l ay" f u n c t i o n o f t h e programmer.
"PROGRAM TEST-Forc
i n g o f t i m e r s and
The data block f o r t h e preset value
counters."
can be s e l e c t e d on the programmer
( b u t DB1 i s mandatory f o r t h e S5-101U PC).

Advertisement

Table of Contents
loading

Table of Contents