Ob 125: Generate Step 5 Blocks - Siemens CPU 948 Programming Manual

Simatic s5 s5-155u
Table of Contents

Advertisement

6.5

OB 125: Generate STEP 5 Blocks

Function
Parameters
Result
CPU 948 Programming Guide
C79000-G8576-C848-04
With OB 125, you can generate any STEP 5 blocks (logic and data
blocks) in the user memory. Generating logic blocks should, however,
be left to specialists.
The specified block is set up in the internal RAM with a block header
and block body and entered in DB 0. The block body contains random
data. For this reason, a newly generated block must first be written to
before any useful data can be read out of it.
1. ACCU-1-LH
Block type of the block to be generated
2. ACCU-1-LL
Block number of the block to be generated
Permitted block types and numbers
ACCU-1-LH (block type)
1 = PB
2 = SB
3 = FB
4 = FX
5 = DB
6 = DX
7 = OB
3. ACCU-2-L
Number of words (required block length without block header). The
maximum assignable block length is 32762 data words. At present,
approximately 2 K words can be edited with a PG.
After correct and error-free processing, the system program sets the
RLO to '0' and clears the condition codes CC 1 and CC 0.
Note
While the blocks are actually being generated, user interrupts are
disabled: no interrupts come through.
By calling OB 125, the contents of ACCU 1 to ACCU 4 are
modified. The BR register is retained.

OB 125: Generate STEP 5 Blocks

ACCU-1-LL (block number)
0 to 255
0 to 255
0 to 255
0 to 255
3 to 255
3 to 255
1 to 39
6 - 17

Advertisement

Table of Contents
loading

Table of Contents