On the lefthand side of the screen, you should see "USB" selected as the interface. First, we will set up the slave address and communications settings on our controller.
For this tutorial, we will use an RS-485 serial port, connected to a laptop on Comm 3. Now you will need to set up an interface between your factory controller, or PLC, and the power controller. Connect power to the controller and connect to your computer with a USB cable.
There are some advantages to using Modbus RTU over an analog interface:īefore we begin, you will need to install the Control Panel software, which is provided free with your controller. Modbus RTU is a fieldbus that allows digital communication between a PLC and the controller. This video will demonstrate setup and basic procedures for communicating with your FUSION controller using the Modbus RTU fieldbus over an RS-485 serial interface. Compared to Modbus ASCII Protocol, Modbus RTU Protocol requires fewer bytes to be transmitted across the bus to convey the same volume of data.Welcome. WattNode Modbus meters support the Modbus RTU Protocol, which is a binary (vs. The subsequent bytes vary depending on the type of command and the last two bytes are the CRC (Cyclic Redundancy Check) value for verifying that the frame is valid. The second byte is the command or function code. The first byte of each frame is the address of the slave device. The slave with the matching address then responds either with requested register data or by echoing the command for the register write operation. Only the master can initiate a transaction by issuing a command frame (or message) addressed to a specific slave. USB supports multiple devices at much higher speeds but distance is limited to 16 feet. RS-232 is typically used for distances less than 50 feet and it can only be used to communicate with a single slave device.
WattNode meters uses the RS-485 signal levels instead of the Universal Serial Bus (USB) or RS-232 (typical of legacy PC serial COM ports) because: 1) It reduces wiring by allowing multiple slave devices to be connected to a single bus and 2) Its “differential” signaling mode is more tolerant of EMI (electromagnetic interference), and can extend much greater distances (up to 4000 feet). position 1 has a weight of 1, position 2 has a weight of 2, position 3 has a weight of 4, position 4 has a weight of 8 etc.). Each subsequent switch position has a weight twice that of the preceding one (e.g. leave position 1 OFF and set position 2 ON to set the next unit’s address to 2).
If there are more than one WattNode then the other units must be assigned a different address (e.g. If the WattNode meter is the only slave device on the network then flip position 1 to the ON position to assign a slave address of 1. As shipped from the factory, the address is set to zero (not a valid address) and the WattNode Modbus LED will turn red to alert the installer that the address needs to be assigned. DIP switch positions 1 to 7 set the slave address from 1 to 127, and position 8 determines the baud rate (ON=19200, OFF=9600). To avoid bus contention, every slave must be assigned a unique address by the installer. To avoid introducing ground loops, the signal common wire should only be grounded to earth on one end (usually at the master).Ī slave may only transmit in response to a command from the Master that is specifically addressed to that slave-the address is determined by the WattNode’s DIP switch settings. A half-duplex, two-wire bus requires fewer signal conductors, but only allows one device to transmit at any given time.Īlthough the RS-485 half-duplex bus standard is commonly referred to as “two-wire”, keep in mind that a third wire is also needed for a zero volt reference (i.e. The RS-485 bus used by WattNode® Modbus energy meters (and most other slave devices) is referred to as a “two wire” half-duplex bus (vs. The Master typically sends a command to one of the slaves and waits for its response. There can be up to 127 slave devices on one multi-drop RS-485 serial bus.
There is one Master, which usually takes the form of a building automation system (BAS), communications gateway device, programmable logic controller (PLC), or datalogger software program running on a computer. Modbus is a “master/slave” communications protocol.