2 Instruction Descriptions
2-652
NJ-series Instructions Reference Manual (W502)
In this sample, a CJ-series Serial Communications Unit is used for data communications with an
OMRON Temperature Controller. The present value of the Temperature Controller is read with a proto-
col macro. CompoWay/F master sequence 610 (Read Variable Area) is used. The contents of send
data array SendData[] is sent from the Controller. The data received from the Temperature Controller is
stored in receive data array RecvData[].
The following communications specifications are used.
The communications data for sequence 610 (Read Variable Area) is allocated as shown below.
Sample Programming
Item Description
Unit used Serial Communications Unit
Unit number 2
Port number 1 (RS-422/485)
Communications
sequence number
610 (Read Variable Area)
Remote node number 3
Data to read Present value
Serial Communications Unit
with unit number 2
Send data
RS-422A/485
E5@N
Temperature
Controller,
node 00
Receive data
E5@N
Temperature
Controller,
node 01
E5@N
Temperature
Controller,
node 03
SendData[0]
SendData[1]
SendData[2]
SendData[3]
SendData[4]
RecvData[0]
RecvData[1]
RecvData[2]
RecvData[3]
Send Data: WORD Array Receive Data: WORD Array
Number of send data words
Not used.
Node No.
Variable type
Read start address
Number of elements
Number of receive data words
Response code
Receive data