Herunterladen Inhalt Inhalt Diese Seite drucken

JÄGER ADwin HSM-24V Handbuch Seite 80

Modul für ls-bus
Vorschau ausblenden Andere Handbücher für ADwin HSM-24V:
Inhaltsverzeichnis

Werbung

HSM-24V + Pro II
P2_LS_Dig_IO
76
Beispiel
Rem Example process for one module HSM-24V and ADwin-Pro II-LS2
#Include
ADwinPro_All.Inc
#Define
module
1
channel
#Define
2
Init:
Processdelay
=
4000000
Rem reset LS interface
P2_LS_Reset(module,channel)
Par_1
= P2_LS_DIO_Init(module,channel,1)
Rem watchdog time 1.1 sec
Par_2
= P2_LS_Watchdog_Init(module,channel,1,1,1100)
Rem LS channels 1...32 as outputs
Par_3
= P2_LS_DigProg(module,channel,1,0Fh)
Event:
Rem check for over-current
Par_5
= P2_LS_Get_Output_Status(module,channel,1)
If
(Par_5
> 0)
Then End
Rem set one LS channel to high, rotating from 1 to 32
Inc
Par_10
If
(Par_10
>= 32)
Par_11
= Shift_Left(1,Par_10)
REM reset watchdog, set LS channels, and read back real state
REM (note: P2_LS_Dig_IO uses LS address 1)
Par_12
= P2_LS_Dig_IO(module,channel,Par_11)
'10Hz HP
'over-current: Exit program
Then
Par_10
=
0
ADwin HSM-24V, Handbuch Feb. 2017
ADwin

Werbung

Inhaltsverzeichnis
loading

Inhaltsverzeichnis