
AN00174-001 Modbus TCP Fieldbus Option for MotiFlex e100.doc
12
1212
12 of
of of
of 22
2222
22
The MiniHMI application allows the user to Read and Write all of the various Modbus register
types.
For the purpose of this Application Note we have used the Read Registers and Write Registers
pages to illustrate the operation of the MotiFlex Fieldbus Option…
Reading Process Data
Using the Read Registers page of the MiniHMI application we set the following parameters:
Before we click on a button to initiate the read we need to load some data into the relevant
NetData locations on the MotiFlex drive…
Start WorkBench v5.5, start a new project and connect to the MotiFlex e100 drive. Select the Edit
& Debug icon in the left hand toolbar.
Now select the NetData tab in the Spy window on the right hand side of the WorkBench screen…
Click on the Add.. button and add a Watch to NetData Channel/Index 1 (Data Type: Integer)
Repeat this process for Channels/Indexes 2, 3 and 4.
We selected Output (Holding) registers as the
memory type as these are the registers that PDO
data is mapped to (see Modbus/TCP Register
Implementations earlier).
Modbus register 256 is the first register in the
Write Process Data area (data read by the client).
We have set the quantity of registers to read to 2
(i.e. registers 256 and 257).
Note that the data format initially is INTEGER (i.e.
16 bit data) and the addressing is zero based.
Comentarios a estos manuales