Herunterladen Inhalt Inhalt Diese Seite drucken

B&R BRCOMP1-0 Anwenderhandbuch Seite 191

Inhaltsverzeichnis

Werbung

Verfügbare Sprachen

Verfügbare Sprachen

6) Read Counter x
The actual values of the counters are stored at addresses $2100 - $210F. The pointers to the operating
system routines sit at the following addresses:
NOTE:
The corresponding bits (0 - 3) in the control register must be set.
In order to read the values, follow the procedure shown below:
LDD
# $xxxx
XGDX
JSR
X 000
7) Copy Actual Value to Registers
The actual values of the counters are stored at addresses $2100 - $210F. In order to copy the values to
registers, the procedure shown in the example below must be followed.
Example
The actual value of counter 0 will be copied to registers R 3000 - R 3003.
LDD
#$2100
XGDX
LDD
X 000
STD
R 3000
LDD
X 002
STD
R 3002
Address
Actual value
$C12F
Read counter 0
$C132
Read counters 1 and 2
$C135
Read 2 channel counter (Encoder)
Address of pointer to OS routine
Start address Actual value Counter 0
Higher Word Actual value
Lower Word Actual value
B&R COMPACT PLC
- 191 -

Quicklinks ausblenden:

Werbung

Inhaltsverzeichnis
loading

Diese Anleitung auch für:

Brcomp2-0

Inhaltsverzeichnis