40DC2M17 Driver/Controller ModuleJ (Jump to Address Multiple Times)CommandJFunction Type SizeJump to Address Multiple Times Program 4Example(Name) J a n ↵Data 1a address (0-511)Data 2n additional loops 0-255ResultnoneThe “J” Command is used (in Program Mode) to execute a jump to a program location repeatedly – thiscommand operates like a FOR loop, allowing a set of commands to be executed up to 255 times. Anotable difference to the J command is that it is placed after the command (or sequence) not before, torepeat them in a loop.The address a must be a valid command target address, and J command loops may not be nested.The n parameter specifies the additional number of loops of commands (or sequences) that will beexecuted, beyond the first one. The final number of sequences will be n + 1.This command is only valid in Program Mode. Following, is an example:P 0 Enters Program Entry Mode, at location zero0 + 1000 Move in the plus direction 1000 steps5 W250 Wait 250mS after completion of the previous move8 -1000 Move in the minus direction 1000 steps13 W250 Wait 250mS after completion of the previous move16 J0 3 Jump Multiple, to location 0, to run 3 additional times20 @ Stop, ends Program Mode when executed21 P Ends Program Entry ModeIn the above example the commands between locations 0 and 16 will be executed 4 total times: oncewhen the program sequence is executed plus three more times resulting from the “J0 3” command.