PLC Simulator
Runnable Modbus integration example

Write a Temperature Setpoint With Modbus Function 06

A controller accepts a 60.0 °C setpoint as scaled integer 600 at holding-register protocol address 20. The linked sandbox opens the exact unit, function, address, quantity and value so the reader can verify the PDU rather than copy an unexplained hex string.

10 minutes PLC programmers, commissioning technicians and system integrators

Follow the workflow

Learn one step, use the product, inspect the evidence.

01

Identify the data model and access direction

This Temperature controller example uses Modbus function 06. Select the function from the documented object type and whether the operation is a read or write—not because two register names look similar.

Do this in the product

Open the preconfigured request and confirm the function-code label before running it.

Open the exercise
02

Translate the documented address

The request transmits protocol address 20. Human-facing 0xxxx, 1xxxx, 3xxxx and 4xxxx references are notation, not values to paste blindly into the 16-bit address field.

Do this in the product

Compare the address field with the expected PDU 06 00 14 02 58.

Open the exercise
03

Check quantity, value and scaling

The request quantity is 1 and the training value is 600. Multiword data, signed values, enums and decimal scales remain application-map concerns beyond the core Modbus frame.

Do this in the product

Run the server grader and read each function-specific limit check before copying the request.

Open the exercise
04

Keep the response separate from physical proof

A normal Modbus response proves that a server accepted the request format. It does not by itself prove that a motor moved, a valve reached position or a process value is correctly scaled.

Do this in the product

Save the known-good request, then use a paid project to retain later fault and commissioning evidence.

Open the exercise

Core concepts

Know what the evidence means.

The simulator creates a repeatable result; these concepts make that result transferable to real vendor software and supervised practical work.

Protocol address

The transmitted address is a zero-based 16-bit field unless the specific device manual states a different table convention.

PDU evidence

The expected request begins 06 00 14 02 58; TCP adds MBAP framing while RTU adds unit address, timing and CRC.

Application semantics

Function, address and response can be valid while units, signedness, scale or machine permissions remain wrong.

Common mistakes to avoid

  • × Writing decimal 60 instead of scaled value 600 commands 6.0 °C on this example map.
  • × Changing network, serial and register settings simultaneously instead of keeping one known-good control.
  • × Treating an echoed write as proof that the physical output changed.
  • × Reusing this fictional training map as though it were the manufacturer’s production register map.

Continue in the workspace

Turn this tutorial into retained training evidence.

Run the foundation exercise publicly, then use a subscription for advanced challenges, saved configurations, full attempt history, sharing, assigned paths and team reporting.

Technical reference questions

Questions before you continue.

The registered request begins 06 00 14 02 58. The sandbox builds the complete supported PDU from the preloaded fields and checks function-specific limits.

Competency and practice field guide

Temperature-controller setpoint write exercise: practice plan

Direct answer

The learner can encode the intended value, enforce engineering limits, confirm the controller accepted it and verify the permitted control response without confusing setpoint with process value.

Written for pLC and instrumentation learners writing a bounded setpoint to a separate temperature controller over a documented interface.

a supervised instrumentation and energy-measurement bench used to compare reference values, field signals, PLC input data and engineering units while studying authorized temperature setpoint writes, limits and response proof
System map / 02

NODE 01observable

Scope

Authorized actor, controller identity, setpoint register, write function, data type, decimal place, unit, lower and upper limits, operating mode, response, read-back and change record.

NODE 02observable

Signal path

Approved engineering setpoint through validation and encoding to write request, controller acceptance, read-back, internal control action, output and independently observed process value.

NODE 03observable

Baseline practice

One bounded setpoint change is accepted, read back correctly and produces the permitted direction of response.

NODE 04observable

Edge cases

Below minimum, at minimum, at maximum, above maximum, negative value, decimal mismatch, wrong mode, timeout, duplicate request and restart.

NODE 05observable

Fault practice

An authority, identity, register, encoding, limit, unit, mode, response, read-back or process mismatch.

NODE 06observable

Transfer to the job

The change governed by approved limits, target documentation, safe testing and rollback procedures.

Answer surface / 07

How do you write a temperature setpoint with Modbus?

Use the documented write function and register, validate engineering limits, encode the type and decimal place, then read it back and observe the permitted response.

Why should process value and setpoint use separate tags?

The setpoint is a request and the process value is measured feedback; combining them hides whether the controlled process actually responded.