Siemens CPU 948 Programming Manual page 400

Simatic s5 s5-155u
Table of Contents

Advertisement

Operations with the Base Address Register (BR Register)
Opening a dual-port RAM
page
Testing and setting an
"occupied" register in
the dual-port RAM area
Sequence
9 - 30
Operation
Parameter Description
ACR
The dual-port RAM page number must be between 0 and 255. If it is not,
the CPU detects a substitution error (SUF) and calls OB 27. If OB 27 is
not loaded, the CPU changes to the STOP mode.
You can control access of individual CPUs to commonly used memory
areas by using an "occupied" register. An "occupied" register is assigned
to each commonly used memory area. Each participating CPU must test
this register before accessing the memory area. The "occupied" register
contains either the value '0' or the slot ID of the CPU that is presently
using the memory area. When the CPU is finished using the memory
area, it writes '0' to the "occupied" register to re-enable the memory
area. (Note the explanations of the operations "set semaphore/SED" and
"enable semaphore/SEE" in Section 3.5.5.)
The TSC operation handles the testing and setting of a location on the
open page.
Operation
Operand
TSC
-32 768 to
+32 767
The low byte of the word addressed by the sum of the BR register +
constant is used as the "occupied" register. If the low byte contains
'0', the TSC operation enters the slot ID of the CPU in the "occupied"
register.
Testing (reading) and possible occupation (writing) form a program
unit that cannot be interrupted.
Open the dual-port RAM page whose
number is located in ACCU-1-L ,
permissible values:
Description
Add the specified constant to the content
of the BR register and test and set the
location addressed in this way on the
open page.
CPU 948 Programming Guide
C79000-G8576-C848-04
0 to 255

Advertisement

Table of Contents
loading

Table of Contents