AMETEK SLM-4 User Manual
Page 64
Appendix B
Sorensen SLM-4 Chassis
queue[0] = '\0';
if (timeout == 1)
{
return(TIME_OUT);
}
return(SUCCESS);
}
int read_buf()
{
char ch,ch1;
int temp_index;
unsigned long ticks;
float sec1,sec2;
rd_result = 0;
ticks = biostime(0,0);
sec1 = ticks/18.2;
do
{
ticks = biostime(0,0);
sec2 = ticks/18.2;
if((sec2 - sec1) >= 20.0)
/* delay about 1 Sec */
{
timeout = 1;
}
ch = inportb(ACE_INT_IDENT_REG);
ch &= 0x06;
switch(ch)
{
case 6:
inportb(ACE_DATA_REG);
/* read the data register to empty it */
break;
case 0:
break;
case 2:
break;
case 4:
/* read character from data register */
ch1 = inportb(ACE_DATA_REG);
temp_index = input_index + 1;
/* increment index of input buffer*/
if (ch1 != '\n')
/* check terminate bit */
{
queue[input_index] = ch1;
/* store character to input buffer*/
input_index = temp_index;
}
else
{
queue[input_index] = ch1;
input_index = temp_index;
input_index = 0;
/* if terminate bit was detected */
temp_index = 0;
rd_result = 1;
/* clear index and set return value */
}
B-4
M540069-01 Rev B
- CW-M (48 pages)
- CW-M Corrected Table 4-2 in (1 page)
- CW-P (62 pages)
- Lx Series (205 pages)
- CW Series Programming Manual (25 pages)
- Ls Series II Programming Manual (242 pages)
- Compact i/iX Series (157 pages)
- Compact IX 2253 (157 pages)
- Compact i/iX Series Software Manual (203 pages)
- ASD Series Quick Start (5 pages)
- ASD Series (120 pages)
- i-iX Series II Programming Manual (226 pages)
- DLM 600W Series Programming Manual (24 pages)
- M131 Programming Manual (99 pages)
- DLM Series (74 pages)
- DLM 600W Series (82 pages)
- BPS Series (153 pages)
- DLM600 Series (16 pages)
- DCS-E 1.2kW Series (65 pages)
- DLM-E 4kW Series Programming Manual (32 pages)
- M136 (8 pages)
- DCS-E 3kW Series (94 pages)
- CTS 3.0 (166 pages)
- CSW Series (174 pages)
- 2003RP (126 pages)
- 2001RP (131 pages)
- MX CTSH (151 pages)
- MXCTSL Administrator Manual (27 pages)
- MX CTSL (157 pages)
- RS Series (228 pages)
- MX Series Installation Manual (35 pages)
- Ls AC source (2 pages)
- MX15 Series (184 pages)
- Ls Series II (226 pages)
- Lx Series Driver Manual (275 pages)
- MX Series Rev: AY (257 pages)
- iX Series (341 pages)
- i-iX Series II (258 pages)
- GUPS 2400A-108 (36 pages)
- HPD Series (58 pages)
- HPD Series Operation Manual (41 pages)
- HPD Series GPIB-Multichannel (134 pages)
- PLA-PLW Programming Manual (74 pages)
- ReFlex Mating Connnectors for Controller (3 pages)
- LPDC-16V (4 pages)