![background image](http://html1.mh-extra.com/html/omron/fh-1-series/fh-1-series_user-manual_742686809.webp)
WWW.NNC.IR
Macro Reference
807
8
App
end
ice
s
Vision System FH/FZ5 Series
User’s Manual (Z340)
WritePlcMemory
Writes values in the PLC memory area.
Format
WritePlcMemory <ioIdent>, <area>, <channelOffset>, <channelCount>, <writeData()>
Parameter
Return value
None.
Description
Writes the amount of data specified in the <channelCount> parameter from the address offset by the amount
of the value specified in the <channelOffset> parameter, of the PLC area type specified in the <area>
parameter by using the communication module specified in the <ioIdent> parameter.
Before using this macro function to write data to the PLC memory area, execute the SetPlcData function to
set the data to be written.
In the <writeData()> parameter, specify the 1D integer array variable that stores the data to be written,
without adding element numbers but adding () to the variables.
This macro function cannot be used to write data to a PLC that is connected by other than the PLC link
communication module.
In the <area> parameter, specify the identification of the register that is set with the PLC link setting in the
system settings.
In the <channelCount> parameter, specify the size in channel units. The size of one integer type data item is
two channels (4 bytes), and thus to write one integer value, a one-element array should be prepared with the
<writeData()> parameter, and 2 should be specified in the <channelCount> parameter.
If a size larger than the array size specified in the <writeData()> parameter is specified in the
<channelCount> parameter, a "Subscript out of range" error will occur.
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.
Writes the data to the data output area. Note that if the data is written to the response area, the response data
will be overwritten after the command processing.
Usage Cautions
• Before using this macro function to write data, always use the SetPlcData function to set the data to be
written. If the data is directly set in the <writeData()> parameter without using the SetPlcData function, the
correct data may not be set.
Parameter
name
Data type
Description
<ioIdent>
Character
string type
Identification name of the communication module to be used (Reference:
<area>
Integer type
Area type number of data output area to be written to.
<channelOffset> Integer type
Offset from beginning of data output area to address where writing is to start.
<channelCount> Integer type
Data size to write
<writeData()> Integer array
Data to write
Содержание 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...