Siemens SIMATIC S5 CP 523 Manual page 176

Serial i/o module
Hide thumbs Also See for SIMATIC S5 CP 523:
Table of Contents

Advertisement

CP 523
Example:
Sending a 12-byte message frame with 3964(R) protocol
Base address 128 is set on the CP. The message frame is in data block 20 beginning data word
DW 0. Flag 100.0 is set when the CP has accepted the Send request. The statement list does not
show how or when this flag is reset. This could be done, for instance, after a new request has been
submitted to the CP.
STL FB 124
NAME:SEND2
:L
KH
A000
:T
PW
128*
:L
PY
130
:T
FY
110
:A
F
100.0
:BEC
:L
KH
000C
:T
PW
130
:L
KH
A001
:T
PW
128*
:L
PY
130
:T
FY
110
:L
KH
0001
:L
PW
128
:AW
:><F
:BEC
:S
F
100.0
:C
DB
20
:L
DW
3
:T
PW
134
:L
DW
2
:T
PW
132
:L
DW
1
:T
PW
130
:L
DW
0
:T
PW
128*
:L
DW
5
:T
PW
130
:L
DW
4
:T
PW
128*
:BE
*
5.2
EWA 4NEB 811 6044-02a
"Check module status" request
Transfer CBS to flag byte 110 (error analysis)
The CP accepted the job request when flag 100.0 is set,
then Block End
Load message frame size 12 bytes into ACCUM 1 and
forward to word 2 from transfer memory
Load "Send message frame" request (A001
transfer to word 0/transfer memory
Transfer CBS to flag byte 110
Check to see if request accepted
If not, Block End conditional
If so, set flag 100.0 and send message frame
Open DB 20
DW 3 to
transfer memory word 6
DW 2 to
transfer memory word 4
DW 1 to
transfer memory word 2
DW 0 to
transfer memory word 0
The CP forwards the contents of transfer memory
to the Send mailbox
DW 5 to
transfer memory word 2
DW 4 to
transfer memory word 0
The CP forwards words 2 and 0 of the transfer memory to the Send
mailbox, then transmits the message frame from the Send mailbox
to the I/O device.
Communications Mode
Explanation
) into
H
7-71

Advertisement

Table of Contents
loading

Table of Contents