60
-1302
ERROR:fh_recv():STRING_LEN:-1302
Receive data length over
-1502
ERROR:fhparseval():PARAM_TOO_LONG:-
1502
Abnormal parameter
length
ERROR:fhparseval():PARAM_NUM:-1502
Abnormal number of
parameters
-1504
ERROR:fhparseval():NO_CMD:-1504
The length of the string to
be divided is 0.
Precautions
The maximum length of the string to be received is 127 bytes (not including the delimiter).
if more than 128 bytes are received, an error is returned.
To get the measurement result with this function, Result Output (Message) must be
placed in the flow, and the settings must be as follows
Result Output (Message) Processing Item
The destination of the
received measurement
results
Setting Target
Setting details
Output device
IoModule2: Serial (Ethernet)
-
Termination string
∖
r (Carriage Return
)
-
Delimiter string
∖
x20 (Space)
-
Output Data 1 - 10
numerical data (*1)
fh_param [1] to fh_param
[10]
*1: The output data format should be set as follows
- Data type: Number
- Digits of integer: 6
- Digits of decimal: 4
Example
In the following example, the program receives a sequence of numbers sent by the
Vision Sensor and exits the program if the first received data is not 1.
CallProc fhrunrecvval()
IF fh_err_number <> fh_success
GOTO *CLOSE_SAMPLE
ENDIF
IF fh_param[1] <> 0
GOTO *CLOSE_SAMPLE
ENDIF
*CLOSE_SAMPLE
CallProc fhclose()
Return