pitons2
Member
Hello!
The problem is with script execution order in InTouch. In InTouch I receive bool tag from AB PLC that indicate if device is in error state or not. Also I receive integer tag, that holds error code. The bool tag calls an alarm in InTouch in case it changes from 0 to 1. If it does - I use script to write an error code in the alarm message Tag1.AlarmUserDefNum1=ErrorCode; and also write in the error description in alarm message Tag1.AlarmUserDefStr=ErrorDescription from SQL database for specified error code and device. The problem is, that my script executes on DataChange or Condition for Tag1. But when it does - alarm message is already processed and the values I set in my script is showed in alarm message only on next alarm. Is there somebody, who can help me to solve this issue? To duplicate tags and to call a duplicated tag after script execution is a bad option. It doubles the tag count in InTouch.
Thank you very much!
The problem is with script execution order in InTouch. In InTouch I receive bool tag from AB PLC that indicate if device is in error state or not. Also I receive integer tag, that holds error code. The bool tag calls an alarm in InTouch in case it changes from 0 to 1. If it does - I use script to write an error code in the alarm message Tag1.AlarmUserDefNum1=ErrorCode; and also write in the error description in alarm message Tag1.AlarmUserDefStr=ErrorDescription from SQL database for specified error code and device. The problem is, that my script executes on DataChange or Condition for Tag1. But when it does - alarm message is already processed and the values I set in my script is showed in alarm message only on next alarm. Is there somebody, who can help me to solve this issue? To duplicate tags and to call a duplicated tag after script execution is a bad option. It doubles the tag count in InTouch.
Thank you very much!