I'm trying to update my analog input FC to also have proper channel diagnostics.
So I enabled all those options for analog inputs on AI cards.
Now, when I go online I can see what I'm getting as diagnostic (wire break when we disconnect AI).
Now I try to get that in my program, for alarms and such.
But it seems it's impossible to extract such data with GET_DIAG function I planned to use. With that I can get diagnostics for remote IO head and I can get diagnostics for module (8x analog inputs card). But not possible to get it to channel level.
I've seen Siemens suggests using interrupt OB (OB82) and RALRM function, but it's not how I like it and doesn't fit our current FC we used in 300/400 PLCs.
So is there a way to incorporate this in FC which is called every cycle?
Is there a number from AI(I've seen 32767 appearing for 4-20mA sensors when they are disconnected) which tells it's wire break? Since that could also be signal overflow (max. value reached).
So I enabled all those options for analog inputs on AI cards.
Now, when I go online I can see what I'm getting as diagnostic (wire break when we disconnect AI).
Now I try to get that in my program, for alarms and such.
But it seems it's impossible to extract such data with GET_DIAG function I planned to use. With that I can get diagnostics for remote IO head and I can get diagnostics for module (8x analog inputs card). But not possible to get it to channel level.
I've seen Siemens suggests using interrupt OB (OB82) and RALRM function, but it's not how I like it and doesn't fit our current FC we used in 300/400 PLCs.
So is there a way to incorporate this in FC which is called every cycle?
Is there a number from AI(I've seen 32767 appearing for 4-20mA sensors when they are disconnected) which tells it's wire break? Since that could also be signal overflow (max. value reached).