47
7.3.5. fhsample_regpos
Function
Register the current robot position to the Vision Sensor.
Syntax
fhsample_regpos(fh_socket, retries_recv, timeout_recv, err_no)
Parameter
fh_socket Input Integer Number of sockets already connected to the
Number of receive retries (0 to 99)
Receive timeout time (0 to 99sec)
err_no Output Integer error number
Store the result of the execution of this
function.
Remarks
Get the current robot position and register the current robot position to the Vision Sensor.
Return an error if this function is called while the Vision Sensor is not connected.
Returns an error if a response of current robot position registration failure is received
from the Vision Sensor.
Return value
-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
ERROR:fhrecvstring():RETRY:-1303
Receive retry count overrun
ERROR:fhrecvstring():TIMEOUT:-1304
Receive timeout time is over.
-1505 ERROR:fhsample_regpos() :
LOCAL_COORDINATE_NO :-1505
Out of the range of
ERROR:fhsample_regpos() :
TOOL_COORDINATE_NO : -1505
Out of the range of
-1601 ERROR:fhsample_regpos():No
Calling in the unconnected
-1800 ERROR:fhsample_regpos():Trigger NG:-
Response NG