Controlling The Sensor From An External Device (Procedure For No-Protocol Command/Response Communications) - Omron FQ2-S4 User Manual

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

Advertisement

Parameter
NG String output on/off
Note
• Endian
Little endian data is output.
• Code Conversion
The converted codes are outputted for the following character codes.
Before conversion After conversion
Character code
CR
&h0D
LF
&h0A
DEL
&h7F
FF
&hFF
Character Output Example
When both the data and character string are output, the character string is output after the data.
Example:
Read result 1: ABC
Read result 2: 0123
[Data output] − [Data 0]: 3 (Number of characters: 1)
[Data output] − [Data 1]: 4 (Number of characters: 2)
The following information will be output for the above. (The spaces are not actually output.)
3 field_separator 4 record_separator ABC field_separator 0123 record_separator CR

Controlling the Sensor from an External Device (Procedure for No-protocol Command/Response Communications)

Command Format
This section describes the command format for no-protocol communications.
Commands defined in the command list can be used.
Set commands and parameters in ASCII.
If the command has an argument parameter, set the parameter after inserting a space (0x20).
If it has multiple parameters, insert a space before each parameter.
Place a delimiter at the end of the command. No space is required before the delimiter.
The delimiter is always CR.
<Command Format>
Command
I
T
E
M
FQ2-S4 User's Manual
Controlling Operation and Outputting Data with TCP No-protocol Communications
Set value
Yes (default)
No
&h8541
&h8542
&h8543
&h8544
Parameter 1
D
A
T
A
Space
(0x20)
Description
Sets whether to output an NG string.
Parameter 2
1
0
1
0
Space
Space
(0x20)
(0x20)
Parameter 3
1
0
0
CR
Delimiter
409

Advertisement

Table of Contents
loading

Table of Contents