Omron Vision Sensor FH Series Connection Manual page 61

Robot nachi-fujikoshi corp. edition
Hide thumbs Also See for Vision Sensor FH Series:
Table of Contents

Advertisement

7.4.10.
fhrunrecvval
 Function
Receive numerical data from the Vision Sensor
 Syntax
fhrunrecvval()
 Parameter
Argument
Input/Output Type
fh_socket_no
Inpute
fh_param[10]
Output
fh_err_number Output
 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
0xff
1.00E+03
abc
123abc
&HFF
 Return Value
Err. No.
Error Message
0
-
-1301
ERROR:fh_recv():NO_CONNECTION:-1301
Data
type
Variable Single
Variable Single
Variable Integer
The result of the analysis after conversion
0
1000
0
123
0
59
Description
Connected Socket Number (1 to
16)
The analysis result of the
received numeric elements (10)
Error Number
(0:normal,Except 0:abnormal)
Description
normal termination
Calling in the unconnected
state

Advertisement

Table of Contents
loading

Table of Contents