Your comments
sorry for the delayed response. I have tried to use the beta version, but when I start the play mode I get this debugging error-message: "Assets\game4automation\private\Interfaces\S7TCPIP\S7Interface.cs(14,7): error CS0246: The type or namespace name 'Codice' could not be found (are you missing a using directive or an assembly reference?)" and can not start the simulation mode.
I know that sounds strange, but in TIA the variable table can not contain variables. It's not possible to define non HW related variables there, only Input and Output, and the obsolete Marker. So I can not provide you a sdf file. The syntax for addressing the DB variables is just "DB name"."Variable name" or in a older way %"DB name"."Variable name". Maybe that can help you.
okay, thanks. It would be great if this will be possible.
Yes I have tried that. But I had no connection to the defined variable.
Customer support service by UserEcho
Now I've modified the s7interfaces.tcpip file so I could run it. I did not manage to make access to bits but the other data types worked fine. I later have to try it again. Sadly, S7snap can not handle the optimized access as far as I know at the moment, so a direct access to a value by addressing the variable name in the DB is not possible and the CPU and DBs have to run in not optimized mode, but anyway, this is a huge improvement for a lot of users with Siemens CPUs for testing. Thanks for implementing. I hope to see this feature in a final release.
Edit: The problem with the Bits is that the lowest and highest Bit in a Byte are reversed (for example DB5.3 in g4a is DB5.5 on the CPU). Changing the option "Reverse High Low Bytes" to deactivated which seems to be for 2 or 4 Byte, not one, only leads to 0 in all data types.