shenbagaraj Posted October 21, 2007 Report Posted October 21, 2007 I am using OP270 along with S7 300 in a small plant for visualization and message display. I want to change the colour of the plant elements according to thier status and failures. There is a status word for each part, in which each bit means a failure or status of a particular part. i had drawn the parts with vector graphics available in protool. and had assigned different colors in the "attirbutes" tab. Now if any one of bit is high the screen elements changes to appropriate color. But if more than one bit is high then it remains in basic color. But i want it show the color change according to the priority, if more than one failures are there simultaneously. Anybody can help me in this regards..... Quote
JesperMP Posted October 23, 2007 Report Posted October 23, 2007 (edited) Hi shenbagaraj. You have to plan how the colors shall display. If more than one bit can be active at a time, then obviously you cannot use animation on bits ("binary"). You can keep the way you control the bits, and then carefully map out all combinations and define the animations by value ("integer"). If you have 3 bits there will be 2^3=8 combinations (0-7) for example. Alternatively you have a number of possible animations, and you take care to only trigger one at a time in your PLC code. Edited October 23, 2007 by JesperMP Quote
shenbagaraj Posted October 24, 2007 Author Report Posted October 24, 2007 I did think about using it as a decimal value but it is 16bit long and hell lot of combinations!!!! Thats why i chose binary option. Any other ways to animate it........? However thanks for your reply.. Quote
JesperMP Posted October 24, 2007 Report Posted October 24, 2007 (edited) You only have to define the bit combinations that you actually use. For 3 bits that is 8 combinations. The three mentioned ways are what is possible for color and flashing animation. Edited October 24, 2007 by JesperMP Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.