Hello,
In an application of mine, I am linking an external reference to the TRK_IN_D parameter of an EDC block. This is so I can handle HOA switches in another module and link them if one exists. The issue that I am running into is when I configure the external reference with #IGNORE, the default value of #IGNORE is so large (3.4 E+038) that is causes an input error on the EDC and throws a MODBAD alarm.
I would like to logically determine if the external reference has an actual reference or if it uses #IGNORE and then condition it if necessary. I have tried looking at the ST, CST, and $REF to see if there is anything I can use, but to no avail. I am currently thinking about just checking to see if the value of the external reference is < 255 (or some other similarly smaller value) to determine this. However, I am not sure if this is the most reliable method.
Is there a better way to detect this or change the value of #IGNORE?
Thanks,
Dave
In reply to Matt Forbis:
In reply to gamella: