Skip to main content
Version: 3.2

Saia PCDS-BUS Saia PCD Integration Guide

Read and write the media of Saia PCD controllers over Ether-S-Bus, the protocol PG5 itself speaks to them.

Status
Beta
Controllers
Saia PCD1, PCD2, PCD3, PCD7 · gateway stations
Transport
Ether-S-Bus, UDP 5050
Operations
Read Device · Read Block · Write Device · Read Station
Triggers
None: poll with a Schedule trigger

Saia PCD controllers (Saia-Burgess, now Honeywell) run HVAC, energy management and infrastructure, mostly in Europe. They keep their data in media: registers, timers, counters, flags, inputs, outputs and data blocks. MaestroHub reads and writes these media by address, such as R100 or F2000, over Ether-S-Bus: one S-Bus telegram in one UDP datagram to the PCD's port 5050. This guide covers the connection, the addresses and data types, the float formats, the four function types, and how the matching nodes fit into the Pipeline Designer.

Beta

What stands behind the connector today:

  • Two recordings of real PCDs talking to Saia's own PG5: a PCD2.M480 (2005, Wireshark's own sample capture) and a PCD1.M2220 (2017). All 951 telegrams are replayed through MaestroHub's code: every request of a command MaestroHub sends (264 of them) is built byte for byte as PG5 built it, and every reply decodes.
  • Two S-Bus servers that other people wrote, each in its own container: digimat.saia, whose client has been used on real PCDs, for registers, timers, counters, flags, inputs, outputs, floats in both formats, the state, station number and firmware reads and its refusals; and MBLogic's SBusServer for registers, flags, inputs and outputs.
  • Wireshark's S-Bus dissector read every telegram MaestroHub sent in those sessions without complaint, including the data-block and clock reads no server serves.

What is not proven yet:

  • It has not read or written a real PCD. The recordings show what real PCDs answer to PG5, not to MaestroHub.
  • Data-block reads rest on Wireshark's dissector alone: no recording and no server has one. Data-block writes and clock writes are not offered.
  • The address ranges and the IEEE float instructions differ by CPU and firmware; Saia's public sources are from 2000. A PCD refuses an address it does not have.
  • How a gateway PCD behaves with several clients: only a real one shows how it drops telegrams.

Overview​

The Saia PCD connector provides:

  • Registers, timers and counters: read and written, as whole numbers or (registers) floats
  • Flags and outputs: read and written, as bits; inputs: read
  • Data blocks: read, element by element
  • Floats per value: in the PCD's own FFP format by default, or as IEEE
  • Many values a telegram: up to 32 registers or 128 bits in one telegram, for reads and for writes
  • Block reads: many named points in one node, merged into as few telegrams as fit
  • The station's own facts: the state of its CPU, its PCD type, firmware version and clock
  • Gateway stations: serial stations behind a gateway PCD, reached by their station number

Terms used in this guide​

TermMeaning
PCDA Saia controller: PCD1, PCD2, PCD3, PCD7. PG5 is Saia's programming software.
S-Bus, Ether-S-BusSaia's protocol. On Ethernet, each request is one UDP datagram to the PCD's port 5050, and the PCD answers with one datagram.
MediumSaia's word for a kind of memory: registers (R, 32 bits each), timers (T), counters (C), flags (F), inputs (I), outputs (O), data blocks (DB, numbered arrays of 32-bit values).
StationThe S-Bus address of a PCD, 0 to 254. A PCD answers only telegrams for its own station number.
Gateway PCDA PCD that passes telegrams from its Ethernet port to the serial stations on its S-Bus line. One IP address reaches them all; the station number picks the PCD.
FFP"Motorola fast floating point", the PCD's own 32-bit float format and the one its float instructions use. Newer CPUs can also hold IEEE 754 floats, when the program uses the IEEE instructions.

Not supported​

WhatWhy
Serial S-Bus (a serial port on the MaestroHub host)Not in this version. A gateway PCD reaches serial stations over Ethernet.
Writing a data block, setting the clockNo recording and no server shows them; they wait until a real PCD has.
Writing one bit inside a register (R100.5)S-Bus can only rewrite the whole register, which would undo a change the PCD's program makes in between. Read it, or write the whole register as DWORD.
STRING values in registersNo source says how a PCD lays characters out in registers.
Text media, display registers, run, stop and clear commandsNot in this version.
Station discovery by broadcastNot in this version. Set the station number.
A triggerA PCD does not send data on its own. Poll it with a Schedule trigger.

What happens on connect​

UDP has no connection. MaestroHub opens a UDP socket of its own and reads the PCD's status, the request PG5 itself repeats every second. Any answer counts, also a refusal: it proves a PCD with this station number answers at this address.

