NUM 1020 Owner's manual

06-97 en-938872/2
NUM
1020/1040/1060
SUPPLEMENTARY
PROGRAMMING
MANUAL
0101938872/2

2en-938872/2
Despite the care taken in the preparation of this document, NUM cannot guarantee the accuracy of the information it contains and cannot be held
responsible for any errors therein, nor for any damage which might result from the use or application of the document.
Thephysical,technicalandfunctionalcharacteristicsofthehardwareandsoftwareproductsandtheservicesdescribedinthisdocumentaresubject
to modification and cannot under any circumstances be regarded as contractual.
The programming examples described in this manual are intended for guidance only. They must be specially adapted before they can be used in
programs with an industrial application, according to the automated system used and the safety levels required.
©Copyright NUM 1997.
Allrightsreserved.Nopartofthismanualmaybecopiedorreproducedinanyformorbyanymeanswhatsoever,includingphotographicormagnetic
processes. The transcription on an electronic machine of all or part of the contents is forbidden.
©Copyright NUM 1997 software NUM 1000 line.
Thissoftware isthepropertyofNUM.Eachmemorizedcopyofthis software soldconfersuponthepurchaseranon-exclusivelicencestrictly limited
to the use of the said copy. No copy or other form of duplication of this product is authorized.

Table of Contents
en-938872/2 3
Table of Contents
1 Structured Programming 1 - 1
1.1 General 1 - 3
1.2 Structured Programming Commands 1 - 6
1.3 Example of Structured Programming 1 - 13
2 Reading the Programme Status Access Symbols 2 - 1
2.1 General 2 - 3
2.2 Symbols for Accessing the Data of the
Current Block 2 - 3
2.3 Symbols Accessing the Data of the
Previous Block 2 - 11
3 Storing Data in Variables L900 to L951 3 - 1
3.1 General 3 - 3
3.2 Storing F, S, T, H and N in Variables L900
to L925 3 - 3
3.3 Storing EA to EZ in Variables L926 to L951 3 - 4
3.4 Symbolic Addressing of Variables L900
to L951 3 - 4
4 Creating and Managing Symbolic Variable Tables 4 - 1
4.1 Creating Symbolic Variable Tables 4 - 3
4.2 SymbolicVariableManagementCommands 4 - 8
5 Creating Subroutines Called by G Functions 5 - 1
5.1 Calling Subroutines by G Functions 5 - 3
5.2 Inhibiting Display of Subroutines Being
Executed 5 - 5
5.3 Programming Examples 5 - 6
6 Polynomial Interpolation 6 - 1
6.1 General 6 - 3
6.2 Programming Segmented Polynomial
Interpolation 6 - 3
6.3 Programming Smooth Polynomial
Interpolation 6 - 7
7 Coordinate Conversions 7 - 1
7.1 General 7 - 3
7.2 Using the Coordinate Conversion Matrix 7 - 3
7.3 Application of Coordinate Conversion 7 - 5
7.4 Example of Application Subroutine 7 - 6

4en-938872/2
8 RTCP Function 8 - 1
8.1 General 8 - 3
8.2 Using the RTCP Function 8 - 4
8.3 Description of Movements 8 - 6
8.4 Processing Related to the RTCP Function 8 - 9
8.5 Use in JOG and INTERV Modes 8 - 11
8.6 Restrictions and Conditions of Use 8 - 11
9 N/M AUTO Function 9 - 1
9.1 General 9 - 3
9.2 Using the N/M AUTO Function 9 - 7
9.3 Procedure After Enabling the N/M AUTO
Function 9 - 8
9.4 StoppingandRestartinginN/MAUTOMode 9 - 11
9.5 Checks Included in N/M AUTO 9 - 12
Appendix A Table of Structured Programming Commands A - 1
Appendix B Table of Symbolic Variable Management Commands B - 1
Appendix C Table of Programme Status Access Symbols C - 1
C.1 Addressing G and M Functions C - 3
C.2 Addressing a List of Bits C - 3
C.3 Addressing a Value C - 3
C.4 Addressing a List of Values C - 4
Appendix D Table of Symbols Stored in Variables L900 to L951 D - 1
D.1 Symbols Stored in Variables L900 to L925 D - 3
D.2 Symbols Stored in Variables L926 to L951 D - 3

