Omron FZ4 Series User Manual page 529

Vision sensor
Table of Contents

Advertisement

+20
DATA6
+21
+22
DATA7
+23
Signal
Signal name
Command completion
FLG
bit
Data output
GATE
completion bit
Command execution
BUSY
in progress bit
OR
Overall judgement
Measuring command
XFLG
completion bit
Measuring command
XBUSY
executing bit
Measuring command
XWAIT
standby bit
RUN
RUN window
CMD-CODE Command code
RES-CODE
Response code
RES-DATA
Response data
DATA0-7
Output data 0 to 7
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
operatingprocedures.
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
FZ4 User's Manual
Turns ON when command execution is complete.
Turns ON when data output is complete.
Turns ON when command execution is in progress.
Turns ON when the overall judgement result is NG.
(The OR signal is output when the checkbox for [Output] is selected in the
ADJUST window.)
Turns ON when measuring command execution is complete.
Turns ON while a measuring command is being executed.
Turns ON when a measuring command can be executed.
Turns ON when the controller is set to the RUN window.
Returns the executed command code.
Stores the response from the executed command.
Stores the response data from the executed command.
The data set in the output processing items is output.
When there are multiple processing items, data is overwritten to this area
while handshaking is performed.
Function
Control/Output through EtherNet/IP
Output data 6
Output data 7
527
7

Advertisement

Table of Contents
loading

This manual is also suitable for:

Fz4 series

Table of Contents