45
7.4.2.
fhconnect
Function
Connect to the Vision Sensor
Syntax
fhconnect()
Parameters
Parameter Name Input/O
utput
Type
Data type
Description
ip_address
Input
Variable
Integer
The least significant byte of IP
address of the Vision Sensor.
(1 to 254)
Port_no
Input
Variable
Integer
Port number of the Vision
Sensor. (1 to 65535)
retries_connect Input
Variable
Integer
Number of connections retries
(0 to 99)
timeout_connect Input
Variable
Integer
Connection Time-out Time (1
to 20sec)
fh_socket_no
Input
Variable
Integer
Connect Socket Number (1 to
16)
fh_err_number
Output Variable
Integer
Error Number
(0:normal,Except 0:abnormal)
Remarks
Connects to the Vision Sensor specified in the IP address ,Port number and socket Number.
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
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
ERROR: fhconnect():IP_ADDRESS:-1200
Out of Ip address Input
Range
Содержание Vision Sensor FH Series
Страница 1: ...Robot Connection Guide NACHI FUJIKOSHI CORP Edition Vision Sensor FH Series Vision System Z464 E1 01 ...
Страница 14: ...12 ...
Страница 63: ......