omron — 7.3.2. FHCONNECT

7.3.2. FHCONNECT  Function Connect to the Vision Sensor  Syntax FHCONNECT([Argument1], [Argument2], [Argument3])  Parameters  Remarks Connects to the Vision Sensor specified in the Connection Device Name 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  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.

Although this function can set the connection timeout period in seconds, the actual connection timeout error can be detected in about 10 seconds. 38 Argument Input/Output Data type Description Argument1 Input STRING Connection device name ([C1:] to [C8:]) Argument2 Input INTEGER Number of connections retries (0 - 99) Argument3 Input INTEGER Connection Timeout Time (0 to 99sec) Err. No.

Error Message Description 0 - normal termination -1200 ERROR:FHCONNECT:RETRY:-1200 Out of connection retry count input range ERROR:FHCONNECT:TIMEOUT:-1200 Connection Timeout Time Input Range -1202 ERROR:FHCONNECT:RETRY:-1202 Connection retry count over -1204 ERROR:FHCONNECT:TIMEOUT:-1204 Connection timeout time is over. -1802 ERROR:FHCONNECT:TP Argument:-1802 Register value acquisition error