Omron FH Series Connection Manual page 55

Vision sensor
Hide thumbs Also See for FH Series:
Table of Contents

Advertisement

If the number of no-protocol command arguments is out of the input range, an error is
returned.
<Format>
No-protocol
SP(*1)
command
*1: "SP" is space
*2: The command argument n depends on the number of non-procedural command
arguments.
 Return Value
Err. No.
Error Message
0
-
-1506
ERROR:fhrunsendcmd():Invalid Command
Argument No.:-1506
-1601
ERROR:fhsendstring():NO_CONNECTION:-
1601
ERROR:fhsendstring():NO_DATA:-1601
ERROR:fhsendstring():WRITE:-1601
-1602
ERROR:fhsendstring():STRING_LEN:-1602
 Precautions
The length of the string of the no-stepping command that can be sent is 127 bytes (not
including the delimiter).
Set the parameters of $cmd_name and $cmd_arg[] so that the length of the string of
the no-procedure command to be sent does not exceed 127 bytes.
 Example
The following example shows how to send the measurement command "MEASURE" to
the Vision Sensor
$cmd_name = "MEASURE"
$cmd_arg[0] = ""
$cmd_arg[1] = ""
$cmd_arg[2] = ""
$cmd_arg[3] = ""
$cmd_arg[4] = ""
cmd_arg_num = 0
CALL fhrunsendcmd(socket_no, cmd_arg_num, $cmd_name, $cmd_arg[], err_no)
Command
SP
argument 1
Command
SP
argument 2
53
Command
...
argument n(*2)
Description
normal termination
The number of no-
procedural command
arguments is out of the
input range.
Calling in the
unconnected state
Send string length 0
Send failure
Send string length over

Advertisement

Table of Contents
loading

This manual is also suitable for:

Fh-5050

Table of Contents