Explainer
Why WinCC library symbols rotate only in 90 degree steps
Short answer
In WinCC 7.x, a library symbol exposes only the predefined 0, 90, 180 and 270 degree rotation positions, and the line object is the only graphic that accepts a freely defined angle. For 65 or 120 degrees, prepare one rotated image per position and switch them with an internal variable.
On this page
In WinCC 7.x, a symbol taken from the HMI symbol library rotates only to the predefined 0, 90, 180 and 270 degree positions, and the line object is the only graphic that accepts a freely defined rotation angle. Writing 65 or 120 degrees to the symbol's rotation property, in design mode or online, snaps the symbol back to one of the four predefined positions. To display a symbol at an intermediate angle, prepare the artwork at that angle in an image editor and switch between pre-rotated images with an internal variable. This article explains why the limit exists, when the four positions are enough, and how to build the image-swap workaround with a worked example.
Why the limit exists #
WinCC's own documentation describes a Rotation Angle attribute in degrees that turns an object around its reference point, and the general object-rotation commands in the screen editors rotate by configurable angles around a center point. What the symbol library does not give its objects is a continuously variable rotation property. A library symbol is a grouped composite graphic, and its rotation behavior offers only the four predefined positions. That is why the designer's attempt to type 65 degrees fails: the property exists, but the values the object accepts are 0, 90, 180 and 270. The same happens online, because the runtime snaps a written value to the nearest configured position instead of computing an intermediate orientation.
This is a different mechanism from tag-driven movement. The live article on animating an object moving in WinCC from a PLC tag covers position animation driven by a tag; that animation changes coordinates, not the rotation angle of a composite symbol. Rotation to a custom angle is a separate problem with a separate workaround.
When the predefined steps are enough #
Before building images, check whether 90 degree steps answer the job. Motor direction arrows, fan symbols, conveyor indicators and most flow arrows read correctly at any of the four positions. If the symbol can be flipped as well as rotated, the four rotations plus horizontal and vertical mirroring give eight orientations, which covers most pump and valve iconography. Commit to the image workaround only when the process genuinely needs an intermediate angle, such as a damper blade at 65 degrees or a mixer paddle at 120.
Which objects can rotate freely #
| Object | Rotation it accepts | Use it when |
|---|---|---|
| Library symbol | 0, 90, 180 and 270 degrees only | The four positions or their mirror images are enough |
| Line | A freely defined angle | The moving element can be drawn as lines, such as a needle or pointer |
| Prepared raster image in a graphic object | Any angle baked into the image | A composite symbol must sit at 65 or 120 degrees, statically or in steps |
The line loophole is real but narrow. A tank-level needle, an analog gauge pointer or a position indicator drawn from one or two lines can take any angle you define. A detailed pump or valve symbol from the library cannot be rebuilt from lines in reasonable time, which is why the image route below is the practical answer for composite symbols.
Swapping images for a valve symbol at 65 degrees #
This worked example is illustrative; it shows the arithmetic of the workaround on a typical case. The reader's own angle set replaces these numbers one for one.
Inputs. A valve symbol from the HMI symbol library must appear at 0, 65 and 130 degrees as the line's state changes (the angles come from the designer's requirement in this kind of job; the set of three is the example's choice). One internal tag drives the display. The images come from the symbol artwork exported and rotated in an image editor, saved as three separate picture files.
Rule. One image per displayed position. The number of images equals the number of positions, and the internal variable needs one discrete value per position. Angular resolution in degrees equals the largest gap between adjacent positions; with the set 0, 65 and 130, the largest gap is 65 degrees, so the display jumps in steps of up to 65 degrees.
Arithmetic.
- Images needed: 3 positions gives 3 images.
- Internal variable range: 3 positions gives values 0, 1 and 2.
- Angular resolution: positions 0, 65 and 130 give gaps of 65 degrees (65 minus 0) and 65 degrees (130 minus 65), so the largest displayed step is 65 degrees.
- Extra angle wanted, finer steps: halving the step to 32.5 degrees needs positions every 32.5 degrees across 130 degrees, and 130 divided by 32.5 is 4, so 4 steps plus the start position means 5 images.
Result. Three images and one internal variable with the range 0 to 2 display the valve at the three required angles, jumping in steps of up to 65 degrees. Five images and a variable range of 0 to 4 halve that step to 32.5 degrees.
Decision. If the process reads a discrete state, three images are enough and the job is done. If the operator needs to judge angle visually, commit to more images; at roughly 16 images across the 130 degree range the step is about 8 degrees, which is where discrete switching starts to read as near-continuous on a screen. Beyond that, draw the moving element from lines and rotate the line object freely instead.
Building the workaround in the graphics designer #
- Export or recreate the symbol artwork and rotate it to each required angle in an image editor; save one file per position.
- Import the pictures into the project and place them in a graphic object that links each picture to one value of the internal variable, or place the pictures on top of each other and drive their visibility from the variable.
- Write the variable from the PLC tag or script logic that selects the state; the graphic follows.
- Test at runtime: force each variable value and confirm that exactly one image shows per value and that no selection shows the unrotated original by mistake.
The hide-and-show half of this is the same mechanism described in the article on WinCC visibility animations that hide and show objects at runtime; that page goes deeper on the visibility route if you prefer overlapping objects to a graphic list. Images imported for this purpose should be prepared with a transparent background so the surrounding screen shows through; the article on importing HMI images with a transparent background covers that preparation.
Limits of the workaround #
The image swap produces discrete jumps, not geometric rotation. The angular resolution is set by the number of images you prepare, and each added image costs a file, an object and a variable value. Raster images can look soft when scaled far above their native size, so export the artwork at the displayed pixel size or larger. Finally, keep the four-position symbol rotation where it suffices: it costs nothing, and reserving the image mechanism for the angles that genuinely need it keeps the screen simpler to maintain.
Questions asked
Can a WinCC 7.x library symbol be set to a 65 degree rotation?
No. The symbol's rotation behavior offers only the predefined 0, 90, 180 and 270 degree positions, and writing an intermediate value to the rotation property online does not move the symbol to that angle. Prepare a 65 degree image in an image editor and place it in a graphic object instead.
Which WinCC object accepts an arbitrary rotation angle?
The line object. It is the only graphic in WinCC 7.x with a rotation you can define freely, so a needle, pointer or blade drawn from lines can take any angle. Composite library symbols have no such property.
Why does changing the rotation property online only step through four positions?
Those four positions are all the symbol exposes. The runtime snaps any written value to the nearest configured position, so a written 65 degrees displays as one of the four predefined orientations rather than an intermediate angle.
How many images do I need for discrete rotation animation?
One image per displayed position. A pump indicator shown at 0, 65 and 130 degrees needs three images and an internal variable that takes the values 0, 1 and 2, with each value linked to its picture in the graphic object.
Does the picture-switch workaround give smooth rotation?
No. The screen jumps from one prepared image to the next, so the motion is discrete. The angular resolution equals the number of images you prepare; more images give finer steps at the cost of more files and screen objects.