![Jäger ADwin HSM-24V Скачать руководство пользователя страница 11](http://html1.mh-extra.com/html/jager-0/adwin-hsm-24v/adwin-hsm-24v_manual_3207446011.webp)
ADwin
LS Bus, Manual version 1.0, September 2006
7
HSM-24V
LS_WATCHDOG_INIT
ADwin
3.2.1 LS Bus
LS_WATCHDOG_
INIT
LS_WATCHDOG_INIT
enables or disables the watchdog counter of a specified
module on the LS bus. If enabled, the counter is set to the start value and is
started.
Syntax
#INCLUDE ADWL16.INC
ret_val =
LS_WATCHDOG_INIT
(
ls-module
,
enable
,
time
)
Parameters
Notes
The instruction only be used in section
INIT
:
, since it takes long pro-
cessing time.
As long as the watchdog counter is enabled, it decrements the counter
value continuously. After the set release time the counter value reaches
0 (zero). If so, the module assumes a malfunction and stops; thus, all
output signals are reset.
After power-up of the module the counter is set to the start value 10ms
and the watchdog counter is enabled.
Reset the active watchdog timer at least once to the start value within
the counting interval, in order to keep the module working. To reset the
module use any module specific instruction or
LS_WATCHDOG_RESET
.
The watchdog function is used as to monitor the connection between
ADwin
system and LS bus module.
To be used for the modules
HSM-24V
See also
ls-module
Specified module address on the LS bus (1…15).
enable
Set status of watchdog counter:
0 : Disable watchdog counter.
1 : Enable watchdog counter.
time
Release time (0…107374) of the counter in milli-
seconds.
ret_val
Bit pattern representing the error status.
Bit = 0:No error.
Bit = 1: Error occurred.
Bit no.
31…8
7
6
5…4
3
2
1
0
Status
–
Temp2 Temp1
–
WD
Time
Ovr
Par
- :don't care (mask with
0CFh
)
Par:Parity error during data transfer on the LS bus.
Ovr: Overrun error during data transfer on the LS bus.
Time: Timeout error during data transfer on the LS bus.
WD: Watchdog was released. The channel drivers are deactivated.
Temp1: Superheating on driver for channels 1…16. Driver is deactivated.
Temp2: Superheating on driver for channels 17…32. Driver is deactivated.
LONG
LONG
LONG
LONG