Good morning,
into UDT (or tags in general) is possibile do define sequence for calculated tag?
In my case I need to calculate Datetime readed from siemens , and I need that DT is calculated as last expression, for be sure to have consistent value.
Someone have idea of how I can do?
Thanks
Hello, I think you can achieve what you want by building your datetime tag using getDate() and setTime().
setTime(getDate({[.]DT_YY}, {[.]DT_MN}, {[.]DT_DD}), {[.]DT_HH}, {[.]DT_MT}, {[.]DT_SS})
may be i'm not explained very well.
"BCD" tag are readed from plc, scheduladed at ScanGroup, expression tag are too executed at same ScanGroup , but for some raison (that i don't arrive to identifie) expression tag are not executed after opc tag reading, and calculated tag DT don't have consistence value (correct value)
Use derived tags instead of expression tags.
If you don't want the DT tags to be able to write back to the BCD tags, remove the write expression.