9/21/2016 7:26 AM | |
Joined: 3/14/2008 Last visit: 11/5/2024 Posts: 2122 Rating: (950)
|
Hi jkrinicky, There are more ways that lead to rome, but I suggest you will hold on to PCS7 standard. But this requires a bit more work, but is essential when creating large blocks of code. What Siemens does is the following: They create DWORD output variables called: "Status1", "Status2" etc.which shows the correct status on the block icon/faceplate. They address bits in those DWORD's. For example, I take an interlock block. It has 8 status variables. Status 2 shows the value of input signals In01-In08. Status 3 shows "InvIn01-InvIn08" which indicates if the inputs are inversed or not and Status 4 shows the input with inversion. So if In01 = 0 and InvIn01 = 1, then In01 with inversion = 1. What I want to indicate by this, is that the logic for displaying status is made in the block level. On the block icon or faceplate, several Extended Status Displays are used where they call the correct Status variable and then they indicated which bit must have which symbol. I suggest you will take a look at the APL Styleguide for more info on this matter. You must be aware that a byteswap must be made, otherwise the bits are switched when compiled to the OS. See the following link: APL Styleguide So, If you need any more info, let me know. Good luck! |
Last edited by: Oreca at: 9/21/2016 7:30:31 AMIf I could help you, you can use the RATE button. Thank you. |
|
This contribution was helpful to1 thankful Users |
Follow us on