10-25-2006 06:44 AM
Hi, I’m using a Triangle Research PLC. The communication protocol is Modbus ASCII/RTU. I have been able to get communication via com port 1 rs232. I keep getting an alarm that says Garbled comms . Response to short.
Can you help?
10-25-2006 11:25 AM
Hi,
Try increasing the Receive Gap under Serial Port settings.
-Khalid
10-26-2006 06:39 AM
Thank you for the response.
I have tried to increase the gap as far as 100 and still the same result.
This is what I have the PLC set to
WRITEMODBUS 1, 1, 1000, 1234
Following is an example of the syntax from the PLC manufacturer
* WRITEMODBUS ch, DeviceID, address, data {* Applicable only to M+ PLC models}
Purpose |
Automatically write the 16-bit data to a MODBUS ASCII device using the MODBUS ASCII protocol. The communication baud rate is the default baud rate of that COMM port unless it has been changed by the SETBAUD command. ch - PLC COMM port number (1-8) |
Examples |
WRITEMODBUS 3, 8, 1000, 1234 |
Comments: |
The data 1234 will be written to the MODBUS device with ID=08 at the holding register offset address 1000 (in MODBUS convention this refer to holding register #41001). The command automatically checks the response string received from the slave device for the correct LRC and the slave address. The status of the operation can be checked in the user program by executing the STATUS(2) function, which will return a ‘0’ if there is any error or if the slave device is not present. |
See Also |
READMODBUS( ), STATUS(2), NETCMD$( ) |
10-26-2006 07:07 AM
Thank you for the response.
I have tried to increase the gap as far as 100 and still the same result.
This is what I have the PLC set to
WRITEMODBUS 1, 1, 1000, 1234
Following is an example of the syntax from the PLC manufacturer
* WRITEMODBUS ch, DeviceID, address, data {* Applicable only to M+ PLC models}
Purpose |
Automatically write the 16-bit data to a MODBUS ASCII device using the MODBUS ASCII protocol. The communication baud rate is the default baud rate of that COMM port unless it has been changed by the SETBAUD command. ch - PLC COMM port number (1-8) |
Examples |
WRITEMODBUS 3, 8, 1000, 1234 |
Comments: |
The data 1234 will be written to the MODBUS device with ID=08 at the holding register offset address 1000 (in MODBUS convention this refer to holding register #41001). The command automatically checks the response string received from the slave device for the correct LRC and the slave address. The status of the operation can be checked in the user program by executing the STATUS(2) function, which will return a ‘0’ if there is any error or if the slave device is not present. |
See Also |
READMODBUS( ), STATUS(2), NETCMD$( ) |
10-30-2006 12:03 AM
10-30-2006 03:21 PM
10-30-2006 08:15 PM