42
7.3.2. fhconnect
Function
Connect to the Vision Sensor
Syntax
fhconnect(fh_socket, retries_connect,timeout_connect,err_no)
Parameters
fh_socket Input Integer The socket number of connect to Vision
Number of connections retries (0 to 99)
Connection Timeout Time (0 to 99sec)
err_no Output Integer Error number
Store the result of the execution of this
Remarks
Connects to the Vision Sensor specified in the Number of socket parameter.
Request a connection every hour specified in the Connection Timeout Time parameter.
Request a connection as many times as specified in the connection retry count parameter.
Return an error if the connection fails.
Return an error if the parameter is out of the input range
Return Value
-1200 ERROR:fhconnect():RETRY:-1200
Out of connection retry count
ERROR: fhconnect():TIMEOUT:-1200 Connection Timeout Time
ERROR: fhconnect():RETRY:-1202
Connection retry count over
-1204 ERROR: fhconnect():TIMEOUT:-1204 Connection timeout time is
ERROR:fhconnect():SOCKET_IN_USE:-1900
Precautions
Only one Vision Sensor can be connected to the robot controller.
If you want to connect to another Vision Sensor, disconnect from the connected Vision
Sensor.