Navigation

  • Page 1

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

  • Page 2

    Integral Programmable Intelligence User’s Guide P/N 70000416D – 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 ou...

  • Page 3

    Integral Programmable Intelligence User’s Guide P/N 70000416D − Contents All rights reserved. Subject to change without notice. v 31-October-04 Section 1 - Introduction Section 2 - Software CAN I/O Board ....................................................................................

  • Page 4

    Integral Programmable Intelligence User’s Guide P/N 70000416D – Contents vi All rights reserved. Subject to change without notice. 31-October-04 Section 4 - Writing IPI Programs How the Interpreter Uses Instructions .........................................................................

  • Page 5

    Integral Programmable Intelligence User’s Guide P/N 70000416D – 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 bet...

  • Page 6

    Integral Programmable Intelligence User’s Guide P/N 70000416D − 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 progr...

  • Page 7

    Integral Programmable Intelligence User’s Guide P/N 70000416D − Software 2-2 All rights reserved. Subject to change without notice. 31-October-04 Inputs Format Xn:b where: X indicates Input n indicates Node # (range: 0 to 5) b indicates Bit # (range: 0 to 9) You can identify inpu...

  • Page 8

    Integral Programmable Intelligence User’s Guide P/N 70000416D − Software All rights reserved. Subject to change without notice. 2-3 31-October-04 Outputs Format Yn:b where: Y indicates Output n indicates Node #; range of n = 0 to 5 b indicates Bit #; range of b = 0 to 5 An output ...

  • Page 9

    Integral Programmable Intelligence User’s Guide P/N 70000416D − Software 2-4 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 ...

  • Page 10

    Integral Programmable Intelligence User’s Guide P/N 70000416D − Software All rights reserved. Subject to change without notice. 2-5 31-October-04 Multifunction Registers IMPORTANT: Multifunction registers M0–M63 have reserved specialized functions. The IPI programmer has access t...

  • Page 11

    Integral Programmable Intelligence User’s Guide P/N 70000416D − Software 2-6 All rights reserved. Subject to change without notice. 31-October-04 Table 2-6, Assigned Read Only Multifunction Registers (Continued) M Designator Assigned LabelPurpose M16 MAN True when CNC in MANUAL mode...

  • Page 12

    Integral Programmable Intelligence User’s Guide P/N 70000416D − Software All rights reserved. Subject to change without notice. 2-7 31-October-04 Table 2-7, Assigned Read/Write Multifunction Registers (Continued) Register Assigned LabelPurpose M39 MSG Set any non-zero number to displ...

  • Page 13

    Integral Programmable Intelligence User’s Guide P/N 70000416D − Software 2-8 All rights reserved. Subject to change without notice. 31-October-04 Table 2-7, Assigned Read/Write Multifunction Registers (Continued) Register Assigned LabelPurpose M57 FEED100 Set to 1 to force feedrate ...

  • Page 14

    Integral Programmable Intelligence User’s Guide P/N 70000416D − Software All rights reserved. Subject to change without notice. 2-9 31-October-04 M42-MREGRAN M42-MREGRAN is a bitmask that allows you to cycle through the range of multifunction registers displayed on the IPI monitor. ...

  • Page 15

    Integral Programmable Intelligence User’s Guide P/N 70000416D − Software 2-10 All rights reserved. Subject to change without notice. 31-October-04 M43-SPDGRCH Set M43-SPDGRCH between 40–44 to enable the corresponding gear range. The specified range is used to calculate a proporti...

  • Page 16

    Integral Programmable Intelligence User’s Guide P/N 70000416D − Software All rights reserved. Subject to change without notice. 2-11 31-October-04 M47-SPIN100 When any nonzero number is written to this register, spindle analog voltage will be forced to 100% of the programmed value, r...

  • Page 17

    Integral Programmable Intelligence User’s Guide P/N 70000416D − Software 2-12 All rights reserved. Subject to change without notice. 31-October-04 M52-ROFDLIM Rotary Axis feed limit. When the IPI writes a number to this register, rotary axes run at the value stored in register M52....

  • Page 18

    Integral Programmable Intelligence User’s Guide P/N 70000416D − Software All rights reserved. Subject to change without notice. 2-13 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 ...

  • Page 19

    Integral Programmable Intelligence User’s Guide P/N 70000416D − Software 2-14 All rights reserved. Subject to change without notice. 31-October-04 General-Purpose, Multifunction Registers M64–M255 are general-purpose, multifunction registers. They are read and write registers tha...

  • Page 20

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

  • Page 21

    Integral Programmable Intelligence User’s Guide P/N 70000416D − Software 2-16 All rights reserved. Subject to change without notice. 31-October-04 I/O Boards Refer to Figure 2-1 and Figure 2-2. The CAN I/O boards act as the switchboard for the I/O system. When the I/O Board genera...

  • Page 22

    Integral Programmable Intelligence User’s Guide P/N 70000416D − Software All rights reserved. Subject to change without notice. 2-17 31-October-04 IPI Monitor The state value stored in input registers (X0:0 – X5:9), output registers (Y0:0 – Y5:5), timer registers (T0–T64), and ...

  • Page 23

    Integral Programmable Intelligence User’s Guide P/N 70000416D − Software 2-18 All rights reserved. Subject to change without notice. 31-October-04 Message RegisterCurrent State RegisterCNC FlagsIPI FlagsM, S, T, H Code RegistersOutputs (Y Registers)Inputs (X Registers)Timers (T Regi...

  • Page 24

    Integral Programmable Intelligence User’s Guide P/N 70000416D − Software All rights reserved. Subject to change without notice. 2-19 31-October-04 CNC FlagsEmergency Stop(ESTOP - M6)Spindle Enable(SPINDLE - M0)In Position(POSN - M1)Feed Mode(FEED - M4)24V Power Fail(PWRFAIL - M3)Manu...

  • Page 25

    Integral Programmable Intelligence User’s Guide P/N 70000416D − Software 2-20 All rights reserved. Subject to change without notice. 31-October-04 IPI FlagsFinished(FINISH - M33)Servo Fault(SVOFLT - M34)Feed Hold(FHOLD - M35)Tool Changer Finished(TCHGFIN - M36)External Stop(XSTOP - ...

  • Page 26

    Integral Programmable Intelligence User’s Guide P/N 70000416D − Working with IPI All rights reserved. Subject to change without notice. 3-1 31-October-04 Section 3 - Working with IPI Configuring IPI Setup Before you can program IPI, you must configure the system to recognize IPI. Refer...

  • Page 27

    Integral Programmable Intelligence User’s Guide P/N 70000416D − Working with IPI 3-2 All rights reserved. Subject to change without notice. 31-October-04 Programming the IPI Typically, IPI programming proceeds as follows: 1. The technician develops the program. 2. The technician a...

  • Page 28

    Integral Programmable Intelligence User’s Guide P/N 70000416D − Working with IPI All rights reserved. Subject to change without notice. 3-3 31-October-04 Accessing Select Options Menu Refer to Figure 3-2 for the menus referenced in this procedure. To access IPI: 1. Exit the CNC softwa...

  • Page 29

    Integral Programmable Intelligence User’s Guide P/N 70000416D − Working with IPI 3-4 All rights reserved. Subject to change without notice. 31-October-04 To create a new IPI program: 1. From Menu E, Select Options Menu, highlight New Program, and press ENTER. Refer to Figure 3-3. F...

  • Page 30

    Integral Programmable Intelligence User’s Guide P/N 70000416D − Working with IPI All rights reserved. Subject to change without notice. 3-5 31-October-04 Selecting an Existing Program To edit an existing program: 1. From Menu E, Select Options Menu, highlight Select Program and press ...

  • Page 31

    Integral Programmable Intelligence User’s Guide P/N 70000416D − Working with IPI 3-6 All rights reserved. Subject to change without notice. 31-October-04 Activating the Editor To activate the Editor: 1. Select or create a program. 2. From Menu E, Select Options menu, highlight Edit...

  • Page 32

    Integral Programmable Intelligence User’s Guide P/N 70000416D − Working with IPI All rights reserved. Subject to change without notice. 3-7 31-October-04 Optimizing the Development Cycle During program development, it is often necessary to reset the IPI program. An IPI program reset al...

  • Page 33

    Integral Programmable Intelligence User’s Guide P/N 70000416D − 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 calculate...

  • Page 34

    Integral Programmable Intelligence User’s Guide P/N 70000416D − 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...

  • Page 35

    Integral Programmable Intelligence User’s Guide P/N 70000416D − Writing IPI Programs All rights reserved. Subject to change without notice. 4-3 31-October-04 Building IPI Program Instructions Program instructions are the lines of IPI code. Program instructions are constructed using ope...

  • Page 36

    Integral Programmable Intelligence User’s Guide P/N 70000416D − 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 r...

  • Page 37

    Integral Programmable Intelligence User’s Guide P/N 70000416D − Writing IPI Programs All rights reserved. Subject to change without notice. 4-5 31-October-04 Numeric Parameters Multifunction memory registers can store numeric values, as well as Boolean true/false states. When combined ...

  • Page 38

    Integral Programmable Intelligence User’s Guide P/N 70000416D − Writing IPI Programs 4-6 All rights reserved. Subject to change without notice. 31-October-04 Creating Additional I/O Labels Labels are used to reference strings of characters. If SPDLFWD has been defined to represent Y...

  • Page 39

    Integral Programmable Intelligence User’s Guide P/N 70000416D − Writing IPI Programs All rights reserved. Subject to change without notice. 4-7 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 40

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

  • Page 41

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

  • Page 42

    Integral Programmable Intelligence User’s Guide P/N 70000416D − 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 OR See 52,page 4-20. Performs Boolean logic OR function usin...

  • Page 43

    Integral Programmable Intelligence User’s Guide P/N 70000416D − 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 INV See 57,page 4-25. Inverts specified element. Inverts curr...

  • Page 44

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

  • Page 45

    Integral Programmable Intelligence User’s Guide P/N 70000416D − 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 LD Syntax Valid Elements Loads new element’s state value into curren...

  • Page 46

    Integral Programmable Intelligence User’s Guide P/N 70000416D − 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) Examples Explanation LD Example #3 Expression used as e...

  • Page 47

    Integral Programmable Intelligence User’s Guide P/N 70000416D − 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) LDI Syntax Valid Elements Loads element’s state value to...

  • Page 48

    Integral Programmable Intelligence User’s Guide P/N 70000416D − 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) MOV Syntax Valid Elements Without qualification, a valu...

  • Page 49

    Integral Programmable Intelligence User’s Guide P/N 70000416D − 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) AND Syntax Valid Elements Performs a Boolean logic AND fun...

  • Page 50

    Integral Programmable Intelligence User’s Guide P/N 70000416D − 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 AND ( M100 OR X0:9 ) ...

  • Page 51

    Integral Programmable Intelligence User’s Guide P/N 70000416D − 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 Example #1 ANI X0:9 Inverse stat...

  • Page 52

    Integral Programmable Intelligence User’s Guide P/N 70000416D − 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 ANI X0:3 State value stored in inp...

  • Page 53

    Integral Programmable Intelligence User’s Guide P/N 70000416D − 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 #1 LD X1:0 ...

  • Page 54

    Integral Programmable Intelligence User’s Guide P/N 70000416D − 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) Examples Explanation OR Example #2 LD ( X1:0 AND ...

  • Page 55

    Integral Programmable Intelligence User’s Guide P/N 70000416D − 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) ORI Syntax Valid Elements Performs a Boolean logic OR func...

  • Page 56

    Integral Programmable Intelligence User’s Guide P/N 70000416D − 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 X1:5 OUT M55 ...

  • Page 57

    Integral Programmable Intelligence User’s Guide P/N 70000416D − 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 ORI T25 OUT M70 Timer...

  • Page 58

    Integral Programmable Intelligence User’s Guide P/N 70000416D − 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) Examples Explanation INV Example #1 INV Y0:4 State va...

  • Page 59

    Integral Programmable Intelligence User’s Guide P/N 70000416D − 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) ANB Syntax Valid Elements Performs Boolean AND function wi...

  • Page 60

    Integral Programmable Intelligence User’s Guide P/N 70000416D − 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 OR X1:2 LD ( M100...

  • Page 61

    Integral Programmable Intelligence User’s Guide P/N 70000416D − 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 ANB M70 Value in previous register, ...

  • Page 62

    Integral Programmable Intelligence User’s Guide P/N 70000416D − 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 AND X0:5 ORB Example #2 LD ( X1...

  • Page 63

    Integral Programmable Intelligence User’s Guide P/N 70000416D − 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 OUT M55 Copies value in current re...

  • Page 64

    Integral Programmable Intelligence User’s Guide P/N 70000416D − 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 SET Example #1 LD X0:2 ...

  • Page 65

    Integral Programmable Intelligence User’s Guide P/N 70000416D − 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 RES Example #1 LD X0:3 ...

  • Page 66

    Integral Programmable Intelligence User’s Guide P/N 70000416D − 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) Examples Explanation LD ( X1:0 AND M90 ) ...

  • Page 67

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

  • Page 68

    Integral Programmable Intelligence User’s Guide P/N 70000416D − Timers 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. This is one reason for ...

  • Page 69

    Integral Programmable Intelligence User’s Guide P/N 70000416D − Timers 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 70,in Table 5-1. 70, Refer to Table 5-2, 70,Detailed Descriptio...

  • Page 70

    Integral Programmable Intelligence User’s Guide P/N 70000416D − Timers 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 register. Copies any value ...

  • Page 71

    Integral Programmable Intelligence User’s Guide P/N 70000416D − Timers 5-4 All rights reserved. Subject to change without notice. 31-October-04 Table 5-2, Detailed Descriptions and Examples of Operands (Continued) Examples Explanation RD Example #2 Read multifunction register value. ...

  • Page 72

    Integral Programmable Intelligence User’s Guide P/N 70000416D − Timers All rights reserved. Subject to change without notice. 5-5 31-October-04 Timer Delayed On Then Off (T) Command In the example in Figure 5-2, input X0:1 initiates the Timer Delayed On Then Off command. At 1 second, t...

  • Page 73

    Integral Programmable Intelligence User’s Guide P/N 70000416D − 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 Conditiona...

  • Page 74

    Integral Programmable Intelligence User’s Guide P/N 70000416D − 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 ...

  • Page 75

    Integral Programmable Intelligence User’s Guide P/N 70000416D − 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 Se...

  • Page 76

    Integral Programmable Intelligence User’s Guide P/N 70000416D − 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 bet...

  • Page 77

    Integral Programmable Intelligence User’s Guide P/N 70000416D − 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 D...

  • Page 78

    Integral Programmable Intelligence User’s Guide P/N 70000416D − 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 u...

  • Page 79

    Integral Programmable Intelligence User’s Guide P/N 70000416D − 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...

  • Page 80

    Integral Programmable Intelligence User’s Guide P/N 70000416D − 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 W...

  • Page 81

    Integral Programmable Intelligence User’s Guide P/N 70000416D − 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 ...

  • Page 82

    Integral Programmable Intelligence User’s Guide P/N 70000416D − 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 ...

  • Page 83

    Integral Programmable Intelligence User’s Guide P/N 70000416D – 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 tha...

  • Page 84

    Integral Programmable Intelligence User’s Guide P/N 70000416D – 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 spec...

  • Page 85

    Integral Programmable Intelligence User’s Guide P/N 70000416D – 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 consta...

  • Page 86

    Integral Programmable Intelligence User’s Guide P/N 70000416D – 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 41,the operands describ...

  • Page 87

    Integral Programmable Intelligence User’s Guide P/N 70000416D – Programming Tips and Examples All rights reserved. Subject to change without notice. 7-5 31-October-04 EDF 0 *END IF #0 *BASIC M-FUNCTIONS: SPINDLE FORWARD, REVERSE, OFF; COOLANT ON AND OFF; *PROGRAM END, SUBROUTINE END....

  • Page 88

    Integral Programmable Intelligence User’s Guide P/N 70000416D – Programming Tips and Examples 7-6 All rights reserved. Subject to change without notice. 31-October-04 * 0.5 SECOND BLINKER LDI T2 *USE FOR WARNING LIGHTS, ETC. OUT T2 0.5 *SETS IPI MONITOR TO DISPLAY SELECTED REGI...

  • Page 89

    Integral Programmable Intelligence User’s Guide P/N 70000416D – Programming Tips and Examples All rights reserved. Subject to change without notice. 7-7 31-October-04 MOV 800H MREGRAN EDF 12 IF 13 ( HCODE EQ 13 ) *DISPLAY REGISTERS M192-M207 MOV 1000H MREGRAN EDF 13 IF 14 ( HCODE EQ...

  • Page 90

    Integral Programmable Intelligence User’s Guide P/N 70000416D – Programming Tips and Examples 7-8 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 s...

  • Page 91

    Integral Programmable Intelligence User’s Guide P/N 70000416D – Programming Tips and Examples All rights reserved. Subject to change without notice. 7-9 31-October-04 ELS 3 *OTHERWISE CONVERT AND OUTPUT BITS MOV TEMP1 TEMP2 *TEMP2 WORKING REGISTER TO OUTPUT BITS IF 4 ( TEMP2 GT 0 ) ...

  • Page 92

    Integral Programmable Intelligence User’s Guide P/N 70000416D – Programming Tips and Examples 7-10 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 t...

  • Page 93

    Integral Programmable Intelligence User’s Guide P/N 70000416D – Programming Tips and Examples All rights reserved. Subject to change without notice. 7-11 31-October-04 MOV 0 BITREG8 EDF 106 MOV ( BITREG1 + BITREG2 ) BITREG21 MOV ( BITREG4 + BITREG8 ) BITREG84 MOV ( BITREG84 + BITREG...

  • Page 94

    Integral Programmable Intelligence User’s Guide P/N 70000416D – Programming Tips and Examples 7-12 All rights reserved. Subject to change without notice. 31-October-04 Program 4 – Single-Shot Pulse/Simple Counters Example The following program creates a single-shot output, true dur...

  • Page 95

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

  • Page 96

    Integral Programmable Intelligence User’s Guide P/N 70000416D – Programming Tips and Examples 7-14 All rights reserved. Subject to change without notice. 31-October-04 AND TL_CNT_SW * Check Proximity switch, STOP CORRECTLY IF 81 MOV 0 TLSTEP * End Tool Change Sequence MOV TO...

  • Page 97

    Integral Programmable Intelligence User’s Guide P/N 70000416D - 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, 4-6 *.DBO files, 4-6 24 V common, 2-16 A acc...

  • Page 98

    Integral Programmable Intelligence User’s Guide P/N 70000416D - Index Index-2 All rights reserved. Subject to change without notice. 31-October-04 commanded spindle RPM, 2-7 Commanded Spindle RPM, 2-12 comments from *.DBO files, 4-6 comments, using, 4-6 comparison operations, 2-4, 4-3 ...

  • Page 99

    Integral Programmable Intelligence User’s Guide P/N 70000416D - Index All rights reserved. Subject to change without notice. Index-3 31-October-04 M44-CNCERR, condition values, table, 2-10 messages, loader, 3-2 errors, compiler, 3-6 errors, ERR files, 3-2 ESTOP, M6, 2-5 examples basic IP...

  • Page 100

    Integral Programmable Intelligence User’s Guide P/N 70000416D - Index Index-4 All rights reserved. Subject to change without notice. 31-October-04 interpreter operation, illustration, 4-1 INV, 4-11, 4-25 Inverse IF, 6-2 IPI advanced instructions, descriptions and examples, table, 6-5 b...

  • Page 101

    Integral Programmable Intelligence User’s Guide P/N 70000416D - Index All rights reserved. Subject to change without notice. Index-5 31-October-04 M11, not used, register, 2-5 M12, TCFINACK, 2-5 M13, HOME, 2-5 M14, SPLOOP, 2-5 M15, RUN, 2-5 M16, MAN, 2-6 M17, MFLAG, 2-6 M18, MCODE, 2-6 M1...

  • Page 102

    Integral Programmable Intelligence User’s Guide P/N 70000416D - Index Index-6 All rights reserved. Subject to change without notice. 31-October-04 MVA, 4-9, 6-5 N NE, 4-4 negative counting, 7-12 negative trigger, 4-11, 6-6, 6-9 nested IFs, 6-1 nested set, 6-2 new element, value or stat...

  • Page 103

    Integral Programmable Intelligence User’s Guide P/N 70000416D - Index All rights reserved. Subject to change without notice. Index-7 31-October-04 read only registers, multifunction, assigned, table, 2-5 read timer count, 5-3 read/write registers, multifunction, assigned, table, 2-6 real-...

  • Page 104

    Integral Programmable Intelligence User’s Guide P/N 70000416D - Index Index-8 All rights reserved. Subject to change without notice. 31-October-04 SPLOOP, M14, 2-5 SPRSTOP, M63, 2-8 S-registers, description, 2-15 start button, 2-6 START instruction, 4-2 START instruction, 4-2 state mem...

  • Page 105

    Integral Programmable Intelligence User’s Guide P/N 70000416D - Index All rights reserved. Subject to change without notice. Index-9 31-October-04 X X registers, 2-18, 4-13, 4-14, 4-15, 4-16, 4-17, 4-18, 4-20, 4-23, 4-27, 4-29, 4-33, 5-3, 6-2, 6-4, 6-6, 6-8, 6-9 XHOLD, M38, 2-6 XMIT, M...

  • Page 106

    P/N 70000416D 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