Sample Ladder Programming - Omron FQ2-S/CH Series User Manual

Smart camera
Hide thumbs Also See for FQ2-S/CH Series:
Table of Contents

Advertisement

Important
Set the parameters so that the following conditions are met for the data output period and time.
• Set the data output period so that it is longer that the GATE signal ON period and shorter than the measurement
interval of the Sensor.
• Set the "GATE signal output time" to a longer time than the PLC cycle time and the "PROFINET communication
cycle".
• When operating under high-load conditions, a considerable leeway is required in the measurement interval to
enable stable communications.
• On a network to which many devices are connected, performance may drop (e.g., responses may be delayed or
packets lost) or communications errors may occur when there is temporarily high traffic on the network. Test the
operation under actual conditions before you start actual operation of the system.
• If the measurement interval is short, communications errors may occur depending on the measurement processing
time of the Sensor and the settings in the PLC. Set the timeout time in the connection settings
than the measurement processing time of the Sensor or increase the measurement interval.
*1
These are the connection settings for tag data links. Make these settings from the Network Configurator.

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 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.
FQ2-S/CH User's Manual
for Communications Settings
MOV
Sets the lower word of the Clear
Measurement Values command.
#2010
The address varies depending
+4 area (area that is
on the PLC that is used.
4 words from the +0 area)
To specify the address,
refer to the PLC manual.
MOV
Sets the upper word of the Clear
Measurement Values command.
#0010
The address varies depending
on the PLC that is used.
+5 area (area that is
5 words from the +0 area)
To specify the address,
refer to the PLC manual.
SET
Turns ON Command Execution Bit.
Command Execution Bit
RSET
When the control command is completed,
the Command Execution Bit is turned OFF.
Command Execution Bit
Outputting Data and Controlling Operation through PROFINET
*1
so that it is longer
171

Advertisement

Table of Contents
loading

Table of Contents