Logic gates, And (a), 3 logic gates 3.3.1 and (a) a – HEIDENHAIN TNC 306 Technical Manual User Manual
Page 333

3/2000
TNC 416/TNC 406/TNC 306
Commands
7-43
3.3
Logic Gates
3.3.1 AND (A)
A
Abbreviation for the PLC-Editor:
A (AND)
Logic
Byte/Word
Double
Constant
Execution time [µs]
1.2
1.2/1.2
1.8
1.6
Number of bytes
4
4
4
6
Logic execution with the AND command
Operands: M, I, O, T, C
Operation:
This command functions in different ways according to its position in the program:
a) At the start of a logic chain the command functions as an L command, i.e. the logic state of the
operand is loaded into the Logic Accumulator. This is to ensure compatibility with the TNC 355
control which did not have the special L command. In PLC programs for the TNC 306, a logic
chain should always be started with a load command (see L, LN, L–).
b) Within a logic chain the contents of the Logic Accumulator and the logic state of the operand (M,
I, O, T, C) are gated with AND. The gating result is stored in the Logic Accumulator.
Example:
Inputs I4 and I5 are to be gated with AND and the result assigned to Output O2.
Initial state:
Input
I4
= 1
Input
I5
= 0
Output O2
= ?
Line Instruction
Accumulator contents
Operand contents
Bit
31
.
.
.
7
0
... x x x x x x x x x x x x x x
1
L I4
... x x x x x x 1 x x x x x x x
1
2
A I5
... x x x x x x 0 x x x x x x x
0
3
= O2
... x x x x x x 0 x x x x x x x
0
Line 1:
The operand contents are loaded into the Accumulator.
Line 2:
The contents of the Logic Accumulator and input I5 are gated with AND.
Line 3:
The gating result is assigned to Output O2.