Changes between Version 8 and Version 9 of Docs/Prog/Manual/DeviceSupport/DIO
- Timestamp:
- 11/30/09 13:32:31 (15 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Docs/Prog/Manual/DeviceSupport/DIO
v8 v9 1 1 [[TOC(heading=Table of Contents, Docs/Prog/Manual/DeviceSupport/*)]] [[PageOutline]] 2 2 3 = = DIO ==4 5 == = Digital I/O ===3 = DIO = 4 5 == Digital I/O == 6 6 {{{ 7 7 echo âL000000020000000Fâ > /dev/mnbd … … 99 99 For digital I/O event operations refer to the DioEvent class. 100 100 101 == = DIO Events ===102 103 === = About ====101 == DIO Events == 102 103 === About === 104 104 This document will guide the programmer through the process of creating and using a simple DIO Event using the DioEvent class provided in the standard library (lib825). DIO Events are processed by the mainboard in order to allow a level of redundancy. Should the OPI board kernel crash the mainboard will continue to provide relay functionality and will disable events when their thresholds are reached. 105 105 106 === = The Code ====106 === The Code === 107 107 To use a DIO event follow the example code below. 108 108 … … 144 144 The above code would create an event that would enable board 0 (mainboard) pin 0 when the gross weight of scale 1 is less than 250.00 and greater than 0.00. 145 145 146 == = DIO Counting ===147 148 === = Description ====146 == DIO Counting == 147 148 === Description === 149 149 150 150 Mainboard software 1.15 is required for counting feature. Kernel 2009-10-07 or later is required. All four inputs of the mainboard may be used for counting. The DIO cards allow any one of inputs 1 - 7 to be used for counting. Input 8 may also be used for counting. This allows for up to two inputs per DIO card to be used for counting. 151 151 152 === = Example ====152 === Example === 153 153 154 154 {{{