H-18
Communications Processor CP 541
EWA 4NEB 812 6188-02
STL
Explanation
OB 1
Segment 1
:
:L FW 0
:L KF +1
:+F
:T FW 0
:
:JU FB 11
Name
:RECEIVE
:BE
Cyclic Program block
LPLZ sequence
FB for sending to station 11
FB 11
Segment 1
Name :RECEIVE
:
:L FW 0
:L KF +1
:+F
:T FW 0
:
:Q DB 12
:L DW 1
:T QB 32
:BE
Receive block
LPLZ sequence
Open receive mailbox
Output DR1 to QB 32
OB 13
Segment 1
:
:L FW 0
:L KF +1
:+F
:T FW 0
:
:A I 32.0
:SPB FB 12
Name :SEND
:BE
LPLZ sequence
Send initiation with I 32.0
FB 12
Segment 1
Name :SEND
:
:L FW 0
:L KF +1
:+F
:T FW 0
:
:Q DB 12
:L IB 33
:T DW 11
:BE
Send block
LPLZ sequence
Open send mailbox
Store IB 33 in DR 11 for sending
Program Examples