Herunterladen Inhalt Inhalt Diese Seite drucken

Feldbus Rs-Schnittstelle - DEUTSCHMANN AUTOMATION UNIGATE IC-RS Bedienerhandbuch

Universelles feldbus-gateway
Inhaltsverzeichnis

Werbung

Feldbus RS-Schnittstelle

9
Feldbus RS-Schnittstelle
®
Das UNIGATE
IC - RS unterstützt auf der Feldbus RS-Seite physikalisch eine RS232-, RS485-
und RS422-Schnittstelle. Im Betrieb RS485 müssen die Leitungen Rx422 mit Tx422 verbunden
werden. Die Parametrierung erfolgt wie bei der Standard UART über separate Scriptbefehle. Fol-
gende feldbusspezifischen Scriptbefehle werden für das UNIGATE
Befehl
Bus Baudrate
FB RS_Anz_Dat_Bits
FB RS_Anz_Stop_Bits
FB RS_Parity
FB RS_Type
FB RS_ExchangeModbusRTUMaster
Weitere feldbusspezifische Befehle sind auf Anfrage möglich.
Scriptbeispiel für die Initialisierung der FB RS-Schnittstelle
//********** init 2. RS interface (fieldbus) ***********************************
Set ( BusBaudrate , 57600 ) ;
//Set ( FBRS_ANZ_DAT_BITS , 8 ) ;
//Set ( FBRS_ANZ_STOP_BITS , 1 ) ; // 1
//Set ( FBRS_PARITY , 0 ) ;
// PARITY_NO
// PARITY_ODD
// PARITY_EVEN
// PARITY_MARK
// PARITY_SPACE
Set ( FBRS_TYPE , 2 ) ;
// RS_TYP_2320x01
// RS_TYP_4850x02
// RS_TYP_4220x03
//************ start 2.RS interface (fieldbus) *********************************
BusStart ;
Wait ( Bus_Active ) ;
//********************* main ***************************************************
:start ;
Get ( availableBusData , wBusInSize ) ;
if wBusInSize equal w0 then :Loop;
ReadBus ( aBusInBuf[0] , wBusInSize ) ;
33
Ab Software-Rev.
V. 1.0
// 9600 = default
// 8
0
default
1
2
3
/* Paritybit immer 1 */
4
/* Paritybit immer 0 */
default
Bedienerhandbuch UNIGATE
Deutschmann Automation GmbH & Co. KG
®
IC - RS unterstützt:
Script
26
= default
= default
®
IC - RS V. 2.8
12.7.12

Werbung

Inhaltsverzeichnis
loading

Inhaltsverzeichnis