Table of Contents
en-938872/2 5
DOCUMENT REVISIONS
Date Revision Reason for revisions
02-93 0 Document creation (conforming to software at index D)
01-95 1 Conforming to software at index G
Additions to the manual
- RTCP function
- N/M AUTO function
Inclusion of changes
Software at index E:
- Addressing of the calling function by [.RG80] in a subroutine called by a G function
- Addressing by [.IRDI(i)] defining the origin of angular offsets
Software at index F:
- Coordinate conversions
06-97 2 Conforming to software at index K
Additions to the manual:
- Smooth polynomial interpolation
- For addressing by [.IBX(i)], [.IRX(i)] and [.IBI(i)], [.IRI(i)], added indexes 10, 11, 4
and 5 related to G21 and G22.
Inclusion of changes
Software at indexes H and J:
- Update of N/M AUTO function
Record of Revisions

6en-938872/2

en-938872/2 7
Forword
Foreword
NUM 1020/1040/1060 Documentation Structure
User Documents
These documents are designed for use of the CNC.
NUM
M/W
OPERATOR
MANUAL
938821
NUM
T
OPERATOR
MANUAL
938822
NUM
M
PROGRAMMING
MANUAL
Volume 1
Volume 2
938819
NUM
T
PROGRAMMING
MANUAL
Volume 1
Volume 2
938820
NUM
G
CYLINDRICAL
GRINDING
PROGRAMMING
MANUAL
938930
Integrator Documents
These documents are designed for setting up the CNC on a machine.
NUM
1060
INSTALLATION
AND
COMMISSIONING
MANUAL
938816
NUM
1020/1040
INSTALLATION
AND
COMMISSIONING
MANUAL
938938
NUM
PARAMETER
MANUAL
938818
NUM
AUTOMATIC
CONTROL
FUNCTION
PROGRAMMING
MANUAL LADDER
LANGUAGE
938846
NUM
DYNAMIC
OPERATORS
938871
NUM
PROCAM
DESCRIPTION
LANGUAGE
938904
NUM
G
CYLINDRICAL
GRINDING
COMMISSIONING
MANUAL
938929
NUM
H/HG
GEAR
CUTTING AND
GRINDING
MANUAL
938932
NUM
SYNCHRONISATION
OF TWO SPINDLES
938854
NUM
GS
SURFACE
GRINDING
MANUAL
938945

8en-938872/2
Special Programming Documents
These documents concern special numerical control programming applications.
NUM
SUPPLEMENTARY
PROGRAMMING
MANUAL
938872
NUM
M
PROCAM MILL
INTERACTIVE
PROGRAMMING
MANUAL
938873
NUM
T
PROCAM TURN
INTERACTIVE
PROGRAMMING
MANUAL
938874
NUM
PROFIL
FUNCTION
OPERATING
MANUAL
938937
NUM
DUPLICATED
AND
SYNCHRONISED
AXES
938875
NUM
GS
PROCAM GRIND
INTERACTIVE
PROGRAMMING
938953
NUM
G
PROCAM GRIND
INTERACTIVE
PROGRAMMING
938931

en-938872/2 9
Forword
Supplementary Programming Manual
Manual Contents
CHAPTER 1
STRUCTURED
PROGRAMMING
Presentation of the commands used for structured programming of branches and
loops.
CHAPTER 2
READING THE
PROGRAMME
STATUS ACCESS
SYMBOLS
Presentation of the symbols giving visibility into the programmed functions and
programme context during call of a cycle by a G function.
CHAPTER 3
STORING
DATA IN
VARIABLES
L900 TO L951
How to store values related to the arguments or functions programmed in variables
L900 to L951 when calling a cycle by a G function.

