Warning
Hazard of Electric Shock: Remove all power from all devices before removing any covers or doors of the system. Disconnect power at the device and at the power source.
Electrostatic Discharge Required: Always discharge static electricity from your person by touching metal prior to handling any hardware. Failure to do so may result in damage to devices.
Issue
Modbus RTU communication is not performing as expected, and there is a need to review electrical installation or request/response packets.
Product Line
EcoStruxure Building Operation
Environment
- Building Operation Automation Server
- Building Operation Multi-purpose Controller
- Building Operation Room Controller
- Building Operation EZLogic Room Controller
Cause
Picoscope hardware and software provide the ability to review the electrical waveforms and decode as Modbus RTU
Resolution
- Ensure proper setup and connection of Picoscope probes
- Set the switch on probes to 1X
- Connect the probes using the color coding on each end to ensure the connection is as follows:
- Connect Probe A to TX/RX -
- Connect Probe B to TX/RX +
- Connect the probe black reference alligator clips to the cable shield drain wire. Ensure the drain wire is connected to EGND at one location.
- Connect the Picoscope to the PC, then open Picoscope software and choose the device connected.
- Set the Scope
- Use 1 ms/div for 38400 baud
- Follow this thread for more information since BACnet and Modbus are both RS-485 protocols. BACnet - PicoScope Basics - Schneider Electric Community
- Select Channel A
- Set to +/- 5V
- Select Channel B and repeat the setting.
- One may change to +/- 10V if you encounter spikes above the 5V range (overvoltage warnings).
- Add Math Channel
- Click the Math Channels icon
- Select A - B
- Add Serial Decoding for Modbus RTU
- Click Serial decoding icon
- Select MODBUS RTU
- On Page 1
- select Master A - B
- Change Baud Rate to known baud rate, usually 38.4 kBd
- Change Parity to known parity, usually NONE (1 Stop Bit)
- Leave the rest at default and click Next
- On Page 2
- Recommend leaving as default of HEX, knowing you will have to convert for Slave IDs over 09.
- Leave the rest at default and click Finish
- Set Waveform
- Adjust thumbnail size to preference
- Leave Capture Time = On (default)
- Set Max Waveform to 2000 (example has 5000)
- Start and stop capture and select Waveform as example
- Set Trigger
- Using a waveform, set the threshold voltage just above the blue line voltage. For example, the blue line is at 0.8V, and the threshold is set at 1.92V. Adjust based on your collected waveform(s)
- Set the Pre-Trigger
- 0% puts Yellow Diamond to the left and 100% puts Yellow Diamond to the right.
- The recommended setting is between 5% and 20% (for example, 20%).
- Start capturing
- Set Serial Decoding for MODBUS RTU to show buffer
- The Current Buffer shows only the waveform on the screen.
- All Buffers show everything.
- NOTE: The Buffer Number column references the waveform number