Rs-232C No-Protocol Communications - Omron FQ2-S/CH Series User Manual

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

Advertisement

4-2 Controlling Operation and Outputting Data with RS-232C No-protocol Communications
FQ2-S3
FQ2-S4
FQ2-CH
Communications Processing Flow
If you connect an RS-232C Interface Sensor Data Unit to the Sensor, you can use no-protocol communications
between an external device (such as a PLC) and the Sensor to perform control from the external device via
command/response communications or to output data after measurements.
You can use these communications methods simultaneously.
Control by command/response is accomplished by issuing ASCII text commands (example: "MEASURE" for
single measurement) from the external device (PLC, etc.). The Sensor returns a response such as "OK", "NG",
or values.
Data output by the data output method after measurement is in ASCII format or binary format, and is sent to the
external device (PLC, etc.) serially. There is no handshake to determine whether the external device (PLC,
etc.) is ready to receive the data.
Setting Up No-protocol Communications
Initial Settings for No-protocol Communications
To perform no-protocol communications with RS-232C, you must set the communications baud rate, data
length, and other RS-232C communications parameters.
[Sensor settings] − [Data output] − [No-protocol data]
1
Press [Communication type] − [No protocol (RS-232C)].
2
Set the RS-232C communications parameters.
Note
If you connect to an OMRON PLC, set the PLC to Host Link com-
munications.
Item
Set the baud rate to use for RS-232C communications.
Baud rate [bps]
Set the same baud rate as the external device that you will communi-
cate with.
Data length [bits]
Set the same data length as the external device that you will communi-
cate with.
Parity
Sets the parity. Set the same setting as the one in the PLC communica-
tions specifications.
Stop bit
Set the number of stop bits. Set the same value as the one in the PLC
communications specifications.
Flow control
Controls the flow of communications with the software.
Delimiter
Set the delimiter to add to the end of commands and responses.
Set the same delimiter as the external device that you will communicate
with.
FQ2-S/CH User's Manual
Controlling Operation and Outputting Data with RS-232C No-protocol Communications
for Communications Settings
Description
Parameter
2400, 4800, 9600, 19200,
38400, 57600, or 115200
(default: 38400)
7 bits or 8 bits
(default: 8 bits)
None, Odd, or Even (default:
none)
1 bit or 2 bits (default: 1 bit)
None or Xon/Xoff
(default: none)
CR, LF, or CR+LF (default:
CR)
203

Advertisement

Table of Contents
loading

Table of Contents