R_Trig in AC800M not working in some codeblock
We have several times observed that R_Trig is not working. For example, the R_Trig.Q connect to RS's set parameter, after we set R_Trig input to true then, no matter we see that the R_Trig.Q comes to True or not while the RS remain reset state.
Answers
OK, you cant make statements like " this core system function in AC800M doesn't work " without making some basic attempts to show you've not simply written invalid code.
1. Post the code that doesn't work and show that its correct
2. Prove the reproducible case and report it as a bug.
1. Post the code that doesn't work and show that its correct
2. Prove the reproducible case and report it as a bug.
I have been working with Control Builder M since its very first version and I have never noticed that R_Trig has failed.
Use Find tool in your Program editor to search for R_Trig and RS instance names.
As Rob and PLidskog already wrote, likely there are same instance names for R_Trig or RS shared with other FBs.
Sometimes happens during FBD code copying that CBM doesn't warn about the same instance name in copied code.
Another issue may be that your code is writing to your R_Trig.Q or to RS.Q from other code tab. That sort of tricky programming should definitely be avoided.
Use Find tool in your Program editor to search for R_Trig and RS instance names.
As Rob and PLidskog already wrote, likely there are same instance names for R_Trig or RS shared with other FBs.
Sometimes happens during FBD code copying that CBM doesn't warn about the same instance name in copied code.
Another issue may be that your code is writing to your R_Trig.Q or to RS.Q from other code tab. That sort of tricky programming should definitely be avoided.
by Gao Huan Rank: 186 on 9/24/2020 10:22:49 PM | Like (0) | Report
We tried using TP instead of R_Trig and there was no problem.
by ParthibanT Rank: 42 on 9/24/2020 10:35:07 PM | Like (0) | Report
We have observed the similar experience too.
by PLidskog Rank: 133 on 9/25/2020 8:07:18 AM | Like (0) | Report
Are you sure your R_Trig is not referenced in more than one place?
by Gao Huan Rank: 186 on 9/26/2020 11:07:31 PM | Like (0) | Report
The latest case we are using a FBD type from our library, and some of the instance works while some not. To make sure we're not reference it more than once, we tried remove the original one and add a new one. To make sure the R_Trig not referenced twice in library, we also tried remove the instance and insert a new one.
by BEAB Rank: 35 on 9/29/2020 6:29:59 AM | Like (0) | Report
I guess you are aware of the difference between RS and SR fb's?
Add new comment