Skip to content

Inhibit and enable a fieldbus device

eaxPLCHow-to guideFreeProView as Markdown

See, device by device, whether your fieldbus devices exchange data, why one is at fault and what happened to it since the PLC started. Then take one device out of service while the PLC runs, for example to replace a valve: the PLC drives the device’s outputs to its safe state, stops exchanging data with it, and leaves every other device running. When the work is done, enable the device again.

  1. Open Fieldbus, then click I/O tree next to Configuration.
  2. The tree on the left shows the controller, its buses, their devices and the modules of each device: the EtherNet/IP assemblies, the EtherCAT PDOs of an imported device description, the CANopen PDOs. Select a node to see its details.
  3. The details have three tabs: Devices, Properties and History. Each one is a data grid with filters, sorting and CSV export. The view reads the PLC every second while it is open and updates the rows in place.

Selecting the controller lists every device; selecting a bus lists the devices of that bus.

The Devices tab shows each device with its Bus, Device, Type, State, Fault code, Detail, Cycles, Faults and Since. On a narrow screen some of these columns are hidden.

State Means
running The device exchanges data.
connecting The PLC is connecting to the device.
fault The device does not exchange data. Fault code and Detail say why.
inhibited An engineer took the device out of service. Detail says who and why. An inhibited device is never shown as a fault.
stopped The device is not running.
disabled The device is disabled in the configuration.

A device at fault or inhibited is marked in its row. Click the marker to open its properties. Above the grid, a chip such as “2 faults · 1 inhibited” shows only those devices; click it again to show every device.

A faulted device shows a short fault code beside its message. The message keeps the detail.

Fault code The message is about
CONNECTION_REFUSED a refused connection
COMM_TIMEOUT a timeout, no input data, no frame back, a lost heartbeat
DEVICE_EXCEPTION an error answer from the device to a function it was sent
IDENTITY_MISMATCH an identity that does not match the configuration (vendor, product, revision, electronic key)
PORT_ERROR an I/O port or interface that cannot be opened, or a bus that is off
CONFIG_ERROR the configuration or the memory layout keeping the device from starting
LINE_STATE an EtherCAT slave that left OP, or a wrong working counter
COMM_FAULT any other communication fault

The Properties tab shows the selected node’s settings and counters, for example the address, the timings, the identity, Safe state (outputs on stop) and, for an inhibited device, Inhibited by, Inhibited at, Inhibit reason and Safe state reached.

Select a device and open History, or click History in the device’s row. The history lists the device’s events, newest first:

  • state: its state or its error changed, with the fault code and the message;
  • inhibited and enabled: with who did it and the reason.

Each device keeps its last 200 events. The history is kept in the PLC’s memory only: it starts empty when the PLC starts (“No event since the PLC started”). Inhibits and enables are also in the PLC’s audit trail, which persists.

  1. Select the device and click Inhibit, at the top of the details or in the device’s row.
  2. The dialog says what will happen and shows the device’s safe state, for example “Safe state: outputs set to 0”. Type the Reason (required, it goes to the audit trail, at most 200 characters) and click Inhibit.
  3. Give your e-signature. It covers the device and what the action does.

The Studio’s Diagnostics & events log then reads, for example, “[I/O tree] line1/rack2 inhibited: safe state outputs set to 0 (accepted by the device)”. The device’s state turns inhibited (amber).

An MQTT input source drives no outputs and cannot be inhibited: disable the source instead.

  1. The device’s driver sends its safe outputs instead of the program’s, the same as on a PLC stop (see the safe state per bus type).
  2. The PLC waits until the bus accepted them, or until it sees that the device is not exchanging data. It waits at most a few of the device’s cycles, from 0.5 to 10 s. On Modbus TCP a write was answered; on EtherNet/IP the adapter’s data came back after the first safe packet; on EtherCAT a frame came back with the expected working counter; on CANopen the NMT command or the RPDOs were sent.
  3. The scan stops copying the device.
  4. Modbus TCP and EtherNet/IP close that device’s connection. The other devices of the bus keep theirs: no restart, and their connection counters do not change. An EtherCAT line or a CANopen bus keeps running for the other devices, and the inhibited slave or node keeps getting only its safe outputs.

The inhibit is saved before step 1. If it cannot be saved, nothing is changed.

Result Shown as Means
accepted accepted by the device The bus accepted the safe outputs before the exchange stopped.
disconnected the device was not exchanging data The device was not exchanging data; nothing but the safe outputs is sent to it any more.
disabled the device was disabled The device or its bus is disabled: nothing was being sent to it.
not_confirmed not confirmed: the device applies its own communication-loss behaviour The bus did not confirm the safe outputs in time. The exchange is stopped anyway, and the device applies its own behaviour on a loss of communication. The log shows it as a warning.

