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.

3.2 Set commands<br />

3.2.1 SET (S) S<br />

Abbreviation for the PLC Editor: S (SET)<br />

Operand changed Operand unchanged<br />

Execution time [µs] 2.0 to 2.40 1.0 to 1.4<br />

Number of bytes 8 (6)<br />

Byte value in parentheses:<br />

With certain preceding program sequences, the command may be shortened.<br />

Operands: M, I, O, T, C<br />

Operation:<br />

The function of the command depends on the contents of the Logic Accumulator. If the Logic<br />

Accumulator = 1, the addressed operand is set to 1, otherwise the operand remains unchanged. An<br />

S command is used at the end of a logic chain so that the gating result may influence the operand.<br />

The command may be used several times in succession (see example).<br />

Example:<br />

Input I4 and input I5 should be gated with OR.<br />

If the gating result is 1, output O2 and marker M500 should be set.<br />

Initial state: Input I4 = 1<br />

Input I5 = 0<br />

Output O2 = ?<br />

Marker M500 = ?<br />

Line Instruction Accumulator Contents Operand Contents<br />

Bit 31 . . . 7 0<br />

... x x x x x x X x x x x x x x<br />

1 L I4 ... x x x x x x 1 x x x x x x x 1<br />

2 O I5 ... x x x x x x 1 x x x x x x x 0<br />

3 S O2 ... x x x x x x 1 x x x x x x x 1<br />

4 S M500 ... x x x x x x 1 x x x x x x x 1<br />

Line 1: The contents of the operand are loaded into the Accumulator.<br />

Line 2: The contents of the Logic Accumulator and Input I5 are gated with OR.<br />

Line 3: The gating result = 1: output O2 is set.<br />

Line 4: The gating result = 1: marker M500 is set.<br />

8/95 <strong>TNC</strong> <strong>360</strong> 3 Commands 7-39

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

Saved successfully!

Ooh no, something went wrong!