![Jäger ADwin HSM-24V Скачать руководство пользователя страница 15](http://html1.mh-extra.com/html/jager-0/adwin-hsm-24v/adwin-hsm-24v_manual_3207446015.webp)
ADwin
LS Bus, Manual version 1.0, September 2006
11
HSM-24V
LS_DIGPROG
ADwin
LS_DIGPROG
LS_DIGPROG
sets the digital channels 1…32 of the specified module of type
HSM-24V on the LS bus as inputs or outputs in groups of 8.
Syntax
#INCLUDE ADWL16.INC
ret_val =
LS_DIGPROG
(
ls-module
,
pattern
)
Parameters
Notes
The instruction only be used in section
INIT
:
, since it takes long pro-
cessing time.
After initialization with
LS_DIO_INIT
all channels are set as inputs.
The channels may be set as inputs or outputs in groups of 8 only (4 rel-
evant bits only, other bits are ignored).
To be used for the modules
HSM-24V
See also
,
ls-module
Specified module address on the LS bus (1…15).
pattern
Bit pattern, setting the channels as inputs or out-
puts:
Bit = 0: Set channels as inputs.
Bit = 1: Set channels as outputs.
Bit No.
31…4
3
2
1
0
Channel
no.
–
32:25 24:17 16:9
8:1
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