The HA7Net supports a high level SwitchControl function which allows you to easily check and control the state of the PIO pins on the DS2406. This function can also be used to support many devices manufactured by Embedded Data Systems and AAG including the D2 product line, the TxSS product line, and the TAI8555 Switch, all of which incorporate the DS2406.
URL: /1Wire/SwitchControl.html?SwitchRequest={Address1, {{Channel1, Action1, Reset}, {Channel2, Action2, Reset}}}
The variables passed to the SwitchControl function are broken down as follows:
Address1 = the ROM id of a specific DS2406
Channel1 = which PIO pin on the DS2406 should be addressed:
PIO-A = 1
PIO-B = 2
Action1 = what should be done to the DS2406:
Read = check current state of PIO pin without changing the state
InputRead = Sets the output transistor to not conducting (Off) which allows the DS2406 to sense whether the input is high or low
OutputLow = Sets the output transistor to conducting (On)
Reset
False = Do not reset activity latch
True = Reset activity latch after reading