Omron FH Series Connection Manual page 45

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

Advertisement

7.3.4.
fhsample_chgscn
 Function
Switching the scene of the Vision Sensor.
 Syntax
fhsample_chgscn(socket_no, retry_count, time_out, scene_no, err_no)
 Parameter
Parameter Name Input/Output Data type
socket_no
retry_count
time_out
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
Input
Real
Input
Real
Input
Real
Input
Real
Output
Real
Description
Number of sockets already connected
to the Vision Sensor
Number of receive retries (0 - 99)
Receive timeout time (0 to 99sec)
Scene number to switch to (0 - 127)
error number
Store the result of the execution of
this function.
Description
normal termination
Out
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
43
of
scene
numbering

Advertisement

Table of Contents
loading

This manual is also suitable for:

Fh-5050

Table of Contents