What error did you have in the module diagnostics buffer? I used S7-1200 CPU firmware V4.3 and when I tried to add communication or signal module to CPU, I got this error: "error in lower level component". I'm working on a university project (Università della Svizzera Italiana in Lugano). Can't attach a screenshot here.
Schneider Electric FAQ | Attachments unavailable https://www.se.com/us/en/faqs/home https://proessays.org
... View more
So if I was doing this:
PrevSW125 := %SW125;
PrevS18 := %S18;
cong := 69069*cong+1234567;
%SW125 := PrevSW125;
%S18 := PrevS18;
What is expected to be 'different'.. it appears to still generate the system diagnostic log entry, and I suspect that it will still flash the fault light.
I really don't want to just turn off the system diagnostics, since it's incredibly useful for other situations, like genuine code errors (e.g. index array out of bounds, PIDIFF instructions with inf/sup set to the same values etc).
Unfortunately the overflow is a part of the operation. A MODulus could be performed.. but it's already using a UDINT, so there's no bigger elementary type that I could use to fit the operation and then MOD it back down (right?)
Converting to a REAL for the dynamic range will ruin the entire psuedo-random behaviour of it (NOTE: I'm not using this for cryptography, so the trivial prediction of the sequence is not an issue... but the 'random' distribution of results is necessary)
... View more