Omron Z302-E1-03 User Manual page 148

Vision sensor
Table of Contents

Advertisement

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 (0×20).
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
P
O
S
I
T
<Response Format>
If a parameter is attached, the parameter and delimiter are output when the command is processed normally,
and the command execution result is OK. A delimiter is inserted at the end of the response.
The delimiter is always CR.
Command Execution Result
Parameter
1
0
CR
Delimiter
O
K CR
Delimiter
If the command is not processed normally, the command execution result is NG.
Command Execution Result
N
G CR
Delimiter
An error occurs in the following cases.
• A non-existent command was specified.
• The number of parameters is incorrect.
• The parameter range is incorrect.
• The parameter content is incorrect.
• Operation could not be performed normally for the operation command.
FQ User's Manual
I
O
N
D
A
T
Parameter 1
Parameter 2
A
1
0
1
Space
Space
(0x20)
(0x20)
Outputting/Controlling with Ethernet
Parameter 3
0
1
0
0
CR
Space
Delimiter
(0x20)
147

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents