Somehow missed that 'end' when copy -pasted the code here. I actually already did the test with eliminating the com port, but just to be sure that i am not missing something, i commented those parts again
--dev = com.open("COM3",115200,0)
and
--com.write (dev, sen)
and it crashed again. Then i commented all
--dev = com.open("COM3",115200,0)
--com.write (dev, sen)
--ipc.log(sen)
--ipc.display(sen)
but crashed again. And then i did the opposite test - re-enabled the com port, but exchanged 02C8 offset with another one extracting vertical speed data 030C ( i know that one works ), also commented 3BE7
vsOne = ipc.readSD("030C")
--vsiFail = ipc.readUB("3BE7")
and inadvertent FS9 crashes stopped. Both 02C8 and 3BE7 , when used within Lua plug-in (in pair or on their own) are making the problem to re-appear . And there are some more like them. The problem is really really strange one . The 'clear time' before FS9 crashes is getting much shorter, when more of those are placed and called within the same lua plug-in, compared to occasions when only one sensitive offset is used.