Subroutines for SFC

adam2392

Member
Join Date
Jul 2013
Location
San Franciscso
Posts
5
Hi,

I am programming using mainly SFC's and structured text in RSLogix5000
I am making subroutines for my main SFC's, and many of my SFC's have the same structure, and paramater names. They are just repeated instances of a similar cycle (e.g. wash1, wash 2, wash3). The difference is the paramater values change for each wash.

Currently I am using structured text to manually set the parameter values for each "wash" routine (e.g. PH_WASH := 20;), and then calling that structured text as a subroutine in my SFC. Is there a way to re-use the same SFC for each of these instances? If so how do I re-use my structured text subroutines to call different paramater values. However, I don't want to make a routine for each repeating wash I have because I feel there is an easier way to pass paramater values. Can any1 give me some advice, or help?
 
You can make subroutines with inputs and outputs
you can ask in a subroutine for a specific variable somehwere else like in the globals.
 

Similar Topics

Hi All, I'm hoping someone may be able to shed some light on the following questions concerning executing subroutines written as SFC's in RSLogix...
Replies
9
Views
10,126
I have been asked to extensively modify a piece of machinery that is very mission critical to the operation, thus not allowed much downtime or...
Replies
4
Views
2,281
We have an application where we need to indicate a piece of machinery needs maintenance. I have created a routine which resets a value of "days...
Replies
12
Views
3,720
Hi all. Please see attached. Tried to google the error with absolutely no results. I did the same at payed version and real PLC so I'm almost...
Replies
7
Views
2,334
hello all is there a rule of thumb as to using or not using subroutines when writing a program ? i am using an Allen Bradley slc 500 thank you...
Replies
5
Views
1,733
Back
Top Bottom