Omron CJ1W-SCU32 Operation Manual page 167

Machine automation controller, cj / nj-series, serial communications units, cpu unit
Table of Contents

Advertisement

Additional Information
Overrun Errors, Framing Errors, Parity Errors and Error Flags
If an overrun error, framing error, or parity error is detected when the protocol macros is used,
the receive data will be stored in the buffer with the error status included. The corresponding
error flags will change to TRUE the following conditions are met.
Data which matches the expected receive message includes error information
When Recv is executed, the expected receive message is searched for in the reception buffer. If
the error information is included in the received data, the corresponding error flags will change to
TRUE.
The following example shows when 100 bytes of data is received that matched an expected
receive message.
Data which does not match the expected receive message includes error information
If error information is included in data that do not match an expected receive message, the data
will simply be discarded and the error flag will remain unchanged. For trace information, all error
details in the reception buffer will be stored within capacity for the trace data.
The following example shows when a parity error occurs for data that does not match an
expected receive message.
CJ-series Serial Communications Units Operation Manual for NJ-series CPU Unit(W494)
(P)
100 bytes
(P)
(P)
Data discarded
(P)
<h>
Error flags remain
unchanged
<t>
4 Using Protocol Macros
Error Flag ON
P: Parity error
4
4-31

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Cj1w-scu22Cj1w-scu42

Table of Contents