Plc commands, Load and store commands – HEIDENHAIN TNC 122 Technical Manual User Manual
Page 47
46
TNC 122
12 PLC Description
4/97
The error messages and dialogs are filed in the individual languages in the sequence and syntax
('...',0). Each dialog can have up to 16 characters (see also the User's Manual for PLC.EXE).
German '..............................',0
English '..............................',0
French
'..............................',0
12.2 PLC Commands
12.2.1 Load and store commands
LOAD (L)
Logic execution with the LOAD command
Operands: M, I, O, T, C
The addressed operand is copied into the Logic Accumulator. An L command is always used at the
start of a logic chain to enable subsequent gating commands.
Word execution with the LOAD command
Operands: B, W, D, K
The addressed operand (B, W, D) or a Constant (K) is copied or loaded into the Word Accumulator.
The sign is added if necessary. In contrast to logic execution, an L command must always be used
at the start of a word gating chain. It is not possible to use a gating command.
LOAD NOT (LN)
Logic execution with the LOAD NOT command
Operands: M, I, O, T, C
The complement of the addressed operand is loaded into the Logic Accumulator. A load command is
always used at the start of a logic chain to enable subsequent gating commands.
Word execution with the LOAD NOT command
Operands: B, W, D, K
The content of the addressed operands (B, W, D) or a Constant (K) is loaded into the Word
Accumulator as a complement. The sign is added if necessary. In contrast to logic execution, a load
command must always be used at the start of a word gating chain. It is not possible to use a gating
command.
LOAD TWO'S COMPLEMENT (L–)
Operands: B, W, D, K
The contents of the addressed operand (B, W, D) or a Constant (K) is loaded into the Word
Accumulator as a two's complement. The sign is added if necessary. The two's complement allows
negative numbers to be stored, i.e. if a number is loaded with L–, it appears in the Accumulator with
the opposite sign. This command can only be used with Word execution.