Assign Byte (B=) - HEIDENHAIN iTNC 530 HSCI Technical Manual

Hide thumbs Also See for iTNC 530 HSCI:
Table of Contents

Advertisement

Word processing
with the ASSIGN
command

9.8.9 ASSIGN BYTE (B=)

1768
= (STORE)
Syntax:
B, W, D
Operands:
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
= ?
Function
Load the constant into the
word accumulator.
Assign the contents of
the word accumulator to
byte B8.
Gate the contents of the
word accumulator and
byte B5 with AND.
Assign the gating result to
byte B8.
Assign the gating result to
byte B10.
B= (STORE BYTE)
Syntax:
M, I, O, T, C
Operands:
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.
STL
Accumulator
content
L K+54
36
= B8
36
A B5
22
= B8
22
= B10
22
HEIDENHAIN Technical Manual iTNC 530 HSCI
Operand content
36
2A
22
22

Advertisement

Table of Contents
loading

Table of Contents