
94 - Project Example
DeviceMaster PNIO | UP User Guide
: 2000639 Rev. A
Project Example
The following figure shows an output buffer structure called
OutputBuf
.
In a PLC program, fill out the sequence number, length and data fields. Make sure
that the length field is correct and the sequence number is incremented every
time. The following figure shows how to use a
DPWR_DAT
instruction to copy
OutputBuf
structure to the output address.
•
Parameter
LADDR
- Enter the hardware identifier of the output submodule,
which can be found in the
Properties tab | General | Hardware identifier
.
•
Parameter
RECORD
- Enter
Data_block_1.OutputBuf
.
Optionally, after each write, confirm the data was transmitted successfully by
comparing the
LastTxSeqNum
tag with the
OutputBuf.SeqNum
.