omron — 7.3.2. fhsampleregpos

7.3.2. fhsampleregpos  Function Register the current robot position to the Vision Sensor.  Input Parameters None  Output Parameters  Exit Process There are two exit nodes in this component as follows NoError : Normal termination. Error : Abnormal termination (Please check the message displayed in the view window.)  Remarks Get the current position of the robot in accordance with the selected coordinate system number and register the current 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 position registration failure is received from the Vision Sensor.

 Return value 43 Setting Node Setting Target Data Type Description SendString ChooseDevice device Communication Settings for the Vision Sensors WaitTime int Communication waiting time(ms) RecvString ChooseDevice device Communication Settings for the Vision Sensors WaitTime int Communication waiting time(ms) Err. No. Error Message Description 0 - normal termination -1800 ERROR:fhsampleregpos():Trigger NG:- 1800 Response NG -1601 ERROR:fhsendstring():NO DATA:-1601 _ Send string length 0 -1601 ERROR:fhsendstring():NO CONNECT:- _ 1601 Unconnected state -1602 ERROR:fhsendstring():STRING LEN:- _ 1602 Send string length over -1301 ERROR:fhrecvstring():NO CONNECT-1301 _ Unconnected state