![background image](http://html1.mh-extra.com/html/omron/sysmac-nx1p2-10-1-series/sysmac-nx1p2-10-1-series_user-manual_1633435283.webp)
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
(1) Input the service data to send
The data to send is stored in array variable
A
.
If only certain elements are specified in array var-
iable
A
, specify the number of elements in varia-
ble
B
.
(2) Store received response data
The data that is received is stored in variable
C
.
The byte size of the data that was actually re-
ceived is stored in variable
D
.
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]
Use the following procedure to create a variable in the variable table.
Specify the element first number, the element last number, and the data type.
Example: UINT Array
Specifies the data type.
Specify the array element first
number and last number.
Data type
Array
Variable name
Variable table
CIP Communications Instructions That Use Array Variables
Instruction
Structure variable name
Input variable
In-out variable
Output variable
CIPRead
---
---
DstDat (Read Data)
CIPWrite
SrcDat (Write Data)
---
---
CIPSend
ServiceDat (Command Da-
ta)
ResServiceDat (Response
Data)
---
8 CIP Message Communications
8-21
NJ/NX-series CPU Unit Built-in EtherNet/IP Port User’s Manual (W506)
8-2 CIP Message Communications Client Function
8
8-2-6
Service Data and Response Data
Summary of Contents for Sysmac NX1P2-10 1 Series
Page 8: ...Manual Structure 6 NJ NX series CPU Unit Built in EtherNet IP Port User s Manual W506...
Page 34: ...Revision History 32 NJ NX series CPU Unit Built in EtherNet IP Port User s Manual W506...
Page 388: ...9 Socket Service 9 34 NJ NX series CPU Unit Built in EtherNet IP Port User s Manual W506...
Page 430: ...12 FTP Client 12 14 NJ NX series CPU Unit Built in EtherNet IP Port User s Manual W506...
Page 569: ...I Index I 1 NJ NX series CPU Unit Built in EtherNet IP Port User s Manual W506 I...
Page 576: ...Index I 8 NJ NX series CPU Unit Built in EtherNet IP Port User s Manual W506...
Page 577: ......