Integrating Machine Vision With PLCs for Automated Reject Handling

Automated inspection becomes valuable when a camera’s decision is converted into a dependable physical action. A machine-vision system may detect a scratched lens, incorrect label, missing component or distorted reflector, but production quality improves only when the programmable logic controller (PLC) receives that result at the right time and directs the correct reject mechanism.

This connection requires more than wiring a pass/fail output between two devices. The inspection application, PLC program, encoder, conveyor, reject actuator and operator interface must share the same understanding of product position, timing and fault conditions. A clear architecture prevents false rejects, missed defects and unsafe machine behaviour.

Manufacturers in Australia often operate mixed production lines containing equipment from different decades. A modern industrial camera may need to communicate with an established Siemens, Allen-Bradley, Omron or Mitsubishi PLC, while the conveyor, air system and safety circuits follow older conventions. Planning for these interfaces early reduces commissioning delays.

The same principles apply across optical inspection equipment, machine-vision monitoring systems, surface-profile testers and lens or eyewear inspection machines. A useful starting point is to define what the vision system knows, what the PLC controls and what evidence must be retained when a product is rejected.

Define The Inspection Decision

The first step is to distinguish an inspection result from a reject command. The camera may report several measurements, such as scratch length, edge position, colour deviation or barcode status. The PLC should receive a controlled result that states whether the product passed, failed, remains under review or could not be inspected.

This distinction matters when an image is blurred, the lighting is interrupted or the product arrives outside the expected trigger window. Treating an uncertain image as a pass can release defective goods. Treating every communication fault as a reject can fill a bin unnecessarily and obscure a serious equipment problem. A separate “inspection unavailable” state gives the operator a clearer response.

Product identity and timing also need definition. A photoeye or encoder pulse can mark the leading edge of an item, while a shift register in the PLC tracks that item until it reaches the reject station. The vision controller should return its decision within a specified time, with a product identifier or sequence number where practical.

For high-speed conveyors, a simple bit signal may be insufficient. Ethernet/IP, PROFINET, Modbus TCP or an industrial fieldbus can transfer a result, confidence value, fault code and inspection recipe. The selected protocol should match the PLC family, response time and maintenance skills available at the site.

Connect Vision And PLC Safely

A robust interface uses explicit handshaking rather than relying on a single pulse. Typical signals include trigger accepted, image processing complete, result valid, pass, fail, fault and reset. The PLC can acknowledge each result, while the vision controller records whether that acknowledgement arrived within the expected interval.

The physical connection must be designed around electrical noise, isolation and safe-state behaviour. Industrial Ethernet should be separated from high-current motor cables where possible, and shielded cabling should be terminated according to the equipment manufacturer’s instructions. Digital outputs may require relays or opto-isolators when voltage levels, polarity or common references differ.

Safety functions should not depend on ordinary vision communications. Emergency stops, guard switches, light curtains and safe torque-off circuits require a safety-rated design appropriate to the machinery risk assessment. The PLC may prevent a reject cylinder from firing when a guard is open, but a standard software bit should never replace a compliant safety circuit.

The HMI should expose useful diagnostic information rather than a vague “vision error” message. Operators need to see the active recipe, camera status, trigger count, last reject reason, communication state and reject-bin level. Maintenance staff also benefit from a timestamped event log showing whether a failure came from the sensor, network, PLC logic or actuator.

Synchronise Product Tracking And Rejection

Reject timing is often the most difficult part of the system. If the camera is positioned two metres before the air blast, the PLC must calculate when the inspected item reaches the reject point. Conveyor speed changes, acceleration, product spacing and sensor response time all affect that calculation.

A conveyor encoder provides more reliable tracking than a fixed timer when speed varies. The PLC can add encoder counts to a shift register and trigger the reject output when the relevant count is reached. For products travelling in lanes, the tracking logic should preserve lane identity so that a failed item in lane three does not remove a passing item in lane one.

The reject mechanism should suit the product and line speed. Pneumatic air blasts are effective for light packaging, while servo pushers, diverters or robotic pick systems may be better for heavy, fragile or closely spaced goods. The design should confirm that the actuator has returned to its home position before the next cycle begins.

A reject confirmation sensor is an important safeguard. It can detect that the product entered the reject chute, that a pusher completed its stroke or that an item remains in the wrong lane. If confirmation fails, the PLC can stop the line, hold subsequent products or alert an operator rather than allowing uncertain stock to continue downstream.

For Australian plants, compressed air quality and temperature variation deserve practical attention. Dusty regional sites may require filtration and enclosure protection, while humid coastal locations such as Brisbane or Sydney can accelerate corrosion around exposed fittings. The reject assembly should be accessible for cleaning and designed around locally available spare parts.

Apply Optical And Three-Dimensional Inspection

Two-dimensional cameras remain suitable for many applications, including print verification, presence checks, colour assessment and edge inspection. Stable diffuse lighting is usually more important than buying a higher-resolution camera. Lens choice, working distance, exposure, polarisation and background control should be documented as part of the recipe.

Three-dimensional techniques can reveal height, warp, dents and surface geometry that a conventional image cannot reliably measure. Structured-light inspection projects a known pattern onto the item and calculates surface shape from its deformation. It can support optical surface-profile testing, moulded-part inspection and reflector alignment checks.

