Technical data
6-138 Bosch Rexroth AG | Electric Drives and Controls Rexroth VCP-Operating Concept | R911305038 / 01
PROFIBUS-DP raw
Function Block BT_MAIN
Structure of the block:
Fig. 6-207: Structure of the BT_MAIN
Function Block BT_MAIN Call-Up
Example: Call-up in OB1
;OB1 Organisationsbaustein
;*****************************************
;Profibus-DP-Koomunikation mit Bediengerät
;Beispiel zur Einbindung im OB1
;*****************************************
;Befehle notwendig für Profibus
L W EZ2,A ;Adresse muss mit Koppeladresse übereinstimmen
T W A,AZ2 ;nur für CL400
;Einmal pro Bediengerät aufrufen
BA -BT_MAIN,4 ;Aufruf für das erste Bediengerät
; +---+
P0 W K10 ; < ! Adresse des Eingangsbereichs
P1 W K10 ; < ! Adresse des Ausgangsbereichs
P2 W DB0 ; < ! Nummer des Datenbausteins
P3 W D0 ; < ! Datenwortnummer
; +---+
PE
Terminal 1
EZ10
Terminal 2
EZ20
0x00
AZ10 AZ20
Scatch Flags
Scatch Flags
BT_MAIN
EZ-Area Inputs
AZ-Area Outputs
Byte 1 to 4
MB250 MB251 MB252 MB253
MB250 MB251 MB252 MB253
Byte 1 to 4










