Devices Channels (Reference) encapsulate protocol configurations and settings, providing communication pathways between the HMI and field devices through various network interfaces.
Device Channels provide:
Each channel represents a configured communication path using a specific protocol to connect with PLCs or field devices.
Online Configuration limitation: When a new channel is added to a running solution via Online Configuration, the channel registers in the namespace immediately, but tag polling does not start until the next runtime restart. Stop and restart the runtime to bring the new channel into live communication. Existing channels are not affected. |
| Property | Description | Required |
|---|---|---|
| Name | Channel Name | Yes |
| Protocol | Selected Protocol | Yes |
| Description | Object Description | No |
| Category | Editable classification label you assign to organize and tag channels by category — the same classification field available on Device Nodes and Device Access Types. Categories assigned to a channel help filter and organize channels, for example in the Device module diagnostics views and in Historian and Dataset data views. | No |
| Protocol Options | Protocol-specific settings | No |
| Interface | Communication type. Serial, Multi Serial, TCP/IP, Custom | No |
| InitialState | Channel startup behavior — Enabled, Disabled, Remote, Reserved | No |
| Timeout | Response timeout | No |
| RemoteSettings | Remote execution target. Used only when InitialState = Remote. IP:Port of the remote node's TWebServices (Solution Center) service — the node physically connected to the field device. Default port 10108 (older builds may differ; operator-configurable). | No |
| DriverVersion | Current driver version. Read-only | No |
Serial
Multi Serial
TCP/IP
| Setting | Description | Default |
|---|---|---|
| Listening Port | TCP port for slave connections | 502 (Modbus) |
| Node Connection | Parallel requests per node | 1 |
| Max Simultaneous | Concurrent connections limit | 10 |
| Share Node Same IP | Multiple slaves on single IP | False |
| Use Single Thread | Single thread for same IP | False |
| Use Ping Check | Verify connection before send | False |
| Accept Unsolicited | Allow unsolicited messages | False |
| State | Description | Use Case |
|---|---|---|
| Enabled | Active at startup | Normal operation |
| Disabled | Loaded but inactive | Maintenance mode |
| Remote | Runs on remote computer | Distributed architecture |
| Reserved | Not loaded | Temporarily excluded |
Each channel queues the writes it has not sent yet. Below the limit, the channel sends every write, so a gateway forwarding a burst of values for the same point keeps every intermediate value. Above the limit, writes of the same point are combined, and memory stays bounded at about 42 MB for a saturated channel.
From FrameworX 10.1.6, the default limit is 100,000 pending writes per channel. To set another limit, edit WriteQueueLimit in MachineSettings\TServer.json, for example to shorten the delay on a busy channel:
{
"appSettings": {
"Device": {
"WriteQueueLimit": 10000
}
}
} |
Accepted values are 1 to 1,000,000. Any other value uses the default and writes a warning to the trace. The runtime reads the setting when the channel starts. On a default installation, the MachineSettings folder is C:\Users\Public\Documents\FrameworX\MachineSettings.
The default pending-write limit rose from 1,000 to 100,000. A WriteQueueLimit already present in MachineSettings\TServer.json overrides the default. If the file on the machine sets 1000 and you want the new default, change the value to 100000 or remove the key. |
Execute Device Module on remote computers for gateway and tunneling applications.
The main server (where the solution runs and where you want the tags to update) reads each channel whose InitialState is Remote, connects to the remote node named in RemoteSettings, and launches a TRemoteDevice process on that remote node only. TRemoteDevice runs the protocol driver locally on the node, talks to the field device, and connects back to the main server to deliver the data. The remote node is the computer physically wired to the device; the main server never runs TRemoteDevice itself.
192.168.1.100:10108Enable in firewall (Inbound/Outbound):
Protocol drivers with specific permissions (PI, Tundra, Prediktor) must be executed by Windows Users. TWebServices or IIS must run under the same Windows User account. |
csharp
// Stop channel
@Device.Channel.ChannelName.Stop();
// Start channel
@Device.Channel.ChannelName.Start();
// Stop with timeout
@Device.Channel.ChannelName.Stop(10);csharp
public class ChannelControl
{
public void RestartChannel(string channelName)
{
// Stop channel
@Device.Channel[channelName].Stop(5);
// Wait for stop
Thread.Sleep(1000);
// Start channel
@Device.Channel[channelName].Start();
}
}Protocol: Modbus
Interface: TCP/IP
Port: 502
Node Connection: 1
Timeout: 1000msProtocol: Modbus RTU
Interface: Serial
Baud: 19200
Data Bits: 8
Parity: Even
Stop Bits: 1Protocol: OPC UA
Interface: TCP/IP
Port: 4840
Security: Basic256
Max Connections: 5Channel won't start:
Communication timeouts:
Connection failures:
Remote channel issues (no TRemoteDevice / no values):
Starting Module Device (Channel: <name>) :: Remote: <ip>Module Device (Channel: <name> failed with the connection error — check that the remote node's TWebServices service is running and reachable on the RemoteSettings portIsRunning = 1 and WatchDog advancing (see Driver-health signals below)csharp
// Get channel run state
int isRunning = @Device.Channel.ChannelName.IsRunning; // 1 = running, 0 = stopped
// Check last error code
int lastErrorCode = @Device.Channel.ChannelName.LastErrorCode;
// Get statistics
uint successAmount = @Device.Channel.ChannelName.SuccessAmount;
uint failAmount = @Device.Channel.ChannelName.FailAmount;TotalPoints is the count of device points (Tag-to-address mappings) actually bound to a channel's live driver across every Node and AccessType beneath it. The runtime writes it from the driver's resolved point list when the Device Module initializes the channel — it is not a count of rows in the configuration. A channel showing TotalPoints = 0 therefore has three distinct causes that look identical on a dashboard but call for different responses:
| Cause | What is happening | How to confirm | Fix |
|---|---|---|---|
Driver has no live point list | Points are defined in the configuration, but the driver's resolved point list is empty, so the runtime wrote TotalPoints = 0. Tags bound to the channel hold their StartValue (the value assigned on runtime startup) because no live binding is feeding them. | Tag values sit unchanged at their configured StartValue; the channel reports no read/write traffic. Check that the solution was built and that the points loaded for this channel. | Rebuild and start the runtime so the points load and bind to the driver. This is a configuration/startup state, not a field-communication fault — do not start by suspecting the physical link. |
Server / slave-role driver, no master connected | A driver running in server or unsolicited-message role (for example a Modbus slave, an OPC UA server endpoint, or an MQTT broker-side configuration) does not poll. It listens and accepts incoming connections, then services requests passively. With no external master/client connected yet, zero points and zero SuccessAmount are the normal, healthy idle state. | The channel is configured with Accept Unsolicited / server-mode behavior and is listening on its port. IsRunning = 1 with no errors. Traffic begins only once a master/client connects. | None required — the driver is waiting passively by design. Confirm the remote master/client is configured to connect to this endpoint. |
Communication was live, then went Bad | Points were bound and reading, then quality went Bad and traffic stopped — a genuine communication failure (cable, endpoint, device power, network path). This is the only one of the three that is an actual fault. | FailAmount rises; Status shows a non-zero error code; LastErrorCode / LastErrorDateTime carry the most recent failure and its timestamp. | Investigate the physical link or endpoint — not the configuration. The config was already proven by the period of live communication. |
Because all three present as "TotalPoints = 0," do not diagnose by that number alone. Cross-check against the affirmative driver-health signals below before deciding the channel is faulty. |
Judge whether a channel's driver is actually alive by the affirmative signals it maintains, rather than by TotalPoints or SuccessAmount — both of which are legitimately zero for a healthy server/slave-role channel with no master connected, or for a master channel that has not yet completed a poll.
| Signal | Healthy reading | Meaning |
|---|---|---|
IsRunning | 1 | The channel's protocol driver thread is active and ready to handle requests. 0 means the channel has not started, has been stopped, or failed to start. |
ProcessPID | Non-zero | The OS process ID of the process hosting the channel. The runtime clears it to 0 when the channel stops, so a non-zero PID confirms a live host process. Pairs with ProcessName. |
WatchDog | Advancing | While the driver's execution loop is running, the runtime increments this counter on roughly a one-second cadence. A value that keeps advancing on successive reads is a positive heartbeat; a value frozen across several seconds indicates the loop has stalled. Because the watchdog ticks independently of field traffic, it is a reliable "alive" signal even for a passive server/slave channel that shows no SuccessAmount. |
Give the driver a settle window before judging it dead. These signals populate during the channel's after-start phase, which runs after the runtime reports the channel started — IsRunning and ProcessPID are set, and the watchdog begins ticking, slightly behind the initial start. The synchronous |