Building a Reliable PLC Response to Oil Contamination
High-purity compressed air is often treated as a background utility, yet oil contamination can affect product quality, equipment reliability, and compliance. A sensor that detects oil in liquid, aerosol, and vapour forms gives manufacturers a way to monitor air quality continuously rather than relying only on periodic sampling.
Connecting that sensor to a programmable logic controller (PLC) turns measurement into an automated response. The PLC can raise an alarm, divert the air path, initiate a controlled filter bypass, or shut down the affected system before contaminated air reaches a critical process. The DOCA project information provides useful context on the optical sensing technology and its intended industrial applications.
Building The Signal Path
The installation normally begins with the DOCA sensor positioned at a representative point in the compressed-air network. This may be downstream of a coalescing filter, near a point of use, or at the outlet of a high-purity air treatment train. Sampling location matters because oil can appear in different physical forms as pressure and temperature change.
A PLC connection can use a discrete alarm output, a 4–20 mA analogue signal, or an industrial communications protocol such as Modbus. A discrete signal is straightforward for a shutdown interlock, while an analogue value allows the control system to display trends, calculate alarm margins, and identify gradual filter degradation.
The electrical design should separate sensor power, signal wiring, and network communications where practical. Shielded cable, suitable earthing, and protection from variable-speed drives help prevent nuisance alarms. Australian sites should also have the installation reviewed against the plant’s electrical safety procedures and the requirements applied by the local authority or facility operator.
Choosing The Correct Control Action
A filter bypass is not automatically the safest response. In some systems, opening a bypass would send untreated air directly to a process, which could increase the risk. In others, a bypass may divert flow to a safe vent, isolate a clogged filter, or keep a redundant treatment line operating while technicians service the primary unit.
The PLC sequence should therefore be based on a documented process risk assessment. A rising oil reading might first trigger a warning, followed by a high alarm, then isolation of the air supply. A confirmed critical reading can command a shutdown valve, stop an associated compressor, or transfer production to a validated standby line.
Valve position feedback is essential. If the PLC commands an isolation valve to close but does not receive the expected feedback, it should create a separate fault condition. The system should never report “safe” merely because an output has been energised.
Designing Dependable Alarm Logic
Alarm thresholds need more than a single instantaneous limit. Optical signals may fluctuate during start-up, condensate movement, maintenance, or changes in flow. A time delay and hysteresis can prevent a brief spike from stopping an entire production line while preserving a rapid response to a sustained contaminant event.
A practical configuration may include a pre-alarm, a high alarm, and a critical trip. Each level should have a defined response, priority, operator message, and reset method. Manual reset is usually preferable after a shutdown because it requires an authorised person to investigate the filter, compressor, drain system, and sensor condition.
The PLC should also recognise sensor faults, loss of power, invalid communications, and signal values outside the expected range. In a high-risk application, a failed or disconnected sensor may need to place the process in a conservative state. Any bypass should be time-limited, logged, and protected by an approval or key-switch arrangement.
Connecting With Plant Automation
Most facilities will want contamination data visible on the existing SCADA or building management system. Useful tags include the measured oil condition, alarm status, sensor health, selected operating mode, valve feedback, bypass duration, and the time of the last trip. Trends can help maintenance teams identify a failing separator before it causes a product-quality incident.
The PLC programme should use clear permissives and interlocks rather than relying on a single line of logic. For example, an automated restart may be blocked until the contaminant reading is below the recovery threshold, the air path is correctly aligned, and an operator has acknowledged the event. This supports traceability in pharmaceutical, medical, electronics, and clean-room environments.
Cybersecurity also belongs in the design. Restrict remote access, protect engineering workstations, back up the PLC code, and record changes to alarm limits. A local operator panel can provide controlled access without exposing the compressed-air controls unnecessarily to the wider business network.
Testing And Validating The Installation
Commissioning should test the complete chain from sensor output to final equipment response. Technicians can use simulated signals or approved test methods to confirm warning alarms, critical trips, valve movement, feedback faults, communications loss, and recovery behaviour. The test record should show who performed each test and what result was achieved.
For regulated production, the sensor and PLC functions may form part of a qualification package. The evidence can include calibration records, wiring drawings, software backups, alarm rationalisation, cause-and-effect matrices, and site acceptance results. NATA-accredited testing and local validation specialists may be relevant where the application requires independent measurement or documented verification.
Australian operating conditions deserve attention. A compressor room in Brisbane or regional Queensland may experience heat and humidity that affect condensate management, while a Melbourne site may need reliable operation through cold winter starts. In remote Western Australian facilities, spare parts, communications, and technician access can influence the preferred fail-safe strategy.
Practical Recommendations For Australian Sites
A sound implementation should reflect the way local plants actually operate, including shift handovers, contractor access, and the expectations of operators and tradies. Keep alarm messages plain enough for the person on the next shift to understand during a busy arvo, while retaining technical detail in the event history.
- Place the sensor where the sample represents the air reaching the critical process.
- Define separate warning, high, and shutdown thresholds with time delays and hysteresis.
- Confirm whether a bypass protects the process or creates a new contamination path.
- Use valve feedback and sensor-health monitoring to detect an incomplete response.
- Connect alarm and trend data to SCADA without exposing unnecessary network access.
- Test start-up, shutdown, communications failure, and manual-reset scenarios on site.
- Document calibration, software changes, bypass approvals, and maintenance ownership.
A well-engineered PLC interface makes oil detection an active protection layer rather than a passive instrument reading. By combining dependable signal handling, conservative interlocks, documented validation, and maintenance-friendly controls, Australian manufacturers can protect high-purity air systems without creating avoidable production interruptions.
Review the compressed-air process, identify the required safe state, and develop a cause-and-effect design around the sensor’s outputs. The next step is to engage the controls and process teams to specify, test, and commission the automated bypass or shutdown sequence for the individual site.