alexander_f94
Hi,
 
Recently i started having problems with inputs and outputs "floating" in debugger mode. All i/o randomly starts to flash green, setting end resetting.
 
The program runs fine on the hardwere, no floating inputs etc. If i start a new project and add exactly the same ladder code and pin mapping it works fine for some time. then suddenly entering debugging mode the i/o starts flickering again.
 
If i simulate the program on runtime the debugging works fine.
hardwere is a arduino uno.
Reply 0 0
thiagoralves
This is a bug on the serial debugger affecting mainly low end platforms like Arduino boards. This bug has been fixed already. The fix will be publicly available on the next editor build which is happening soon.
Reply 0 0
alexander_f94
Perfect, i really appreciate the time and effort you put into this program. Im still getting used to the v4 version, do you know if ther's a way to invert the input of a function block ? (bool) in v4 were you assign the input directly to the block i see no way of changing between no/nc contact like in the v3.
Reply 0 0
thiagoralves
Just write NOT(variable) on the pin and it will work. The NOT() instruction negates a bool variable.
Reply 0 0
alexander_f94
I cant type in NOT, it says illegal variable name. In this example i want to negate the reset input of a SR function block.
Reply 0 0
PeBi
Please do not insert a variable, but use a function from the library.
[203128%2F9693363%2Fmceclip0]
Reply 0 0
alexander_f94
That would be a good option if you were able to assign contacts directly to the input "pins" of a function block (reset for a RS latch in this case)
If needed to make a new rung with a NOT function to invert the input, its the same as connecting the input to a inverted coil and using that for input in the latch.
Reply 1 0
Reply