HSM-24V
LS_WATCHDOG_INIT
ADwin
8
ADwin
LS Bus, Manual version 1.0, September 2006
Example
REM Example prozess for one module HSM-24V and ADwin-L16
#INCLUDE ADWL16.inc
init:
PROCESSDELAY
= 4000000
'10Hz HP
PAR_1
=
LS_DIO_INIT
(1)
PAR_2
=
LS_DIGPROG
(1, 0Fh)
'channels 1…32 as output
PAR_3
=
LS_WATCHDOG_INIT
(1, 1, 1100)
'watchdog time 1.1 sec
event:
REM set one channel to high, rotating from 1 to 32
INC PAR_10
IF
(
PAR_10
>=32)
THEN
PAR_10
=0
PAR_11
=
SHIFT_LEFT
(1,
PAR_10
)
REM set channels and read back real state
PAR_12
=
LS_DIG_IO
(
PAR_11
)