A PCD says nothing at all to a telegram for another station, or to a damaged one. So a wrong station number fails exactly as a PCD that is off does: no answer from station n. Check the station number first when a connection does not come up.

Every telegram is sent with a sequence number. When no answer comes within the Response Timeout, the same telegram is sent again, with the same sequence number, up to Attempts times in all, as PG5 does. MaestroHub takes a reply only from the PCD's address and port, and only with the sequence number of the telegram waiting for it; a late answer to an earlier telegram is dropped. One telegram is on its way at a time.

Connection Configuration​

Creating a Saia PCD Connection​

Navigate to Connections → New Connection → Saia PCD and fill in the form. It has four tabs: Connection, Functions, Scaling and Health. The Functions, Scaling and Health tabs unlock after the connection is saved.

1. Profile Information​

FieldDefaultDescription
Profile Name-A descriptive name for this connection profile (required). Must be unique across all connections.
Description-Optional description for this connection
Labels-Key-value pairs to categorize and organize the connection

Example Labels

  • building: north-wing: Building
  • system: ahu-3: Air handling unit
  • environment: production: Deployment environment

2. Ether-S-Bus​

FieldDefaultMeaning
Address(required)PCD host name or IP address, e.g. 192.168.1.30. For a serial station, the gateway PCD in front of it
Port5050UDP port of the PCD's Ether-S-Bus, 1 to 65535. 5050 is the standard port
Station0The PCD's S-Bus station number, 0 to 254. Behind a gateway PCD, the number of the serial station the telegrams are for
Connection Timeout5sMaximum time to reach the PCD and read its status when the connection starts (1s to 5m)
Response Timeout500msHow long one telegram waits for the PCD's answer before it is sent again (100ms to 1m). 500 ms is Saia's own default
Attempts3How many times a telegram is sent, with the same sequence number, before the station is reported silent (1 to 10). 3 is Saia's own default

Ether-S-Bus must be enabled on the PCD's Ethernet port in PG5's Device Configurator, and the PCD's station number is set there too.

Each function has its own Timeout (default 30m) that bounds the whole operation. Within it, each telegram waits at most the Response Timeout for its answer, Attempts times.

Saia PCD connection formSaia PCD connection form

The Connection tab: the PCD's address, port and station number, and the waits

Gateway stations​

A gateway PCD passes a telegram from its Ethernet port to the serial S-Bus line behind it and waits for the serial station's answer itself. Set Address to the gateway PCD and Station to the serial station's number. Use one MaestroHub connection per station.

A telegram through a gateway takes longer: the gateway waits for the serial station on its own port (the gateway master port, GMP). Saia's rule is that the external master, here MaestroHub, waits at least twice the GMP timeout, and with several masters (1.5 × GMP timeout) × the number of masters. For a GMP timeout of 250 ms and two masters, set Response Timeout to at least 750 ms. A PCD1 gateway buffers one telegram and a PCD2 gateway four; more masters than buffers lose telegrams, which shows as an occasional no answer.

Testing the Connection​

Click Test Connection at the bottom of the form to try the current settings before saving. It connects as described in What happens on connect. Once the connection runs, its health probe reads the PCD's status again and reports the round trip. When the PCD does not answer, the session is closed and opened again.

Function Builder​

Creating Saia PCD Functions​

After the connection is saved:

  1. Open the connection and navigate to the Functions tab
  2. Click New Function to open the function type selection dialog
  3. Choose Read Device, Read Block, Write Device or Read Station
  4. Fill the Basic tab (name, description, labels) and the Configuration tab (operation-specific parameters)
  5. Use the Test button to run the function against the live PCD before saving. Testing a Write Device function writes to the PCD
Saia PCD function typesSaia PCD function types

Three reads and one write

Addresses​

Every function names its data by address, in either letter case. Numbers are decimal, 0 to 65535, the most a telegram can name; which of them a PCD has depends on its CPU and its configuration, and a PCD refuses an address it does not have.

AddressWhat it namesData typesCan be written
R100Register 100DINT (default), DWORD, REALYes
T5Timer 5DINT (default), DWORDYes
C3Counter 3DINT (default), DWORDYes
F2000Flag 2000BITYes
I8Input 8BITNo: the PCD's input modules set it
O32Output 32BITYes
DB10.3Element 3 of data block 10DINT (default), DWORD, REALNo: data blocks are read-only in this version
R100.5Bit 5 of register 100 (bit 0 is the least significant, bits 0 to 31)BITNo: write the register as DWORD
DB10.3.5Bit 5 of element 3 of data block 10BITNo

Leave Data Type empty for the medium's own: BIT for a flag, input, output or a bit inside a register, DINT for the rest.

Data TypeA read returnsA write takes
DINTA whole number, -2147483648 to 2147483647The same range
DWORDThe 32 bits as a number, 0 to 4294967295The same range
REALA 32-bit floating-point number, in the Float FormatA number with an FFP form (below), or any 32-bit float for IEEE
BITtrue or falsetrue or false, 1 or 0, on or off

Results give the address back in one standard form: r100 comes back as R100, R007 as R7.

Float formats: FFP and IEEE​

A PCD's float instructions keep a float in FFP ("Motorola fast floating point"): 24 bits of mantissa, then the sign and a 7-bit exponent. It is the default on every PCD. Newer CPUs (PCD2.M480, PCD2.M5, PCD3) also have IEEE instructions; a program that uses them holds IEEE 754 floats. One program can hold both, so the format is chosen per function, and per point in a block read, not once for the connection.

Float FormatUse it for
ffp (default)A register written by the PCD's float instructions (FADD, FMUL, …)
ieeeA register written by the IEEE instructions (EFADD, DIFP, …)

The same 32 bits read in the other format give another number, so a value that looks wrong by a large factor usually means the other format.

An FFP number holds magnitudes from about 2.7e-20 to about 9.2e18, with the precision of an IEEE single. A value outside that range (other than 0) has no FFP form and is refused before anything is sent; it is never rounded or clipped.

Read Device (saia.read.device)​

Purpose: Reads one typed value from an address, or Count consecutive values as a list.

ParameterDefaultMeaning
Device(required)An address from the table above, e.g. R100, F2000, DB10.3
Data TypeemptyBIT, DINT, DWORD or REAL; empty for the medium's own
Float Formatffpffp or ieee, for REAL
Count11 to 1000. 1 returns the value; more returns a list
Timeout30mBound on this operation (1s to 1h)

One telegram reads at most 32 registers, timers, counters or data-block elements, or 128 flags, inputs or outputs. A longer read is sent as several telegrams, one after the other. A run of bits inside registers goes on into the next register after bit 31: R100.30 with Count 4 gives R100.30, R100.31, R101.0 and R101.1.

Read Block (saia.read.block)​

Purpose: Reads many named points in the fewest telegrams, and returns every value by its name. Use it to read a plant room's temperatures, setpoints and alarm flags in one node.

ParameterDefaultMeaning
Data Points(required)A list of points. Each point has a name, the key of its value in the result, a device such as R100 or F2000, an optional dataType and, for REAL, a floatFormat. Each name is used once. A point without a name is named by its address
Timeout30mBound on this operation (1s to 1h)

Points of the same medium (and the same data block) are read in one telegram, with what lies between them, when they fit (32 values or 128 bits). When the PCD refuses a telegram that served several points, MaestroHub asks for each of those points on its own, so an address the PCD does not have does not take its neighbours with it.

A point that is not an address, or whose data type its medium does not hold, is refused when the function is saved. A point the PCD refuses is reported by name in the result's errors, and the other points are still read. The node fails only when the station does not answer at all.

Write Device (saia.write.device)​

Purpose: Writes one value to an address, or a list of values to consecutive addresses in one telegram.

ParameterDefaultMeaning
Device(required)A writable address: a register (R200), timer (T5), counter (C3), flag (F2000) or output (O32)
Data TypeemptyBIT, DINT, DWORD or REAL; empty for the medium's own
Float Formatffpffp or ieee, for REAL
Value(required)A number, or true/false for a bit. A JSON list such as [1, 2, 3] writes consecutive addresses in one telegram. Supports ((paramName)) templates
Timeout30mBound on this operation (1s to 1h)
Write Device function parametersWrite Device function parameters

A Write Device function whose value is the ((setpoint)) parameter, filled by the pipeline

The write rules:

  • A list goes in one telegram, so a write lands whole or not at all: at most 32 registers, timers or counters, or 128 flags or outputs. A longer list is refused; split it into several functions.
  • Inputs cannot be written. The PCD's input modules set them, and S-Bus has no command that writes one. A write to an input is refused before anything is sent.
  • Data blocks cannot be written in this version, and neither can one bit inside a register: S-Bus rewrites the whole register, which would undo a change the PCD's program makes in between. Write the whole register as DWORD when you mean to.
  • Nothing is sent when a value does not fit its type: 2147483648 as a DINT, -1 as a DWORD, 1e30 as an FFP REAL, maybe as a BIT.
A write happens when the node runs, or not at all

A write is never buffered for later delivery: a setpoint that arrives an hour late is a new decision, not the old one. A pipeline run started by a late (replayed) input does not execute the write unless the node allows late input. A write that got no answer may be sent again by the node's Retry on Fail: writing the same values twice leaves the PCD in the same state. A write the PCD refused (NAK 1, 2 or 3) is not retried.

Read Station (saia.read.station)​

