PortDock

Guides

Common field communication problems, explained byte by byte.

61

Reading Modbus RTU frames — request, response, exception, CRC

Decode «01 03 00 00 00 02 C4 0B» byte by byte: address, function, start, quantity, CRC, exception replies and the 40001 notation.

Read →

USB-serial adapter latency — why frames split and replies arrive late

USB adapters batch received bytes instead of passing them on at once. How the FTDI 16 ms latency timer affects Modbus RTU framing and replies, and what to do.

Read →

RS-485 wiring checks — five things to look at when replies are missing or garbled

A/B polarity, termination, biasing, common ground and topology. RS-485 wiring problems and their symptoms, before you blame the software.

Read →

No reply from a Modbus device — a checklist for RTU and TCP

Every request times out? Narrow it down by what comes back, then check slave ID, baud, parity, wiring, IP, port, unit ID and the device's Modbus settings.

Read →

Modbus addresses: 0-based vs 40001 notation — from manual to wire

The same first register is written 0, 1, 40001, 400001 or 0h0001 depending on the manual. How to get the 0-based wire address, with real manual examples.

Read →

Modbus function codes — 01–06, 0F, 10 and 17, and when to use each

The nine Modbus functions that read and write coils and registers in one table: quantity limits, reply layouts, 06 vs 10, 05 vs 0F, and what exception 01 means.

Read →

Reading Modbus floats and 32-bit values — finding the word order

Float32 and U32 values span two registers, and which comes first is up to the device. Find ABCD or CDAB with a known value; see what wrong orders look like.

Read →

Modbus TCP not connecting — checking port 502, unit ID and connection limits

Ping works but Modbus TCP does not? Check layer by layer — network, port 502, MBAP reply, values — for subnet, firewall, port, unit ID and connection limits.

Read →

RS-232 vs RS-422 vs RS-485 — choosing by wiring, distance and node count

All serial, but electrically different: single-ended vs differential, point-to-point vs multidrop, 2-wire vs 4-wire, distance, node count, how to choose.

Read →

4–20 mA basics and troubleshooting — 2-wire, 4-wire, live zero, open loop

Why the signal starts at 4 mA, 2-wire vs 4-wire wiring, scaling, and how NAMUR NE 43 failure currents (3.6, 21 mA) tell open loops from sensor faults.

Read →

Pt100 2-, 3- and 4-wire connections, and choosing a thermocouple type

In a Pt100, lead resistance becomes error — 1 Ω is about 2.6 °C. 2-, 3- and 4-wire, tolerance classes, thermocouple types K to B, cold-junction compensation.

Read →

Setting Modbus RTU timeouts and polling intervals — 3.5-character time and response time

How many ms for the response timeout and polling interval: the floor from character time, t3.5, frame time and slave processing, and symptoms of bad values.

Read →

PLC and HMI IP addresses and subnet masks — checking the subnet and joining it from a PC

No ping to the PLC or HMI? How the subnet mask (255.255.255.0 = /24) decides the subnet, one-way traffic from mismatched masks, and adding a PC address.

Read →

24 V DC voltage drop — choosing wire size for remote sensors and devices

A remote 24 V sensor or RS-485 device resets or drops off? Compute the drop from loop resistance, pick a wire size, and avoid inrush and shared-common traps.

Read →

Choosing RS-485 termination and bias resistor values — 120 Ω, 560 Ω, 200 mV

Termination and bias (failsafe) resistor values from the Modbus rules (150 Ω, 450–650 Ω) and the 200 mV receiver threshold — stop garbage bytes between frames.

Read →

Motor rated current, breakers and cables — the basics (kW to amps)

The kW-to-amps formula for motors, why it differs from the nameplate current, starting current, and the IB ≤ In ≤ IZ rule for breakers and cables.

Read →

Pressure sensor unit mix-ups — bar, psi, kPa, kgf/cm², mmH2O, gauge vs absolute

Pressure off by 2 %, by 1 bar, or by a factor of 14.5? Sort out kgf/cm² vs bar, gauge vs absolute, mmH₂O vs kPa and psi, and set the 4–20 mA range in the PLC.

Read →

Drive frequency and motor speed — why 60 Hz is not 1800 rpm

How drive Hz maps to motor rpm — synchronous speed 120f/P, slip, gear ratio, the rpm display and pole setting, and output frequency over Modbus.

Read →

Modbus exception codes 01–0B — reading replies like 83 02

What a Modbus exception reply (function + 0x80) looks like, codes 01–0B, the 01 → 03 → 02 → 04 check order in the specification, and what to fix for each.

Read →

RS-232 DB9 pinout and null-modem (crossover) cable wiring

PC COM port DB9 pins 1–9 (TxD 3, RxD 2, GND 5), straight vs null-modem cables, 3-wire and full RTS/CTS/DTR wiring, and what to check when nothing arrives.

Read →

NTC thermistor temperature — B value, Steinhart–Hart, divider and ADC

