omron — 7.3.1. fhconnect

7.3.1. fhconnect  Function Connect to the Vision Sensor  Syntax fhconnect fh_socket, ip_address, port_no, retries_connect, timeout_connect, err_no  Parameters  Remarks Return a socket data if connect to the Vision Sensor successful. 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 38 7.3.

Function Details Argument Input/Output Data type Description fh socket _ Output socketdev Get the socket data of connect to Vision Sensor. ip address _ Input string IP address of the Vision Sensor port no _ Input num Port number of the Vision Sensor retries connect _ Input num Number of connections retries (0 to 99) timeout connect _ Input num Connection Timeout Time (0 to 99sec) err no _ Output num Error number Store the result of the execution of this function. 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.