Declaration Statements - NEW_LINE_IS



Your Ad Here

The NEW_LINE_IS declaration statement defines the symbol which will trigger a procedure each time it is encountered, and what that procedure will be. The statement itself is followed by a series of statements which will be executed when the specified character is encountered in the OUTPUT statement.

Example 1:

NEW_LINE_IS ! ;
OUTPUT \J "N" SEQ ;
SEQ = SEQ + SEQINCR ;

In the example above, the exclamation point is declared to be the new line symbol. Every time it is encountered, the procedure described in the following lines will be executed. A carriage return will be performed (\J), and the literal constant (the character N) and the value of the user-defined variable SEQ will be OUTPUT. Then, SEQ will be increased by the value of SEQINCR.

In the following block, the NEW_LINE_IS symbol appears three times. The procedure described above will be performed after "(TEST1)" is output, after "G00 G90" is output and a third time, after the literal constant, "G55", is output.

Example 2:

BEGINNING OF TAPE:

      SEQ = 10; SEQINCR = 2; PROG = 1234;
     OUTPUT "% \J "P" PROG "(TEST 1)":
     OUTPUT ! ;
     OUTPUT "G00 G90" ! "G55";
     OUTPUT !; OUTPUT ! " ";

The output file:

%
P1234 (TEST 1)
N10 G00 G90
N12 G55
N14

Notes:

 

Return to Cimatron Index


Your Ad Here