Herunterladen Inhalt Inhalt Diese Seite drucken

Jetter JVM-407 Betriebsanleitung Seite 308

Bediengerät
Inhaltsverzeichnis

Werbung

11 Programmierung
308
Task
main
Autorun
// 11-Bit CAN-ID
CanPrim.Command := 8;
// Box 0 auswählen
CanPrim.BoxNumber := 0;
// Box auf ID 0x200 konfigurieren
CanPrim.BoxCanId := 0x200;
// als Empfangsbox konfigurieren
CanPrim.BoxConfig := 0;
// Box aktivieren
CanPrim.Command := 1;
If
BitClear(CanPrim.BoxState, 0)
Then
// CAN-ID already used by system bus
End_If;
// Box 1 auswählen
CanPrim.BoxNumber := 1;
// Box auf ID 0x2FF konfigurieren
CanPrim.BoxCanId := 0x2FF;
// als Sendebox konfigurieren
CanPrim.BoxConfig := 1;
// Box aktivieren
CanPrim.Command := 1;
If
BitClear(CanPrim.BoxState, 0)
Then
// CAN-ID bereits vom CAN-Systembus genutzt
End_If;
End_Task;
Jetter AG

Werbung

Inhaltsverzeichnis
loading

Inhaltsverzeichnis