omron — 7.3.2. fhconnect

7.3.2. fhconnect  Function Connect to the Vision Sensor  Syntax fhconnect($ip_address, $port_no, retries_connect, timeout_connect, socket_no, err_no)  Parameters  Remarks Connect to the Vision Sensor specified in the IP address and port number parameters. Request a connection as many times as specified in the connection retry count parameter. Requests a connection every hour specified in the Connection Timeout Time parameter. Return an error if the connection fails.

Return an error if the parameter is out of the input range  Return Value 40 Parameter Name Input/Output Data type Description $ip address _ Input String IP address of the Vision Sensor $port no _ Input String Port number of the Vision Sensor retries connect _ Input Real Number of connections retries (0 - 99) timeout connect _ Input Real Connection Timeout Time (0 to 99sec) socket no _ Output Real Number of sockets already connected to the Vision Sensor err no _ Output Real 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 -1201 ERROR:fhconnect():ATTACH:-1201 attaching error * This error occurs when the network configuration for the device of the specified IP address fails. -1202 ERROR:fhconnect():RETRY:-1202 Connection retry count over -1204 ERROR:fhconnect():TIMEOUT:-1204 Connection timeout time is over.