DELIB API reference |
Seite
44
4.3.7. DapiDIGetCounter
Description
This command reads the counter of a digital input
Definition
ULONG DapiDIGetCounter(handle, ch, par1);
Parameters
handle=This is the handle of an opened module.
ch=Specifies the digital input, from which the counter will be read
par1=0 (Normal counter function)
par1=DAPI_CNT_MODE_READ_WITH_RESET (Reading and resetting the
counter)
Return value
Value of the counter.
Example program
value = DapiDIGetCounter(handle, 0 ,0);
// Reading counter of DI Chan 0
value = DapiDIGetCounter(handle, 1 ,0);
// Reading counter of DI Chan 1
value = DapiDIGetCounter(handle, 8 ,0);
// Reading counter of DI Chan 8
value = DapiDIGetCounter(handle, 0 ,DAPI_CNT_MODE_READ_WITH_RESET);
// Reading AND resetting counter of DI Chan 0
Summary of Contents for RO-INTERFACE-ETH
Page 1: ...Hardware Description Oktober RO INTERFACE ETH 2010 ...
Page 4: ...I Introduction Seite 4 Introduction ...
Page 6: ...II Hardware description Seite 6 Hardware description ...
Page 12: ...III Configuring the module Seite 12 Configuring the module ...
Page 19: ...IV Firmware Update Seite 19 Firmware Update ...
Page 23: ...V Restore basic configuration Seite 23 Restore basic configuration ...
Page 25: ...VI Software Seite 25 Software ...
Page 37: ...VII Appendix Seite 37 Appendix ...
Page 38: ...Appendix Seite 38 7 Appendix 7 1 Revisions Rev 1 00 First issue Rev 2 00 Design change ...
Page 40: ...Hardware Description Oktober RO DIGITAL IN OUT 2010 ...
Page 44: ...I Introduction Seite 5 Introduction ...
Page 46: ...II Hardware description Seite 7 Hardware description ...
Page 62: ...III Software Seite 23 Software ...
Page 72: ...IV DELIB API reference Seite 33 DELIB API reference ...
Page 96: ...V Appendix Seite 57 Appendix ...
Page 97: ...Appendix Seite 58 5 Appendix 5 1 Revisions Rev 1 00 First issue Rev 2 00 Design change ...
Page 99: ...Hardware Description November RO STEPPER2 2010 ...
Page 103: ...I Introduction Seite 5 Introduction ...
Page 105: ...II Hardware description Seite 7 Hardware description ...
Page 109: ...III Software Seite 11 Software ...
Page 120: ...IV DELIB API reference Seite 22 DELIB API reference ...
Page 159: ...V Appendix Seite 61 Appendix ...
Page 162: ...Hardware Description November RO Series 2010 ...
Page 170: ...I Introduction Seite 9 Introduction ...
Page 172: ...II Hardware description Seite 11 Hardware description ...
Page 251: ...III Software Seite 90 Software ...
Page 263: ...IV DELIB API reference Seite 102 DELIB API reference ...
Page 333: ...V Appendix Seite 172 Appendix ...
Page 336: ...DEDITEC Driver Library Dezember DELIB 2010 ...
Page 341: ...I Welcome Seite 6 Welcome ...
Page 342: ...Welcome Seite 7 1 Welcome Manual DELIB ...
Page 343: ...II Introduction Seite 8 Introduction ...
Page 345: ...III Software Seite 10 Software ...
Page 357: ...IV Directory structure of the DELIB Seite 22 Directory structure of the DELIB ...
Page 360: ...V DELIB API reference Seite 25 DELIB API reference ...
Page 440: ...VI Appendix Seite 105 Appendix ...