Download Print this page

HEIDENHAIN MANUALplus 620 Technical Manual page 1671

Hide thumbs Also See for MANUALplus 620:

Advertisement

Word processing
with the ASSIGN
command
8.15.9 ASSIGN BYTE (B=)
January 2012
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
= ?
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.
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
control assigns the LSB in the accumulator to the operand address specified
in the command, the LSB +1 to the specified address +1, etc. The MSB is
assigned to the last (8th) operand.
Example:
See example command W=. Use command B= in the same way as W=.
However, the control processes 8 operands.
8.15 Command Set
STL
Accumulator
content
L K+54
36
= B8
36
A B5
22
= B8
22
= B10
22
Operand content
36
2A
22
22
1671

Advertisement

loading