Author Topic: STATUS(2) and MODBUS  (Read 12491 times)

ccdubs

  • Full Member
  • Posts: 116
    • View Profile
STATUS(2) and MODBUS
« on: February 20, 2008, 02:55:19 PM »
Hi All,

I am having difficulty with the status(2) command. I am using the writemb2 (RTU) command to send data to a PC. The PC receives the data correctly but it seems that the PLC is not sending STATUS(2) = 1.

Is is possible that the PC receives the datagram but the PLC thinks there was a transmission fault?

Thanks

support

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 3174
    • View Profile
    • Internet Programmable PLCs
Re:STATUS(2) and MODBUS
« Reply #1 on: February 21, 2008, 09:23:04 AM »
Does your PC respond with the correct MODBUS Response? What program are you running on the PC? Can you show the MODBUS command that you are sending? How many data are you sending in a single WRITEMB2?
Email: support@triplc.com
Tel: 1-877-TRI-PLCS

ccdubs

  • Full Member
  • Posts: 116
    • View Profile
Re:STATUS(2) and MODBUS
« Reply #2 on: February 21, 2008, 11:55:13 AM »
Hi Support,

It turns out that the problem was with the communications medium, radio. If I connect directly to the PC the communication was good.

I have found a workaround to this using the PC and PLC as modbus masters and slaves so that I can then check data was received using two way communications.

Thanks.

support

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 3174
    • View Profile
    • Internet Programmable PLCs
Re:STATUS(2) and MODBUS
« Reply #3 on: February 22, 2008, 12:36:49 PM »
I think the radio latency is what caused the problem. The response from the PC takes longer than 0.15s to be returned to the PLC and therefore the command is considered to have failed. There is a SETSYSTEM command that can change the amount of time that the PLC wait for a response from the slave.

Look into your folder:

C:\TRiLOGI\TL6\public\Help\tbasic\setsystem.htm

for explanation of these commands.
Email: support@triplc.com
Tel: 1-877-TRI-PLCS