Announcement

Collapse
No announcement yet.

Cannot Compile - Tag missing in instruction

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • kewakl
    started a topic Cannot Compile - Tag missing in instruction

    Cannot Compile - Tag missing in instruction

    Consider this an FYI and a bug report as I do not require help with this issue.
    Issue: STA fails to compile if array type and statistical operation/parameter are changed.
    I have tested several versions of PAC Suite and found that they exhibit this issue: Versions 1.4.1(1),1.5.1(2), 1.6.1(6) and 1.7.0(18)
    Error Message:
    Cannot compile 'Run Every Scan' task '#taskname#'
    Location: Rung nn, Column nn
    Reason: Tag missing in instruction
    Reproducible: Yes
    Steps to reproduce:
    1. ensure that you have at least 1 integer array and 1 boolean array
    2. ensure that you have at least 2 integer tags
    (for the purpose of this post, I named the tags Integer1, Integer2, IntArray1 and BoolArray1 and set all array columns to 5)
    3. Populate an STA instruction with the following:
    Code:
       Array [IntArray1]
       Output [Integer1]
       Start [Column 1]
       End [Column 5]
       Select the 'Number of Elements Greater Than' operation and fill with [Integer2]
       -------OR-------
       Select the 'Number of Elements Less Than' operation and fill with [Integer2]
    4. Click OK.
    This will compile ok.
    5. Now edit your STA instruction:
    6. Delete the Integer2 tag from the Greater/Less Than operation's parameter.
    7. Select the 'Sum' operation.
    8. Change the Array to [BoolArray1]
    9. Click OK.

    This will NOT compile - for the reason provided.
    If you leave the Greater/Less Than operation's parameter filled with Integer2, then it will be grayed out and the instruction will compile.
    Last edited by kewakl; 12-12-2012, 08:14 PM. Reason: Added note for FYI

  • kewakl
    replied
    Fixed in 1.8.2(1)

    Leave a comment:


  • P3K_ADC_Eng
    replied
    Thanks for reporting this issue, I have reported this to our software development team, it will be fixed in the next release.

    Leave a comment:


  • kewakl
    replied
    Continuing...
    When attempting to remedy the 'issue' NO hints are provided to the problem.
    The error message says that a Tag Is Missing.
    With the New STA configuration, there is NO missing tag.

    - If you perform the edit a bit differently, the issue is avoided altogether.

    Refer to the previous post...
    6. Delete the Integer2 tag from the Greater/Less Than operation's parameter.
    7. Select the 'Sum' operation.
    8. Click OK
    9. Edit the STA instruction
    10. Change the Array to [BoolArray1]
    11. Click OK.
    Now compile. It will.

    Leave a comment:

Working...
X