Programm digital in signal

  • Hello,

    I‘m a greenhorn at robotics but got a problem that needs to be solved.
    I got a screw unit at the robot to fix spare parts in milling machine. I put the Signal to the unit with DO X=[on]. The screw unit do his job and give a Signal back to the robot. On DI10 if it was okay and on DI11 if it was not okay. Program just can Go on if I Gotha signal on 10 (ok), if I got a signal on 11 (not ok) program have to stop and lightning bulb must be activated.
    How can I program this steps?

    Thank you in advance

  • Place your Ad here!
    • Helpful

    Hello,

    I‘m a greenhorn at robotics but got a problem that needs to be solved.
    I got a screw unit at the robot to fix spare parts in milling machine. I put the Signal to the unit with DO X=[on]. The screw unit do his job and give a Signal back to the robot. On DI10 if it was okay and on DI11 if it was not okay. Program just can Go on if I Gotha signal on 10 (ok), if I got a signal on 11 (not ok) program have to stop and lightning bulb must be activated.
    How can I program this steps?

    Thank you in advance

    IF DI[10:]=1 AND DI[11]=OFF, JMP LBL[1] ;

    IF DI[10:]=0 AND DI[11]=ON, JMP LBL[2] ;

  • Don't use the wait statement unless you can't do anything else but wait.


    Always set in a loop and evaluate states. As shown above. You may need to answer other states like "Go Home", "Go maintenance", "Entry Request". I put these is a subroutine and look at them when I'm waiting on something.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account
Sign up for a new account in our community. It's easy!
Register a new account
Sign in
Already have an account? Sign in here.
Sign in Now

Advertising from our partners