Baumer GK473 Benutzerhandbuch

Seite 24

Advertising
background image

Handbuch_GK473_CANopen_DE.doc

24/24

Baumer IVO GmbH & Co. KG

04.05.11

Villingen-Schwenningen,

Germany


void A_read_Broadcast (void) // "A" SUB-Bus Geräteadressen lesen
{
// zuerst muss das automatische scanning abgeschaltet werden
td 1 10

0x601 0x2F 0x03 0x32 0x00 0x00 0x00 0x00 0x00

;0x3203


//1. Schritt: Adress/Kommandozeiger auf SUB-Bus Teilnehmer
td 1 10

0x601 0x23 0x00 0x30 0x00 0x83 0x41 0x00 0x00

;0x3000

//

| | |__ data

//

| |_______ Befehl 'A'

// |___________

SUB-BUS

Adresse


// Adresse

99

-

>

0x63

+0x20

=

0x83

// =

Broadcast

//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

;0x3100

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

;0x3203

}


void A_write_Broadcast (void) // "A" SUB-Bus Geräteadresse schreiben
{
// zuerst muss das automatische scanning abgeschaltet werden
td 1 10

0x601 0x2F 0x03 0x32 0x00 0x00 0x00 0x00 0x00

;0x3203


//1. Schritt: Adress/Kommandozeiger auf SUB-Bus Teilnehmer
td 1 10

0x601 0x23 0x00 0x30 0x00 0x83 0x41 0x00 0x00

;0x3000

//

| | |__ data

//

| |_______ Befehl 'A'

// |___________

SUB-BUS

Adresse

// Adresse

99

-

>

0x63

+0x20

=

0x83

// =

Broadcast

//
//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

;0x3100

td 1 1

0x601 0x00 0x32 0x32 0x00 0x00 0x00 0x00 0x00

;hier 32 32 = Adresse 22

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

;0x3203

}

Advertising