The safe state is the device’s Outputs on stop setting in the configuration.

Bus type Setting What the inhibit does
Modbus TCP zero writes 0
Modbus TCP hold writes nothing more: the device keeps its last values
EtherNet/IP idle sends the run/idle header idle, with zeros: the adapter applies its idle state
EtherNet/IP zero runs with zeros
EtherCAT zero outputs set to 0
EtherCAT hold outputs held at their last values
CANopen preop sends the node to pre-operational: it applies its own safe state
CANopen zero sends zero RPDOs

5. What the program sees while a device is inhibited

Section titled “5. What the program sees while a device is inhibited”

The device behaves for the program exactly as a disconnected device:

  • the program’s writes to the device’s outputs are not sent;
  • its inputs read 0, or keep their last values with Inputs on fault set to hold;
  • the quality of its inputs is Bad - not connected (8) for OPC UA, the NATS UNS and the MQTT publisher;
  • its status bit is FALSE;
  • its state is inhibited, never fault.
  1. Select the device and click Enable.
  2. Type the Reason (required, for example “valve replaced and tested”) and click Enable.
  3. Give your e-signature.

A Modbus TCP or EtherNet/IP device restarts alone, with a new connection; the other devices are not touched. An EtherCAT slave or a CANopen node rejoins the line, which kept running.

In both cases the driver keeps sending the safe outputs until the scan has written the program’s outputs once after the enable. The outputs then follow the program’s current values, never values written before the inhibit.

An inhibit ends only when someone enables the device, or when the device is removed from the configuration. A PLC restart, a deploy, a fieldbus configuration Apply and a change of the PLC memory layout all keep the device inhibited (see Apply fieldbus changes).

The inhibited devices are kept in data/fieldbus/inhibits.json, with who, when and why, apart from the fieldbus configuration data/fieldbus.json. The configuration, its export and its approval stamp do not change when you inhibit or enable a device.

If inhibits.json cannot be read when the PLC starts, the fieldbus does not start, as for a configuration that cannot be read.

A device is identified by its bus id and its device id. A renamed device is a new device, and it is not inhibited.

  • An engineer: Lead_Engineer or Administrator, always with the e-signature. It cannot be waived, as for a fieldbus Apply. A reason is required.
  • Never the AI co-pilot.
  • On site only. Inhibit and enable are refused through an eaxCloud remote session, in either direction. A device inhibited on site for maintenance is never enabled again from afar.

Anyone signed in can read the I/O tree and the history, through a remote session too. In a remote session the Studio shows Inhibit and Enable disabled, with “Inhibit and enable are not available through a remote session: do it on site.”

Every inhibit and enable is in the audit trail as CONFIG / FIELDBUS_INHIBIT or FIELDBUS_ENABLE, for the resource fieldbus/<bus>/<device>, with the reason, the safe state and how it was reached. A refusal through a remote session is recorded as SECURITY / FIELDBUS_INHIBIT_DENIED or FIELDBUS_ENABLE_DENIED, and the device is unchanged.

Message Why
inhibiting or enabling a fieldbus device needs an engineer (Lead_Engineer or Administrator); … Your role is not an engineer.
inhibiting a fieldbus device is not available through a remote session (user): do it on site (or enabling) You opened the Studio through eaxCloud. Do it from the PLC’s own pages, on site.
a reason is required The reason is empty. The Studio says “not done: a reason is required”.
the device is already inhibited Someone else inhibited it first.
the device is not inhibited Someone else enabled it first.
the fieldbus is not running (not loaded, or stopped after a memory layout change) Inhibit needs a running fieldbus.
an MQTT input source drives no outputs and is not inhibited: disable the source instead MQTT input sources are not inhibited.
no such device The bus id or the device id is not in the running configuration.
the inhibit was not saved, nothing was changed (or the enable was not saved) The PLC could not write inhibits.json.
Request
GET /api/fieldbus?view=iotree The tree: nodes, each with id, kind (controller, bus, device, module), state, fault_code, last_error, inhibit, inhibitable and props; and remote (true in an eaxCloud remote session).
GET /api/fieldbus?events=<bus>/<device> The device’s history: events, each with at (Unix milliseconds), kind (state, inhibit, enable), state, code, message and by.
POST /api/fieldbus Inhibit or enable: {"action": "inhibit" | "enable", "bus": "...", "device": "...", "reason": "..."}, with the e-signature.

An inhibit answers inhibit with by, at, reason, safe_state and safe_result; an enable answers apply, what was done to the device. In the fieldbus status, an inhibited device carries inhibit and driver_state, the driver’s own state meanwhile.

Refusals answer 403 (a remote session), 404 (no such device), 409 (already inhibited, not inhibited, fieldbus not running) and 422 (an MQTT source, no reason).