What eats the most time during commissioning is «several things wrong at once». Suspect wiring, settings and software together and you do not know where to start. The order below settles one layer at a time, from the wire up to the program, so that when something fails you only need to look at the step just before it.
0. Before you start: diagram and device table
Make the device table first — name, location, ID, baud rate, parity and stop bits, bus (port), terminated or not, manual page. Check in the table that no two devices on a bus share an ID and that every device has the same baud and parity. The system diagram is this table drawn as a picture.
1. Wiring (power off)
- Daisy chain (no star, no long stubs), terminators at the two ends only.
- A/B (D0/D1) to the same names at every device, SG connected to every device, where the shield is grounded.
- A–B resistance with a multimeter (about 60 Ω with two terminators), no shorts from A or B to SG or shield.
- Not sharing a duct with power cables.
2. Power
- Each device's supply voltage within the manual's range — with the machine's loads running too.
- If communication devices share the 24 V with valves and motors, separate 0 V runs.
- After power-on, each device's display or status LEDs show the «ready» state described in its manual.
3. Device communication settings — and save them
Set each device's protocol (many devices have a separate Modbus RTU selection), ID, baud rate, parity and stop bits as in the table. Depending on the device, communication settings need a separate «save (write)» or a power cycle to take effect. Unsaved settings revert after a power cut or restart — «it worked yesterday, not today». After setting, cycle the power once and confirm the values stayed. Modbus IDs are 1–247; 0 is broadcast (no reply).
4. One device from a PC
- Leave only one device on the bus, or connect the PC straight to one device with a short cable.
- Check the PC's COM port number and the adapter driver first. If the adapter has bias or termination switches, note how they are set.
- Read one register with the known ID and baud. If nothing answers, use «Slave ID scan» to find which IDs answer at this baud. If still nothing, change baud and parity and scan again, and finally swap A/B.
- Check that the value read matches the manual's unit and scale (e.g. 0.1 Hz units). If you need to write, try one harmless register first.
5. The whole bus
- Add devices to the bus one at a time and read everything again each time. The device at which errors start is the clue.
- With everything connected, run «Slave ID scan» and check that every ID in the table answers and no ID outside it does (duplicate IDs give CRC errors and strange values).
- Make sure there is only one master on the bus (not a PC and an HMI together) — remove the commissioning PC when testing is done.
6. Polling interval and timeouts
- The time for one read (request + reply transfer + device processing + gaps) × the number of devices must be well below the update interval you want. Compute the transfer time from baud rate and byte counts.
- Set the timeout comfortably above the slowest device's response time; lengthen the delay between requests if a device misses back-to-back requests.
- Poll for a while with the machine actually running and look at timeouts and CRC errors per request. If they are not zero, start from that device and those times.
7. Records and backup
- Keep the final device table (ID, baud, parity, terminator and bias locations) and the system diagram with the panel drawings.
- Back up device parameters the manufacturer's way (configuration software, keypad copy, etc.).
- Keep the settings used for the communication check (ports, tables, registers) and the statistics and log files of the final test. They become the baseline for «how many errors did we have at commissioning?» later.
PortDock tools for each step
| Step | Tool |
|---|---|
| 0. Diagram | «System Diagram Editor» web tool — place PCs, PLCs, HMIs and drives, connect RS-485 buses, check duplicate IDs and IPs; JSON, SVG, PNG |
| 1. Wiring | «Wiring Diagram Maker» web tool — RS-485 wiring for your device count and IDs, with a checklist |
| 4. PC-side port | Port Inspector — COM ports, adapter drivers and settings, read-only |
| 4. One device | Modbus Master «Scan…» → «Slave ID scan» (reads one register per ID; wait 200 ms by default × number of IDs), table reads and writes |
| 4. Raw bytes | Serial — request and reply bytes in HEX, garbage bytes and echo |
| 6. Polling | «Serial Timing Calculator» web tool — time per read from baud and bytes; Modbus Master per-table statistics (requests, timeouts, CRC, response time) |
| 6. Values over time | Modbus Master «Value log (CSV)» and trend; Plot for graphs and CSV when a device streams values itself |
| 7. Backup | Modbus Master «Export settings» — connection, tables and cell names as JSON |
Sources
- MODBUS over Serial Line Specification and Implementation Guide V1.02 — addresses 1–247 and 0 broadcast, 3.5-character gap, RS-485 wiring (§3.4)
Published 2026-10-31