H1 Layer 4 program interface
CP1413plus manual
4-38
Rev. 00/07
4.2.3.10 Check read
#include <H1Def.h>
unsigned short WENTRY_C H1CheckRead(H1_RECPARAMS W_POINTER rec)
This function determines whether a read task that was initiated by means of
H1StartRead
is still
active.
Parameters
rec
Pointer to a structure containing receive parameters. Parameters Vnr
and DataLen must contain the respective values. Ensure that the
buffer at the end of the structure is large enough.
Possible values returned by
rec.Fehler
:
0
H1_WAIT_CONNECT
H1_BLOCKED_DATA
H1_BAD_LINE
H1_WAIT_DATA
H1_NO_DRIVER
H1_NO_ADAPTER
H1_NO_REQUEST
Return value
< >
0
The operating system has detected an error.
0
The
rec.Fehler
element contains one of the values mentioned
above.
Note
This function is normally executed in singletasking systems. You may not mix the
H1ReadData
and
H1StartRead
/
H1CheckRead
tasks for a single
connection. The driver must first be initiated by means of
H1DriverOpen
and a
connection must also be established by executing
H1StartConnect
or
H1StartConnectCard
. When a value of
H1_WAIT_SEND
is returned the
H1CheckRead
function must be repeated (polling).
See also
H1DriverOpen
H1DriverClose
H1StartConnect
H1StartConnectCard
H1ReadData
H1StartRead
The following page contains a flowchart that shows how you should use these functions in your
programs.
The example for a read operation shown in chapter 6 operates according to this flowchart.
Содержание 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...