
90 - Project Example
DeviceMaster PNIO | UP User Guide
: 2000639 Rev. A
Project Example
4.
Create an input buffer structure called
InputBuf
that has the same format as
the input data, as shown in the following figure.
5.
Add a
DPRD_DAT
instruction into the main block to copy data from input
address into the
InputBuf
structure in the data block, as shown in the
following figure.
•
Parameter
LADDR
- Enter the hardware identifier of the input submodule,
which can be found in the
Properties tab | General | Hardware identifier
, as
show in the following figure.
•
Parameter
RECORD
- Enter
Data_block_1.InputBuf
.
6.
Compile and download the project.
7.
Now let’s test it by sending an ASCII string of
ABCD
to the serial device.
8.
Open the DeviceMaster web page and click
Diagnostics | Serial Log
.