Universal Robots Forum

Pallet program, start with Wong number


I have to type zero for it to start with No. 1, if i type 1 it starts with no. 2 and so on. it is always counts incorrectly, how do I get it to take the number that I type? (see the program via the link below)
Sorry I started a new thread with this topic, but I can not see the answers to the first topic I created here in the forum?

Google Photos

cnt_1 = cnt_1 + 1
on the line following the operator assignment?

Thanks, i will try that

Thank you very much, it works, however it should be minus 1
cnt_1 = cnt_1 - 1