
CP 523 Communications Mode
Example: Transferring the parameter setting data for parameter block 7
Start address 128 is set on the CP 523. The module is to be operated in Transparent mode. The
message frames to be transferred have a length of 6 bytes. An end-of-text character is not
required. The character delay time may be 3 s (3 s=001E
H
).
* 5.2
** The program in FB 99 waits until the CP 523 can accept job requests ( 4.1)
STL FB 111STL OB 22 Explanation
:JU FB 99
NAME :SYNC **
:JU FB 111
NAME :BLOCK7
:BE
Load no end-of-text characters into
ACCUM 1 and transfer to the CP in bytes
6 and 7.
Load frame length into ACCUM 1 and
transfer to the CP in bytes 4+5.
Load character delay time into ACCUM 1
and transfer to the CP in bytes 2+3.
Load job number (90
H
), parameter block
number (7
H
) and mode code (1
H
) into
ACCUM 1 and transfer to the CP
NAME :BLOCK7
:L KH O0O0
:T PW 134
:L KH 0006
:T PW 132
:L KH 001E
:T PW 130
:L KH 9071
:T PW 128 *
:BE
The status byte can be scanned approx. 30 ms after the request was issued in order to check
whether correct parameter values were forwarded (X4 is returned if values are false ( 7.4.1)).
Note:
EWA 4NEB 811 6044-02a
7-31
Kommentare zu diesen Handbüchern