Author Topic: Fastest possible Communication's  (Read 11252 times)

Tim C

  • Newbie
  • Posts: 11
  • Help Help Help!
    • View Profile
Fastest possible Communication's
« on: August 29, 2004, 05:38:53 PM »
I am only receiving a responce to the Comands sent out, about every 20 ms at 38400 with a direct serial connection , my code is only sending one command at a time. because it needs to know what command was sent, so it will know where to put the responce data. I get about  8% CPU usage, and that is pretty good so i dont want to mess that up. With this senerio i can only expect to update 50 tags a second. Can anyone Tell me a Better way to do this, or is this as good as I'm going to get. Im using Visual Basic with the MScom control and the
highest baud setting that is common to both the T100MD
and the MScom is 38400. Thanks for any suggestions
 

support

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 3174
    • View Profile
    • Internet Programmable PLCs
Re:Fastest possible Communication's
« Reply #1 on: August 30, 2004, 01:17:04 AM »
You can use the SETSYSTEM 3,0 to turn off delay introduced by the CPU when responding to serial command. That will speed up response to command from VBASIC.

Note that this command should not be used if you need to communicate with the PLC using Auto485 via COMM3 port as there is no turn around delay for the auto-turnaround feature to work properly.
Email: support@triplc.com
Tel: 1-877-TRI-PLCS

Tim C

  • Newbie
  • Posts: 11
  • Help Help Help!
    • View Profile
Re:Fastest possible Communication's
« Reply #2 on: September 02, 2004, 10:00:04 AM »
Thanks, I'll try that.