Omron SYSMAC FH Series User Manual page 294

For communication settings
Hide thumbs Also See for SYSMAC FH Series:
Table of Contents

Advertisement

2 Methods for Connecting and Communicating with External Devices
Accessing Communication Areas Using Variables by NJ Series
Controllers
In Controllers of the NJ series, I/O memory addresses assigned to each communication area can be
accessed from the user program only via variables.
Follow the procedures below.
l Accessing with Network Variables
Customize and define variables based on the structure of each communication area of the Sensor
Controller. Use Sysmac Studio to define the variables.
For operations of Sysmac Studio, refer to Sysmac Studio Version1 Operation manual (Cat. No.
W504).
1
Define the data types for the variables.
Define the data types for the variables based on the structure of each communication area of
the Sensor Controller.
(1) Definition of data type to access a signal
First, define the data type for a BOOL array to access the control signals and status sig-
nals.
Here, define the data type called U_EIPFlag.
Name of data type: U_EIPFlag
Kind of derived data type: Union
U_EIPFlag
(2) Definition of data type for each communication area access
Define data types to access each communication area for the Command Area and Re-
sponse and Output Areas respectively.
Here, define two kinds of data type: S_EIPOutput and S_EIPInput.
(3) • Data type to access the Command Area
Name of data type: S_EIPOutput
Kind of derived data type: Structure
• Assignment example for the variable data type according to the Command Area.
For details, refer to Input Connection to the Sensor Controller (PLC (Originator) to Sen-
sor Controller (Target)) on page 2 - 227.
2 - 232
Name of data type
UNION
F
ARRAY[0..31]OF BOOL
W
DWORD
Name of data type
S_EIPOutput
STRUCT
ControlFlag
U_EIPFlag
CommandCode
DWORD
CommandParam1
DINT
CommandParam2
DINT
CommandParam3
DINT
FH/FHV Series Vision System User's manual for Communication Settings (Z342-E1)
Data type
Specifies an array of
BOOL data from 0 to 31.
32-bit bit string data
Data type
The data type that was defined above (1)
32-bit bit string data
32-bit integer data
32-bit integer data
32-bit integer data

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents