Give the signal meaning
Turn raw sensor counts into a percentage.
The level sends a raw number, RawValue, from 0–27648. Scale it, meaning convert it, into LevelPercent from 0–100. Then an operator can read the tank level as a percentage.
Pro missionRaw 0 reads 0%
Test 1 of 4RawValueRaw input0 countsLevelPercentCalculated level0 %- Level
- Applied
- Time
- About 12 min
- Reward
- +200 XP
- Rig
- 3D process tank
- Siemens editors
- FBD
- Rockwell editors
- FBD
- Course stage
- 6. Follow a measured signal
What the tests check
- RawValue 0 gives LevelPercent 0%.
- RawValue 13824 gives 50%.
- RawValue 27648 gives 100%.
- Values in between scale in proportion: 6912 gives 25%.
- Try it Use the buttons below the model and watch the rig respond.
- Test solution Every check runs on your code in one press.
- Replay If one fails, step through it one scan at a time to see why.
Where you’d see this on site
A factory tank's level sensor sends a raw number to the PLC. The operator needs the panel to show how full the tank is.
A wrong conversion can show half full when the tank is almost full. Filling from that display could spill liquid. Here RawValue changes the reading, not the water.
At a drinks factory, valves let measured amounts of water and syrup into a mixing tank. An electric mixer blends them into one batch. An outlet valve then sends the drink to a holding tank. Filling machines bottle it from there.
- Ingredient tanksHold the water and syrup
- Mixing tankFill, mix and measure one batchYou are here
- Holding tankKeeps the finished drink ready
- Bottle fillerPuts the drink into bottles
On a real site: places, parts and safety
- Drinks factory — blending water and syrup
- Paint factory — mixing ingredients into a consistent colour
- Water-treatment works — preparing a measured chemical mixture
- Brewery — heating water for washing equipment
A full tank does not close its own inlet. Water keeps arriving until the valve closes, so an open inlet can flood the room.
A heater that is not covered by liquid can overheat. Real tanks have separate safety devices as well as the PLC programme.
The sizes, timings and cutaways are teaching choices, not a drawing of any one real installation.
Next in the course
- Stop the short cyclingTwo switch points. A calmer pump.Applied · 12 min · +200 XP
- The pump chattersLook at the trend before you change the 30% or 70% limits.Applied · 12 min · +200 XP
- A command is not feedbackCheck that the valve really opened.Applied · 12 min · +200 XP
- Nuisance alarmA valve takes a moment to open. Give it time.Applied · 12 min · +200 XP