02-18-2023 01:20 PM - edited 02-18-2023 01:25 PM
Hi all,
I am currently trying to make a state machine that runs through 2 states alternating but through a loop until a condition is met. Its purpose is to run a machine that is given a certain x-y dimension, then runs through a certain process. The specific process I'm trying to achieve is as follows:
1. give an x-y dimension
2. move machine in the x by one dimension
3. stop, move up in the z direction (to recalibrate and collect data)
4. come down (-z)
5. move in the x again by one dimension
6. once x dimension is met, move down in the y
7. repeat the previous x-z motion but now in the negative x direction
8. once x dimension is met again, move down in the y
each dimensional movement is a state, including start and stop. (start, +x motion, y motion, z motion, -x motion, stop)
id like this process to continue until my y dimension is met, at which point the process stops entirely. I'm mainly getting stuck on the conditionals and how to implement it given the dimension size. any help is appreciated!
02-18-2023 02:43 PM
To guide you, you need to attach the current state of your code.