Note
Before accessing a data word, you must open the data block you
require in your program. This is the only way that the CPU can
find the correct data word.
The referenced data word must be contained in the opened block,
otherwise the system program detects a load or transfer error.
With load and transfer operations, you can only access data word
numbers up to 255!
An opened data block remains valid until one of the following
events occur:
a) a second data block is opened
or
b) the block, in which the data block was
opened, is completed with ’BE’, ’BEC’
or ’BEU’.
Examples
Example 1:
transferring data words
You want to transfer the contents of data word
DW 1 from data block DB 10 to data word DW 1 of
data block DB 20.
Enter the following statements:
:C
DB 10
(open DB 10)
:L
DW 1
(load the contents of DW 1 into
:
ACCU 1)
:C
DB 20
(open DB 20)
:T
DW 1
(transfer the contents of ACCU 1 to
:
DW 1)
:
Data Blocks
CPU 948 Programming Guide
C79000-G8576-C848-04
2 - 39
Содержание CPU 948
Страница 10: ...Contents CPU 948 Programming Guide 1 2 C79000 G8576 C848 04 ...
Страница 32: ...Contents CPU 948 Programming Guide 2 2 C79000 G8576 C848 04 ...
Страница 72: ...Data Blocks CPU 948 Programming Guide 2 42 C79000 G8576 C848 04 ...
Страница 74: ...Contents CPU 948 Programming Guide 3 2 C79000 G8576 C848 04 ...
Страница 154: ...Contents CPU 948 Programming Guide 4 2 C79000 G8576 C848 04 ...
Страница 200: ...Contents CPU 948 Programming Guide 5 2 C79000 G8576 C848 04 ...
Страница 308: ...Contents CPU 948 Programming Guide 7 2 C79000 G8576 C848 04 ...
Страница 324: ...Examples of Parameter Assignment CPU 948 Programming Guide 7 18 C79000 G8576 C848 04 ...
Страница 326: ...Contents CPU 948 Programming Guide 8 2 C79000 G8576 C848 04 ...
Страница 370: ...Addressable System Data Area CPU 948 Programming Guide 8 46 C79000 G8576 C848 04 ...
Страница 372: ...Contents CPU 948 Programming Guide 9 2 C79000 G8576 C848 04 ...
Страница 404: ...Operations with the Base Address Register BR Register CPU 948 Programming Guide 9 34 C79000 G8576 C848 04 ...
Страница 486: ...Contents CPU 948 Programming Guide 11 2 C79000 G8576 C848 04 ...
Страница 522: ...PG Functions via the S5 Bus CPU 948 Programming Guide 11 38 C79000 G8576 C848 04 ...
Страница 524: ...Contents CPU 948 Programming Guide 12 2 C79000 G8576 C848 04 ...
Страница 538: ...Contents CPU 948 Programming Guide 13 2 C79000 G8576 C848 04 ...
Страница 546: ...List of Key Words CPU 948 Programming Guide Index 6 C79000 G8576 C848 04 ...