Author Topic: SERIAL COMMUNICATION  (Read 9135 times)

rnpico

  • Newbie
  • Posts: 5
    • View Profile
SERIAL COMMUNICATION
« on: April 16, 2005, 11:35:28 AM »
How can I know if the T100MD serial port I'm using to communicate with other MODBUS devices it doesn't sending information?

For example, some PLCs brands have a Port Busy bit and a Port communication Error.

The status(2) TBASIC Statement is to know the right or wrong operation in the MODBUS instructions but I couldn't get the port busy bit.

Thank you
 ???

support

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 3170
    • View Profile
    • Internet Programmable PLCs
Re:SERIAL COMMUNICATION
« Reply #1 on: April 18, 2005, 11:35:10 AM »
There is no "port busy" bit because the serial port communication tasks are handled by the interrupts and each time there is an incoming character the interrupt service routine will take over and store the data in the input serial buffer. Likewise when you send a string out of the serial port the interrupt based transmit program will take over when the serial buffer is empty. Hence there is never a need for the PLC software to actively monitor the serial port status.
Email: support@triplc.com
Tel: 1-877-TRI-PLCS