Service Data And Response Data - Omron Sysmac NJ-series User Manual

Machine automation controller cpu unit built-in ethernet/iptm port
Hide thumbs Also See for Sysmac NJ-series:
Table of Contents

Advertisement

8-2-6

Service Data and Response Data

CIP communications instructions send and receive data that is stored in array variables.
Preparing Array Variables to Input and Output Service Data and
Response Data
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
Variable A
(1)
Variable B
(2)
Variable C
(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.
Array variable: A
[0]
[1]
[2]
[3]
If the service data (ServiceDat) is
Array[2] and number of elements
(Size) = 2, Array[2] and Array[3]
are sent.
NJ/NX-series CPU Unit Built-in EtherNet/IP Port User's Manual (W506)
CIP communications instruction
CIPSend
ServiceDat
(Command Data)
Size
(Number of Elements)
RespSize
(Response
Data Size)
ResServiceDat
(Response Data)
Number of elements: 2
8 CIP Message Communications
Variable D
(2) The data that is received is stored in variable
C. The byte size of the data that was actu-
ally received is stored in variable D.
Array variable: C[0..9]
[0]
[1]
[2]
[3]
[4]
Variable D
[5]
: 10
[6]
[7]
[8]
[9]
8
8-21

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Sysmac nx-seriesSysmac nx1p2-10 seriesSysmac nx1p2-90 seriesSysmac nj501-5 seriesSysmac nj501-4 seriesSysmac nj501-3 series ... Show all

Table of Contents