richw
This is the first time I'm using the v4 simulator and not sure if I'm doing something incorrectly or this is a bug. When forcing an integer variable and entering the number 1, the debugger variable shows 256 and any other numbers entered are a multiple of 256
Reply 0 0
Write a reply...
thiagoralves
Ouch… that may be a nasty bug. Can you provide more details on how to reproduce this?
Reply 0 0
richw
Screenshot 2026-02-26 224158.png
 
I just start the simulator and force a value by clicking on LocalVar_1 and enter 1 and 256 is displayed in the debugger. I just downloaded v4.1.3.
Reply 0 0
richw
Screenshot 2026-02-26 230631.png
 
Also when using the simulator or compiling and running on the runtime the lines are not all green when the output is true. Not sure if this is just related to the GT block or other blocks. When forcing the Reset_RS variable the line is green when true.
Reply 0 0
fg71
I tested the GT in simulator and I got something very strange, if I use force value of 1 I got 256 for int and if I use 10 I got 2560.
It looks to me the force value in simulator is multiplied with 10 🙂
 
[203128%2F9694565%2Fmceclip0]
Reply 0 0
richw
@fg71 Not to nitpick, but if it was a multiple of 10 and you forced a variable to 10 it would 10 x 10 which would be 100 not 2560. Anyway there seems to be a bug in the simulator when forcing a variable.
Reply 0 0
thiagoralves
The issue is on endianness. I'm already looking into that, should make a new release soon. Since this is a minor thing, I don't want to bump to version 4.1.4. So I will just make a new build with 4.1.3. Make sure you download and install it again once it is ready.
Reply 0 0
Alder
I literally just entered here to check if this bug was announced or not. Whatever it is, is down to the bytes.

For INTs : 1=256, 2=512
For DINTs and REALs it gets even weirder.
Probably a small detail in the code, but defo has quite devastating effects.
 
When can we expect the fix?
Reply 0 0
thiagoralves
When can we expect the fix?
 
In a few minutes...
Reply 0 0
Alder
In a few minutes...
If only all software developers were like you!
Thank you for all of your efforts!
Reply 0 0
thiagoralves
If only all software developers were like you!
Thank you for all of your efforts!
Thanks! This actually may take a little bit longer since I'm also baking a few other things that were almost ready. Since this is more than just a simple simulator fix, I might as well do a version bump to v4.1.4. So make sure you download the new one once it is available. Should be done in an hour or two.
Reply 0 0
richw
I downloaded and compiled the latest source code to check for the fixes. Showing the values on the FBD schematic is very nice. The GT block green line now works when the bool value is true, but not working for the AND block.  
Reply 0 0
thiagoralves
Build v4.1.4 is on the oven. Sorry it took a little longer, but I wanted it to have the new extra features we were baking. Enjoy!
Reply 0 0
richw
The download doesn't seem to be working
Reply 0 0
thiagoralves
Does it give you an error when you try to install? What OS are you trying it on?
Reply 0 0
Write a reply...
Reply