- Posts: 21
- Thank you received: 3
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
orpokeys.[DevID].digin.[PinID].in bit State of the hardware input
pokeys.[DevID].digin.[PinID].in-not bit Inverted state of the input.
if you just comment the these two lines then only the pins are being createdpokeys.[DevID].digout.[PinID].out
but the bit digitalIn or digital out are not read. (you would need to uncomment the lines 2319 and 2325 to get the digitalinputs updated)pokeys.[DevID].Pins.[PinID].DigitalValueGet
pokeys.[DevID].Pins.[PinID].DigitalValueSet
but i would suggest just to use the newly named digital inputs in your HAL-Fileif (DigitalIOGet = true) { if (dev->Pins.DigitalValueGet == 0) { //Pins_DigitalValueGet(i)=false; digin_in(i) = false; digin_in_not(i) = true; } else { //Pins_DigitalValueGet(i)=true; digin_in(i) = true; digin_in_not(i) = false; } }
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.