Herunterladen Inhalt Inhalt Diese Seite drucken

Baumer GK473 Handbuch Seite 23

Gateway rs485 - canopen
Vorschau ausblenden Andere Handbücher für GK473:
Inhaltsverzeichnis

Werbung

void A_read_Broadcast (void)
{
// zuerst muss das automatische scanning abgeschaltet werden
td 1 10
0x601 0x2F 0x03 0x32 0x00 0x00 0x00 0x00 0x00
//1. Schritt: Adress/Kommandozeiger auf SUB-Bus Teilnehmer
td 1 10
0x601 0x23 0x00 0x30 0x00 0x83 0x41 0x00 0x00
//
//
//
//
//
//2.Schritt: SUB-Bus transparent Transfer
// segmented SDO upload , nach Init warten bis SUB-Busteilnehmer antwortet
td 1 200
0x601 0x40 0x00 0x31 0x00 0x0E 0x00 0x00 0x00
td 1 10
0x601 0x60 0x00 0x00 0x00 0x00 0x00 0x00 0x00
td 1 10
0x601 0x70 0x00 0x00 0x00 0x00 0x00 0x00 0x00
pause Jetzt zeigt jede SPA ihre Adresse an, Weiter mit OK
// automatisches scanning on
td 1 10
0x601 0x2F 0x03 0x32 0x00 0x01 0x00 0x00 0x00
}
void A_write_Broadcast (void) // "A"
{
// zuerst muss das automatische scanning abgeschaltet werden
td 1 10
0x601 0x2F 0x03 0x32 0x00 0x00 0x00 0x00 0x00
//1. Schritt: Adress/Kommandozeiger auf SUB-Bus Teilnehmer
td 1 10
0x601 0x23 0x00 0x30 0x00 0x83 0x41 0x00 0x00
//
//
//
//
//
//
//2.Schritt: SUB-Bus transparent Transfer
// Beispiele hier: neue zu vergebende SPA Geräteadresse 22
td 1 1
0x601 0x21 0x00 0x31 0x00 0x0E 0x00 0x00 0x00
td 1 1
0x601 0x00 0x32 0x32 0x00 0x00 0x00 0x00 0x00
td 1 1
0x601 0x11 0x00 0x00 0x00 0x00 0x00 0x00 0x00
Pause Bestätigung an SPA durch Drehung der Welle oder Taste, weiter OK
// automatisches scanning on
td 1 10
0x601 0x2F 0x03 0x32 0x00 0x01 0x00 0x00 0x00
}
Baumer_GK473_CANopen_MA_DE.doc
10.22
// "A"
SUB-Bus Geräteadressen lesen
|
|
|
|_______ Befehl 'A'
|___________ SUB-BUS Adresse
SUB-Bus Geräteadresse schreiben
|
|
|
|_______ Befehl 'A'
|___________ SUB-BUS Adresse
23/23
;0x3203
;0x3000
|__ data
Adresse 99 - > 0x63 +0x20 = 0x83
= Broadcast
;0x3100
;
;
;0x3203
;0x3203
;0x3000
|__ data
Adresse 99 - > 0x63 +0x20 = 0x83
= Broadcast
;0x3100
;hier 32 32 = Adresse 22
;
;0x3203
Baumer Germany GmbH & Co. KG
Stockach, Germany

Werbung

Inhaltsverzeichnis
loading

Inhaltsverzeichnis