4.8. Flow Control and Other Function Units
4.8. Flow Control and Other Function Units
Flow control functions such as GOTO and CVALL and other functions including GUNSEA and annotation can be input.
Figure 4.12 GOTO statement dialog box
NOTE Branch address in ROBCAD
Step number, function number and label are actually used in Hi5 controller as branch address, just like GOTO. On the other hand, location and function number are used in the ROBCAD simulation as branch address. Therefore, an appropriate conversion must be realized when uploading or downloading.
n Action of download module: Converts a location name into an appropriate step number by determining the nth location in a path Example: IF DI20=1 THEN lo7 → IF DI20=1 THEN S7 Assigns an appropriate row number automatically on a corresponding location of the function, and converts the combination of the location name and function number into this row number Example: GOTO lo7,3 → GOTO 10
n Action of upload module: Converts step number into an appropriate location name by combining path name and number Example: IF DI20=1 THEN S7 → IF DI20=1 THEN hs165_005_7 Converts row number into the combination of the location number and the function number of the corresponding location of the function. Example: GOTO 10 → GOTO lo7,3
n Action of simulation module: When executing CALL statement or JMPP statement, program number will be recognized in job {program No.} format to attempt branching. Example: CALL 2 → Branching to a path named “job2” |