Technical data
The following diagram illustrates the difference.
Note
If you transfer an odd number of flag bytes, only half the last
data word in the data block is used. With OB 190, the left date in
the destination DB is unchanged, with
OB 192 the right date is
unchanged.
Parameters
1. Specifying the source:
1a) ACCU-2-LH
First flag byte to be transferred,
possible values: 0 to 255
1b)
ACCU-2-LL
Last flag byte to be transferred,
possible values: 0 to 255
(The last flag byte must be ≥ the first flag byte)
Copy flags with OB 190:
0
2
4
DL DR
1
3
15 8 7 0
FY 0
FY 1
FY 2
FY 3
Data blockFlags
OB 192:
DL DR
0
2
4
1
3
15 8 7 0
Data block
DW 0
DW 1
DW 2
DW3
7
0
1
2
3
4
0
Fig. 6-7 Transferring in bytes (OB 190) and words (OB 192)
6
OB 190/OB 192: Transferring Flags to a Data Block
CPU 928B Programming Guide
C79000-B8576-C898-01
6 - 69