Herunterladen Inhalt Inhalt Diese Seite drucken

Konfiguration Der Seriellen Schnittstelle - W&T 58031 Handbuch

Inhaltsverzeichnis

Werbung

W&T
struct
_commands
{
unsigned char save_command :4;
unsigned char clear_error :1; //1 = clear error in display/lamps
unsigned char set_fact_def :1; //1 = set factory defaults and reset
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 f_rts_disable
word f_dtr_disable
word f_outx
word f_inx
word f_outx_cts
word f_outx_dsr
word f_inx_dtr
word f_inx_rts
word f_parity
word f_pechar
word f_inxfilter
word f_outxfilter
word f_rts_default
word f_dtr_default
word f_user_time
word clr_err_char
};
};
} BOX_CNTRL;

Konfiguration der seriellen Schnittstelle

1. Kopieren Sie die komplette Struktur eines vom Com-Ser-
ver empfangenen Infopakets und füllen Sie die Struktur
BOX_CNTRL aus. So können Sie die Defaultwerte auslesen
und brauchen nur die Werte einzutragen, die Sie ändern
wollen.
136
Erweiterte Dienste des Com-Servers
f_flags;
//Save COM-Configuation
//0 = no save
//1 = save without EEPROM Update
//2 = save with EEPROM Update
:2; //not used
:1; //Connect/Disconnect with CTS (HIGH/LOW)
:1; //Connect/Disconnect with DSR (HIGH/LOW)
:1; //Accept Connection only by CTS=HIGH
:1; //Accept Connection only by DSR=HIGH
: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 receiving
: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

Werbung

Inhaltsverzeichnis
loading

Inhaltsverzeichnis