Did even more testing today, without any result:
1. Tested the new version 3.62
2. Tested all old versions available on Sourceforge
3. Upgraded Visual Basic PowerPack from v10 to v12.
4. Added/declared all missing bits in every word in the PLC (I had only declared bit 1-8 in B3:20 for example, so I added the rest)
5. Changed the settings of the com port in Windows to match the settings of DF1Comm.
None of the above worked either.
But I found what is causing the problemIf I add 3 basic indicators and assign them B3:20/0, B3:30/0 and B3:50/0, it will generate "
A first chance exception of type 'System.IndexOutOfRangeException' occurred in AdvancedHMIDrivers.dll".
If I add a fourth basic indicator and assign it B3:40/0, it will stop generating the error.
So I fiddled some more, and found that the magic limit is when you try read something that is 20 words or more apart. And it doesn't matter if it's B3:20/0, B3:30/0 and B3:50/0 - or B3:40/0, B3:50/0 and B3:70/0. As long as the bits are more then 20 words apart it will generate the error "IndexOutOfRangeException" and components that are assigned a bit to be visible will flicker.
Now that I know what is causing the problem, I can work my way around the problem
I found another thing as well. If the DF1Comm baudrate is set to auto, there will be some errors generated:
The thread 0x23ec has exited with code 259 (0x103).
The thread 0x92c has exited with code 259 (0x103).
The thread 0x239c has exited with code 259 (0x103).
The thread 0x20d4 has exited with code 259 (0x103).If you change it to 19200 (which is what my PLC is set to) there won't be any errors.
To Archie; Hats off for making this fantastic product! Is there a way to make a donation?