How to Display Remaining Repeats In IF Loop

  • Hello guys,

    I am trying to figure out how to display the remaining number of repeats in a loop. let say in IF loop.






    IF R[1]>0, JMP LBL[1]

    Now i need to know out of 100 how many time its done or how many remaining during execution. Can somebody help me on that please.

  • AD
  • Just read the value of R[1]. It will start in 100 and decrease by 1 in every cycle, if you use something like R[2] = 100 - R[1] it will show you how many cycles has it done and the value of R[1] itself tells you how many remains to do

    • Helpful

    If you're trying to do it via the teach pendant, just open DATA and scroll to that register. Keep it on that screen and everyone can see how many cycles are left.

    You can also build it into HTML using the teach pendant HMI.

    If you want to do it via an outside interface, throw that data to an output and read it from an HMI.

    If you don't have any of the I/O packages installed (they're ridiculously expensive) set up a group output register with 7 bits and tie a 30 cent BCD converter to a 30 cent 2 digit 7-segment display. Connect to the internal honda 50 port.

    If you want it available via an app or webpage or even ask alexa "how many cycles are left?" message me. I made some pretty awesome modbus interfaces for my students and would be happy to send you one.UZrWE2w.png

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