2.4.2
Opening Data Blocks
You can only open a data block (DB/DX) unconditionally. This is
possible within an organization, program, sequence or function block.
You can open a specific data block more than once in a program.
To open a data block, perform the following steps:
IF...
THEN...
You want to open a DB data block Type in the STEP 5 operation
"C DB.."
You want to open a DX data
block
Type in the STEP 5 operation
"CX DX."
Validity of a data block
After you open a data block, all statements that follow with the
operand area ’D’ refer to the opened data block.
The opened data block also remains valid when the program is
continued in a different block following a block call.
If a second data block is opened in this new block, the second data
block is only valid in the newly called block from the point at which it
is called. After program execution returns to the calling block, the old
data block is once again valid.
Access
You can access the data stored in the opened data block during
program execution using binary logic operations, set/reset
operations, load or transfer operations (refer to Chapter 3 for more
detailed information).
With a binary operation, the addressed data word bit is used to form
the RLO. The content of the data word is not changed.
With a set/reset operation, the addressed data word bit is assigned the
value of the RLO. The content of the data word may be changed.
A load operation transfers the contents of the referenced data word
into ACCU 1. The contents of a data word are not changed.
A transfer operation transfers data from ACCU 1 to the referenced
data word. The old contents of the data word are overwritten.
Data Blocks
CPU 948 Programming Guide
2 - 38
C79000-G8576-C848-04
Содержание 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 ...