
Programming
CP1413plus manual
7-92
Rev. 00/07
7.6.4.2.6 Get a list of connections from the specified file
#include <MSGINDEX.H>
#include <S5ACCESS.H>
unsigned short WENTRY_C S5ListeNetVerbindungen(char W_POINTER
Dateiname, short len, char mem)
The function
S5ListeNetVerbindungen
returns a list with all the names of the connections
that have been entered into the file. You may use this function to check whether a specific
connection exists or not..
Parameters
Dateiname
the name of the Net file from which the list of
connections must be retrieved.
len
specifies the length of the memory area used for the
transfer.
mem
is the pointer to the memory area. The allocated length
must equal or exceed the setting in
len
.
Returns
0
OK, memory now contains the connection names
separated by null terminators and a byte.
Bit 0: the connection is in use if this is set to 1.
Bit 1: always 0
Bit 2: a 1 indicates an H1 connection
Bit 3: a 1 indicates a TCP/IP connection
Bit 4: a 1 indicates a send connection
(SEND DIRECT)
Bit 5: a 1 indicates a receive connection
(RECEIVE DIRECT)
The list ends with two null terminators.
TEXT_NO_NET_FILE
the connection file does not exist.
Note
This function makes use of files. It is therefore not possible to call the function from
a driver.
See also
H1LeseParameter
H1SchreibeParameter
S5LeseParameter
S5SchreibeParameter
Содержание CP 1413plus
Страница 1: ...Subject to change to cater for technical progress Manual CP 1413plus Order No VIPA SSN HB83E Rev 00 07...
Страница 2: ...jkjlj...
Страница 8: ...Contents CP1413plus manual iv Rev 00 07...
Страница 10: ......
Страница 16: ...Special features CP1413plus manual 1 6 Rev 00 07...
Страница 18: ......
Страница 38: ...Standards and specifications CP1413plus manual 2 20 Rev 00 07...
Страница 40: ......
Страница 104: ...Entry into protocol file H1PROT_NIF CP1413plus manual 3 64 Rev 00 07...
Страница 106: ......
Страница 178: ...PLC Layer 7 program interface CP1413plus manual 4 72 Rev 00 07...
Страница 180: ......
Страница 194: ......
Страница 206: ...ksdjfk...
Страница 276: ...Programming CP1413plus manual 7 70 Rev 00 07 Flowchart Read from PLC Fig 7 7 Flowchart Read from PLC...
Страница 305: ...8 Supplement Please find here the current product description which was not ready for print earlier...
Страница 306: ......
Страница 317: ...Appendix A Technical data A 1 B Abbreviations B 1 C List of figures C 1 D Index D 1...
Страница 318: ...dfgdfgfdg...
Страница 324: ...List of figures CP1413plus manual C 2 Rev 00 07...