Omron ZW-C1*AT User Manual page 215

Zw series displacement sensor confocal fiber type displacement sensor
Table of Contents

Advertisement

Accessing Communications Areas Using Variables with NJ-series Controllers
With an NJ-series Controller, only variables can be used to access from the user program the I/O memory
addresses that are assigned to the communications areas.
Use the following settings.
● Using Network Variables for Access
Create user-defined variables that match the structures of the communications areas of the Sensor.
Use the Sysmac Studio to define the variables.
Refer to the Sysmac Studio Version 1 Operation Manual (Cat. No. W504) for Sysmac Studio operating
procedures.
1
Defining the Data Types of the Variables
Define data types for variables that match the structures of the communications areas.
(1)
Defining a Data Type for Signal Access
First, define a BOOL array data type to access the control signals and status signals.
Here, a data type called "U_EIPFlag" is defined.
Name of data type
Type of derivative data type : Union
Name of data type
U_EIPFlag
F
W
(2)
Defining Data Types for Communications Area Access
Data types are defined to access the communications areas, with one data type for the command area
and another data type for the response and output areas.
Here, data types called "S_EIPOutput" and "S_EIPInput" are defined.
• Data Type to Access the Command Area
Name of data type
Type of derivative data type
Name of data type
S_EIPOutput
CommonControlFlag
SensorHead1ControlFlag
SensorHead2ControlReserve
CommandCode
CommandParam1
CommandParam2
CommandParam3
ZW User's Manual
: U_EIPFlag
Data type
UNION
ARRAY[0..31]OF BOOL
DWORD
: S_EIPOutput
: Structure
Data type
STRUCT
U_EIPFlag
U_EIPFlag
U_EIPFlag
DWORD
UINT
UINT
DINT
Specifies an array of
BOOL data from 0 to 31.
32-bit bit string data
The data type that was defined above (1)
The data type that was defined above (1)
The data type that was defined above (1)
(extended area)
32-bit bit string data
16-bit integer data
16-bit integer data
32-bit integer data
EtherNet/IP Connection
213

Advertisement

Table of Contents

Troubleshooting

loading

This manual is also suitable for:

Zw-ce1*tZw-c1*t

Table of Contents