10 en-938872/2
CHAPTER 4
CREATING AND
MANAGING
SYMBOLIC
VARIABLE TABLES
How to create and manage symbolic variable tables for storing functions and cutting
paths.
CHAPTER 5
CREATING
SUBROUTINES
CALLED BY
G FUNCTIONS
How to create subroutines called by G functions.
CHAPTER 6
POLYNOMIAL
INTERPOLATION
How to specify tool paths by polynomials.
CHAPTER 7
COORDINATE
CONVERSIONS
Coordinate conversions using a square matrix.

en-938872/2 11
Forword
CHAPTER 8
RTCP
FUNCTION
Possibilityofcontrollingthemovementsofamachinetopositionthetoolwithrespect
to the part and pivot it around its centre.
CHAPTER 9
N/M AUTO
FUNCTION
Possibility of controlling the N/M AUTO axes while the other machine axes follow a
programmed path.
APPENDIX A
TABLE OF
STRUCTURED
PROGRAMMING
COMMANDS
Presents the structured programming commands in table form.
APPENDIX B
TABLE OF
SYMBOLIC
VARIABLE
MANAGEMENT
COMMANDS
Presents the symbolic variable management commands in table form.

12 en-938872/2
APPENDIX C
TABLE OF
PROGRAMME
STATUS ACCESS
SYMBOLS
Presents the programme status access symbols in table form:
- G function addressing,
- M function addressing,
- addressing a list of bits,
- addressing a value,
- addressing a list of values.
APPENDIX D
TABLE OF
SYMBOLS
STORED IN
VARIABLES
L900 TO L951
Presents lists of symbols stores in variables L900 to L951 in table form.
- Symbols stored in variables L900 to L925.
- Symbols stored in variables L926 to L951.

en-938872/2 13
Forword
Using the Supplementary Programming Manual
Syntax Conventions
The command lines (blocks) used in programming include commands, symbols,
variables, functions and/or arguments.
Aparticularsyntaxisusedforeachoftheelementsdescribedherein. Theapplicable
syntax rules describe how to write the programme blocks.
Certain syntaxes are given on one or more lines. Writing is simplified by use of the
following conventions:
- the functionality(ies) to which the syntax relates is (are) highlighted by the use of
bold face characters,
- «..» or lower case letters after one or more capital letters, addresses or signs
replace a numerical value (e.g. N..),
- the ellipsis «...» replaces a character or address string similar to that preceding it
in the block (e.g. [Symb1]/[Symb2]...),
- «xx» after one or more address letters replaces alphanumeric characters (e.g.
[.IBxx(i)]),
- «xxx» after an address letter replaces numerical values (e.g. Gxxx).
Examples
Syntax for creating a symbolic variable table
P.BUILD [TAB(7,NB)] H.. N.. +n N..+n
Syntax of a «repeat until» loop and its graphic representation
REPEAT
(instructions)
UNTIL (condition)
Repeat
Instructions Until
condition

14 en-938872/2
Index
The index at the end of the volume gives access to information by keywords.
Questionnaire
To help us improve the quality of our documentation, we request you to return the
questionnaire at the end of the volume.
Agencies
The list of NUM agencies is given at the end of the volume.

Structured Programming
en-938872/2 1 - 1
1
1 Structured Programming
1.1 General 1 - 3
1.1.1 Commands Used in Structured Sequences 1 - 3
1.1.2 General Syntax Rules 1 - 3
1.1.3 Nesting and Branches 1 - 5
1.2 Structured Programming Commands 1 - 6
1.2.1 Condition Graph 1 - 6
1.2.2 Instruction Execution Conditions 1 - 7
1.2.3 REPEAT UNTIL Loops 1 - 8
1.2.4 WHILE Loops 1 - 9
1.2.5 Loops with Control Variable 1 - 10
1.2.6 Exiting the Loop 1 - 12
1.3 Example of Structured Programming 1 - 13

