Programming
CP1413plus manual
7-36
Rev. 00/07
7.6.2.3 H1 layer 4 specific functions
7.6.2.3.1 Transmitting data
#include <H1Def.h>
unsigned short WENTRY_C H1SendeDaten(H1_SENDPARAMS W_POINTER send)
This function transmits data over an established connection. Once the function is initiated it will
only return when the transmission was completed successfully or when the connection was
terminated.
Parameters
send
pointer to a structure containing transmission parameters. The
parameters
Vnr
,
DataLen
and
SendLen(=0)
must be specified.
The buffer located at the end of the structure must have a length of
sizeof(H1_SENDPARAMS) + DataLen
.
Bit 15 of element Vnr must be set if the message must form a part of a
blocked
transmission.
On
the
receiving
side
this
bit
sets
H1_BLOCKED_DATA
in the element
Fehler
. Bit 15 must never be set
in the last message of a blocked transmission.
Possible values returned by
send.Fehler
are:
0
H1_BAD_LINE
H1_NO_DRIVER
H1_NO_ADAPTER
H1_NOT_SUPPORTED
Returns
< >
0
An error has occurred in the operating system.
0
The send.Fehler element contains one of the above values
Note
This function will only return once the transmission has been completed successfully
or when a timeout occurs. The function may be started and polled on a cyclic basis by
means of the functions
H1StarteSenden/H1AbfrageSenden
. The function
H1SendeDatenOverlapped
continues and does not wait for completion.
The driver must have been opened by means of
H1DriverOpen
and a connection
established by means of
H1StarteVerbindung
or
H1StarteVerbindungOverlapped
.
See also
H1SendeDatenEx
H1SendeDatenExOverlapped
H1StarteSenden
H1StarteSendenOverlapped
H1StarteSendenExOverlapped
H1AbfrageSenden
H1GetOverlappedResult
Содержание 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...