Herunterladen Inhalt Inhalt Diese Seite drucken

B&R BRCOMP1-0 Anwenderhandbuch Seite 189

Inhaltsverzeichnis

Werbung

Verfügbare Sprachen

Verfügbare Sprachen

2) Reference Pulse
Before the call "Read reference pulse", the function "Activate reference pulse" must be called first.
Reference bit 0 is set to 0.
When the reference pulse occurs the reference bit is set to 1. This remains 1 until the function "Activate
reference pulse" is called again.
Activate Reference Pulse:
No call parameters, no response data
LDD
# $C117
XGDX
JSR
X 000
Read Reference Pulse:
No call parameters, response data in accu A, bit 0
LDD
# $C11A
XGDX
JSR
X 000
BITA
# 001
BEQ
LABL
3) Activate Interrupt Source Zero Signal Counter 0
Transfer preset value to accumulator D, no response data
LDD
# $C11D
XGDX
LDD
# 10500
JSR
X 000
For the call of this function, the required changes are executed in the mode register ($2121) and in the
initialization register ($2122). The counter is written to directly with the transfer value in
accumulator D.
NOTE:
If this function is used in conjunction with the CMDC function block, it must be
coordinated with the register connected to the MODE input. Otherwise the operating
mode will be changed again during the END routine.
LDAA
# % 100010xx
STAA
R xxxx
LDD
# $C11D
XGDX
...
Activate reference pulse call
Read reference pulse call
Bit 0 in Accu A set ?
Activate interrupt source call
E.g. preset value = 10500 pulses
Activate interrupt source call
B&R COMPACT PLC
- 189 -

Quicklinks ausblenden:

Werbung

Inhaltsverzeichnis
loading

Diese Anleitung auch für:

Brcomp2-0

Inhaltsverzeichnis