Author Topic: How to send an ASCII break from Com port?  (Read 20848 times)

seimac

  • Newbie
  • Posts: 2
  • I love YaBB 1G - SP1!
    • View Profile
How to send an ASCII break from Com port?
« on: December 03, 2003, 09:45:33 AM »
Hi,

I am wondering if it is possible to send an ASCII break from the T100MD888+ PLC?  I have equipment that requires an ASCII break to be issued before communications can start.
« Last Edit: December 31, 1969, 04:00:00 PM by 1076562000 »

support

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 3174
    • View Profile
    • Internet Programmable PLCs
Re: How to send an ASCII break from Com port?
« Reply #1 on: December 04, 2003, 08:45:25 AM »
What is the ASCII code for the "ASCII Break" that you mentioned? You can use the OUTCOMM command to send any binary data from 0 to 255. However, it is assumed that the data are transmitted using the NRZ format of 1 start bit, 8 data bit, 1 stop bit and no parity.
« Last Edit: December 31, 1969, 04:00:00 PM by 1076562000 »
Email: support@triplc.com
Tel: 1-877-TRI-PLCS

seimac

  • Newbie
  • Posts: 2
  • I love YaBB 1G - SP1!
    • View Profile
Re: How to send an ASCII break from Com port?
« Reply #2 on: December 05, 2003, 01:06:21 AM »
An ASCII break is not a character, but rather a level on the transmit line.  The break is a SPACE (logic 0) on the transmit line for a set duration, longer than the time for a character.  In my case, I need to send a break of 100 mS duration to 'wake-up' my piece of equipment so I can send other commands to it over the serial line.  Sending a NULL (0x00) won't work, as this is a valid ASCII character.
« Last Edit: December 31, 1969, 04:00:00 PM by 1076562000 »

support

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 3174
    • View Profile
    • Internet Programmable PLCs
Re: How to send an ASCII break from Com port?
« Reply #3 on: December 05, 2003, 06:04:00 PM »
Unfortunately the command set does not support the RS232 break signal that you mentioned. You will probably need to use a relay to switch out the RS232 transmit line and connect it to a +5V or higher when you want to send that 100ms "break" signal.
« Last Edit: December 31, 1969, 04:00:00 PM by 1076562000 »
Email: support@triplc.com
Tel: 1-877-TRI-PLCS