Omron CJ1W-SCU32 Operation Manual page 189

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

Advertisement

(2) Before you execute the communications sequence, copy the data in the user-defined vari-
ables for CJ-series memory starting from RecvData[1] with the size specified with Recv-
Data[0] -1, and overwrite the data to the reception buffer (excluding the first word). This
becomes the initial value of the reception buffer, and the results of Recv command execution
are waited for.
If the contents of the reception buffer exceeds the contents of the number of words specified
in RecvData[0] (or the whole area if the number of words is specified as 00), the value in the
reception buffer stays at the initial value of 16#0000.
(3) The data that is received as a result of Recv command execution will be stored in the recep-
tion buffer (excluding the first word) from the specified first word (offset) and will be verified
against the expected receive messages. If writing the response data is not specified, the
receive data will be saved in the reception buffer and will not be stored in the CPU Unit.
(4) If writing the response data is specified, the data in the reception buffer up to the last data
(excluding the first word), will be stored in the memory area used for CJ-series Units from
RecvData[1] onwards. The data stored for the number of words (including RecvData[0]) up to
the last word will be saved. Whenever the number of data words stored exceeds the maxi-
mum, the number of words in RecvData[0] will be updated.
(5) Steps 3 and 4 are repeated until the protocol macro operation is completed.
CPU Unit
Serial Communications
Unit
Reception buffer
Additional Information
Processing When a Sequence Ends Abnormally
As shown in the following examples, if End is set when a sequence ends normally and Abort is
set when a sequence ends abnormally, it is possible to determine whether each sequence ended
normally or abnormally by using the Sequence End Completion Flag and the Sequence Abort
Completion Flag.
CJ-series Serial Communications Units Operation Manual for NJ-series CPU Unit(W494)
User-defined
variable
SendData[0]
SendData[1]
SendData[4]
Overwrites
initial value
Reception
buffer
After ExecPMCR
instruction is
executed
the internal
processing buffer is
cleared
No. of words
User-defined
specified here
variable
RecvData[0]
RecvData[1]
Set
RecvData[4]
Stores
receive data
Recv
Overwrites receive data
Offset
Receive data
4 Using Protocol Macros
Changed
No. of words stored
is updated.
Write response specified
Stored from the
specified first word
4
4-53

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Cj1w-scu22Cj1w-scu42

Table of Contents