Are there any cons to using VAR_INST
Ever since I started working with TcUnit I have been, in many cases, working with a lot of VAR_INST
declarations for a whole bunch of tests. This is due to the nature of how PLC world works, where you need to keep calling the body to do something, the tests are running in “parallel”, which could mean tests that share the same function block must be sure what state it is in – if another test would be changing any property it would fail every other test.
How to add objects into array? (TwinCAT3)
I would like to save my array of objects (arr) into json file from Beckhoff TwinCAT3 using FB_JsonDomParser
. This is what I want to get: