Documente Academic
Documente Profesional
Documente Cultură
Eppendorf
Netheler Hinz GmbH
D-22331 Hamburg
Phone +49 40-5 38 01-0
Fax
+49 40-5 38 01-556
e-mail: eppendorf@eppendorf.com
eppendorf home page:
http://www.eppendorf.com
Printed in Germany
B 3030 900.285-00/0795
Contents
1.1
Disk contents . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2
1.2
System requirements . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2
1.3
Installation
1.4
1.4.1
Preparations
1.4.2
1.4.3
1.4.4
1.4.5
1.4.6
.................................................................2
...............................................................3
..........................................................3
Note:
The basic address and the interrupt request (IRQ) have to be set in accordance with the used
version on the PC ES bus interface card!
1.3 Installation
Copy IN.SYS and OUT.SYS or IN3.SYS and OUT3.SYS into a directory intended for them.
The card drivers have to be entered in the CONFIG.SYS file:
DEVICE=[drive:] [\path] \IN.SYS or IN3.SYS
DEVICE=[drive:] [\path] \OUT.SYS or OUT3.SYS
OUT.SYS
IN.SYS
- Initialization
12
- IOCTL output
- Initialization
- IOCTL input
The use of the drivers by C-programs is described in the following, standard lib functions are used:
1.4.1 Preparations
Binding the header file STDIO.H
#include<stdio.h>
Definition of the pointers on a structure of the type FILE:
"netzin"
- string
"netzout"
- string
"rt"
- string
"wt"
- string
Example:
if ((netin=fopen ("netzin", "rt")) ! = NULL)
{
if ((netout=fopen ("netzout", "wt")) == NULL)
{
printf ("\n error when opening the ES bus output driver");
dummy = fclose (netin);
}
}
else printf ("\n error when opening the ES bus entry driver");
Note:
Mode "t" is not an ANSI standard but a Microsoft extension. In this mode of operation CR/LF
combinations are converted into individual LF characters for Input, and vice versa individual LF
characters are converted into CR/LF-combinations for Output".
Example:
CR
= 0x0d
=>
'0D'
= 0x30, 0x44
'1'
= 0x31
=>
'31'
= 0x33, 0x31
'z'
= 0x7A
=>
'7A'
= 0x37, 0x41
Driver selection
ch
int
character to be output
netout
FILE*
Example:
{
char *buffer;
int dummy;
Output bytes until the string end marking is found. At this position the standard library function FPUTS
() causes problems if more than 128 characters are to be output.
while (*buffer ! = '\0')
{
dummy = fputc (*buffer++, netout);
}
And subsequently transmit a CRLF so that the module recognizes the end of the message.
dummy = fputc ('\n', netout);
fflush (netout);
}
buffer
char*
maximum
int
netin
FILE*
Example:
{
static char buffer[MAXBUFF];
/*receives transferred report */
/* leave two bytes as a reserve, because of CR and LF */
Example
'0D'
= 0x30, 0x44
=>
CR
= 0x0d
'31'
= 0x33, 0x31
=>
'1'
= 0x31
'7A'
= 0x37, 0x41
=>
'z'
= 0x7A