Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Post execution of Unit Test doesn't reset input action values #3

Closed
alex-controlx opened this issue May 21, 2020 · 1 comment
Closed
Assignees

Comments

@alex-controlx
Copy link
Member

To replicate the issues:

  • Create PLC rung as below
    Screen Shot 2020-05-21 at 4 28 59 pm
  • In Unit Test set Define input actions to DI_PUMP1_TOL_OK = 0
  • Expected output change to LS1_o_Healthy expect 0 after 0.05 second
  • In Post execution parameters add DI_Reset_RQ toggle to 1 for 1 sec

Screen Shot 2020-05-21 at 4 39 30 pm

The unit test will PASS but doesn't reset to initial state.

Suggestion:

  • Define input actions need to be reset to initial state prior executing Post execution code

Workaround:

  • Add Set Tag Value and Reset Tag Value after the Unit Test where set DI_PUMP1_TOL_OK to 1 and toggle DI_Reset_RQ, respectively.
  • Cons: it becomes too messy.
@alex-controlx alex-controlx self-assigned this May 21, 2020
@alex-controlx
Copy link
Member Author

Issue fixed in version 0.1.9

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant