Coordination Bytes - Siemens SIMATIC S5-115U User Manual

Simatic s5 series cpu 941-7ub11 cpu 942-7ub11 cpu 943-7ub11 and cpu 943-7ub21 cpu 944-7ub11 and cpu 944-7ub21
Table of Contents

Advertisement

S5-115U Manual

12.4.2 Coordination Bytes

The ASCII driver monitors data traffic and stores status and error information in two coordination
bytes, SEND (CBS) and RECEIVE (CBR).
Figure 12-11 shows the format of both coordination bytes.
SEND Coordination Byte (CBS) (Flag byte or high-order byte in data word)
7
6
5
2
2
2
Sending permitted
Is set by the user and reset by the ASCII driver when the send procedure is finished. A leading edge at this bit
activates the send procedure.
RECEIVE Coordination Byte (CBR) (Flag byte or high-order byte in data word)
7
6
5
2
2
2
Receive permitted
Is set by the user and reset by the ASCII driver when the Receive mailbox is full.
Note
As long as the "send/receive permitted" bits are set, the location of the Send and
Receive mailboxes (DB or flag area) cannot be changed.
Note
The operating system can set or reset bits in the coordination bytes after every
statement without regard to the PLC cycle. In consequence, multiple scanning of a
coordination bit in a program cycle may produce different results (be careful when
evaluating signal edges)!
EWA 4NEB 811 6130-02b
4
3
2
1
2
2
2
2
Error message (see Table 12-8)
4
3
2
1
2
2
2
2
Error message (see Table 12-8)
Figure 12-11. Coordination Byte Format
Communications Capabilities
0
2
0
2
12-23

Advertisement

Table of Contents
loading

Table of Contents