![background image](http://html1.mh-extra.com/html/omron/fh-1-series/fh-1-series_user-manual_742686653.webp)
WWW.NNC.IR
Macro Reference
651
8
App
end
ice
s
Vision System FH/FZ5 Series
User’s Manual (Z340)
ReceiveData
Receives data.
Format
ReceiveData <ioIdent>, <inputData()>, <inputMaxSize>, <inputSize>[, <parameter()>,
<parameterSize>]
Parameter
Return value
None.
Description
Receive data up to the size specified in the <inputMaxSize> parameter by using the communication module
specified in the <ioIdent> parameter.
In the <inputData()> parameter, specify the 1D integer array variable that will hold the data to be received,
without adding element numbers but adding () to the variables. In the <inputSize> parameter, specify the
integer variable that will hold the size of the received data.
Values that can be set in the <parameter()> parameter and <parameterSize> parameter depend on the
communication module specified in the <ioIdent> parameter. The <parameter()> parameter and
<parameterSize> parameter can be omitted.
With this macro function, data that has arrived at the sensor controller from an external device is received
when the macro function is executed. If no data has arrived, 0 is stored in the <inputSize> parameter. If the
desired data is not received the first time the macro function is executed, execute repeatedly until all data has
been received.
If an incorrect data type is specified for a parameter, a "Type mismatch" error will occur.
If a non-existent number, numerical value, or combination of data types or values is specified for a parameter,
an "Illegal function call" error will occur.
If Handshake is on and data reception fails due to a communication timeout or other reason, an "Illegal
function call" error will occur.
If the format is written incorrectly, such as writing the macro function name incorrectly, omitting a comma, or
omitting a half-width space, a "Syntax error" error will occur.
Usage Cautions
• Execute this macro function when the target communication module is stopped. (Reference:
Parameter
name
Data type
Description
<ioIdent>
Character
string type
Identification name of the communication module to be used (Reference:
<inutData()>
Integer array
Received data
<inputMaxSize> Integer type
Maximum size of data to be received
<inputSize>
Integer type
Received data size
<parameter()> Integer array
The parameter data specified in the option
<parameterSize> Integer type
Size of parameter data specified optionally.
Summary of Contents for fh-1 series
Page 8: ...WWW NNC IR 6 Vision System FH FZ5 Series User s Manual Z340...
Page 14: ...WWW NNC IR 12 Vision System FH FZ5 Series User s Manual Z340 MEMO...
Page 22: ...WWW NNC IR 20 Vision System FH FZ5 Series User s Manual Z340 MEMO...
Page 48: ...WWW NNC IR Initializing the Controller 46 Vision System FH FZ5 Series User s Manual Z340 MEMO...
Page 68: ...WWW NNC IR Editing Scene Groups 66 Vision System FH FZ5 Series User s Manual Z340 MEMO...
Page 881: ...WWW NNC IR...