7/30/2019 10:58 AM | |
Joined: 6/14/2019 Last visit: 8/7/2021 Posts: 30 Rating: (1) |
Hi all, thanks for replies and suggestions. Murof - Thank you, we will use your suggested method. Hati - Thanks for the suggestion. I would use that method, but we wanted to keep the fault tags within our main UDT which is using optimised DBs. In a different context I would use that method. Autogen - Don't get me wrong, on the whole I really like TIA Portal and it's an excellent product. However, when certain functionality is (IMO) archaic and unnecessary, I'm happy to criticise it. Hopefully the developers look at this forum and can consider customer feedback when considering future development directions. SOLUTION Here is the solution I am using for mapping my Boolean fault bits to two alarm Words. I could have used only one alarm word, but decided to use two for future flexibility. 1. The existing axis type is as follows: [snip] 2. The existing Fault type is as follows: [snip] 3. Solution: Create HMI Alarms type with two Words: [snip] 4. Add HMI Alarms type to the Main type: [snip] 5. Extend the Faults type to use 32 bits (necessary for the Gather function): [snip] 6. In the axis Function Block, create a DWord temp tag. Then: - a. Map the Faults structure to the temp DWord using the Gather function. - b. Map the temp DWord to the two alarm words using Move functions using the ".%W0" and ".%W1" syntax : [snip] Regards, Angus
AttachmentFigures.zip (228 Downloads) |
Last edited by: Angus_ at: 07/30/2019 10:59:21Last edited by: Angus_ at: 07/30/2019 11:00:17Last edited by: Angus_ at: 07/30/2019 11:04:02Last edited by: Angus_ at: 07/30/2019 11:06:25Last edited by: Jen_Moderator at: 07/30/2019 13:42:48Removed links and added files as an attachment. |
|
Follow us on