Herunterladen Inhalt Inhalt Diese Seite drucken

W&T Electronics Com-Server++ Handbuch Seite 199

Inhaltsverzeichnis

Werbung

W&T
char PEChar;
struct
_commands
{
unsigned char save_command :4;
unsigned char clear_error
unsigned char set_fact_def :1;
unsigned char free_cmd
};
union
{
word hs_flags;
struct_hs_flags
{
word f_cts_connect
word f_dsr_connect
word f_cts_accept
word f_dsr_accept
word no_use0
};
};
union
{
word
struct _f_flags
{
word
word
word
word
word
word
word
word
word
word
word
word
word
word
word
word
};
};
} BOX_CNTRL;
Konfiguration der seriellen Schnittstelle
1. Kopieren Sie die komplette Struktur eines vom Com-
Server empfangenen Infopakets und füllen Sie die Struktur
BOX_CNTRL aus. So können Sie die Defaultwerte auslesen
Irrtum und Änderung vorbehalten
Erweiterte Dienste des Com-Servers
//Replace this char if serial parity error (function
//must be enabled first by setting f_flags.f_pechar=1)
f_flags;
f_rts_disable
f_dtr_disable
f_outx
f_inx
f_outx_cts
f_outx_dsr
f_inx_dtr
f_inx_rts
f_parity
f_pechar
f_inxfilter
f_outxfilter
f_rts_default
f_dtr_default
f_user_time
clr_err_char
//Save COM-Configuation
//0 = no save
//1 = save without EEPROM Update
//2 = save with EEPROM Update
:1;
//1 = clear error in display/lamps
//1 = set factory defaults and reset
:2;
//not used
:1;
//
:1;
//
:1;
//
:1;
//
:12;
// not used
:1; //RTS will not change at LOCK/UNLOCK
:1; //DTR will not change at LOCK/UNLOCK
:1; //Enable softw. handshake while sending
:1; //Enable softw. handshake while receiv.
:1; //Enable hardware handshake on CTS
:1; //Enable hardware handshake on DSR
:1; //Enable hardware handshake on DTR
:1; //Enable hardware handshake on RTS
:1; //Enable parity check & error report
:1; //Enable replacement of received char
:1; //Enable xon/xoff filter while receiving
:1; //Enable xon/xoff filter while sending
:1; //1 = While RTS is not used, RTS
//is active
:1; //1 = While DTR is not used, DTR
//is active
:1; //not used
:1; //1= If Com-Server is in client mode,
//serial chars with framing or parity
//errors will not open the connection
199

Werbung

Inhaltsverzeichnis
loading

Diese Anleitung auch für:

Com-server 3x isolatedCom-server 20ma

Inhaltsverzeichnis