ADwin-Gold II
, Manual February 2013
17
LS Bus
ADwin
the counter value reaches 0 (zero), the system assumes a malfunction and releases a
combination of previously configured emergency actions:
–
Stop processor T11.
–
Stop
TiCo
processor.
–
Set output
Watchdog
Out
to TTL level low.
The signal of pin
Watchdog
Out
serves to have an external unit controlled by
the
ADwin
system to move into a safe operating point. As an example, the
watchdog signal could disable the clearing of the power amplifier of the control
signal.
–
Set outputs
OUT1
…
OUT8
and
DIO00
…
DIO32
to TTL level low.
Reset the watchdog counter to the starting value at least once during the counting pro-
cedure, in order to ensure safe operation of the system.
Watchdog output
The digital output
Watchdog
Out
is provided on the 15-pin D-SUB
socket
PWM1-6
(TTL)
.
After power-up the output
Watchdog
Out
is set to TTL level Low.
If the watchdog counter is disabled, the output
Watchdog
Out
can
be programmed freely.
Programming
Instructions to program the watchdog counter are described starting from
5.4
LS Bus
ADwin-Gold II
provides two interfaces for LS bus on 9-pin DSub connec-
tors (female) LS1 and LS2; the pin assignment is shown on the right.
The LS bus is a bi-directional serial bus with 5 MHz clock rate (Low
Speed). The bus is a in-house-design to access external modules. The
first module available is HSM-24V which can process 24 Volt signals on
32 digital channels.
The bus is set up as line connection, i.e. the
ADwin
interface and up to
15 LS bus modules are connected to each other via two-way links. The
last module of the LS bus must have the bus termination activated. The
maximum bus length is 5m.
The LS bus modules are programmed with
ADbasic
instructions, which are sent from
the LS bus interface of the
ADwin
system. The instructions are mostly specific for the
module and are described in the manual of the LS bus module (or in the online help).
5.5
Time-Critical Tasks
For time-critical tasks it can be useful to split the standard instructions
ADC
()
and
ADC24
()
into a series of instructions.
ADC() and ADC24()
The standard instructions
ADC
()
and
ADC24
()
consist of a sequence of instructions
(see below or
). The standard instructions need a specified time for execution
8
7
6
5
4
3
2
1
15
14
13
12
11
10
9
DG
ND
WA
T
CHD
O
G
O
U
T
PW
M
O
U
T
6
PW
M
O
U
T
5
PW
M
O
U
T
4
PW
M
O
U
T
3
PW
M
O
U
T
2
PW
M
O
U
T
1
res
e
rv
ie
rt
DG
N
D
DG
N
D
DG
N
D
DG
N
D
DG
N
D
DG
N
D
Function
Instructions
Initialize
Reset
Set output value
Read watchdog status
S
ignal
G
N
D
res
e
rv
ie
rt
S
ignal
H
IG
H
re
se
rv
ie
rt
S
ignal
LOW
res
e
rv
ie
rt
res
e
rv
ie
rt
1
2
3
4
5
6
7
8
9