Using analog inputs I can get the voltage reading but how do i switch to the current loop?
Among my references is http://www.digi.com/wiki/developer/index.php/Dia_Config_AIO_Adapter
It says to set D8, D4, D6 and/or P0, D7, P2 to a value of 4 in order to enable the current loop.
one of the things i tried is this code:
zigbee.ddo_set_param(DESTINATION, 'D0', 2)
zigbee.ddo_set_param(DESTINATION, 'D1', 2)
zigbee.ddo_set_param(DESTINATION, 'D2', 2)
zigbee.ddo_set_param(DESTINATION, 'D3', 2)
zigbee.ddo_set_param(DESTINATION, "wr", "")
zigbee.ddo_set_param(DESTINATION, "ac", "")
zigbee.ddo_set_param(DESTINATION, 'P0', 4)
zigbee.ddo_set_param(DESTINATION, 'D7', 4)
zigbee.ddo_set_param(DESTINATION, 'P2', 4)
zigbee.ddo_set_param(DESTINATION, "wr", "")
zigbee.ddo_set_param(DESTINATION, "ac", "")
for this code i get some almost constant value on terminal 1 (pin 3 on the 14 pin plug of the connectport x4h). the value slightly fluctuates but independent of the actual input. for the 3 other terminals (pins 6, 9, and 12) i continue to get the voltage readings. another weird thing is that i’m not getting any current to flow.
i’m using an external source with about 5V and up to 30mA but the most current i can measure going through the “current loop” is hardly 1mA so that tells me that i’m doing something wrong.
any help is very much appreciated.