‎03-07-2016 08:17 AM
Hi SJL,
It's been fruastrating because I spent so far 2 months trying to get this done:
if A<=5
and B is pressed
if I ask the machine to go
1->2->3
instead of
1->3
From this description I would be frustrated too - I cannot recognize the logic behind this!
There are just two IF statements, but no THEN… 😄
‎03-07-2016 08:17 AM
Core 1-2 are proper training materials. You can learn a lot from these modules. You can go to your "My account" --> "My NI", and check if you can still access the training videos...
‎03-07-2016 08:24 AM
The logic is:
Say,
LowHeight
Move(destination)
points A,B,C
if (A<=LowHeight && Move(C).pressed=true){
Move(B);
A=B;
}
Move(C)
}
‎03-07-2016 09:47 AM
Hi SJLPHI,
if (A<=LowHeight && Move(C).pressed=true){ Move(B); A=B; } Move(C)
So you check a condition of a Move(C) call before you even call this Move(C)?
But again: use a state machine. Use a shift register to store current conditions of your states (like "Move.pressed")…