Parameterized programming. Example 1

The PELD (Programming Extended Language for DECO) programming language applied to the ADV version is not only more simplistic but also more powerful than the one we used in version 6 of TB-DECO. PELD programming helps simplify the work of operators who have to program part families. Only one program is required to execute several similar parts. The use of variables significantly reduces programming errors.
Swiss type machine high precision turning numerically controlled machine cam machine tools single spindles monospindles multiple spindles multispindles high precision parts lathes NC numerically controlled multi-spindles lathe multispindles machining
0

Tips and Tricks

Parameterized programming. Example 1

Technology
•  PNC
•  TB-DECO
•  Software Hotline
•  Tips and Tricks

The PELD (Programming Extended Language for DECO) programming language applied to the ADV version is not only more simplistic but also more powerful than the one we used in version 6 of TB-DECO.

PELD programming helps simplify the work of operators who have to program part families. Only one program is required to execute several similar parts. The use of variables significantly reduces programming errors.

Reminder :
Some variables can be modified by the operator. These are :

The global variables#3048 - #3090


Other variables can be used but are automatically modified when using PELD language. These are:
Variables#2129 - #2255


For information :
The scope of variables #3000 is the part. Their values are saved when the PART file is shut down. The scope of variables #2000 is the program. This is why it is essential to work out these variables at the start of the program (op. 1:1)

Comment :
In this example, the user must change the contents of variables #3003 (part length) and #3048 (pivot diameter).
Programming the contour in operation 1:7 is not done using the values but rather with the help of variables, the value of which was previously worked out in operation 1:1.
The part pick-up distance contained in variable #3009 will also be calculated in operation 1:1.

Part being executed

parameterized programming


Variables to be modified
by the operator


#3003:    part length
#3048:    pivot diameter
Variables calculated by
the system in operation 1:1


#2129:    #3048/2 ÷ TAN 30°
#2130:    #3003 - 20
#2131:    #3003 - 5
#3009:    #3003 - 10


TB-DECO program

parameterized programming


Contents of operation 1:1
The program can be executed in two different ways:

1st solution :
[ // " [ "          –► start of PELD programming
#2200:=RAD(30); // #2200    –► 30° radian conversion
#2201:=TAN(#2200); // #2201    –► 30° tangent
#2202:=#3048/2; // #2202    –► pivot radius
#2203:=#2202/#2201; // #2203    –► cone length
#2129:=-#2203; // #2129    –► cone length - negative
#3049:=#2129; // Enables a check on the precision of the calculation in
  // the global variable #3049
//  
#2130:=-(#3003-20);  
#2131:=-(#3003-5);  
#3009:=(#3003-10);  
  // " ] "          –► end of PELD programming


2nd solution :
[  
//  
#2129:=-((#3048/2)/TAN(RAD(30))); // #2129    –► cone length - negative.
#3049:=#2129; // Enables a check on the precision of the
  // calculation in the global variable #3049
//  
#2130:=-(#3003-20);  
#2131:=-(#3003-5);  
#3009:=(#3003-10);  
#3049:=#2129;  
//  
]  


In the 2nd solution, the entire calculation is executed on the same line. It is therefore notnecessary to memorise each intermediate calculation for the variables.

IMPORTANT :
The syntax must be scrupulously adhered to
PELD programming and comments must be separated by: //
PELD programming starts with: [
and ends with: ]

THINK PARTS THINK TORNOS

Home   Company   Applications   Products    Technology   Investor   News    Contacts    Download   Site Map  
privacy    -    copyright-disclaimer © 1997 - 2008   -   Tornos   -   eMail:
ascl.com
 
Think Parts Think TORNOS
Tornos
Think Parts Think TORNOS
TORNOS SA
Rue Industrielle 111
CH-2740 Moutier
Switzerland
Tel.: +41 (0)32 494-4444
Fax: +41 (0)32 494-4903
www.tornos.com
Tornos
ENGLISH
FRANÇAIS
DEUTSCH