Hi friends,
In my SPS.SUB I am writing codes for my conveyor and In my main robot program I am having various subprogram. So in the last subprogram I have used a memory variable like, If palletize is over then set 'A' = TRUE
Then in SPS.SUB I am writing when 'A' is TRUE then conveyor forward.
Repeat
conveyorforward
Until sensorB== True ( a next sensor in the conveyor)
wait 0 sec
Then am setting variable 'A' to false
Then in my Mainprogram in have written. When A is false then run the Firstsubprogram.
Question
1.SPS.SUB will we running always since its a subroutine prog. I am connecting my last subprogram and first fubprogram using a memory variable and writing logic for this in SPS.SUB. Is it ok if I am connecting my cycle is SPS.SUB or will it give any problem. In my point of view there shouldnt be any problem but am not sure.
2. Is the above technique is Ok or do you have some better idea?
Thank You