8 Message Communications
8-12
CJ-series EtherNet/IP Units Operation Manual for NJ-series CPU Unit (W495)
Inputting the Values for Each Structure Variable Member
Input the following values into the communications parameters that were registered as members of
the structure variable.
CIP communications instructions send and receive data that is stored in array variables.
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
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 variable
C. The byte size of the data that was actually
received is stored in variable D.
A . InstancelD
. ClasslD
A . AttributelD
Rq+Path data type member name
Variable name
A
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]
Содержание SYSMAC CJ1W-EIP21
Страница 8: ...Manual Structure 6 CJ series EtherNet IP Units Operation Manual for NJ series CPU Unit W495...
Страница 10: ...Sections in this Manual 8 CJ series EtherNet IP Units Operation Manual for NJ series CPU Unit W495...
Страница 20: ...Read and Understand this Manual 18 CJ series EtherNet IP Units Operation Manual for NJ series CPU Unit W495...
Страница 42: ...Revision History 40 CJ series EtherNet IP Units Operation Manual for NJ series CPU Unit W495...
Страница 68: ...1 Introduction 1 26 CJ series EtherNet IP Units Operation Manual for NJ series CPU Unit W495...
Страница 80: ...2 Installing Ethernet Networks 2 12 CJ series EtherNet IP Units Operation Manual for NJ series CPU Unit W495...
Страница 130: ...6 Testing Communications 6 4 CJ series EtherNet IP Units Operation Manual for NJ series CPU Unit W495...
Страница 206: ...7 Tag Data Link Functions 7 76 CJ series EtherNet IP Units Operation Manual for NJ series CPU Unit W495...
Страница 246: ...8 Message Communications 8 40 CJ series EtherNet IP Units Operation Manual for NJ series CPU Unit W495...
Страница 266: ...9 FTP Server 9 20 CJ series EtherNet IP Units Operation Manual for NJ series CPU Unit W495...
Страница 374: ...13 Troubleshooting 13 56 CJ series EtherNet IP Units Operation Manual for NJ series CPU Unit W495...
Страница 431: ...Index 1 CJ series EtherNet IP Units Operation Manual for NJ series CPU Unit W495 I Index...
Страница 436: ...Index 6 CJ series EtherNet IP Units Operation Manual for NJ series CPU Unit W495 Index...
Страница 437: ......