Load Byte (Lb) - HEIDENHAIN TNC 426 PB/M Technical Manual

Table of Contents

Advertisement

7.7.6 LOAD BYTE (LB)

Function
Load inputs I3 to I10
into the accumulator
(bit 0 to bit 7).
Assign accumulator
contents to byte 8.
December 2001
Syntax:
LB (LOAD BYTE)
Operands:
M, I, O, T, C
Action:
Copy 8 markers, inputs, outputs, timer or counters with ascending numbering
into the word accumulator. Each operand occupies one bit in the accumulator.
The TNC saves the entered operand address in the accumulator as LSB, the
entered address +1 as LSB +1 etc. The last (8th) operand is now the MSB! If
necessary, the TNC supplements the accumulator with the correct algebraic
sign.
Example:
A pure-binary coded value is read through inputs I3 to I10 and saved in byte B8
in order to process it later.
Initial state:
Input
I3
= 1
Input
I4
= 1
Input
I5
= 1
Input
I6
= 0
STL
Accumulator contents [bit]
31..15 ..................... 7 ................. 0
LB I3
0 .... 0 0 0 0 0 0 0 0 0 1 1 0 0 1 1 1
31..15 ..................... 7 .................. 0
= B8
0 .... 0 0 0 0 0 0 0 0 0 1 1 0 0 1 1 1
Commands
Input
I7
= 0
Input
I8
= 1
Input
I9
= 1
Input
I10
= 0
Operand contents [bit]
I10.......... 3
0 1 1 0 0 1 1 1
7 ............ 0
0 1 1 0 0 1 1 1
7 – 91

Advertisement

Table of Contents
loading

This manual is also suitable for:

Tnc 430 pa/mTnc 430 mTnc 426 cbTnc 430 caTnc 426 pbTnc 430 pa ... Show all

Table of Contents