Omron Vision Sensor FH Series Connection Manual page 43

Robot abb corporation edition
Hide thumbs Also See for Vision Sensor FH Series:
Table of Contents

Advertisement

7.3.3.
fhsample_chgscn
 Function
Switching the scene of the Vision Sensor.
 Syntax
fhsample_chgscn fh_socket, retries_recv, timeout_recv, scene_no, err_no
 Parameter
Argument
fh_socket
retries_recv
timeout_recv
scene_no
err_no
 Remarks
Sends a command to the Vision Sensor to switch to the scene number specified in the
parameter.
It returns an error if this command is not connected to the Vision Sensor.
Return an error is returned if the scene number specified in the parameters is out of the
input range.
Returns an error if a response is received from the Vision Sensor indicating that the scene
change command failed.
 Return value
Err. No.
Error Message
0
-
-1000
ERROR:fhsample_chgscn():Invalid Scene
No.:-1000
-1300
ERROR:fhrecvstring():RETRY:-1300
ERROR:fhrecvstring():TIMEOUT:-1300
-1301
ERROR:fhrecvstring():NO_CONNECTION:
-1301
-1303
ERROR:fhrecvstring():RETRY:-1303
-1304
ERROR:fhrecvstring():TIMEOUT:-1304
Input/Output Data type
Input
socketdev
Input
num
Input
num
Input
num
Output
num
Description
Data of socket already connected to
the Vision Sensor
Number of receive retries (0 to 99)
Receive timeout time (0 to 99sec)
Scene number to switch to (0 to 127)
error number
Store the result of the execution of
this function.
Description
normal termination
Out of scene numbering
range
Out of the range of receive
retry count input
Out of the input range for
the receive timeout count
Calling in the unconnected
state
Receive retry count overrun
Receive timeout time is over.
41

Advertisement

Table of Contents
loading

Table of Contents