Best way to send multiple serial commands

A_G

Lifetime Supporting Member
Join Date
Jul 2014
Location
MA
Posts
370
What is the best way to send multiple serial ASCII commands from a Compactlogix PLC to another piece of equipment? The issue is that the equipment (a chiller) can not accept more than 1 serial command at a time, and it needs at least 0.25 sec (according to the user manual) interval between commands.

At first I thought I was going to have to send only 2 commands. So I used a 1 second timer. The idea was to send the 1st command when the timer accum value was < 0.5 s, and the 2nd command when the timer accum value > 0.5 s.

Now it turns out I may need to send 5 or more commands. I guess I could do it the way I planned originally. Send Command 1 during accum < 0.5s, send Command 2 during 0.5 s < accum < 1s, send Command 3 during 1s < accum < 1.5 s, etc. I could increase the timer Preset as much as I need.

Just wondering if there is another way to do it? Will my method work?

Thanks in advance!
 
Taking from CommissioningMan's advice, I'd put all the commands you'll ever use in an array of strings.

Your FIFO buffer would just be an array of INT's with the index of the command to send. This does assume that the command doesn't have something that changes like a setpoint, for example... but even then you can create exception logic for it.
 

Similar Topics

I'm fairly new to the PLC world. We are adding a pc to a line at my work the pc is to track good/bad parts and up/down time of the machine maybe...
Replies
8
Views
2,466
What is the best way to send 4 signals to a counter? On a Micrologix 1000 I need to show 4 counts on every cycle of the press. That is every time...
Replies
11
Views
7,994
Compactlogix controller, program has 28 conveyors that use TON's to start the conveyors. The TT sounds a warning horn during start and the DN...
Replies
10
Views
486
I have S7 1512C controler for controlling 48 PID temperature loop, the output is PWM. Please I need the best, most efficient way to write the...
Replies
13
Views
604
I am going to need to use HART multi-drop in order to handle a series of Vega Radar units. There are a lot of options and I'm wondering what...
Replies
3
Views
254
Back
Top Bottom