Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
blocks:app-note:netio_modbus [2024-03-14 14:15] mattias [Channel addressing] |
blocks:app-note:netio_modbus [2024-03-14 15:06] (current) admin [Setup in the Device] |
||
---|---|---|---|
Line 1: | Line 1: | ||
- | =====Control | + | =====Control |
- | Work in progress. Currently on hold. | + | |
- | This application note assumes minimum | + | This application note, and the method it describes, requires |
- | At time of writing all current models of Netio power distribution units support modbus via its M2M (machine2machine) | + | All current models of Netio's Power Distribution Units (PDU) support Modbus. |
- | This method requires less configuration compared | + | The Modbus |
====Setup in the Device==== | ====Setup in the Device==== | ||
Line 10: | Line 9: | ||
Find the M2M Api tab and enable the modbus/tcp option. | Find the M2M Api tab and enable the modbus/tcp option. | ||
{{: | {{: | ||
- | Blocks does not support changing | + | Blocks does not support changing |
=====Setup in Blocks editor==== | =====Setup in Blocks editor==== | ||
===Channel addressing=== | ===Channel addressing=== | ||
Consult the [[https:// | Consult the [[https:// | ||
- | Add a modbus | + | Add the modbus |
+ | ===Setup sockets=== | ||
+ | Add a modbus channel, give it a unique for the device, permanent and meaningful name, set the type to Digital (bit), set the direction to out. This will result Blokcs using modbus function 15 (Write Multiple Coils) (Blocks does not support Function 5 (write single coil) That means it sends the current property of all coils in a single call to the device in a single call. | ||
- | + | For Netio devices | |
- | ====Control the sockets==== | + | |
- | + | ||
- | Add a modbus channel, give it a unique for the device, permanent and meaningful name, set the type to Digital (bit), set the direction to out. This will result in Function 15 (Write Multiple Coils) (Blocks does not support Function 5 (write single coil) That means it sends the current property of all coils in a single call to the device in a single call. | + | |
- | + | ||
- | For Netio sockets | + | |
:!: It is important to not add coil channels that are not available on the device since the device will not perform any actions att all. | :!: It is important to not add coil channels that are not available on the device since the device will not perform any actions att all. | ||
They can then be accessed in blocks with their respective modbus channel property. | They can then be accessed in blocks with their respective modbus channel property. | ||
- | ====Metering | + | ===Setup metering |
Some NETIO devices support extensive power metering options. | Some NETIO devices support extensive power metering options. | ||
From the manual we can find the register we want to access, i.e the Mains Voltage of the device is accessed on Register 1, Function 04 and it is a 16 bit Type. | From the manual we can find the register we want to access, i.e the Mains Voltage of the device is accessed on Register 1, Function 04 and it is a 16 bit Type. |