EasyManuals Logo

Omron SYSMAC FH Series User Manual

Omron SYSMAC FH Series
882 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #540 background imageLoading...
Page #540 background image
WWW.NNC.IR
Macro Reference
538
Vision System FH/FZ5 Series
User’s Manual (Z340)
GetPlcData
Gets data read with the ReadPlcMemory function.
Format
GetPlcData <ioIdent>, <readData()>, <offset>, <size>, <data>
Parameter
Return value
None.
Description
Using the communication module specified in the <ioIdent> parameter, the data size specified in the <size>
parameter is gotten from the position that is offset by the value specified in the <offset> parameter from the
start of the data array specified in the <readData>parameter.
Use this macro function to get the data after executing the ReadPlcMemory function to read the value in the
PLC memory area.
In the <readData()> parameter, specify the 1D integer array variable that stores the data read with the
ReadPlcMemory function. Add () without specifying element numbers.
In the <offset> parameter and <size> parameter, specify the offset and size in units of bytes. These units are
different from the units specified in the ReadPlcMemory function (channel units).
Specify 2, 4, or 8 in the <size> parameter. These will respectively get a 2 byte integer, 4 byte integer, or 8 byte
real number.
In the <data> parameter, specify the variable that will store the gotten data.
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 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
• If the value in the PLC memory area is read using the ReadPlcMemory function in PLC link communication,
always use this macro function to get the value from the data that is read. If the value is directly gotten from
the ReadPlcMemory function parameter without using this macro function, the correct value may not be
gotten.
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))
<readData()> Integer array Loaded data
<offset> Integer type Offset from the top of the loaded data to the head of the loaded data to read in (byte unit)
<size> Integer type Size of the data to get (byte unit)
<data>
Integer type
Double
precision real
number data
type
Character
string type
Gotten data

Table of Contents

Other manuals for Omron SYSMAC FH Series

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Omron SYSMAC FH Series and is the answer not in the manual?

Omron SYSMAC FH Series Specifications

General IconGeneral
BrandOmron
ModelSYSMAC FH Series
CategoryIndustrial Equipment
LanguageEnglish

Related product manuals