Bbarnett
Member
How would you all approach a system with:
1 robot
2 machines
in/out conveyor
The way I normally approach this is have all tags at the Controller scope:
Continuous task
-Main program
--Main routine (includes JSR instructions to subroutines)
--Input buffer routine
--Cell routine (such as doors, status light, etc.)
--Robot routine
--machine1 routine
--machine2 routine
--conveyor routine
--Output buffer routine
(where all routines contain all relevant logic such as alarms, logic, etc.)
Not sure if the 'standard' way would be something like below with as many tags in the Local scope and making use of parameters:
Continuous task
-Main program
--Main routine (any global things like 1s timer, etc.)
-Cell program
--Door routine
--Status light routine
-Robot program
--Input buffer routine
--Alarm routine
--Logic routines
--Output buffer routine
-Machine1 program
--Input buffer routine
--Alarm routine
--Logic routines
--Output buffer routine
-Machine2 program
--Input buffer routine
--Alarm routine
--Logic routines
--Output buffer routine
-Conveyor program
--Input buffer routine
--Alarm routine
--Logic routines
--Output buffer routine
1 robot
2 machines
in/out conveyor
The way I normally approach this is have all tags at the Controller scope:
Continuous task
-Main program
--Main routine (includes JSR instructions to subroutines)
--Input buffer routine
--Cell routine (such as doors, status light, etc.)
--Robot routine
--machine1 routine
--machine2 routine
--conveyor routine
--Output buffer routine
(where all routines contain all relevant logic such as alarms, logic, etc.)
Not sure if the 'standard' way would be something like below with as many tags in the Local scope and making use of parameters:
Continuous task
-Main program
--Main routine (any global things like 1s timer, etc.)
-Cell program
--Door routine
--Status light routine
-Robot program
--Input buffer routine
--Alarm routine
--Logic routines
--Output buffer routine
-Machine1 program
--Input buffer routine
--Alarm routine
--Logic routines
--Output buffer routine
-Machine2 program
--Input buffer routine
--Alarm routine
--Logic routines
--Output buffer routine
-Conveyor program
--Input buffer routine
--Alarm routine
--Logic routines
--Output buffer routine