Navigation

  • Page 1

    www.anilam.com 6000M Integral Programmable Intelligence User’s Guide

  • Page 2

    Integral Programmable Intelligence User’s Guide P/N 70000488C - Warranty All rights reserved. Subject to change without notice. iii 31-October-04 Warranty ANILAM warrants its products to be free from defects in material and workmanship for one (1) year from date of installation. At our ...

  • Page 3

    Integral Programmable Intelligence User’s Guide P/N 70000488C - Contents All rights reserved. Subject to change without notice. v 31-October-04 Section 1 - Introduction Section 2 - Software Physical Inputs .....................................................................................

  • Page 4

    Integral Programmable Intelligence User’s Guide P/N 70000488C - Contents vi All rights reserved. Subject to change without notice. 31-October-04 Optimizing the Development Cycle .................................................................................................. 3-5 IPI Fi...

  • Page 5

    Integral Programmable Intelligence User’s Guide P/N 70000488C - Introduction All rights reserved. Subject to change without notice. 1-1 31-October-04 Section 1 - Introduction Traditionally, inputs and outputs between the CNC and the machine required numerous relays to switch signals betwe...

  • Page 6

    Integral Programmable Intelligence User’s Guide P/N 70000488C - Software All rights reserved. Subject to change without notice. 2-1 31-October-04 Section 2 - Software The CNC software provides a simple environment for the development of IPI programs. The environment allows IPI program d...

  • Page 7

    Integral Programmable Intelligence User’s Guide P/N 70000488C - Software 2-2 All rights reserved. Subject to change without notice. 31-October-04 Physical Outputs The following physical outputs are described in this section: X41 Outputs I/O Module Outputs X41 Outputs Refer 10,to ...

  • Page 8

    Integral Programmable Intelligence User’s Guide P/N 70000488C - Software All rights reserved. Subject to change without notice. 2-3 31-October-04 Table 2-1, X42 IPI Inputs 37-pin IPI Assignment Color 1 X0:0 **XHOME BLK 2 X0:1 **YHOME RED 3 X0:2 **ZHOME WHT 4 X0:3 **CNCACK GRN 5 X...

  • Page 9

    Integral Programmable Intelligence User’s Guide P/N 70000488C - Software 2-4 All rights reserved. Subject to change without notice. 31-October-04 Table 2-3, I/O Module Input Assignments X3 X4 Terminal Assignment Terminal Assignment 1 2 1 2 1 X1:0 X2:0 1 X1:16 X2:16 2 X1:1 X2:1 ...

  • Page 10

    Integral Programmable Intelligence User’s Guide P/N 70000488C - Software All rights reserved. Subject to change without notice. 2-5 31-October-04 Table 2-4, X41 IPI Outputs 37-pin IPI Assignment Color 1 BLK 2 RED 3 WHT 4 GRN 5 ORN 6 BLU 7 BRN 8 YEL 9 Y0:0 SSK1-CNCON VIOL ...

  • Page 11

    Integral Programmable Intelligence User’s Guide P/N 70000488C - Software 2-6 All rights reserved. Subject to change without notice. 31-October-04 Table 2-5, I/O Module Output Assignments X7 X8 Terminal Assignment Terminal Assignment 1 2 1 2 1 Y1:0 Y2:0 1 Y1:16 Y2:16 2 Y1:1...

  • Page 12

    Integral Programmable Intelligence User’s Guide P/N 70000488C - Software All rights reserved. Subject to change without notice. 2-7 31-October-04 Table 2-6, Manual Panel Inputs and Assigned Lables IPI Register Assigned Label Assignment X0:100 M3KEY SPINDLE FORWARD X0:101 M5KEY SPINDLE ...

  • Page 13

    Integral Programmable Intelligence User’s Guide P/N 70000488C - Software 2-8 All rights reserved. Subject to change without notice. 31-October-04 The IPI Operation Cycle The following, is a description of the IPI operation cycle: 1. Upon activation, IPI clears all memory registers and...

  • Page 14

    Integral Programmable Intelligence User’s Guide P/N 70000488C - Software All rights reserved. Subject to change without notice. 2-9 31-October-04 Table 2-7, Register Capabilities Register Type Numeric Values State Values Inputs - X Identifiers X Outputs - Y Identifiers X Sequence Outpu...

  • Page 15

    Integral Programmable Intelligence User’s Guide P/N 70000488C - Software 2-10 All rights reserved. Subject to change without notice. 31-October-04 General-Purpose, Multifunction Registers M00–M255 are general-purpose, multifunction registers. They are read and write registers that s...

  • Page 16

    Integral Programmable Intelligence User’s Guide P/N 70000488C - Software All rights reserved. Subject to change without notice. 2-11 31-October-04 Static M Registers - M240 to M255 The CNC reserves a range of 16 M registers (M240–M255) that you can use to store values you might need af...

  • Page 17

    Integral Programmable Intelligence User’s Guide P/N 70000488C - Software 2-12 All rights reserved. Subject to change without notice. 31-October-04 Table 2-8, R Registers, Assigned Read Only Multifunction (Continued) R Register Assigned LabelPurpose R15 HOMING Used to indicate when homi...

  • Page 18

    Integral Programmable Intelligence User’s Guide P/N 70000488C - Software All rights reserved. Subject to change without notice. 2-13 31-October-04 Table 2-8, R Registers, Assigned Read Only Multifunction (Continued) R Register Assigned LabelPurpose R44 PRBFLAG Read only register R44 is t...

  • Page 19

    Integral Programmable Intelligence User’s Guide P/N 70000488C - Software 2-14 All rights reserved. Subject to change without notice. 31-October-04 W Registers The IPI generates and the CNC internally monitors W00–W255. You can consider these registers inputs from the IPI to the CNC....

  • Page 20

    Integral Programmable Intelligence User’s Guide P/N 70000488C - Software All rights reserved. Subject to change without notice. 2-15 31-October-04 Table 2-10, W Registers, Assigned Read/Write multifunction (Continued) Register Assigned Label Feature Definition W13 SPDLDIR Spindle Directi...

  • Page 21

    Integral Programmable Intelligence User’s Guide P/N 70000488C - Software 2-16 All rights reserved. Subject to change without notice. 31-October-04 Table 2-10, W Registers, Assigned Read/Write multifunction (Continued) Register Assigned Label Feature Definition W36 TOOLGRD Tool Guard Ho...

  • Page 22

    Integral Programmable Intelligence User’s Guide P/N 70000488C - Software All rights reserved. Subject to change without notice. 2-17 31-October-04 Table 2-10, W Registers, Assigned Read/Write multifunction (Continued) Register Assigned Label Feature Definition W56 YSSTOP Y-axis Stop/Star...

  • Page 23

    Integral Programmable Intelligence User’s Guide P/N 70000488C - Software 2-18 All rights reserved. Subject to change without notice. 31-October-04 W10-HWSTOP Handwheel Stop. Set to true (nonzero) to stop handwheel operations. Set register to 0 (zero) to allow handwheel operations. W...

  • Page 24

    Integral Programmable Intelligence User’s Guide P/N 70000488C - Software All rights reserved. Subject to change without notice. 2-19 31-October-04 Table 2-11, Available Multifunction Register Ranges Displayed on the IPI Monitor Range No. Mreg Range Range No. Mreg Range Range No. Mreg R...

  • Page 25

    Integral Programmable Intelligence User’s Guide P/N 70000488C - Software 2-20 All rights reserved. Subject to change without notice. 31-October-04 W18-KEYMASK The IPI program uses W18-KEYMASK to mask out certain keys from the operator. W18 contains a bit value; each bit corresponds to...

  • Page 26

    Integral Programmable Intelligence User’s Guide P/N 70000488C - Software All rights reserved. Subject to change without notice. 2-21 31-October-04 W20-LNFDLIM Linear Axis feed limit. When the IPI writes a number to this register, linear axes will run at the value stored in register W20....

  • Page 27

    Integral Programmable Intelligence User’s Guide P/N 70000488C - Software 2-22 All rights reserved. Subject to change without notice. 31-October-04 W22-RREGRAN W22-RREGRAN allows you to cycle through the range of Read Only multifunction registers displayed on the IPI monitor. There are...

  • Page 28

    Integral Programmable Intelligence User’s Guide P/N 70000488C - Software All rights reserved. Subject to change without notice. 2-23 31-October-04 W23-WREGRAN W23-WREGRAN allows you to cycle through the range of Read/Write multifunction registers displayed on the IPI monitor. There are ...

  • Page 29

    Integral Programmable Intelligence User’s Guide P/N 70000488C - Software 2-24 All rights reserved. Subject to change without notice. 31-October-04 P Registers P (Parameter) registers store CNC Parameters set by the Setup Utilities. These registers are read-only to the IPI. You can us...

  • Page 30

    Integral Programmable Intelligence User’s Guide P/N 70000488C - Software All rights reserved. Subject to change without notice. 2-25 31-October-04 IPI Monitor The state value stored in input registers, output registers, timer registers, and multifunction registers is viewed from the IPI ...

  • Page 31

    Integral Programmable Intelligence User’s Guide P/N 70000488C - Software 2-26 All rights reserved. Subject to change without notice. 31-October-04 The IPI Monitor displays the numeric values for the following registers: M, S, T, and H codes from the CNC M, R, and W IPI registers M...

  • Page 32

    Integral Programmable Intelligence User’s Guide P/N 70000488C - Software All rights reserved. Subject to change without notice. 2-27 31-October-04 Figure 2-2, CNC Flags CNC FlagsSpindle Enable(SPINDLE - R01)In Position(POSN - R02)Feed Mode(FEED - R03)24V Power Fail(PWRFAIL - R04)Manual ...

  • Page 33

    Integral Programmable Intelligence User’s Guide P/N 70000488C - Software 2-28 All rights reserved. Subject to change without notice. 31-October-04 Figure 2-3, IPI Flags IPI FlagsFeed Hold(FHOLD - W02)Tool Changer Finished(TCHGFIN - W03)External Start(XSTART - W04)External Stop(XSTOP -...

  • Page 34

    Integral Programmable Intelligence User’s Guide P/N 70000488C - Working with IPI All rights reserved. Subject to change without notice. 3-1 31-October-04 Section 3 - Working with IPI The CNC is configured with the ANILAM IPI. The system is ready for you to program IPI. Programming the I...

  • Page 35

    Integral Programmable Intelligence User’s Guide P/N 70000488C - Working with IPI 3-2 All rights reserved. Subject to change without notice. 31-October-04 Accessing Select Options Menu Refer to Figure 3-1 for the menus referenced in this procedure. To access IPI, perform the following ...

  • Page 36

    Integral Programmable Intelligence User’s Guide P/N 70000488C - Working with IPI All rights reserved. Subject to change without notice. 3-3 31-October-04 To create a new IPI program, perform the following steps: 1. From Menu B, Select Options Menu, highlight New Program, and press ENTER....

  • Page 37

    Integral Programmable Intelligence User’s Guide P/N 70000488C - Working with IPI 3-4 All rights reserved. Subject to change without notice. 31-October-04 Figure 3-5, Select program Menu 2. Highlight the desired program name and press ENTER. The selected program will be loaded when yo...

  • Page 38

    Integral Programmable Intelligence User’s Guide P/N 70000488C - Working with IPI All rights reserved. Subject to change without notice. 3-5 31-October-04 Figure 3-7, Compiling and Loading a Program The compiler activates and the screen displays compiling status, errors, and warnings. 3. ...

  • Page 39

    Integral Programmable Intelligence User’s Guide P/N 70000488C - Working with IPI 3-6 All rights reserved. Subject to change without notice. 31-October-04 IPI File Management Soft Keys The IPI software allows you to use soft keys to perform various file management tasks. To perform any...

  • Page 40

    Integral Programmable Intelligence User’s Guide P/N 70000488C - Writing IPI Programs All rights reserved. Subject to change without notice. 4-1 31-October-04 Section 4 - Writing IPI Programs How the Interpreter Uses Instructions The IPI interpreter operates serially. It never calculates ...

  • Page 41

    Integral Programmable Intelligence User’s Guide P/N 70000488C - Writing IPI Programs 4-2 All rights reserved. Subject to change without notice. 31-October-04 Program START and END Instructions The START instruction informs the interpreter where to begin each program cycle. The START i...

  • Page 42

    Integral Programmable Intelligence User’s Guide P/N 70000488C - Writing IPI Programs All rights reserved. Subject to change without notice. 4-3 31-October-04 Operation Codes IPI uses operation codes to identify different operations. Operation codes inform the IPI of the following: What ...

  • Page 43

    Integral Programmable Intelligence User’s Guide P/N 70000488C - Writing IPI Programs 4-4 All rights reserved. Subject to change without notice. 31-October-04 Expression results are converted to states or values as necessary to complete an operation. Refer to Table 4-2. Expression res...

  • Page 44

    Integral Programmable Intelligence User’s Guide P/N 70000488C - Writing IPI Programs All rights reserved. Subject to change without notice. 4-5 31-October-04 Binary, octal, decimal, and hex values will all be accepted. The default base is decimal. To designate another base, insert the ba...

  • Page 45

    Integral Programmable Intelligence User’s Guide P/N 70000488C - Writing IPI Programs 4-6 All rights reserved. Subject to change without notice. 31-October-04 Finish Signal Generation Generation of a proper finish signal is critical for proper IPI/CNC interaction. Refer to Figure 4-2. ...

  • Page 46

    Integral Programmable Intelligence User’s Guide P/N 70000488C - Writing IPI Programs All rights reserved. Subject to change without notice. 4-7 31-October-04 IPI Operation Set IPI programs can be written in various degrees of complexity. Available instruction sets include the following, ...

  • Page 47

    Integral Programmable Intelligence User’s Guide P/N 70000488C - Writing IPI Programs 4-8 All rights reserved. Subject to change without notice. 31-October-04 Table 4-5 provides a summary of available IPI operation codes. Refer to 51,Table 4-6, Detailed 51,Descriptions and Examples o...

  • Page 48

    Integral Programmable Intelligence User’s Guide P/N 70000488C - Writing IPI Programs All rights reserved. Subject to change without notice. 4-9 31-October-04 Table 4-5, Summary of IPI Operands (Continued) Operand Function OR See 58,page 58,4-19. Performs Boolean logic OR function using ...

  • Page 49

    Integral Programmable Intelligence User’s Guide P/N 70000488C - Writing IPI Programs 4-10 All rights reserved. Subject to change without notice. 31-October-04 Table 4-5, Summary of IPI Operands (Continued) Operand Function INV See 63,page 63,4-24. Inverts specified element. Inverts c...

  • Page 50

    Integral Programmable Intelligence User’s Guide P/N 70000488C - Writing IPI Programs All rights reserved. Subject to change without notice. 4-11 31-October-04 Table 4-5, Summary of IPI Operands (Continued) Operand Function SOTI See 87,page 87,6-9. Super OTI works like OTI but the number...

  • Page 51

    Integral Programmable Intelligence User’s Guide P/N 70000488C - Writing IPI Programs 4-12 All rights reserved. Subject to change without notice. 31-October-04 Table 4-6, Detailed Descriptions and Examples of Operands LD Syntax Valid Elements Loads new element’s state value into curre...

  • Page 52

    Integral Programmable Intelligence User’s Guide P/N 70000488C - Writing IPI Programs All rights reserved. Subject to change without notice. 4-13 31-October-04 Table 4-6, Detailed Descriptions and Examples of Operands (Continued) Examples Explanation LD Example #3 Expression used as elemen...

  • Page 53

    Integral Programmable Intelligence User’s Guide P/N 70000488C - Writing IPI Programs 4-14 All rights reserved. Subject to change without notice. 31-October-04 Table 4-6, Detailed Descriptions and Examples of Operands (Continued) LDI Syntax Valid Elements Loads element’s state value t...

  • Page 54

    Integral Programmable Intelligence User’s Guide P/N 70000488C - Writing IPI Programs All rights reserved. Subject to change without notice. 4-15 31-October-04 Table 4-6, Detailed Descriptions and Examples of Operands (Continued) MOV Syntax Valid Elements Without qualification, a value or ...

  • Page 55

    Integral Programmable Intelligence User’s Guide P/N 70000488C - Writing IPI Programs 4-16 All rights reserved. Subject to change without notice. 31-October-04 Table 4-6, Detailed Descriptions and Examples of Operands (Continued) AND Syntax Valid Elements Performs a Boolean logic AND fu...

  • Page 56

    Integral Programmable Intelligence User’s Guide P/N 70000488C - Writing IPI Programs All rights reserved. Subject to change without notice. 4-17 31-October-04 Table 4-6, Detailed Descriptions and Examples of Operands (Continued) Examples Explanation AND ( M100 OR X0:9 ) O...

  • Page 57

    Integral Programmable Intelligence User’s Guide P/N 70000488C - Writing IPI Programs 4-18 All rights reserved. Subject to change without notice. 31-October-04 Table 4-6, Detailed Descriptions and Examples of Operands (Continued) Examples Explanation ANI Example #1 ANI X0:9 Inverse sta...

  • Page 58

    Integral Programmable Intelligence User’s Guide P/N 70000488C - Writing IPI Programs All rights reserved. Subject to change without notice. 4-19 31-October-04 Table 4-6, Detailed Descriptions and Examples of Operands (Continued) Examples Explanation ANI X0:3 State value stored in input re...

  • Page 59

    Integral Programmable Intelligence User’s Guide P/N 70000488C - Writing IPI Programs 4-20 All rights reserved. Subject to change without notice. 31-October-04 Table 4-6, Detailed Descriptions and Examples of Operands (Continued) Examples Explanation OR Example #1 LD X1:0 ...

  • Page 60

    Integral Programmable Intelligence User’s Guide P/N 70000488C - Writing IPI Programs All rights reserved. Subject to change without notice. 4-21 31-October-04 Table 4-6, Detailed Descriptions and Examples of Operands (Continued) Examples Explanation OR Example #2 LD ( X1:0 AND M100 ...

  • Page 61

    Integral Programmable Intelligence User’s Guide P/N 70000488C - Writing IPI Programs 4-22 All rights reserved. Subject to change without notice. 31-October-04 Table 4-6, Detailed Descriptions and Examples of Operands (Continued) ORI Syntax Valid Elements Performs a Boolean logic OR fun...

  • Page 62

    Integral Programmable Intelligence User’s Guide P/N 70000488C - Writing IPI Programs All rights reserved. Subject to change without notice. 4-23 31-October-04 Table 4-6, Detailed Descriptions and Examples of Operands (Continued) Examples Explanation ORI X1:5 OUT M55 ...

  • Page 63

    Integral Programmable Intelligence User’s Guide P/N 70000488C - Writing IPI Programs 4-24 All rights reserved. Subject to change without notice. 31-October-04 Table 4-6, Detailed Descriptions and Examples of Operands (Continued) Examples Explanation ORI T25 OUT M70 Time...

  • Page 64

    Integral Programmable Intelligence User’s Guide P/N 70000488C - Writing IPI Programs All rights reserved. Subject to change without notice. 4-25 31-October-04 Table 4-6, Detailed Descriptions and Examples of Operands (Continued) Examples Explanation INV Example #1 INV Y0:4 State value o...

  • Page 65

    Integral Programmable Intelligence User’s Guide P/N 70000488C - Writing IPI Programs 4-26 All rights reserved. Subject to change without notice. 31-October-04 Table 4-6, Detailed Descriptions and Examples of Operands (Continued) ANB Syntax Valid Elements Performs Boolean AND function w...

  • Page 66

    Integral Programmable Intelligence User’s Guide P/N 70000488C - Writing IPI Programs All rights reserved. Subject to change without notice. 4-27 31-October-04 Table 4-6, Detailed Descriptions and Examples of Operands (Continued) Examples Explanation OR X1:2 LD ( M100 OR ...

  • Page 67

    Integral Programmable Intelligence User’s Guide P/N 70000488C - Writing IPI Programs 4-28 All rights reserved. Subject to change without notice. 31-October-04 Table 4-6, Detailed Descriptions and Examples of Operands (Continued) Examples Explanation ANB M70 Value in previous register,...

  • Page 68

    Integral Programmable Intelligence User’s Guide P/N 70000488C - Writing IPI Programs All rights reserved. Subject to change without notice. 4-29 31-October-04 Table 4-6, Detailed Descriptions and Examples of Operands (Continued) Examples Explanation AND X0:5 ORB Example #2 LD ( X1:2 A...

  • Page 69

    Integral Programmable Intelligence User’s Guide P/N 70000488C - Writing IPI Programs 4-30 All rights reserved. Subject to change without notice. 31-October-04 Table 4-6, Detailed Descriptions and Examples of Operands (Continued) Examples Explanation OUT M55 Copies value in current r...

  • Page 70

    Integral Programmable Intelligence User’s Guide P/N 70000488C - Writing IPI Programs All rights reserved. Subject to change without notice. 4-31 31-October-04 Table 4-6, Detailed Descriptions and Examples of Operands (Continued) Examples Explanation SET Example #1 LD X0:2 ...

  • Page 71

    Integral Programmable Intelligence User’s Guide P/N 70000488C - Writing IPI Programs 4-32 All rights reserved. Subject to change without notice. 31-October-04 Table 4-6, Detailed Descriptions and Examples of Operands (Continued) Examples Explanation RES Example #1 LD X0:3 ...

  • Page 72

    Integral Programmable Intelligence User’s Guide P/N 70000488C - Writing IPI Programs All rights reserved. Subject to change without notice. 4-33 31-October-04 Table 4-6, Detailed Descriptions and Examples of Operands (Continued) Examples Explanation LD ( X1:0 AND M90 ) AND ...

  • Page 73

    Integral Programmable Intelligence User’s Guide P/N 70000488C - Writing IPI Programs 4-34 All rights reserved. Subject to change without notice. 31-October-04 Table 4-6, Detailed Descriptions and Examples of Operands (Continued) DEC Syntax Valid Elements Every cycle that the current re...

  • Page 74

    Integral Programmable Intelligence User’s Guide P/N 70000488C - Programming Tips and Examples All rights reserved. Subject to change without notice. 5-1 31-October-04 Section 5 - Timers Timed events count through as many program cycles as are required in the course of their operation. Th...

  • Page 75

    Integral Programmable Intelligence User’s Guide P/N 70000488C - Programming Tips and Examples 5-2 All rights reserved. Subject to change without notice. 31-October-04 All timer definition instructions use the OUT or MOV operations, as shown 76,in Table 5-1. 76, Refer to Table 5-2, 7...

  • Page 76

    Integral Programmable Intelligence User’s Guide P/N 70000488C - Programming Tips and Examples All rights reserved. Subject to change without notice. 5-3 31-October-04 Table 5-2, Detailed Descriptions and Examples of Operands RD Syntax Valid Elements Loads element value into current regist...

  • Page 77

    Integral Programmable Intelligence User’s Guide P/N 70000488C - Programming Tips and Examples 5-4 All rights reserved. Subject to change without notice. 31-October-04 RST Syntax Valid Elements Restart instruction that restarts countdown timer if current register‘s state value is TRUE...

  • Page 78

    Integral Programmable Intelligence User’s Guide P/N 70000488C - Programming Tips and Examples All rights reserved. Subject to change without notice. 5-5 31-October-04 Timer On (TON) Command In the example in Figure 5-3, input X0:2 initiates the TON command. At 1 second, the input goes hi...

  • Page 79

    Integral Programmable Intelligence User’s Guide P/N 70000488C - Advanced IPI Instructions All rights reserved. Subject to change without notice. 6-1 31-October-04 Section 6 - Advanced IPI Instructions This section describes advanced IPI instructions. IF/ELS/EDF Instructions Conditional s...

  • Page 80

    Integral Programmable Intelligence User’s Guide P/N 70000488C - Advanced IPI Instructions 6-2 All rights reserved. Subject to change without notice. 31-October-04 IF/ELS/EDF sets can be nested. A nested IF/EDF set can be placed within a parent CJP/EJP or IF/EDF set. The nested set mu...

  • Page 81

    Integral Programmable Intelligence User’s Guide P/N 70000488C - Advanced IPI Instructions All rights reserved. Subject to change without notice. 6-3 31-October-04 Table 6-2, Conditional Statement Programming – Examples (Continued) Examples Explanation IFI 25 First Instruction Set ...

  • Page 82

    Integral Programmable Intelligence User’s Guide P/N 70000488C - Advanced IPI Instructions 6-4 All rights reserved. Subject to change without notice. 31-October-04 Conditional Jumps The conditional jump (CLP) instruction acts like an IF/ELS/EDF statement with no instructions given betwe...

  • Page 83

    Integral Programmable Intelligence User’s Guide P/N 70000488C - Advanced IPI Instructions All rights reserved. Subject to change without notice. 6-5 31-October-04 Refer to Table 6-4. Table 6-4, Detailed Descriptions and Examples of Advanced IPI Instructions MVA Syntax Valid Elements Digi...

  • Page 84

    Integral Programmable Intelligence User’s Guide P/N 70000488C - Advanced IPI Instructions 6-6 All rights reserved. Subject to change without notice. 31-October-04 Table 6-4, Detailed Descriptions and Examples of Advanced IPI Instructions (Continued) OTI Syntax Valid Elements Output unt...

  • Page 85

    Integral Programmable Intelligence User’s Guide P/N 70000488C - Advanced IPI Instructions All rights reserved. Subject to change without notice. 6-7 31-October-04 Table 6-4, Detailed Descriptions and Examples of Advanced IPI Instructions (Continued) Example Explanation OTI Example #1 LD X...

  • Page 86

    Integral Programmable Intelligence User’s Guide P/N 70000488C - Advanced IPI Instructions 6-8 All rights reserved. Subject to change without notice. 31-October-04 Table 6-4, Detailed Descriptions and Examples of Advanced IPI Instructions (Continued) OWI Syntax Valid Elements Output Whe...

  • Page 87

    Integral Programmable Intelligence User’s Guide P/N 70000488C - Advanced IPI Instructions All rights reserved. Subject to change without notice. 6-9 31-October-04 Table 6-4, Detailed Descriptions and Examples of Advanced IPI Instructions (Continued) SOTI Syntax Valid Elements Super OTI wo...

  • Page 88

    Integral Programmable Intelligence User’s Guide P/N 70000488C - Advanced IPI Instructions 6-10 All rights reserved. Subject to change without notice. 31-October-04 Table 6-4, Detailed Descriptions and Examples of Advanced IPI Instructions (Continued) Example Explanation SOTI Example #1...

  • Page 89

    Integral Programmable Intelligence User’s Guide P/N 70000488C - Programming Tips and Examples All rights reserved. Subject to change without notice. 7-1 31-October-04 Section 7 - Programming Tips and Examples Compiler Directives A compiler directive is an instruction to the compiler that ...

  • Page 90

    Integral Programmable Intelligence User’s Guide P/N 70000488C - Programming Tips and Examples 7-2 All rights reserved. Subject to change without notice. 31-October-04 RANGE Format: #RANGE [Element] [starting value] [ending value] The range directive defines a numeric range for a specif...

  • Page 91

    Integral Programmable Intelligence User’s Guide P/N 70000488C - Programming Tips and Examples All rights reserved. Subject to change without notice. 7-3 31-October-04 Using Labels Use labels to identify specific inputs, outputs, internal elements, delay times, elements, and other constant...

  • Page 92

    Integral Programmable Intelligence User’s Guide P/N 70000488C - Programming Tips and Examples 7-4 All rights reserved. Subject to change without notice. 31-October-04 Programming Examples This section includes several IPI program examples that include most of 47,the operands described...

  • Page 93

    Integral Programmable Intelligence User’s Guide P/N 70000488C - Programming Tips and Examples All rights reserved. Subject to change without notice. 7-5 31-October-04 *XSTART W04 MREGRAN W17 *XSTOP W05 KEYMASK W18 *XHOLD W06 SPDLRPM W19 *SPDLZERO W07 LNFDLIM W20 *SPDLGRCH W08 ROFDLIM W21 ...

  • Page 94

    Integral Programmable Intelligence User’s Guide P/N 70000488C - Programming Tips and Examples 7-6 All rights reserved. Subject to change without notice. 31-October-04 **M REGISTERS M0 THRU M255 FOR IPI PROGRAMMER USE *M224 THRU M239 IPI AND CNC SHARED REGISTERS *M240 THRU M255 NON-...

  • Page 95

    Integral Programmable Intelligence User’s Guide P/N 70000488C - Programming Tips and Examples All rights reserved. Subject to change without notice. 7-7 31-October-04 #DEFINE X020 X0:20 *X42/21 #DEFINE X021 X0:21 *X42/22 #DEFINE X022 X0:22 *X42/23 #DEFINE X023 X0:23 *X42/24 #DEFINE X0...

  • Page 96

    Integral Programmable Intelligence User’s Guide P/N 70000488C - Programming Tips and Examples 7-8 All rights reserved. Subject to change without notice. 31-October-04 #DEFINE DAYMO M0 *DAY & MONTH (FORMAT "DDMM") #DEFINE YEAR M1 *YEAR (FORMAT "YYYY") #DEFI...

  • Page 97

    Integral Programmable Intelligence User’s Guide P/N 70000488C - Programming Tips and Examples All rights reserved. Subject to change without notice. 7-9 31-October-04 *M50 ENABLE TURRET (example) *M51 DISABLE TURRET (example) **COMMANDS PROGRAMMED BEFORE "START" ...

  • Page 98

    Integral Programmable Intelligence User’s Guide P/N 70000488C - Programming Tips and Examples 7-10 All rights reserved. Subject to change without notice. 31-October-04 ANI ( MM2 OR MM30 ) *DISABLE ON M2 OR M30 RES MM3 *RESET M3: ALLOWS DIRECT DIRECTION CHANGE OUT MM4 *USE TO SET OUTPUT...

  • Page 99

    Integral Programmable Intelligence User’s Guide P/N 70000488C - Programming Tips and Examples All rights reserved. Subject to change without notice. 7-11 31-October-04 EDF EDF EDF IF ( HCODE LE 12 ) *ALLOWS ONLY CHANGES FOR R/W RANGES 0-64 IF CHGR *IF ACTIVE WILL CHANGE R IPI MONIT...

  • Page 100

    Integral Programmable Intelligence User’s Guide P/N 70000488C - Programming Tips and Examples 7-12 All rights reserved. Subject to change without notice. 31-October-04 Program 2 – Binary Encoder Example The following program will read a decimal number from a register, DECIMAL, and se...

  • Page 101

    Integral Programmable Intelligence User’s Guide P/N 70000488C - Programming Tips and Examples All rights reserved. Subject to change without notice. 7-13 31-October-04 IF ( TEMP2 GT 0 ) *TEMP2 WILL BE 0 WHEN FULLY DECODED IF ( TEMP2 GE 8 ) *CAN YOU SUBTRACT 8 FROM DECIMAL? SET ...

  • Page 102

    Integral Programmable Intelligence User’s Guide P/N 70000488C - Programming Tips and Examples 7-14 All rights reserved. Subject to change without notice. 31-October-04 Program 3 – Binary Decoder Example The following program reads a binary encoder for tool position and places the too...

  • Page 103

    Integral Programmable Intelligence User’s Guide P/N 70000488C - Programming Tips and Examples All rights reserved. Subject to change without notice. 7-15 31-October-04 IF BIT8 *CONVERTS BIT 8 TO REGISTER MOV 8 BITREG8 ELS MOV 0 BITREG8 EDF MOV ( BITREG1 + BITREG2 ) BITREG21 MOV ( B...

  • Page 104

    Integral Programmable Intelligence User’s Guide P/N 70000488C - Programming Tips and Examples 7-16 All rights reserved. Subject to change without notice. 31-October-04 Program 5 – IPI Example This program section deals with rotation of magazine, TLSTEP 2 sets magazine rotation contro...

  • Page 105

    Integral Programmable Intelligence User’s Guide P/N 70000488C - Programming Tips and Examples All rights reserved. Subject to change without notice. 7-17 31-October-04 IF 81 MOV 0 TLSTEP * End Tool Change Sequence MOV TOOLREQ M226 * TOOL POT NO REQ TO 1102 MOV TOOLREQ TL_POT_NO R...

  • Page 106

    Integral Programmable Intelligence User’s Guide P/N 70000488C - Index All rights reserved. Subject to change without notice. Index-1 31-October-04 #DEFINE, 7-1 #LIST, 7-1 #MAXSIZE, 7-1 #MAXSTEPS, 7-1 #RANGE, 7-2 #SYNTAX, 7-2 *.DBI instructions, executable, 4-5 *.DBO files, 4-5 +24V on, r...

  • Page 107

    Integral Programmable Intelligence User’s Guide P/N 70000488C - Index Index-2 All rights reserved. Subject to change without notice. 31-October-04 CNCERR, R16, 2-12, 2-13 coil, 4-7 command CLP, 6-1 delayed off, 5-2 delayed on, 5-2 delayed on/off, 5-2 EDF, 6-1 EJP, 6-1 ELSE, 6-1 IF, 6-1...

  • Page 108

    Integral Programmable Intelligence User’s Guide P/N 70000488C - Index All rights reserved. Subject to change without notice. Index-3 31-October-04 E EDF, 4-10, 6-1, 6-2, 6-3, 7-3 edit, an existing program, 3-3 Edit, soft key, 3-6 editor, activating, 3-4 EJP, 4-10, 6-1, 6-4 element names, ...

  • Page 109

    Integral Programmable Intelligence User’s Guide P/N 70000488C - Index Index-4 All rights reserved. Subject to change without notice. 31-October-04 I I/O module input assignments, table, 2-4 inputs, description, 2-1 output assignments, table, 2-6 outputs, description, 2-2 IF, 4-10, 6-1,...

  • Page 110

    Integral Programmable Intelligence User’s Guide P/N 70000488C - Index All rights reserved. Subject to change without notice. Index-5 31-October-04 read registers, 2-11 register capabilities, 2-8 registers, listed, 2-7 software, 2-1 to CNC, example, 2-10 working with, 3-1 IPIMREGS.DAT file...

  • Page 111

    Integral Programmable Intelligence User’s Guide P/N 70000488C - Index Index-6 All rights reserved. Subject to change without notice. 31-October-04 M43LO, P1016, 2-24 M44HI, P1019, 2-24 M44LO, P1018, 2-24 M4KEY, X0:102, 2-7 M5KEY, X0:101, 2-7 M81, 7-14 machine status, 3-5 MAN, R05, 2-11...

  • Page 112

    Integral Programmable Intelligence User’s Guide P/N 70000488C - Index All rights reserved. Subject to change without notice. Index-7 31-October-04 voltage, 2-17 when input, 4-10, 6-8 outputs capabilities, 2-9 format, 2-2 I/O module, description, 2-2 physical, listed, 2-2 sequence, capabil...

  • Page 113

    Integral Programmable Intelligence User’s Guide P/N 70000488C - Index Index-8 All rights reserved. Subject to change without notice. 31-October-04 R37, ZMACHPOS, 2-12 R38, UMACHPOS, 2-12 R39, reserved, 2-12 R40, OTIFLAG, 6-7, 6-10 R40, reserved, 2-12 R41, BRKENA, 2-12 R44, PRBFLAG, 2-1...

  • Page 114

    Integral Programmable Intelligence User’s Guide P/N 70000488C - Index All rights reserved. Subject to change without notice. Index-9 31-October-04 set nested, 6-2 parent, 6-2 SET, 4-9, 4-30 SET instruction, 4-31 setup parameters, 2-24 SFLAG, R19, 2-12 shared registers, 2-10 single-element...

  • Page 115

    Integral Programmable Intelligence User’s Guide P/N 70000488C - Index Index-10 All rights reserved. Subject to change without notice. 31-October-04 time delay, 2-24 timed events, 5-1 time-keeping register, 2-24 timer configurations, 5-1 count, 5-3 delayed on then off, 5-4 format, descr...

  • Page 116

    Integral Programmable Intelligence User’s Guide P/N 70000488C - Index All rights reserved. Subject to change without notice. Index-11 31-October-04 W21, ROFDLIM, 2-15, 2-21 W22, RREGRAN, 2-15, 2-22 W23, WREGRAN, 2-15, 2-23 W24, M19END, 2-15 W25, SPDLOPEN, 2-15 W26–W35, BLKSKIP0–9, 2-1...

  • Page 117

    Integral Programmable Intelligence User’s Guide P/N 70000488C - Index Index-12 All rights reserved. Subject to change without notice. 31-October-04 YSSTOP, W56, 2-17 Z Z at home, register, 2-11 Z machine position, register, 2-12 Z-axis, stop/start, register, 2-17 ZEROSPD, R26, 2-12 ZM...

  • Page 118

    P/N 70000488C 31-October-04 www.anilam.com U.S.A. ANILAM One Precision Way Jamestown, NY 14701 (716) 661-1899 (716) 661-1884 anilaminc@anilam.com ANILAM, CA 16312 Garfield Ave., Unit B Paramount, CA 90723 (562) 408-3334 (562) 634-5459 anilamla@anilam.com Dial “011” before eac...

x