59
7.4.10.
fhrunrecvval
Function
Receive numerical data from the Vision Sensor
Syntax
fhrunrecvval()
Parameter
Argument
Input/Output Type
Data
type
Description
fh_socket_no Inpute
Variable Single
Connected Socket Number (1 to
16)
fh_param[10] Output
Variable Single
The analysis result of the
received numeric elements (10)
fh_err_number Output
Variable Integer Error Number
(0:normal,Except 0:abnormal)
Remarks
This function stores the numerical data sent from the Vision Sensor. Into the double type
of the global variable “fh_param[]”.
This function outputs up to 10 values. If there are more than 11 numbers, this function
outputs only the first 10.
If the length of the segmented string is longer than 12 bytes, this function returns an
error of abnormal parameter length.
Returns an error if the number of numeric data is zero.
The following is an example of the output when a string is included.
<Conversion example>
The string before conversion
The result of the analysis after conversion
0xff
0
1.00E+03
1000
abc
0
123abc
123
&HFF
0
Return Value
Err. No.
Error Message
Description
0
-
normal termination
-1301
ERROR:fh_recv():NO_CONNECTION:-1301
Calling in the unconnected
state