I need assistance with Modbus integration on a Micro 820 PLC for a level sensor supporting Modbus RTU. This is my first time working with Modbus and I'm having trouble setting up a msg instruction on the Micro 820. I'm unsure about the target node and the manual isn't clear to me. Despite watching videos and reading forums, I'm still confused. I've learned that I can connect Rs-485 directly to the embedded serial port on the Micro 820, but I've also read about plug-in modules like the 2080-serialisol. Can someone guide me on this process from the beginning? I have a register map and a manual for the sensor. Any help would be greatly appreciated.
Are you utilizing the MSG_MODBUS instruction in your programming? In this context, "Target Node" typically refers to the "Server (Slave) Address," as RS-485 allows for multiple Modbus Slaves and one Modbus Master to operate on the same communication lines. The acceptable range for the Target Node is 1-247; it is important for the level sensor to have a method for setting or reading its address. The TargetCfg parameter's .Node attribute will be utilized in the MSG_MODBUS instruction. For troubleshooting purposes, it is recommended to have a PC equipped with an RS-485 serial port (such as a USB dongle) and utilize Modbus Slave and Modbus Master software to independently debug each segment of the communication process: the Slave software for emulating the level sensor and the Master software for emulating the Micro820 PLC. Once both components are functioning correctly, you can proceed to connect the Micro820 PLC to the level sensor. Look for software that displays the protocol bytes in hexadecimal format, as this can be beneficial for troubleshooting any potential issues that may arise during the communication process.
drbitboy suggested using the MSG_MODBUS instruction and clarifying that "Target Node" typically refers to the "Server (Slave) Address" in RS-485 systems supporting multiple Modbus Slaves and one Modbus Master. The Target Node range is typically 1-247 and the level sensor should have an option to set or read its address. The .Node attribute of the TargetCfg parameter in the MSG_MODBUS instruction should correspond to this. To diagnose issues, it is recommended to use a PC with an RS-485 serial port (such as a USB dongle) and Modbus Slave/Master software to debug communication independently. Simulating the level sensor with Slave software and the Micro820 with Master software can help ensure both sides are working before connecting them. It is also advised to find software displaying protocol bytes in hexadecimal for troubleshooting purposes. Thank you for the advice; I will further investigate why the level sensor (Slave) with a unit ID is not communicating with my MSG instruction and download relevant software for troubleshooting.
There are numerous methods for wire labeling in RS-485 systems, making it a versatile and forgiving process. If you are unsure about achieving effective communication, simply swapping the wires can often resolve the issue.
After receiving your response, I will investigate the issue further. The level sensor (Slave) is not responding to my msg instruction despite having a unit ID. I will utilize software such as shortbus modscanner to troubleshoot this issue. Previously, I successfully used this software with a modbus RTU project involving a Directlogic rack plc and multiple Siemens burner controllers. It is important to ensure all configurations such as stop bits, baud rate, and parity match on both ends of the communication chain. Additionally, checking for address offsets in the protocol is recommended to resolve any connectivity issues.
I appreciate everyone's assistance with this topic. Utilizing a modbus simulator has been instrumental in resolving multiple issues. I have successfully established communication between a sensor and a Micro Logix 1400. However, when attempting to connect the sensor to a Micro 820 PLC, I encounter error 55 (The message timed out in the local processor. A link layer timeout.) in the msg instruction. Despite ensuring that baud rate, parity, and other settings are consistent, I am unable to pinpoint the issue. Your insights on troubleshooting this matter would be greatly valued.
Glad you reached out! Don't worry, it's normal to find Modbus integration a little overwhelming initially, but once you get a hold of it, it's fairly straightforward. Let's take this step by step. First, check the Modbus settings of your level sensor - note down the baud rate, parity, and stop bits. Now, within your Micro 820 PLC, the key settings you'll need are in the controller's Channel1 settings, this is where you set up the serial communication details. Simply match them with your sensorβs settings. As for your question on target node, it's normally 1 for most Modbus devices, unless otherwise specified by the device manual. Now, once these are set up, you can start creating your msg instruction, which can be a little tricky initially, but hang tight! Make sure you have the detailed register map of your sensor handy and refer to it while setting your "Source/Dest Elements" under the "Message Setup". The 2080-serialisol add-on module is of great use if you plan to communicate with multiple Modbus devices or if you need isolation for your RS485 lines, but for a single sensor, direct connection should suffice. I hope this breakdown helps a bit, feel free to ask if you have more questions!
β Work Order Management
β Asset Tracking
β Preventive Maintenance
β Inspection Report
We have received your information. We will share Schedule Demo details on your Mail Id.
Answer: - Modbus integration involves using the Modbus protocol to communicate with external devices, such as a level sensor, connected to a PLC like the Micro 820. It allows for data exchange between the PLC and the sensor using a standardized communication protocol.
Answer: - Setting up a msg instruction for Modbus communication on a Micro 820 PLC involves specifying the target node, which is the address of the device you want to communicate with. This address is typically defined in the register map provided by the sensor manufacturer.
Answer: - The target node in Modbus communication on a Micro 820 PLC represents the address of the specific device you are trying to communicate with over the Modbus network. It is essential to correctly configure the target node to establish successful communication with the device.
Answer: - Yes, you can connect Rs-485 directly to the embedded serial port on the Micro 820 for Modbus communication. This allows for direct communication between the PLC and the Modbus-enabled device without the need for additional hardware modules.
Join hundreds of satisfied customers who have transformed their maintenance processes.
Sign up today and start optimizing your workflow.