5.1.3
Load and transfer operations
Load and transfer
When loading/transferring FW,
IW
and
QW,
the following relationship between
the accumulator contents and the byte
belonging to a particular word applies:
contents
15
.........
@er-
ation
L
00
ff.
I
B
IW
Q
B
Q
W
F B
F
W
0
R
D L
DW
P
B
T
CT
C
K
ti3)
K F~)
K y3)
Ks3)
K T~)
K c3)
Note:
contents
15
.........
The progranable control
l
er has two
accumulators (16 bits) for relational
and arithmetic operations and for digital
logic.
Loading implies that the contents of
accumulator
1
are relocated
to
accu-
mulator 2 and that accumulator
1
is
reloaded in keeping with the operand
of the load operation.
After two load operations, therefore,
information can be obtained, for example,
on the contents of the accumulators
in connection with relational or com-
parison operations.
Function er-
ation
Load
T
00
an input
!jte
(from PI1
)
ff
IB
an input word
(from PII)
IW
anoutput yte
P
(from
PI$
)
QB
an output word
(from PIO)
QW
aflagbyte
a flag word FB
data FB
(right-hand byte) D
R
data
(
left-hand byte) D L
data
(word)
D
W
a peripheral byte
Parameters
0 to 5
0 to 4
0 to3
.
0 to 2
Oto63
0 to 62
1
to 255
I
to 255
1
to 255
0 to 5
0 to 15
0 to 15
0 to 15
0 to 15
random bit
(16 bits)
0 to FFFF
-
32768 to
+
32767
0 to 255
for each
byte
2random
alpha-
numeric
characters
0.0 to
999.3
0 to 999
When loading an
FB, IB, QB or PB, the
byte is always loaded in the
low
byte
of the accumulator.
0 is written into
the high byte of the accumulator.
When transferring an FB, IB, QB or PB,
it
is always the low byte of the accumul-
ator that is transferred.
of the digital 1/0
modules (bypassing
Load and transfer operations are ab-
the PIO) solute operations,
i.e. they are carried
a time (binary)
out independently of the result of
(BCD) the previous logic operation.
a count (binary)
(BC01
Graphics programming of load and transfer
a constant as
operations is only possible indirectly
bit pattern in connection with timer and counter
a constant in
operation, otherwise only in statement
hexadecimal code lists.
a constant as
fixed-point number
a constant,
2 bytes
aconstant,2ASCII
characters
a time (constant)
a count (constant)
Parameters
Oto5
Oto4
Oto3
Ot02
0 to 63
0 to 62
1
to 255
1
to 255
1
to 255
The transfer operation always transfers
the contents of accumulator
1
to the
operand specified in the transfer oper-
ation. The contents are not changed.
Function
Transfer
an input b e
(from
PI1
Ij)
an input word
(from PII)
an output
(from
PI0
$jF
an output word
(from PIO)
a flag byte
a flag word
data
(right-hand byte)
data (left-hand
byte)
data (word)
1) PI1 process image of inputs
2)
PI0 process image of outputs
3) Four-byte instruction with the opcode
in bytes
0/1 and the constant in bytes
213