Author Topic: Serial Communication  (Read 11464 times)

DLUN

  • Newbie
  • Posts: 18
    • View Profile
Serial Communication
« on: June 08, 2011, 08:16:30 AM »
Hello.

I am trying to communicate with a datalogger vis RS232. The datalogger does not follow any standard protocols, but simply writes whatever is sent to it into a txt file.

According to the datalogge instructions, it requires the following format:
-Baud Rate 9600
- 8 bits
- no stop bits
- 1 parity bit
- disable flow control (if necessary)

What PLC commands can I use to customize this communication format.

Cheers.

support

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 3174
    • View Profile
    • Internet Programmable PLCs
Re:Serial Communication
« Reply #1 on: June 08, 2011, 02:30:24 PM »
I assume you are using our Super PLC - Nano10, FMD, F-series or T100MD+.

Then you just need to run the following statement once during startup:

  SETBAUD 1,3

this will set the PLC's RS232 port to 9600 bps, 8 data bit, 1 stop bit, no parity. Hardware handshake is not used by any of our PLCs.
Email: support@triplc.com
Tel: 1-877-TRI-PLCS

DLUN

  • Newbie
  • Posts: 18
    • View Profile
Re:Serial Communication
« Reply #2 on: June 08, 2011, 02:48:05 PM »
Thanks.

The problem I was having was that the rx pin was pin # 3 on the datalogger I purchased. Since both the datalogger and the PLC were female ended RS232, a standard cable did not make this adjustment.

Cheers.