WWW.NNC.IR
Macro Reference
651
8
Appendices
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: XExclusive
Control in a Process (p.234))
Parameter
name
Data type Description
<ioIdent>
Character
string type
Identification name of the communication module to be used (Reference: XList of I/O
Modules (p.341))
<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.