I got an S7-1200 Siemens PLC connected to my Ignition, I’m able to access its coils, MDs, M’s, etc etc. I unchecked the “Optimized block access”, I’ve been trying to access the data blocks like in the Ignition website says (Siemens - Ignition User Manual 7.9 - Ignition Documentation) by doing DBn10,R50 but nothing, is there a way to access these data blocks?
I’m having a similar problem with my S7-1500. I successfully tried TCP/IP, but with S7, I always end up with “Bad” quality on PLC tags.
My syntax [S7]DB57,X4.0
S7 connected status is 1, so that is okay.
Boolean in 4.0 offset. datablock 57. Also tried with DInt and others, but always bad quality.
Optimized block access is turned off, accessible for writing/reading, non restricted access to anyone…
I have run out of ideas what to try.
Hello all, I had a similar problem trying to read tags from a DB on an S7-1200 in which the tag addressing was correct and the Siemens settings (PUT/GET ,non-optimized access, etc.) were fine, but I was still getting bad status from those tag connections. The solution for my issue was in @Kevin.Herron's point #1 above. I had a test tag off somewhere else in my data browser that was trying to reference a part of the DB that didn't exist, and as a result, all tag connections to that DB in my default tag group were bad status. The error description I was getting was:
Bad("Bad_ConfigurationError: There is a problem with the configuration that affects the usefulness of the value.")
If you reference any part of a DB that doesn't exist (i.e. DB4X3.8, but the offsets end at 3.7), then all subscribed tag connections to that DB will break. Apparently since they are all sent together when polling the device, if any single connection is invalid it will break all the connections in that subscribed tag group. The service tech I spoke with mentioned the same thing happens if you have incorrect addressing on Modbus connections.
If you suspect this is happening, one thing you can do to troubleshoot is create a new tag with a valid reference to the DB, then assign it to a new tag group with data mode set to Polled . That OPC request will be sent separately from all the subscribed tag connections, and it should work. Then you know that at least one of your subscribed tag connections is breaking all of the references to that DB.