Technical data

6.21.4
Program Example
Task
You want to write data words 4 to 11 via the 923C coordinator from the
DB 45 of a CPU 928B to the DX 45 (data words 0 to 7) of a second
CPU 928B. You want to synchronize the sender and receiver (in the
multiprocessor mode) using OB 218.
Current page on the coordinator: no. 255
Coordination location on the page (reserved): addr. 53
Data transfer area of the page (reading and writing): addr. 54-69
STEP 5 operations in the SENDER:
:L KB 255 Page number
:L KB 53 Address of the coordination cell
:
JU OB218 Transfer the slot ID to the cell on the page
:JC =M001 If RLO = 1 (transfer successful),
jump to label
:BEU Else block end
M001 :C DB 45 Open the source data block
:L KY 2,255 2=length ID double word, page number
:L KB 54 Start address on page
:ENT Write to ACCU 3
:L DD 4 Data words 4 and 5 (= 4 bytes)
:
JU OB 216 Transfer the 1st double word
: Increment address by 4 (ACCU-2-L = 58)
:TAK Save the destination address
:
:L DD 6
:JU OB 216 Transfer the 2nd double word
:TAK
:
:L DD 8
:JU OB 216 Transfer the 3rd double word
:TAK
:
:L DD 10
:JU OB 216 Transfer the 4th double word
:
:L KY 0,255
:L KB 53 Address with slot ID
:ENT
:L KB 0 ACCU 1 = 0
:JU OB 216 Clear slot ID, release data transfer area
:BE
Continued on the next page
OB 216 to OB 218: Page Access
CPU 928B Programming Guide
6 - 88 C79000-B8576-C898-01