18. POINT LOGIC INSTRUCTION

18.1. Overview

POINT_LOGIC instruction is used in conjunction with Time Before/Time After and Distance Before instructions. The normal usage of Time Before and Distance Before instructions is as shown below.

L P[1] 200mm/sec CNT100  TB 1.0 sec,  CALL PROG
L P[1] 200mm/sec CNT100  DB 100.0mm, CALL PROG  

where you create a subprogram called “PROG”.

In place of “CALL PROG”, POINT_LOGIC instruction can be used instead.

L P[1] 200mm/sec CNT100 DB 100.0mm, POINT_LOGIC 

The rules and timing of when POINT_LOGIC instructions are executed is the same as using the normal CALL PROG option.

The advantage of using POINT_LOGIC is that you do not need to create a subprogram. You can think of POINT_LOGIC as an inline program, where you can teach multiple instructions as though it is a Teach Pendant program.

  • Multiple instructions are taught in Point Logic instruction.

  • Each Point Logic instruction of lines is independent. Each Point Logic can have different multiple instructions.

  • Instructions in Point Logic instruction can be executed at teaching point using Timer Before or Distance Before function.

  • Point Logic execution timing can be adjusted with reference to teaching position by changing time value or distance value of the functions.

Figure 87. POINT_LOGIC Instruction

POINT_LOGIC Instruction

18.2. Point Logic Instruction

POINT_LOGIC instruction is used with Time Before (After) or Distance Before function.

Figure 88. POINT_LOGIC Instruction

POINT_LOGIC Instruction

Procedure 14. Inserting a Point Logic Instruction

  1. Move the cursor to the space after Timer Before or Distance Before instruction.

  2. Press F4. Submenu to select instruction part is displayed.

  3. Select ’POINT_LOGIC’. Point Logic instruction is added after Time before or Distance before instruction.

  4. Position the cursor on Logic instruction or top of line and press ENTER key. Edit screen of Point Logic instruction is displayed. If Multi program selection is invalid, edit screen of Point Logic instruction is not used when the program is paused. Abort the program to edit Logic instructions.

  5. Edit instructions for Logic. Operation procedure of this screen is the same as editing of main programs.

  6. Press PREV key when editing of Point Logic statement is finished. Point Logic view screen is displayed. Press Enter key to edit main program or other Point Logic instructions. Edit screen is displayed.

18.3. Point Logic View Function

Point Logic view screen can be used, when Point Logic instructions exist in the programs. Instructions in Point Logic instruction are uncompressed and displayed in view screen. Main program and instructions in Point Logic instruction can be viewed on the same view screen.

Point Logic view screen is displayed when PREV key is pushed in Edit screen. When Point Logic instruction does not exist in the program, view screen cannot be displayed.

Edit screen is displayed when ENTER or F2 (EDIT) key is pushed in View screen. When the cursor positions on line of main program, Edit screen for main program is displayed. When the cursor positions on line of Point Logic instructions, Edit screen for Point Logic instruction is displayed.

In Point Logic view screen, the program cannot be edited. Move to Edit screen by ENTER key and edit the program.

When the program is paused while executing Point Logic instruction, the cursor cannot move to line of main program. Abort the program or execute backward by SHIFT and BWD key to move back cursor to line of main program.

If ‘Multi program selection’ is invalid, the cursor is not stopped in line of Point Logic instructions by manual when the program is paused in main program. The cursor is stopped only line of main program.

Figure 89. POINT_LOGIC View Screen (Main Program)

POINT_LOGIC View Screen (Main Program)

Figure 90. POINT_LOGIC View Instruction (in Logic Statements)

POINT_LOGIC View Instruction (in Logic Statements)

Caution

  • Motion instructions can not added in Point Logic instructions.

  • When line with Logic instruction is copied, instructions in Point Logic instruction are also copied.

  • When Point Logic instruction is overwritten by Call instructions or other instruction, instructions in Point Logic instruction are deleted.

  • When line with Point Logic instruction is deleted, instructions in Point Logic Instruction are also deleted.