Read And Write Services For Variables; Read Services For Variables - Omron NY532-5400 User Manual

Ny-series ipc machine controller industrial panel pc / industrial box pc
Hide thumbs Also See for NY532-5400:
Table of Contents

Advertisement

8-6

Read and Write Services for Variables

This section shows services that specify the CIP object in the Request Path and access the CIP mes-
sage server function of the NY-series Controllers.
8-6-1

Read Services for Variables

Specify service code 4C hex to read the value of the variable that is specified by the request path.
Service Code: 4C Hex
 Request Data Format
Variable name specification
Request Service Data
+0
Num of Element
+1
Response Service Data
Data Type
AddInfo Length
* The actual data is stored in little-endian format.
Data Type
AddInfoLength
AddInfo
Actual data
NY-series Industrial Panel PC / Industrial Box PC Built-in EtherNet/IP Port User's Manual (W563)
Request Path Data
(L)
(H)
(AddInfo)
Actual data*
Code for data type of variable to read
Refer to 8-7-1 Data Type Codes.
The size of the AddInfo area is stored only when accessing a structure variable. Set 02
hex for a structure variable. Otherwise, set 00 hex.
The CRC code of the structure definition is stored only when accessing a structure vari-
able. In this case, the size of AddInfo will be 2 bytes.
The actual data is stored in little-endian format. If 0001 hex is specified for an array, the
actual data is stored in the same format as when you access a variable with the data
type of the elements of the array.
8 CIP Message Communications
Specify the number of elements to read for an array variable.
UINT
USINT
Data type of variable to read
USINT
Additional information: Field length in bytes
Additional information: CRC value of structure
8
8-53

Advertisement

Table of Contents
loading

Table of Contents