45
7.3.4. fhsample_chgscn
Function
Switching the scene of the Vision Sensor.
Syntax
fhsample_chgscn(fh_socket, retries_recv, timeout_recv, scene_no, err_no)
Parameter
fh_socket Input Integer Number of sockets already connected
Number of receive retries (0 to 99)
Receive timeout time (0 to 99sec)
Scene number to switch to (0 to 127)
err_no Output Integer error number
Store the result of the execution of
this function.
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
-1000
ERROR:fhsample_chgscn():Invalid Scene
Out of scene numbering
-1300 ERROR:fhrecvstring():RETRY:-1300
Out of the range of receive
ERROR:fhrecvstring():TIMEOUT:-1300
Out of the input range for
the receive timeout count
-1301 ERROR:fhrecvstring():NO_CONNECTION:-
Calling in the unconnected
ERROR:fhrecvstring():RETRY:-1303
Receive retry count overrun
ERROR:fhrecvstring():TIMEOUT:-1304
Receive timeout time is over.