Accessing The Nj/Nx-Series Controller Communication Areas Using Variables - Omron V460-H Communications Manual

Industrial handheld dpm reader
Hide thumbs Also See for V460-H:
Table of Contents

Advertisement

2-1-9
Accessing the NJ/NX-series Controller Communication Areas
using Variables
With an NJ/NX-series, accessing the I/O memory allocated to each communication area can be done
with the user program with the use of variables.
Here is an example of using the MXL/SLC Input (102) and Output (197) for that purpose.
For more detailed information about the data structure of each Assembly, please refer to
A-2 EtherNet/IP Specifications on page A-3.
Access Using Network Variables
Create user-defined variables that match the structures of the communications areas of the Sensor.
Use the Sysmac Studio to define the variables.
For how to use Sysmac Studio, please refer to Sysmac Studio Version1 Operation Manual (W504).
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 Control Signal Access
First, define a BOOL array data type to access the control signals and status signals.
Here, we define the Data types, COMMAND and Device_Status.
COMMAND
Device_Status
2) Defining Data Types for Communications Area Access
Data types are defined according to the communication area to access, with one data type
for Output Area and another data type for Input Area.
Here, there are two Data types defined, S_EIPOutput197 and S_EIPInput102.
• Data Type to access Output Area
Data type name: S_EIPOutput197
Type of derivative data type: Structure
V460-H Industrial Handheld DPM Reader Communication Manual (Z462-E1)
2 Controlling Operation and Data Output with Ethernet
Data Name
Run_Mode
Trigger
Enable_Matchcode
Reserved
Data Name
Run Mode
Trigger_Acknowledged
Exposure_Done
Buffer_Overflow
Reserved
Control Signal
Data Type
ARRAY[0..31] OF BOOL
BOOL
BOOL
BOOL
...
ARRAY[0..21] OF BOOL
Status Signals
Data Type
ARRAY[0..31] OF BOOL
BOOL
BOOL
BOOL
...
BOOL
ARRAY[0..9] OF BOOL
2
2-15

Advertisement

Table of Contents
loading

Table of Contents