![Omron Sysmac NY512-1300 User Manual Download Page 210](http://html.mh-extra.com/html/omron/sysmac-ny512-1300/sysmac-ny512-1300_user-manual_742451210.webp)
8 CIP Message Communications
8-14
NY-series Industrial Panel PC / Industrial Box PC Built-in EtherNet/IP Port User’s Manual (W563)
CIP communications instructions send and receive data that is stored in array variables.
This section describes the array variables for storing service data and response data that CIP commu-
nications instructions send and receive.
Creating Array Variables
To input a value into the array variable of a CIP communications instruction, you must create a vari-
able with the same configuration as the array variable in advance.
Example: Creating a Variable to Input Data to the CIPSend Instruction Array Variables
8-2-6
Service Data and Response Data
Preparing Array Variables to Input and Output Service Data and
Response Data
(1) Input the service data to send.
The data to send is stored in array
variable
A
. If only certain elements are spec-
ified in array variable
A
, specify the number
of elements in variable B.
(2) The data that is received is stored in vari-
able C. The byte size of the data that was
actually received is stored in variable D.
Variable
D
RespSize
(Response
Data Size)
ResServiceDat
(Response Data)
Size
(Number of Elements)
ServiceDat
(Command Data)
Variable
C
Variable
B
Variable
A
CIP communications instruction
(1)
(2)
CIPSend
If the service data (
ServiceDat
) is
Array[2]
and number of elements
(
Size
) = 2,
Array[2]
and
Array[3]
are sent.
Array variable:
A
[0]
[1]
[2]
[3]
Number of elements: 2
[1]
[0]
[2]
[3]
[4]
[5]
[6]
[7]
[8]
[9]
Variable
D
: 10
Array variable:
C[0..9]
Summary of Contents for Sysmac NY512-1300
Page 459: ......