Sample Ladder Programming - Omron FQ2-S4 User Manual

Smart camera
Hide thumbs Also See for FQ2-S4:
Table of Contents

Advertisement

Sample Ladder Programming

● Command/Response Communications
The following sample program is used to clear measurement values.
The Clear Measurement Values command (lower bytes: #2010, upper bytes: #0010) is sent to the Vision
Sensor.
First RUN
Period Flag
Execution
Control Command
Command Execution
condition
Completed (FLG)
Active (BUSY)
Control Command
Completed (FLG)
Important
Create the ladder program to control the TRIG signal so that it does not turn ON while the BUSY signal is ON.
If not, a TRIG input error will occur and the ERROR signal will turn ON.
Note
While the trigger input (TRIG signal) for parallel measurements is ON, the EtherNet/IP BUSY signal will also be ON.
Therefore, no EtherNet/IP commands will be executed. Any EtherNet/IP commands will be executed after execution
of the parallel commands. You can also use a EtherNet/IP to perform measurements and output data with the paral-
lel I/O measurement trigger signal (TRIG).
● Data Output after Measurements When Handshaking Is Enabled
Data Output
Execution
Completed (GATE)
condition
Data Output
Completed (GATE)
FQ2-S4 User's Manual
MOV
#2010
+2 word
MOV
#0010
+3 word
SET
Command Execution Bit
RSET
Command Execution Bit
SET
Data Output Request Bit (DSA)
RSET
Data Output Request Bit (DSA)
Outputting Data and Controlling Operation through EtherNet/IP
Sets the lower word of the Clear
Measurement Values command.
Sets the upper word of the Clear
Measurement Values command.
Turns ON Command Execution Bit.
When the control command is completed,
the Command Execution Bit is turned OFF.
371

Advertisement

Table of Contents
loading

Table of Contents