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

Sample Ladder Programming

 Command/Response Communications
The following sample program is used to perform single measurements. The single measurements command
(lower bytes: #1010, upper bytes: #0010) is sent to the Sensor.
First RUN
Period Flag
Execution
Control Command
condition
Completed (FLG)
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
You can combine both parallel and PLC Link communications. PLC Link commands cannot be executed while the
Command Execution Active (BUSY) parallel communications signal is ON during execution for the parallel measure-
ment trigger input (TRIG signal). Execute PLC Link commands while the Command Execution Active (BUSY) paral-
lel communications signal is OFF. You can also perform measurements with the measurement trigger input (TRIG
signal) in parallel I/O and use PLC Link communications to output data.
 Data Output after Measurements When Handshaking Is Enabled
Data Output
Execution
Completed (GATE)
condition
Data Output
Completed (GATE)
FQ2-S/CH User's Manual
for Communications Settings
MOV
#1010
+2 word
MOV
#0010
+3 word
Command Execution
Active (BUSY)
SET
Command Execution Bit
RSET
Command Execution Bit
SET
Data Output Request Bit (DSA)
RSET
Data Output Request Bit (DSA)
Controlling Operation and Outputting Data with PLC Link Communications
Sets the lower word of the
measurement command.
Sets the upper word of the
measurement command.
Turns ON Command Execution Bit.
When the control command is completed,
the Command Execution Bit is turned OFF.
143

Advertisement

Table of Contents
loading

Table of Contents