06.08.2013 Views

Technical Manual TNC 360 - heidenhain - DR. JOHANNES ...

Technical Manual TNC 360 - heidenhain - DR. JOHANNES ...

Technical Manual TNC 360 - heidenhain - DR. JOHANNES ...

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

2 Program Creation<br />

The PLC program can be created directly on the HEIDENHAIN contouring controls. For this, the PLC<br />

Editor must be called with the code number 807 667 (see Section "PLC functions").<br />

The PLC program can also be written in ASCII code on a PC and then transferred to the control.<br />

2.1 Program structure<br />

2.1.1 Command<br />

A command is the smallest unit in a PLC program. It consists of the<br />

operation portion and the Operand portion.<br />

A I 28 ;Comment<br />

Operation<br />

(A, AN...)<br />

Operand<br />

designation<br />

(I, O, M, T, C,<br />

B, W, D, K)<br />

Operand<br />

Operand<br />

address;<br />

constant value<br />

The operation describes the function which is to be performed. It explains what is done with the<br />

Operands.<br />

The Operand shows what is to be operated on. It consists of the Operand abbreviation and a<br />

parameter (Address). Register and memory contents can be gated, erased and loaded by using PLC<br />

commands.<br />

Both Bit and Word processing are possible. In Word processing it is possible to address memory<br />

contents with a length of 8 Bits (Byte), 16 Bits (Word) or 32 Bits (Doubleword) (see Section<br />

"Commands").<br />

7-12 <strong>TNC</strong> <strong>360</strong> 2 Program Creation 8/95

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!