I am trying to make a machine tending program for multiple products and I want to make it a little bit simple to read. I Would like to create a main program were I can call two diffrent programs. Those three
1:Loading
2:Unloading
As I mentioned it is for more than one product. Those product have don't have one place but are put in a rack. Because of this I want to know if i can put parameters on a program or is it only on a function. I would like to do the following program as my main program
.PROGRAM Main()
SPEED 10 ALWAYS
Case structure for Place A
Call Loading(Place A)
Case structure for Place B
Call Loading(Place B)
Etc. for place C,D,E,F,G
.END
Is this possible or do I need to make the program 'Loading' a function in the program Main?