How do you control the order of execution of different blocks of ST code?

bharathchari1

Member
Join Date
May 2015
Location
canada
Posts
7
I have a process recipe with 8 steps, each of which I have defined in ST. The user should be able to however, select the order in which these 8 steps are executed. I'm trying to come up with flags or variables which could be used for this but drawing a blank so far. Does anyone have any thoughts on how this could be implemented?

Any help would be much appreciated!!!
 
I have a process recipe with 8 steps, each of which I have defined in ST. The user should be able to however, select the order in which these 8 steps are executed. I'm trying to come up with flags or variables which could be used for this but drawing a blank so far. Does anyone have any thoughts on how this could be implemented?

Any help would be much appreciated!!!

With wich PLC?

If I understand correctly, I would add a IF before the steps, comparing the step value:

Like : if StepNumber (tag) = CurrentStep (another Tag) then....

and at the end : CurrentStep++
 
With an AB PLC. Thanks for the response.

How will the step number be defined by the user? The currentstep counter is maintained by the program, so this looks like it'll increment anytime a step executes.

By " if StepNumber (tag) = CurrentStep (another Tag) then....

and at the end : CurrentStep++"
 
With an AB PLC. Thanks for the response.

How will the step number be defined by the user? The currentstep counter is maintained by the program, so this looks like it'll increment anytime a step executes.

By " if StepNumber (tag) = CurrentStep (another Tag) then....

and at the end : CurrentStep++"

It can be defined by an HMI or stored in your recipe.

In your recipe you can have the parameter StepNumber.

"It will increment each time a step is done yes."

Yes it will, is that a problem? If you want to disable a step or not do it, you could set it at 0 and add a test in your IF.
 

Similar Topics

RS5000 vs.20, 1769-L35E Processor, I have had an issue that I have seemed to work out between all of the PID posts I could find here and listening...
Replies
0
Views
5,397
I was looking for suggestions on how to control order data in a Micrologix 1500. There are only two variables that define an order (length and...
Replies
1
Views
2,804
I have an interesting problem with trying to improve upon an existing control system to control a vehicle throttle (based on speed setting) that...
Replies
17
Views
5,583
Hello everybody, I'm currently working on a project where I need to implement an IoT platform based on Microsoft Azure Cloud. Communication is...
Replies
0
Views
11
I’m attempt to establish a communication between two simulator M580 CPUs, using a READ_VAR, I have two vitalization Windows 10 in VMWare and each...
Replies
3
Views
76
Back
Top Bottom