Outputting Data and Controlling Operation through EtherNet/IP
304
FQ2 User’s Manual
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: U_EIPFlag
Type of derivative data type: Union
(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: S_EIPOutput
Type of derivative data type: Structure
U_EIPFlag
F
U
N
IO
N
Data type
N
ame of data type
ARRAY[0..31]OF BOOL
Specifies an array of
BOOL data from 0 to 31.
W
D
W
ORD
32-
b
it
b
it string data
N
ame of data type
Data type
S_EIPO
u
tp
u
t
STRUCT
ControlFlag
U_EIPFlag
The data type that
w
as defined a
b
o
v
e (1)
CommandCode
D
W
ORD
32-
b
it
b
it string data
CommandParam2
UDI
N
T
32-
b
it integer data
CommandParam3
DI
N
T
32-
b
it integer data
CommandParam1
UDI
N
T
32-
b
it integer data
Содержание FQ2 Series
Страница 1: ...User s Manual Smart Camera FQ2 Cat No Z326 E1 01A ...
Страница 58: ...Setting Up Ethernet 56 FQ2 User s Manual MEMO ...
Страница 90: ...Adjusting the Images That Were Taken 88 FQ2 User s Manual MEMO ...
Страница 190: ...Adjusting Judgement Parameters during Operation 188 FQ2 User s Manual MEMO ...
Страница 234: ...Functions Related to the System 232 FQ2 User s Manual MEMO ...
Страница 392: ...Controlling Operation and Outputting Data with FINS TCP No protocol Commands 390 FQ2 User s Manual MEMO ...
Страница 398: ...Controlling Operation and Outputting Data with RS 232C No protocol Communications 396 FQ2 User s Manual ...
Страница 399: ...11 Troubleshooting Troubleshooting 11 1 Error Histories 398 11 2 Error Messages 400 11 3 Basic Troubleshooting 401 ...
Страница 404: ...Basic Troubleshooting 402 FQ2 User s Manual MEMO ...
Страница 513: ...Index FQ2 User s Manual 511 Index 12 ...
Страница 515: ......