WWW.NNC.IR
Macro Reference
650
Vision System FH/FZ5 Series
User’s Manual (Z340)
Example
In the communication command macro, reads multiple data from the PLC connected by PLC link.
Useable Modules
Scene Control Macro / Communication Command Macro / Unit Macro
Supported Versions
Version 4.20 or later
Related Items
IOMODULE$ = "UdpPlcLink"
Rem Get the settings of the output data area.
GetSystemData IOMODULE$, "outputArea", AREA&
GetSystemData IOMODULE$, "outputMemoryAddress", ADDRESS&
Rem Create the integer array variable to store the read data.
Dim DATA&(1)
Rem Load the data (4ch) from data output area.
ReadPlcMemory IOMODULE$, AREA&, ADDRESS&, 4, DATA&()
Get the values from the read data.
GetPlcData IOMODULE$, DATA&(), 0, 4, VALUE0&
GetPlcData IOMODULE$, DATA&(), 4, 4, VALUE1&
GetPlcData (Reference: X Details (p.538)) SetPlcData (Reference: X Details (p.709))
WritePlcMemory (Reference: X Details (p.807))