Reflective products create particular difficulties. Glass, polished metal and solar-thermal surfaces may generate glare or saturated pixels, so the integrator may need cross-polarised lighting, angled illumination, multiple exposures or a different camera position. A test sample set should include acceptable variation, borderline parts and known defects.

Recipes should be locked to a product code and version-controlled. If an operator changes a threshold, region of interest or exposure setting, the system should record who made the change and when. This creates a traceable link between the inspection result and the settings used at the time.

Where several cameras inspect one item, the PLC should receive a consolidated decision only after all required stations report. The software can retain the individual measurements for analysis, while the control layer uses a clear rule: a critical defect produces a reject, and an unavailable critical inspection produces a controlled stop or quarantine decision.

Measure Performance And Traceability

A machine-vision project should be judged with production data rather than impressive demonstration images. Useful measures include defect detection rate, false-reject rate, missed-reject rate, inspection availability, cycle time, reject confirmation rate and mean time to recover from faults. A practical metrics guide can help teams establish a common vocabulary before acceptance testing.

Acceptance trials should use a statistically meaningful sample of good and defective products. Defects need to be introduced or selected safely, with their location and severity recorded in advance. The trial should cover start-up, normal running, speed changes, lighting drift, dirty lenses, product variation and network interruption.

Traceability can connect the image, PLC sequence number, recipe version, operator action and final disposition. In food, pharmaceutical or medical-related production, retention periods and access controls should be agreed with quality and regulatory personnel. Even in general manufacturing, records help investigate customer complaints and distinguish a process issue from a camera fault.

Australian businesses should consider the relevant state or territory work health and safety requirements, along with the AS/NZS 4024 machinery-safety series when designing guarding and control systems. Food and beverage operations also need to align inspection and reject handling with the Australia New Zealand Food Standards Code, hygiene procedures and the site’s hazard analysis.

Cybersecurity forms part of quality assurance. Vendor websites and downloaded software should be checked for secure connections, current documentation and consistent company information. An equipment catalogue may contain useful inspection products, but procurement teams should verify firmware provenance, support contacts and update procedures before connecting a device to a factory network.

Adapt The System To Australian Sites

Australian production environments vary considerably. A high-volume plant near Melbourne or Sydney may have dedicated automation engineers and segmented industrial networks, while a regional facility near Adelaide, Newcastle or Toowoomba may depend on a small maintenance team and remote vendor support. The control design should make routine recovery possible without specialist programming.

Spare-part planning is especially important when a site is several hours from a major industrial supplier. Keep replacement lenses, lighting modules, photoeyes, pneumatic valves and network components identified by part number. A local stockholding strategy can prevent a minor sensor failure from becoming a multi-day shutdown.

Power quality, heat and dust also influence reliability. Enclosures may need suitable ingress protection, ventilation or filtered cooling, particularly in Queensland summers or dusty inland facilities. Camera exposure and lighting should be checked at different times of day if sunlight can enter through roller doors or skylights.

Labour arrangements affect commissioning and maintenance windows. Many Australian plants run early, late or weekend shifts, and a vision upgrade may need to be installed during a short planned outage. Clear drawings, labelled cables and concise operator training reduce dependence on the integrator after handover.

Network design should support remote diagnostics without exposing the machine unnecessarily. Use role-based access, separate automation and office networks, controlled vendor VPN access and backups of PLC, HMI and vision configurations. Review access logs when a recipe or software version changes.

Plan Commissioning And Ongoing Control

Commissioning should proceed in stages. First test the camera and lighting without product movement, then verify trigger timing, followed by PLC tracking, reject actuation and confirmation. Running the conveyor slowly during the first integrated trials makes it easier to observe sequence errors without damaging products or equipment.

Fault injection is valuable. Disconnect the camera, delay the result, block the reject chute, remove compressed air, alter the encoder signal and interrupt network communication. The expected response should be documented for every case. A safe stop, quarantine action or operator alarm is preferable to silent continuation.

Maintenance routines should include cleaning lenses and light covers, checking trigger alignment, inspecting air pressure, testing reject confirmation and reviewing false-reject trends. Calibration samples can be stored near the line so that operators can verify performance at the beginning of a shift and after a changeover.

The system should also preserve a clear boundary between inspection and disposition. A vision result can recommend rejection, but the PLC owns the physical sequence and the quality system defines what happens to rejected material. A locked reject bin, scan-based release process or supervisor approval may be appropriate for products with significant safety or commercial risk.

When selecting a supplier, examine its industrial references, commissioning method and after-sales support rather than relying on specification sheets alone. A company that offers optical sensors, monitoring systems, software and surface inspection may be able to integrate more of the cell, but each responsibility should still be recorded in the functional design specification.

Implementation Priorities

A disciplined rollout keeps the project focused on measurable production outcomes. The team should agree on the defect library, line speed, acceptable false-reject rate, interface protocol, safety responsibilities and data-retention requirements before ordering hardware.

Online research should also be handled carefully. A manufacturing website can contain inaccurate headings, injected search-engine content or links unrelated to its stated products. For example, an unrelated medical information site should not be treated as evidence of automation capability, while a separate consumer wearable band supplier has no bearing on PLC performance. Procurement staff should validate the legal entity, technical contacts, manuals and references through independent channels.

A well-integrated cell turns optical measurement into repeatable material handling. The result is a system that can identify defects, remove the correct item, explain why the action occurred and recover predictably when conditions fall outside the normal process.