Siemens CPU 948 Programming Manual page 102

Simatic s5 s5-155u
Table of Contents

Advertisement

Basic Operations
Loading
timer values in BCD code:
T i m e b a s e
1 3
1 2
B i n a r y
' 0 '
1 3
1 2
11
T i m e b a s e
"LC T 10": Loads the timer value and time base of
timer T 10 into ACCU 1 in BCD
The time base is also loaded.
Loading
counter values in BCD code:
B i n a r y
' 0 '
11
"LC
C 10":
Loads the counter value of counter C 10
into ACCU 1 in BCD
3 - 30
T i m e r v a l u e
9
8
7
2
1
1 0
1 0
T i m e r v a l u e
C o u n t e r v a l u e
9
8
7
4
2
1
1 0
1 0
C o u n t e r v a l u e i n B C D
If you load values in BCD, status bits 14 and 15 of the timer or 12 to
15 of the counter are not loaded. They have the value 0 in ACCU 1.
The value in the ACCU can now be processed further.
T i m e r
0
B C D
0
4
3
A C C U 1
0
1 0
0
C o u n t e r C 1 0
B C D
3
0
A C C U 1
0
1 0
T 1 0
CPU 948 Programming Guide
C79000-G8576-C848-04

Advertisement

Table of Contents
loading

Table of Contents