Author Topic: ASCII 255 inserted in response after powerup  (Read 10486 times)

Joel Moore

  • Full Member
  • Posts: 128
    • View Profile
ASCII 255 inserted in response after powerup
« on: October 07, 2004, 11:26:46 AM »
I've noticed recently that the first time I communicate with a T100MD888+ controller after it's been powered up, the response is prepended by an ASCII 255 character.

Has this always been the case and my old communications code was just able to ignore it or is this something new?

And is it intentional?  Can I rely on it to detect a powerup condition?

support

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 3174
    • View Profile
    • Internet Programmable PLCs
Re:ASCII 255 inserted in response after powerup
« Reply #1 on: October 13, 2004, 08:25:25 AM »
Is the other device powered up before the PLC? When power is applied to the PLC there may be transition of signal on the TX line which is more like a noise. The fact that you receive a 0xFF which means the Tx line goes to high and stays there so this is most likely a result of noise. I don't think you can rely upon it to detect a power on condition.
Email: support@triplc.com
Tel: 1-877-TRI-PLCS

Joel Moore

  • Full Member
  • Posts: 128
    • View Profile
Re:ASCII 255 inserted in response after powerup
« Reply #2 on: October 13, 2004, 08:56:04 AM »
Well, it's not like it arrives on its own when I power up the Triplc.  It only see it when I first attempt to communicate with the controller.  But maybe it's sitting in one of the buffers. I'll do some experimenting to see if that's the case.