Programs: Difference between revisions

Content added Content deleted
Line 23: Line 23:
====Inputs ====
====Inputs ====


While inputs can be read anywhere in your program, it can be helpful to organize them into a small section that can be run through at points where it really matters.
While inputs can be read anywhere in your program, it can be helpful to organize them into a small section that can be run through at points where it really matters. In this example, we have 4 inputs waiting to go ON. These could represent 4 different conveyors coming to the robot.


'''IF DI[101] = ON JMP LBL[4]'''
'''IF DI[101] = ON JMP LBL[4]'''