Accessing The Nj-Series Controller Communication Areas Using Variables - Omron V430-F Series User Manual For Communication Settings

Autofocus multicode reader
Hide thumbs Also See for V430-F Series:
Table of Contents

Advertisement

3-1-9
Accessing the NJ-series Controller Communication Areas using
Variables
With an NJ-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 Assembly (102) and Output Assembly (197) for that
purpose.
For more detailed information about the data structure of each Assembly, please refer to
A-2 EtherNet/IP Detailed 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
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.
V430-F Series Autofocus Multicode Reader User Manual for Communication Settings
3 Controlling Operation and Data Output with Ethernet
Control Signal
Data Name
Run_Mode
Trigger
Enable_Matchcode
Output_2
Output_3
Reserved
Status Signals
Data Name
Online
Trigger_Acknowledged
Exposure_Done
Output2_Status
Output3_Status
Reserved
Data Type
ARRAY[0..31]OF BOOL
BOOL
BOOL
BOOL
...
BOOL
BOOL
ARRAY[0..17]OF BOOL
Data Type
ARRAY[0..31]OF BOOL
BOOL
BOOL
BOOL
...
BOOL
BOOL
ARRAY[0..10]OF BOOL
3
( W504 ) .
3 - 15

Advertisement

Table of Contents
loading

Table of Contents