Home » Categories » Protocols » Modbus |
Read Commands from my Modbus Master to a ProSoft MCM Slave are working but Write Commands are failing. How do I fix this? |
Article Number: 357 | Rating: 1/5 from 1 votes | Last Updated: Mon, Jul 14, 2014 at 11:38 PM |
When a MCM module has a port set up as a Slave, especially if there are other Slaves on the same physical network, the Modbus Master may have trouble sending Write Commands to the MCM Slave port. In these cases, the Read Commands alway execute successfully; but the Write Commands often or always fail. In such cases, the "UseGuardBand" and "GuardBandTime" parameters (in older versions of ladder logic or ProLinx Configuration file) or the "InterCharacterDelay" parameter (in newer versions of ladder logic) can be used to activate an alternate timing scheme that allows Write Commands to be properly interpreted and appropriate responses sent. To activate this alternate timing scheme in older versions of ladder logic and ProLinx Gateways, set the UseGuardBand to "1" to enable this feature and set the GuardBandTime to any value greater than 8 (milliseconds.) Values between 10 and 25 are typical; but certain applications may require even higher values. To activate this alternate timing scheme in newer versions of ladder logic, set the InterCharacterDelay parameter to any value other than 0. Again, typical values are between 10-25; but may need to be higher. Guard Band Parameter With multiple nodes in the network (multidrop), the module must be able to define the time period used to properly recognize the received data sequence as a valid Modbus message. This time period is defined through the guardband timer parameter. Failure to set the Guard Band functionality may cause successive communication errors in the Modbus network. This functionality is only used for Modbus RTU mode, when the module is configured as a slave device in a multidrop network (RS-422 or RS-485 wiring). In RTU mode, when the module receives sequence of data from another node, it will recognize the end of the message when it detects a 3.5 character gap. The next byte received after a 3.5 character gap will be recognized as the start of a new Modbus message. The 3.5 character gap depends on the port communication settings, especially the baud rate. The higher the baud rate, the lower the corresponding time period equivalent to the 3.5 character delay. To use the default Guard Band Timeout parameter, set the Guard Band Time as follows: Guard Band Time = 0 This configuration will set the module to use a pre-defined time interval for Modbus message recognition calculated for each baud rate. This should provide optimal performance for most applications. The following guard band timer values will be automatically used by the module with the default parameter value (Guard Band Timer = 0) is selected: Baud Guard Band Timer (ms) 110 350 If you still observe a considerable number of communication errors, try to increase the Guard Band Time value (in milliseconds) until the network performance is improved. |
Attachments (0)
There are no attachments for this article.
|
Comments
There are no comments for this article. Be the first to post a comment.
|
How do you detect the individual Slave failure?
Viewed 1 times since Wed, Nov 29, 2006
What are the causes of a -11 error code using a ProSoft Modbus product?
Viewed 1 times since Mon, May 17, 2010
How do I enter a Modbus address of 40001 or higher in the DevAddress command field of my MVI56-MCM?
Viewed 1 times since Tue, Nov 28, 2006
How can a module's Modbus port, configured as a Slave port, detect communication loss with the Master port?
Viewed 1 times since Tue, Nov 28, 2006
I am trying to use a ProSoft Modbus solution to send/receive data to a MSA Ultima X gas dectection system with Modbus interface and am having problems. How can I resolve this issue?
Viewed 1 times since Thu, Apr 24, 2008
How do I read/write Modbus binary data?
Viewed 1 times since Wed, Nov 29, 2006
Do any Prosoft modules support Modbus UDP?
Viewed 1 times since Mon, Aug 24, 2015
My RX light is on solid, what might that indicate?
Viewed 1 times since Fri, Jul 17, 2015
How do I monitor the health of coms to my slaves when the module is a Master?
Viewed 1 times since Wed, Nov 29, 2006
What's the difference between Modbus ASCII and Modbus RTU?
Viewed 1 times since Wed, Mar 19, 2008
|