Hi all! I am using unitronics Unistream plc, controlling two axis X and Y of polishing machine. Control is very simple as I have movement in each direction one by another. So to say I go 100 cm in X than 11 cm Y, than again back 100 in x etc..... I did this by having greater or equal or less then equal block and checking when value from counter reaches value, motor stops and activate another axis and same way. It is working , but thing is when for example someone needs to change movement direction i need to change complete LD block......or made few , so for each movement pattern.
I was thinking maybe to implement arrays and to fill array with cordinates and when X starts from 0 it reads array 0 where max count number, direction etc are store and next step, so when it reaches it moves to array 1 where again, next step are stored....and so again.
Or if someone had better idea/approach I am open to suggestions, i working with unitronics unistream plc, but idea can be implemented from other too.
Also, we have 32 pulses per each cm of movement, but this is not servo or so, as precision is not key factor, where +/- 2 cm is great. in my approach now I am satisfied with it, but as I say, I would like to get it more flexible, than full LD with bunch of great or equal compare blocks......plus setting/reseting many coils on each rung so that plc knows what to do after it count to end of each movement.
I was thinking maybe to implement arrays and to fill array with cordinates and when X starts from 0 it reads array 0 where max count number, direction etc are store and next step, so when it reaches it moves to array 1 where again, next step are stored....and so again.
Or if someone had better idea/approach I am open to suggestions, i working with unitronics unistream plc, but idea can be implemented from other too.
Also, we have 32 pulses per each cm of movement, but this is not servo or so, as precision is not key factor, where +/- 2 cm is great. in my approach now I am satisfied with it, but as I say, I would like to get it more flexible, than full LD with bunch of great or equal compare blocks......plus setting/reseting many coils on each rung so that plc knows what to do after it count to end of each movement.