Документ взят из кэша поисковой машины. Адрес оригинального документа : http://www.naic.edu/~phil/hardware/vertex/sharemegsvertex/lcu/pcr/user/v2_0/LESEN.LST
Дата изменения: Tue Mar 6 22:36:06 2001
Дата индексирования: Thu Jan 15 13:03:25 2009
Кодировка:

Поисковые слова: п п п р п р п р п р п р п р п р р п п р п п р п


CP581 PAGE 1
lesen 09-08-97
17:10:24

Line# Source Line Microsoft C Compiler Version 6.00A

1 /******************************************************************/
2 /* */
3 /* VERTEX ANTENNENTECHNIK GMBH, DUISBURG, GERMANY */
4 /* */
5 /* NAME: L. VAN DER HORST */
6 /* DATE: */
7 /* VERSION: 1.3 */
8 /* */
9 /******************************************************************/
10 /* */
11 /* LESEN.C */
12 /* READOUT OF PLC VARIABLES AND MONITOR DATA */
13 /* */
14 /******************************************************************/
15 #include /* HEADER-DATEI aus MICROSOFT C */
16 #include /* HEADER-DATEI aus MICROSOFT C */
17 #include /* HEADER-DATEI aus MICROSOFT C */
18 #include /* HEADER-DATEI aus MICROSOFT C */
19 #include /* HEADER-DATEI aus MICROSOFT C */
20 #include /* HEADER-DATEI aus MICROSOFT C */
21 #include /* HEADER-DATEI aus MICROSOFT C */
22 #include "netzwerk.h"
23 #include "file.h"
24 #include "prog.h"
25 void lesen(void)
26 {
27 #include"extern.c"
28 int dummy[100];
29 /* FROM CPU --> CP581
30
31 ADRESSE VARIABLE FORMAT
32 ---------------------------------------------------------
33
34
35
36 */
37 fseek(datei1,2L,0);
38 fread(&time_plc,sizeof(time_plc),1,datei1);
39 fread(&time_off,sizeof(time_off),1,datei1);
40 fread(&prtrst,sizeof(prtrst),1,datei1);
41 fread(&gestdr,sizeof(gestdr),1,datei1);
42
43 fread(dummy,sizeof(dummy[0]),3,datei1);
44
45 fread(stat1,sizeof(stat1[0]),18,datei1);
46
47 fread(dummy,sizeof(dummy[0]),2,datei1);
48
49 fread(m_rate,sizeof(m_rate[0]),3,datei1);
50
51 fread(dummy,sizeof(dummy[0]),7,datei1);
52
53 fread(m_torque,sizeof(m_torque[0]),18,datei1);
54
55 fread(dummy,sizeof(dummy[0]),2,datei1);
56


CP581 PAGE 2
lesen 09-08-97
17:10:24

Line# Source Line Microsoft C Compiler Version 6.00A

57 fread(m_pos,sizeof(m_pos[0]),5,datei1);
58
59 fread(offset,sizeof(offset[0]),3,datei1);
60 fread(pos_lim,sizeof(pos_lim[0]),6,datei1);
61
62 fread(setpoint,sizeof(setpoint[0]),3,datei1);
63
64 fread(dummy,sizeof(dummy[0]),4,datei1);
65
66 fread(&time_rs,sizeof(time_rs),1,datei1);
67 fread(inp_stat,sizeof(inp_stat[0]),10,datei1);
68
69 fread(out_stat,sizeof(out_stat[0]),10,datei1);
70 fread(dummy,sizeof(dummy[0]),2,datei1);
71
72
73 fread(anaout,sizeof(anaout[0]),8,datei1);
74
75
76 return;
77 }

lesen Local Symbols

Name Class Type Size Offset Register

dummy . . . . . . . . . . auto -00c8
m_torque. . . . . . . . . extern struct/array 36 ***
setpoint. . . . . . . . . extern struct/array 12 ***
time_plc. . . . . . . . . extern long 4 ***
time_off. . . . . . . . . extern long 4 ***
prtrst. . . . . . . . . . extern int 2 ***
stat1 . . . . . . . . . . extern struct/array 36 ***
gestdr. . . . . . . . . . extern unsigned int 2 ***
m_rate. . . . . . . . . . extern struct/array 14 ***
time_rs . . . . . . . . . extern long 4 ***
offset. . . . . . . . . . extern struct/array 12 ***
inp_stat. . . . . . . . . extern struct/array 20 ***
out_stat. . . . . . . . . extern struct/array 24 ***
anaout. . . . . . . . . . extern struct/array 16 ***
m_pos . . . . . . . . . . extern struct/array 20 ***
pos_lim . . . . . . . . . extern struct/array 24 ***


Global Symbols

Name Class Type Size Offset

ad. . . . . . . . . . . . common struct/array 10 ***
alarm . . . . . . . . . . common int 2 ***
buffer. . . . . . . . . . common far pointer 4 ***
datei1. . . . . . . . . . extern far pointer 4 ***
fread . . . . . . . . . . extern far function *** ***
fseek . . . . . . . . . . extern far function *** ***
lese. . . . . . . . . . . common struct/array 526 ***
lesen . . . . . . . . . . global far function *** 0000


CP581 PAGE 3
lesen 09-08-97
17:10:24

Microsoft C Compiler Version 6.00A


Code size = 02c0 (704)
Data size = 0002 (2)
Bss size = 0000 (0)

No errors detected