Siemens CPU 948 Programming Manual page 278

Simatic s5 s5-155u
Table of Contents

Advertisement

OB 150: Set/Read System Time
Bit no.
15
Function no.
Result
Possible errors
6 - 40
2. ACCUs
2a) ACCU-2-L
ACCU-2-L contains information about the required function and the
data field used. It must have the following structure:
12
11
Address area type
Parameters in ACCU-2-L
Function no.,
Permitted values:
Address area type,
Permitted values:
Data block no.,
Permitted values:
2b) ACCU-1-L
Number of the 1st data field word
Permitted values (depending on the address area type):
After correct processing of OB 150, the RLO, the condition code bits
OR, ERAB and OS = 0.
The errors listed in the following table may occur. If an error occurs,
the system program sets the RLO to '1' and stores the error IDs listed
in the table in ACCU 1.
8
7
4
Data block no.
1 = set system time
2 = read system time
1 = DB data block
2 = DX data block
3 = F flag area
4 = S flag area
3 to 255 (only with address area type '1' or '2';
with address area type '3' or '4' irrelevant)
DB, DX:
0 to 2039
F flags:
0 to 248
(= no. of flag byte 'x ')
S flags
0 to 4088
(= no. of flag byte 'x ')
3
0
CPU 948 Programming Guide
C79000-G8576-C848-04

Advertisement

Table of Contents
loading

Table of Contents