Omron FZ4 Series User Manual page 254

Vision sensor
Table of Contents

Advertisement

Description
Set a identification Name Identification name in an <ioIdent>.
Set a Area classification number Identification name in an <area>.
Reference:
Appoint an <channelOffset> and the <channelCount> with the number of the channels.
The read data argument <readData()> by one dimension integer type array variable, do not specify it
with the number of element like X&() but like () only with the type.
Gets the data of readData() using GetPlcData command.
The size of the sequence has to secure enough size to store the data which began to read.
4
Example
Begin to read data for 10ch from 4ch of the DM area of the OMRON PLC. Gets the 20 integer type data
from read data.
Dim readData&(30)
Dim getData&(20)
'Begin to read data from PLC.
ReadPlcMemory "SerialPlcLink", 130, 4, 10, readData&()
'Gets the data from read data.
For I&=0 To 19
   GetPlcData "SerialPlcLink", readData&(), I&*4, 4, getData&(I&)
Next
Receive data
ReceiveData <ioIdent>, <inputData()>, <inputMaxSize>, <inputSize>[, <parameter()>,
<parameterSize>]
Parameters
<ioIdent>
<inputData()>
<inputMaxSize>
<inputSize>
<parameter()>
<parameterSize>
Return Value
None.
252
Using Custom Command
List of IO modules (p.299)
Identification name (string) of I/O module that executes reception processing
Date to be receive (string)
The max size of data (integer type)
Data size (integer type)
Parameter of reception processing (integer array type)
Size of reception processing parameter (integer type)
FZ4 User's Manual

Advertisement

Table of Contents
loading

This manual is also suitable for:

Fz4 series

Table of Contents