Purpose: Reads what the PCD says about itself, in four short telegrams: the state of its CPU, its station number, its PCD type and firmware version, and its real-time clock. It has no parameter but its Timeout.

The state is run, stop or halt, or the letter the PCD reports for another state. The clock is the PCD's local date and time, as it keeps it, without a time zone. A PCD without a real-time clock refuses the clock read; the result then has no clock, and the rest is still reported. Any other refusal fails the read.

Using Parameters​

The Value field supports ((parameterName)) placeholders; they appear in the Function Parameters block, where you set each one's type, whether it is required, and a default. For example, Value ((setpoint)) writes the node's setpoint parameter to the register the function names. A filled-in value is checked when the function runs, and nothing is sent when it does not fit.

Pipeline Integration​

Use the functions you configure here as nodes inside the Pipeline Designer. Each function type has its own node:

  • Saia PCD Read Device (connected.saia.read.device): executes a saia.read.device function
  • Saia PCD Read Block (connected.saia.read.block): executes a saia.read.block function
  • Saia PCD Write Device (connected.saia.write.device): executes a saia.write.device function
  • Saia PCD Read Station (connected.saia.read.station): executes a saia.read.station function

A PCD does not send data on its own: to poll one, drive the reads from a Schedule trigger.

Saia PCD node in the pipeline designerSaia PCD node in the pipeline designer

The Read Device node with its connection and function

For node-level details (output structure, execution settings), see the Saia PCD Nodes page.

For orchestration strategies that mix PCDs with other data sources, see the Nodes page.

Common Use Cases​

Building values to a historian or the UNS​

A Read Block of an air handling unit's temperatures (R100 as REAL), setpoints and alarm flags (F2000) on a Schedule trigger, routed to a historian or the Unified Namespace. Registers next to each other share a telegram, so a block of related points costs few round trips.

Setpoints from an energy management system​

A parameterized Write Device function (Value: ((setpoint)), Data Type REAL) fed from an energy management system or an operator form, with a Condition node checking the range first. A list such as [21.5, 19.0, 23.0] writes a schedule of setpoints to consecutive registers in one telegram.

Watching a PCD's health​

A Read Station on a schedule records whether each PCD's program runs, its firmware version for an inventory, and how far its clock has drifted.

Troubleshooting​

Error Reference​

The texts below leave out the saia: that most messages start with.

What you seeMeaningRetried?
no answer from station n at …: the PCD is off or out of reach, or station n is not its station numberNo answer to any of the attempts. A PCD says nothing to a telegram for another station, so this is also what a wrong Station looks likeYes
station n refused the request: NAK 1, no reason given: the PCD does not have the address, does not carry out the command, or will not take the valueThe PCD refused, for example an address past the end of its registersNo
station n refused the request: NAK 2, a password is requiredThe station is protected by a password; this connector does not log inNo
station n refused the request: NAK 3, the PGU port is in reduced protocolThe PCD's port is set to the reduced protocolNo
station n refused the request: NAK 4, the PGU port is already in useAnother client, often PG5, holds the PCD's PGU portYes
… is an input, which is read-onlyA write to an input. Nothing was sentNo
… is in a data block; data blocks are read-only in this versionA write to a data block. Nothing was sentNo
… is one bit of a register, which cannot be written aloneA write to a bit inside a register. Nothing was sentNo
… is too large for FFP / … is too small for FFPThe float has no FFP form. Nothing was sentNo
… is a flag, one bit: read it as BIT, not DINTThe data type does not fit the medium. Refused on saveNo
… values for R…; one write carries at most 32 registersThe list does not fit one telegram. Nothing was sentNo
… run past R65535, the last a telegram can nameThe run of values goes past the last address. Nothing was sentNo
not connected to the PCDThe connection is not upYes, after reconnect

"Retried?" says whether the node's Retry on Fail setting sends the request again. A refusal by the PCD for the request itself, and a request MaestroHub refuses before sending, give the same answer every time, so they are not retried.

Connection Issues​

SymptomPossible CauseSolution
Test Connection fails with no answer from station nA wrong Station, the wrong Address, Ether-S-Bus not enabled on the PCD's port, or a firewall in the way of UDP 5050Check the station number in PG5's Device Configurator first; then that the PCD answers UDP 5050 from the MaestroHub host
Values that are wrong by a large factorThe register holds the other float formatSwitch Float Format between ffp and ieee
Occasional no answer through a gatewayThe gateway's waits, or more masters than the gateway has buffersRaise Response Timeout by Saia's rule (see Gateway stations), and let fewer masters share the gateway
NAK 1 on an address you expect to existThe PCD's media are smaller than the address: their size depends on the CPU and its configurationCheck the address against the PCD's program and its media in PG5