1768 HEIDENHAIN Technical Manual iTNC 530 HSCI
Word processing
with the ASSIGN
command
Syntax: = (STORE)
Operands: B, W, D
Action:
Assign the content of the word accumulator to the addressed operand. Unlike
bit processing, in word processing you can also use the = command within a
sequence of word-gating operations. This command can be used several
times in succession.
Example:
Gate a constant and byte B5 with AND, and assign the result to byte B8 and
byte B10.
Initial state:
Constant 54 = 36 (hex)
Byte B5 = 2A (hex)
Byte B8 = ?
Byte B10 = ?
9.8.9 ASSIGN BYTE (B=)
Syntax: B= (STORE BYTE)
Operands: M, I, O, T, C
Action:
Assign 8 bits from the word accumulator to markers, inputs, outputs, timers
or counters with ascending numbering. Every bit occupies an operand. The
iTNC assigns the LSB in the accumulator to the operand address specified in
the command, the specified address +1 as LSB +1 etc. The last (8th) operand
is assigned the MSB.
Example:
See example of command W=. Use command B= in the same way as W=.
However, the iTNC processes 8 operands.
Function STL Accumulator
content
Operand content
Load the constant into the
word accumulator.
L K+54 36
Assign the contents of
the word accumulator to
byte B8.
= B8 36 36
Gate the contents of the
word accumulator and
byte B5 with AND.
A B5 22 2A
Assign the gating result to
byte B8.
= B8 22 22
Assign the gating result to
byte B10.
= B10 22 22