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 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 43 Parameter Name Input/Output Data type Description socket no _ Input Real Number of sockets already connected to the Vision Sensor retry count _ Input Real Number of receive retries (0 - 99) time out _ Input Real Receive timeout time (0 to 99sec) scene no _ Input Real Scene number to switch to (0 - 127) err no _ Output Real error number Store the result of the execution of this function. Err. No.
Error Message Description 0 - normal termination -1000 ERROR:fhsample chgscn():Invalid Scene _ No.:-1000 Out of scene numbering range -1300 ERROR:fhrecvstring():RETRY:-1300 Out of the range of receive retry count input ERROR:fhrecvstring():TIMEOUT:-1300 Out of the input range for the receive timeout count -1301 ERROR:fhrecvstring():NO CONNECTION:- _ 1301 Calling in the unconnected state -1303 ERROR:fhrecvstring():RETRY:-1303 Receive retry count overrun