Training Bay Ventilation Automation
This was my greatest challenge in the element14 Experimenting with Industrial Automation Design Challenge. There are plenty of videos that tell one how to pair the switch modules (ZBRT2 transmitter module) to the Harmony Hub (ZBRN2). There are instructions how to pair the receiver module (ZBRRH) to the Harmony Hub. There are manuals that tell you what the MODBUS registers are in the Harmony Hub for every little thing on the paired transmitter input. The paired receiver module (output) basically has the 16-bit word address for the four output of the paired receiver channel and the three values that make it OFF, Blink or ON.
Fantastic. But for the beginner... how do you make it communicate? <insert the sound of crickets here>
Step #1 of getting this system to exchange data is to start in the PLC Device Tree. (View -> Navigators -> Device tree)
Go to Serial_Line_1 (Serial Line). If you hoover your mouse pointer over the line, a green plus sign will appear at the right side. Click on that.
Or you can go to the Serial_Line_1 (Serial Line). Select the line. Right click and Add Device.
Either way, you get the following screen.
Select Modbus IOScanner and press the Add Device button in the lower right of the window.
Back on the Device Tree, click on your newly added Modbus_IOScanner (Modbus IOScanner) line. Right click. Add Device.
You can add the ZBRN2 from the Harmony folder. I chose to add the Generic Modbus Slave. Both work. Click on Add Device button in the lower right of the window.
You will get one of the following based on your decision in the Device Tree.
Configuring either the Generic_Modbus_Slave or the ZBRN2 will essentially be the same. With the ZBRN2, you don't have to set up the inputs. They are already added. On both, you will need to add the output channel.
I chose to stay with the generic MODBUS slave only because it was the second one I tried to set up and it also worked - so I kept it.
Double click on the device you just added to configure it.
The first screen allows you to set the slave address programmed into the Harmony Hub (ZBRN2). Since how to set this in the Harmony Hub (ZBRN2) is detailed in the Harmony Hub User Manual, I will not duplicate it here. Slave address 1 is the default so it should not need to be changed anyway.
Next, you will need to add Modbus Slave Channels. If you look at the picture above, you will see that there are two layers of tabs. The lower ones are associated with the selected upper tab. Select the Modbus Slave Channel. Select Add Channel. Fill in the details. NOTE: The offset is in HEX. That really burned me for a few days because all the literature talks about it in decimal. Also note that these windows have been resized a lot to get better screenshots. Yours will be a lot more spread out.
When you have added both the input and the output channels, you should see the screen below.
With this, you are ready to move to the Modbus Master I/O Mapping tab.
CONGRATULATIONS! You now have addressable I/O.
For the output WORDs, 0 (zero) is OFF. 255 or 0xFF is ON. 0x5A is Blink, if that is what you would like.
I hope you find this useful.