6.32. JMP(Jump) Jump
6.32. JMP(Jump):Jump
Symbol | |
Relay Combination | |
Factor | label: Numeral(const) that is Label No. or relay |
Description | If Rung is activated, it will jump to the location that has LBL command, which is identical with the value that is designated by label. It can be used as a function to exit from the middle of FOR clause exceptionally when label<0. (skip as the number of times designated as negative number) Caution1) In case when a location of label is upper than the JMP command and there is no condition before the JMP command, it can be fall into an infinite loop. In this case, scan time will exceed 5 seconds so it will set SP17=On. Caution2) In the case when exit from the FOR/NEXT block by using JMP(positive number), block control may cause an error, as there is no additional consideration. In this case, proceed to skip until the NEXT command by using JMP(negative number). |
Usage Example | {|--[XIC(X21)]—-[JMP(25)]-—[……]—-[LBL(25)]--|}: If X21 relay is 1, it will jump to the location where LBL(25) is by JMP(25)command. Even if LBL command is located in other Rung, it will operate normally. |