📘 CodingMarble Learn

Networked Measurement and Control

In a networked system, many sensors and actuators share one cable or wireless link to a controller. Each device has an address, and data travels as packets. The controller runs a program (read, decide, write) and an operator can watch and command everything from far away, as in SCADA and IoT.

🎬 Step-by-step story

  1. Three sensors and one controller, wired the old way: one separate cable for each sensor. With ten sensors this becomes a jungle of wires.
  2. Now a shared cable, called a bus. Each sensor has its own address (ID 1, 2, 3), so all of them talk on the same wire and the controller knows who is speaking.
  3. Sensor 1 sends a small packet: its ID and its reading. Watch the yellow packet travel along the cable to the controller.
  4. The controller runs its program: read the value, compare with the limit, decide. The reading is too high, so it sends a command packet and the fan turns on.
  5. Add a network link and an operator far away sees the same reading on a screen. Now you try: change the temperature and limit, then send a reading.

Tip: drag the 3D scene to turn it. Use two fingers to zoom.

🤔 Common doubts, cleared

Why not give every sensor its own cable?

It works for a few sensors, but with many it costs a lot and is hard to fix. See the wire jungle in step 0.

How does the controller know which sensor sent the value?

Each packet starts with the sensor's address (ID). Look at the label on the yellow packet.

What exactly does the controller program decide?

It reads the value, compares it with a limit and chooses an action, such as fan ON or OFF.

What does the operator screen add?

It lets someone far away see readings and send commands over the network. This is the idea of SCADA and IoT.

What if I move the limit above the temperature?

The condition becomes false, so the fan command is OFF. Try it in free play.

Controllers and interfaces

A controller is the brain: a PLC, a microcontroller board or a PC. It needs interfaces to connect to the real world.

Sensors measure, actuators act. See Sensors for how a quantity becomes a signal.

Control programs

A control program repeats one loop forever: read inputs, decide, write outputs. The plan can be shown as a flowchart before coding.

Tiny example (in plain words):

  1. Read the temperature.
  2. If it is higher than the limit, switch the fan ON.
  3. Otherwise switch the fan OFF.
  4. Send the reading to the operator screen.
  5. Wait 1 second. Go back to step 1.

Good programs use variables for limits (so you can change them without rewriting), a timer for the loop speed, alarms for values out of range, and a safe state (for example fan ON, valve closed) if a sensor or cable fails.

Languages: ladder logic for PLCs, and C, C++ or Python for microcontrollers and PCs.

Networked measurement and control systems

Instead of one cable per device, all devices share a network.

Why network? less wiring, easy to add devices, remote monitoring, data stored for study. Care needed: delay (latency), lost packets, cable faults and security (use passwords, separate networks and updates).

Try it: draw your own network

Choose a place you know: a school, a farm or your home. List three sensors, one controller and two actuators. Draw them with one shared cable. Give each sensor an ID. Write a 4-line control program. In the 3D, set the limit just below the temperature, send a reading and predict whether the fan will start before you look.

Key formulas and definitions

Worked examples

1. A plant has 12 sensors. How many long cables to the controller are needed with separate wiring, and with one bus?

Separate wiring: 12 cables. One bus: 1 long cable (plus short drop wires).

2. A 10-bit ADC reads 5 V full scale. The input is 2.5 V. What number does it give?

Number = 2.5/5 × 1023 ≈ 512.

3. A control loop waits 0.5 s each turn. How many readings per second?

1 / 0.5 = 2 readings per second.

4. Fan ON if temperature > 38°C. The reading is 44°C. What does the program do?

44 > 38 is true, so it sends the fan-ON command.

5. A 4–20 mA sensor reads 12 mA for a 0–100°C range. What is the temperature?

(12 − 4)/(20 − 4) × 100 = 8/16 × 100 = 50°C.

6. A packet of 120 bits is sent on a 9600 bit/s link. How long does it take?

120 / 9600 = 0.0125 s = 12.5 ms.

Common mistakes

Practice quiz

1. Why does each device on a bus have an address?
2. A control program repeatedly:
3. SCADA is mainly used to:
4. An ADC changes:
5. Which is a fieldbus?

Practice: answer these yourself

Type or choose your answer, then press Check. Use a hint if you are stuck; the full solution appears after you answer.

Frequently asked questions

What is a networked control system?

A system where sensors, controllers and actuators are joined by a shared network and exchange data as packets.

What is the difference between PLC and SCADA?

A PLC controls one machine or process directly. SCADA is the supervising software that collects data from many PLCs and lets an operator watch and command them.

What is the difference between an ADC and a DAC?

An ADC turns a real-world voltage into a number. A DAC turns a number into a voltage.

Where this is taught

Japan高校(専門学科)1〜3年Electronic Measurement and Control

Learn first

Related lessons

All Computer Science lessons