An oDIO8 Object's State property represents the binary value of the electrical state of the I/O lines specified by the IOGroup property. The I/O groups are 8 contiguous I/O Lines beginning at I/O line 8, 16, or 24. The Direction property specifies if the I/O Lines are inputs or outputs. When the Direction property is 1 (an input), the electrical state of the specified I/O Lines are copied to the State property once each Object List Loop. When the Direction property is 0 (an output), the electrical state of the specified I/O Lines are set to the state of the State property once each Object List Loop. Note that the Direction property is a single bit. When set, it will set all eight I/O Lines accordingly. When the IOGroup property is set, the Direction property is updated to reflect the current state of the specified I/O Lines by copying the current direction from the 1st Pin's direction register. The IOGroup property is an instance of the oIOGroup object which is created when the oDIO8 object is. The oDIO8 object uses the oIOGroup Object to do the actual I/O to the eight I/O lines. Since the default property of the oIOGroup specifies which I/O lines to work with, then the IOGroup property can be directly specified. Example: IOGroup = 1. (see oIOGroup object for more detail) 3 physical 8-bit I/O Groups are implemented within the ooPIC. Caution: IOGroup 2 is used for special purposes such as PWM, serial input/output and DDELink.. Be sure that you are not using this IOGroup if these special functions are in use. |