Files, constants and structures
CP1413plus manual
5-8
Rev. 00/07
unsigned short connectionnumber;
unsigned short Kennung;
// parameter identifier
unsigned short DB;
// module number
unsigned short DW;
// data word number
unsigned short Len;
// length of data
}S5_PARAMS;
typedef struct {
unsigned short Auftragsnummer;
// task number.
short Offset;
// Offset from base tile
unsigned short Auftragsart;
// defines from task types
short Benutzt;
// use the connection automatically from start
}S5_ANSCHALTUNG;
typedef struct _S5_VERBINDUNGSDATEN {
char Verbindungsname[32];
// ASCII connection name
S5_ANSCHALTUNG S5Params;
// task no, ..
CONNECT_PARAMS CrParams;
// TSAP, NSAP, ..
}S5_VERBINDUNGSDATEN;
typedef struct _S5_VERBINDUNGSDATEN_KARTE {
char Verbindungsname[32];
// ASCII connection name
S5_ANSCHALTUNG S5Params;
// task no, ..
CONNECT_PARAMS CrParams;
// TSAP, NSAP, ..
unsigned short Karte;
// 0 = adapter 1
}S5_VERBINDUNGSDATEN_KARTE;
typedef struct _CP_REVISION {
unsigned short cb;
// length of the structure in bytes
unsigned short SerNo;
// serial number of the CP
unsigned short KachelNo;
// number of the selected tile
unsigned short KachelRev;
// Revision of the tile driver
unsigned short H1Rev;
// Revision of the H1 driver
unsigned short IpRev;
// Revision of the TCP/IP driver
unsigned short TermRev;
// Revision of the terminal
unsigned char StationAdr[6];
// Ethernet ROM station address
}CP_REVISION;
#pragma pack()
// Prototypes: access functions for .DLL or .LIB
#ifdef __cplusplus
extern "C" {
#endif
unsigned short WENTRY_C S5SetStationAddress(unsigned char W_POINTER address);
unsigned short WENTRY_C S5SetStationAdressCard(unsigned char W_POINTER address,unsigned short card);
unsigned short WENTRY_C S5StartConnection(H1_CONNECT_PARAMS W_POINTER cr);
unsigned short WENTRY_C S5StartConnectionCard(H1_CONNECT_PARAMS_LINE W_POINTER cr);
unsigned short WENTRY_C S5StopConnection(unsigned short connectionnumber);
unsigned short WENTRY_C S5StopConnectionAll(void);
unsigned
short
WENTRY_C
S5ReadFromPLC(S5_PARAMS
W_POINTER
s5,unsigned
short
memorylen,void
W_POINTER
memory,unsigned
short
W_POINTER s5error);
unsigned short WENTRY_C S5StarRead(S5_PARAMS W_POINTER s5);
unsigned short WENTRY_C S5CheckRead(unsigned short memorylen,void W_POINTER memory,unsigned short W_POINTER s5error,unsigned
short connectionnumber);
unsigned short WENTRY_C S5WriteToPLC(S5_PARAMS W_POINTER s5,void W_POINTER data,unsigned short W_POINTER s5error);
unsigned short WENTRY_C S5StartWrite(S5_PARAMS W_POINTER s5,void W_POINTER data);
unsigned short WENTRY_C S5CheckWrite(unsigned short W_POINTER s5error,unsigned short connectionnumber);
unsigned
short
WENTRY_C
S5FetchPassiv(unsigned
short
connectionnumber,short(WENTRY_C
*RetCall)(short
DB,short
DW,short
Type,short Len,short W_POINTER S5Err,void W_POINTER W_POINTER Data),void W_POINTER W_POINTER retptr);
unsigned
short
WENTRY_C
S5WritePassiv(unsigned
short
connectionnumber,short(WENTRY_C
*RetCall)(short
DB,short
DW,short
Typ,short Len,short W_POINTER Err,void W_POINTER W_POINTER Data),void W_POINTER W_POINTER retptr);
#if !defined(OS2_FUNCTIONS_INCLUDED) | !defined(WIN95_FUNCTIONS_INCLUDED) | !defined(NT_FUNCTIONS_INCLUDED)
unsigned short WENTRY_C S5SetVector(unsigned short vector);
#endif
Summary of Contents for CP 1413plus
Page 2: ...jkjlj...
Page 8: ...Contents CP1413plus manual iv Rev 00 07...
Page 10: ......
Page 16: ...Special features CP1413plus manual 1 6 Rev 00 07...
Page 18: ......
Page 38: ...Standards and specifications CP1413plus manual 2 20 Rev 00 07...
Page 40: ......
Page 104: ...Entry into protocol file H1PROT_NIF CP1413plus manual 3 64 Rev 00 07...
Page 106: ......
Page 178: ...PLC Layer 7 program interface CP1413plus manual 4 72 Rev 00 07...
Page 180: ......
Page 194: ......
Page 206: ...ksdjfk...
Page 306: ......
Page 317: ...Appendix A Technical data A 1 B Abbreviations B 1 C List of figures C 1 D Index D 1...
Page 318: ...dfgdfgfdg...
Page 324: ...List of figures CP1413plus manual C 2 Rev 00 07...