Siemens SIMATIC S5-95F Manual page 373

Table of Contents

Advertisement

S5-95F
Contents of the "Send" Condition Code Byte (DR 32)
"Send" Condition Code Byte
7
6
5
4
3
Send Coordination Via the User Valid Byte (as per the Parameter Values Initialized with
COM 95F)
User Valid Byte
7
6
5
4
3
User Program for Transmitting Data
The user program for transmitting data should have the following structure:
Scan bit 0 or bit 2 in the UVB to see if permission to send has been granted.
As long as the S5-95F is accessing the Send Mailbox, the relevant bit is set; the contents of the
mailbox must not be changed during this phase.
When the operating system has reset bit 0 or bit 2 in the UVB,
- enter the number of net data bytes to be transferred into DL32
- reset the condition code byte (write 00
- write the net data into the data words, beginning with data word DW33
Start the Send by setting bit 0 or bit 2.
When the operating has reset bit 0 or bit 2, check to see if the frame was transmitted.
The "condition code byte for Send" (DR32) contains 00
successfully (local acknowledgement).
If the frame could not be transmitted, DR32 contains 01
EWA 4NEB 812 6210-02
2
1
0
0: No errors
1: Frame could not be transmitted
0: No errors
1: Invalid transmission length (S5-95F responds with STOP)
2
1
0
0: Program can process Send Mailbox (data path 1) in
DB 252; operating system is not accessing mailbox.
1: Send Mailbox is enabled for transfer; user program is
no longer modifying mailbox data (operating system
resets bit following transmission)
0: Program can process Send Mailbox (data path 2) in
DB253; operating system is not accessing mailbox.
1: Send Mailbox is enabled for transfer; user program is
no longer modifying mailbox data (operating system
resets bit following transmission)
H
into DR32)
H
.
H
S5-95F on SINEC L1
if the frame was transmitted
13-19

Advertisement

Table of Contents
loading

Table of Contents