prompt in the middle of loop operation
I have a fixture that has limited posts and I would like to be able to run all the way down, then start at the beginning again to run more parts than the fixture is capable of holding. is there a way to add a prompt in the VB script that would stop the program until the operator clicked "ok" so that they have time to load the next set of parts? for example I have six post but regularly run 8 parts so after part 6 I would like a prompt before it returns to my first post so that they aren't trying to load parts while the machine is running. below is an example of the script I'm currently using.
IF Group_INDEX=1 THEN
varX = 0
varY = 0
varZ = 0
ELSEIF Group_INDEX=2 THEN
varX = 0
varY = 9.6
varZ = 0
ELSEIF Group_INDEX=3 THEN
varX = 0
varY = 19.2
varZ = 0
ELSEIF Group_INDEX=4 THEN
varX = 0
varY = 28.8
varZ = 0
ELSEIF Group_INDEX=5 THEN
varX = 0
varY = 38.4
varZ = 0
ELSEIF Group_INDEX=6 THEN
varX = 0
varY = 48
varZ = 0
ELSEIF Group_INDEX=7 THEN
varX = 0
varY = 0
varZ = 0
ELSEIF Group_INDEX=8 THEN
varX = 0
varY = 9.6
varZ = 0
END IF