Turn NTC thermistor resistance into temperature (B equation, Steinhart–Hart), B25/50 vs B25/100, the divider resistor, ADC counts and self-heating.

Read →

Analog input scaling — turning raw ADC counts into bar, °C and other units

Feed 4–20 mA or 0–10 V signals into an ADC through a shunt or divider and scale raw counts linearly to engineering units: count size, clipping, open loop.

Read →

Power factor and correction capacitors — kW, kVA, kvar and capacitor sizing

What power factor is and why a low one raises current, sizing capacitors as kvar = kW × (tan φ1 − tan φ2) and in µF, cautions at motors, and reading meters.

Read →

CT ratio, secondary current and burden — power meter CT settings and wiring distance

What a 200/5 CT ratio means, burden from meter and leads (VA = I²R), 1 A vs 5 A secondaries, ratio error (RCF), open secondaries and meter CT settings.

Read →

Resistors in series and parallel — formulas, current and power sharing, making values from standard resistors

Series and parallel formulas, current and power sharing, making missing values from two E12/E24/E96 resistors, tolerance, terminators and LED resistors.

Read →

When a USB-serial adapter keeps disconnecting — cable, hub, power saving, driver and COM number checks

The COM port vanishes and returns, changes number when replugged, or stops after days. Check cable, hub, USB power saving, driver and COM reservations in order.

Read →

Network adapter settings for GigE cameras — jumbo frames, receive buffers, interrupt moderation, firewall

What to check on the network adapter when a GigE Vision camera drops frames: jumbo frames, receive buffers, interrupt moderation and the firewall.

Read →

Reading Modbus registers in blocks — the 125 limit, gaps, exception 02 and poll time

One request per tag makes polling slow. Reading registers in blocks: the 125-register and 2000-bit limits, exception 02 on gaps, and the time saved.

Read →

Testing MC protocol communication without a PLC — simulator, 127.0.0.1, common mistakes

Test an HMI or data-collection program's MC protocol (SLMP) link on one PC before the PLC arrives, and avoid 3E/4E, binary/ASCII, port and station mix-ups.

Read →

Testing LS XGT dedicated protocol communication without a PLC — FEnet 2004, variable names, common mistakes

Test a PC program that talks to an LS XGT PLC over FEnet (TCP 2004) without the PLC, using PLC Simulator (from 0.10.0). %MW/%MX numbering, BCC, error codes.

Read →

Reading an MC protocol 3E binary frame — header, command, device, end code

An MC protocol (SLMP) 3E binary request and reply, byte by byte: subheader, station fields, length, timer, command, device, end code; how 4E and ASCII differ.

Read →

MC protocol end codes (C050–C061): what to check, in order

What to check when an MC protocol (SLMP) end code is not 0000: where the end code and error information sit, and what to fix in the request for C050–C061.

Read →

MC protocol device numbers — hex X/Y, D/W/ZR, and the octal mix-up

MC protocol (SLMP) X, Y, B, W and ZR use hex numbers; D, M and R use decimal. How numbers look in binary and ASCII frames, 16-point words and 32-bit values.

Read →

Setting up a VFD for Modbus — protocol, station, baud rate, command source, saving

The order to set up a drive for Modbus RTU: protocol, station number, baud and parity, power cycle, run and frequency source, comm loss action, saving.

Read →

When power meter Modbus values look wrong — CT ratio, primary/secondary, scale, word order, sign

Power meter readings over Modbus off by tens of times, nonsense or negative? Check CT ratio, primary vs secondary values, scale, 32-bit word order and sign.

Read →

When Windows can't hear your microphone — permissions, default device, exclusive mode and driver, in order

No level or no device? Check Windows mic privacy, the default input, exclusive mode in other apps and the driver, in that order, then confirm with a mic test.

Read →

When a keyboard types a letter twice — checking key chatter and the likely causes

One press, two letters? Log the interval in ms with a keyboard tester to see if it looks like chatter, then what to check: switch, debounce, receiver, Windows.

Read →

When a mouse double-clicks on a single click — how to check it and what to look at

One click opens like two, or drags let go? Measure click intervals in ms with a mouse test, then rule out Windows settings and compare on another PC.

Read →

Bluetooth headphones cutting out on a Windows PC — power saving, USB 3.0, 2.4 GHz, hands-free mode

Bluetooth earbuds or headset cutting out or turning muffled on a Windows PC? Check power saving, USB 3.0, 2.4 GHz Wi-Fi, hands-free mode and drivers.

Read →

How to check a monitor for dead pixels and banding — with solid colors and gradients

Check a new monitor or laptop screen for dead and stuck pixels, banding, backlight bleed and clouding with solid colors, and tell them from dust or settings.

Read →

Using PortDock MCP from AI clients (Claude Desktop and others) — setup and practice

Settings JSON to add PortDock MCP to Claude Desktop, VS Code or Cursor, and a practice run with Modbus and MC reads and writes against 127.0.0.1 simulators.

Read →

Write Modbus code with AI and test it without hardware — device map, pymodbus, simulator