1 - 2 en-938872/2

Structured Programming
en-938872/2 1 - 3
1
The system provides the possibility of programming structured branches and loops,
makingthe programmes easier to read and simplifyingthe programming of complex
part programmes.
The programming tools described in this chapter are used to create subroutines
called by G functions (see Chapter 5).
1.1 General
A structured sequence always begins and ends with keywords.
It begins with one of the following keywords:
IF
REPEAT
WHILE
FOR
It ends with:
ENDI for IF
UNTIL for REPEAT
ENDW for WHILE
ENDF for FOR
The word ELSE can be interposed between the words IF and ENDI.
1.1.1 Commands Used in Structured Sequences
- Conditional execution of instructions: IF, THEN, ELSE, ENDI
- Repeat until loops: REPEAT, UNTIL
- While loops: WHILE, DO, ENDW
- Loops with control variables: FOR, TO, DOWNTO, BY, DO, ENDF
- Exit from a loop: EXIT
1.1.2 General Syntax Rules
ThewordsIF, REPEAT, WHILE, FOR, ENDI, UNTIL, ENDW and ENDF mustbethe
first words in a block (no sequence number).
The words IF, REPEAT, THEN, ELSE, UNTIL, WHILE, DO and DOWNTO must
always be followed by a space, e.g.:
WHILEL0 <3 is not recognised by the system. The required syntax is WHILE L0 <3.
ThewordsDOandTHENmustimmediatelyfollowthecondition. Alternately,ifthese
two words are not located on the same line as the words IF, WHILE and FOR, they
must be the first words on the next line.

1 - 4 en-938872/2
Blocks with sequence numbers (N..) are allowed in loops.
Blocks beginning with the words ENDI, ENDW, ENDF, EXIT or UNTIL must not
include ISO programming functions.
One of words DO, THEN or ELSE can be followed by ISO programming functions in
a same block.
Example:
WHILE L1 < 3 DO G91 X12
or
WHILE L1 < 3
DO G91 X12
The following sequence is refused:
WHILE L0 < 3 G91 X10
DO
Not allowed in a
conditional instruction

Structured Programming
en-938872/2 1 - 5
1
1.1.3 Nesting and Branches
Nesting
Fifteen structured nesting levels are possible independently of subroutine calls by
function G77 ...
Example:
First nesting level Second nesting level Third nesting level
IF IF
ENDI UNTIL
REPEAT
ENDI
Branches
Programming of a conditional or unconditional branch by G79 ... is allowed in a
structured sequence, but must branch to the lowest nesting level of the current
programme or subroutine.
Example:
%1 %2
IF G79 N100
good
WHILE REPEAT
G79 N100
good
IF
G77 H2 G79 N100
good
G79 N50
bad
G79 N50
bad
G79 N30
bad
ENDI
N30 N50
ENDW UNTIL
N50 N100
ENDI
N100
M02

1 - 6 en-938872/2
1.2 Structured Programming Commands
1.2.1 Condition Graph
Acondition must follow one of words IF,WHILEorUNTIL and must be located in the
same block. If the block contains limits and a possible increment, they must follow
the word FOR.
Condition Graph
<
>
Parameters
Variables (Expression)
or
and
=
Variables: All the variables used in parametric programming:
L variables, E parameters and symbolic variables.
Expression: Sequence of parameters and immediate values connected by symbols
+,-,*,/,!,&(seeChapter6oftheProgrammingManual). Theoperations
are calculated in sequence from left to right.
This manual suits for next models
2
Table of contents
Popular Control System manuals by other brands

Modine Manufacturing
Modine Manufacturing Atherion MPR System manual

Crestron
Crestron DM-RMC-4KZ-100-C quick start

Medem
Medem SEC-Le V4 installation instructions

Kemper
Kemper KHS Mini System Control Installation and operating instructions

LTI MOTION
LTI MOTION MotionOne CM Programming manual

Raven
Raven AutoBoom installation manual