![background image](http://html1.mh-extra.com/html/omron/fh-1-series/fh-1-series_user-manual_742686540.webp)
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:
<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
Содержание fh-1 series
Страница 8: ...WWW NNC IR 6 Vision System FH FZ5 Series User s Manual Z340...
Страница 14: ...WWW NNC IR 12 Vision System FH FZ5 Series User s Manual Z340 MEMO...
Страница 22: ...WWW NNC IR 20 Vision System FH FZ5 Series User s Manual Z340 MEMO...
Страница 48: ...WWW NNC IR Initializing the Controller 46 Vision System FH FZ5 Series User s Manual Z340 MEMO...
Страница 68: ...WWW NNC IR Editing Scene Groups 66 Vision System FH FZ5 Series User s Manual Z340 MEMO...
Страница 132: ...WWW NNC IR Useful Functions for Operation 130 Vision System FH FZ5 Series User s Manual Z340 MEMO...
Страница 172: ...WWW NNC IR Saving Scene Groups in External Memory 170 Vision System FH FZ5 Series User s Manual Z340 MEMO...
Страница 254: ...WWW NNC IR Basic Knowledge For Macro Customize Functions 252 Vision System FH FZ5 Series User s Manual Z340 MEMO...
Страница 650: ...WWW NNC IR Macro Reference 648 Vision System FH FZ5 Series User s Manual Z340 Related Items None...
Страница 881: ...WWW NNC IR...