Give AI a device map so it does not invent Modbus addresses, then run the pymodbus code against a simulator. See real address and word order mistakes.

Read →

Capturing PLC traffic with Wireshark or pktmon: port mirroring, admin rights, switch limits

Save HMI–PLC Modbus TCP or MC traffic with Wireshark or the built-in pktmon: why a switch hides it, port mirroring, taps, admin rights, pktmon commands.

Read →

Communication cable shields and grounding — one end or both, ground loops, the signal ground wire

Ground an RS-485 cable shield at one end or both? Why ground loops form, the signal ground wire versus the shield, and keeping clear of power cables.

Read →

When field noise breaks communication — near drives and servos, errors that follow time or load

Fine on the bench, CRC errors and timeouts on site? Line up error times with machine activity, then check wiring near drives, ferrites, routing, isolation.

Read →

Wiring NPN and PNP sensors to PLC inputs — sink/source, common (COM), 2-wire leakage current

How NPN and PNP sensors connect to PLC inputs, whether COM goes to +24 V or 0 V, 2-wire sensors whose leakage keeps an input on, and the usual wire colours.

Read →

Checking a 24 V DC supply — capacity, inrush, voltage under load, 0 V common, fuses

When a 24 V supply sags, devices restart and it looks like a communication fault — capacity, inrush, voltage under load, the 0 V common, fuses and protectors.

Read →

Checking an RS-485 bus with a multimeter — termination, bias voltage, common mode, swapped A/B

An RS-485 bus with just a multimeter: A–B resistance (power off) for terminators, idle voltage for bias, each line against SG, and swapped A/B.

Read →

Commissioning communication step by step — wiring, power, saved settings, one device, the whole bus, polling

Bringing up RS-485 / Modbus on a new machine: wiring, power, saved ID and baud, one device from a PC, the whole bus, polling and timeouts, backups.

Read →

Preventive maintenance for communication equipment — terminals, error trends, fans, UPS, PC disks, backups

Routine checks before things break: terminals and shields, error-rate trends, fans and filters, UPS, PC disk health and crashes, backups, time sync.

Read →

Adding a device to an RS-485 bus — IDs, device count, length, terminator, polling cycle, master settings

Adding a device to a working RS-485 bus: duplicate IDs, unit loads, length and stubs, moving the terminator, the longer polling cycle, checks afterwards.

Read →

Adding an Ethernet device (Modbus TCP, PLC) — free IPs, conflicts, subnet, PoE, connection limits

Adding a PLC or Modbus TCP device to a machine network: a free IP without conflicts, subnet, switch ports and PoE, connection limits, polling load.

Read →

Moving settings when replacing a device — firmware, parameters, ID and baud, register map, save command

Swapping a failed drive or meter: model and firmware, recording and comparing parameters, ID, baud and terminator, register map changes, the save command.

Read →

Removing a device from a bus — moving the terminator, dropping it from polling, leftover cable, shield

Taking a device out: move the terminator if it was at the end, drop it from polling (or it times out every cycle), tidy leftover cable, keep the shield intact.

Read →

Logging communication faults and keeping a maintenance log — readings, captures, what changed

Recording intermittent faults so they can be found next time: when, where, symptoms, readings, actions, log files and pcaps, and comparing what changed.

Read →

Using a PC as a Modbus TCP ↔ RTU gateway

Bridge Modbus TCP SCADA/HMIs to RS-485 RTU devices via the PC's COM port with PortDock Serial (from 0.10.0): one request at a time, exceptions 0B/0A, unit ID 0.

Read →

Modbus, MC and XGT have no authentication — basics for protecting field PCs and devices on a shared network

Modbus TCP, MC and XGT never ask who is sending. Network separation, firewalls, the 0.0.0.0 trap and closing admin ports, from public CISA and NIST guidance.

Read →

Reading a field PC exposure check — Remote Desktop, SMBv1, firewall, open ports, automatic sign-in

What Port Inspector's «This PC» exposure check and Net Scan's exposure tag (from 0.10.0) read, and where in Windows to change each «Worth a look» item.

Read →

UART vs SPI vs I2C vs CAN vs RS-485 — choosing by distance, speed, device count and wiring

UART, SPI and I2C link chips on a board; CAN and RS-485 link devices. Wires, signals, device count, speed, distance and termination compared.

Read →

I2C troubleshooting, in order — pull-ups, address, voltage levels, clearing a stuck SDA, wire length

I2C device only NACKs or the bus hangs? Pull-up sizing (UM10204), 7-bit vs 8-bit addresses, 3.3 V vs 5 V levels, nine SCL pulses for a stuck SDA, 400 pF.

Read →

CAN wiring and termination checks — 120 Ω ends (60 Ω power-off), ground, bit timing, error frames, bus-off

CAN failing or showing errors? CAN_H–CAN_L resistance with power off (about 60 Ω), voltages, ground, stubs, bit rate and sample point, error frames and bus-off.

Read →