Jump to content

Recommended Posts

Posted
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.....

Posted (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 by JesperMP
Posted
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..
Posted (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 by JesperMP

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...