Article sections
1. Why is acceptance testing different from model testing?2. The real difference between FAT, FIT, SAT, and SIT3. Requirements traceability before writing the test plan4. How should the test environment and measuring instruments be prepared?5. Functional tests: the right decision for the right product6. Performance and endurance tests7. Testing the PLC, MES, and operator interface together8. Acceptance outcome: pass, conditional pass, fail9. Field scenario: a metal part inspection station10. A practical acceptance checklist11. A step-by-step example of an acceptance test specification12. Prioritizing negative test scenarios by risk13. What evidence should be collected during a long-duration load test?14. The relationship between test data versions and production recipes15. How can human error be reduced in acceptance testing?16. Which changes require which tests to be repeated?17. Sign-off responsibilities for evidence and acceptance records18. Managing scope in multi-station production19. Special case: systems that make dimensional measurements from images20. The most important information to hand over from acceptance to maintenance21. Which fields should be defined instead of a downloadable test template?22. A numerical example of the decision window23. How is "safe behavior" defined during a network outage?Frequently asked questionsA machine vision system may produce correct results on hundreds of samples in the laboratory. But if the same system rejects the wrong product during its first shift on the customer's production line, the problem is not just model performance. Camera triggering, product identity, communication with the PLC, the operator interface, and error handling are also part of verification. FAT, SAT, and SIT tests are used to make this distinction visible.
1. Why is acceptance testing different from model testing?
Model testing measures the accuracy of predictions against a dataset. System acceptance, however, requires a product arriving from the physical environment to be tracked at the right time, with the right product identity, to the right actuator through the entire chain. An inference time of 50 ms is not enough information on its own; the time between triggering and activation of the reject mechanism, and the distribution of that time, must also be measured.
In production, a failure is sometimes not a noisy image but an event lost without warning. If the camera misses a frame and the PLC applies its last received decision to the new part, even a very well-trained model can reject the wrong product. Acceptance scenarios must therefore go beyond examples of "good product passed / defective product rejected." Network outages, double triggers, power failures, clock mismatches, buffer overflow, operator resets, and software restart behavior must also be tested.
Quality acceptance must not be confused with the functional safety of automation. The output of a machine vision application cannot replace a safety relay. Safety-related functions must be designed by the competent disciplines in accordance with the relevant standards; a FAT document does not automatically provide this.
2. The real difference between FAT, FIT, SAT, and SIT
FAT is usually performed before shipment, using test fixtures and simulated field signals. This stage is suitable for showing that the software, operator screen, cameras, model version, basic PLC protocol, and fault behavior work as intended in the design. However, plant lighting, vibration, and actual product variation may not yet be represented.
FIT is useful for testing multiple systems or subsystems together before shipment. For example, the camera station, a separate PLC cabinet, and an MES test server are operated together at the integrator's facility. FIT is not a mandatory stage in every project; scope, the supply chain, and integration risk determine whether it is needed.
SAT is performed after the system is installed. Working distance, field of view, actual belt speed, mechanical reject point, ambient light, and shift conditions become important at this stage. SIT focuses particularly on end-to-end evidence of inter-system messaging and correct association of results with products. Some organizations conduct SAT and SIT in the same session; even then, it must be clearly documented which test demonstrates which integration.
| Stage | Typical environment | Key verification question | Example evidence |
|---|---|---|---|
| FAT | Manufacturer's / integrator's facility | Do the designed functions work under controlled conditions? | Test record, image, version record |
| FIT | Integrator's facility | Can the subsystems be tested together in advance? | Interface test records |
| SAT | Customer's production site | Does the installed system meet acceptance conditions under site conditions? | Line test, calibration, measurement report |
| SIT | Actual integration environment | Are the camera, PLC, MES, and reject mechanism consistent for the same product? | Event correlation, I/O traces, alarm records |
3. Requirements traceability before writing the test plan
A good acceptance plan starts with requirements, not camera brands. Each requirement should have an ID, a description, a verification method, a measurable threshold, an owner, and evidence. For example, REQ-014: trigger-to-decision latency below 80 ms for 95% of products in the flow is a more meaningful statement; however, it must also be shown that this condition fits the actual line's physical reject window. Another requirement might be that the defective part ID is identical in the MES record and the PLC reject command.
A traceability matrix reduces the risk of discovering on acceptance day that "we forgot to test this." Requirements are broken down into independent subtests; for example, "automatic restart" includes both a software recovery test and invalidation of the old decision when the line resumes operation. Negative tests are also prepared for high-risk requirements: the system must demonstrate not only what it does correctly, but also which incorrect actions it must avoid when a fault occurs.
The IDs of the images and physical parts used must be recorded so that tests can be repeated. A note saying "Sample 1 came out fine" is not enough. Unless the camera, lighting profile, model hash, production recipe, and PLC software version used in the test are specified, future comparisons of the same test under different conditions will not be meaningful.
4. How should the test environment and measuring instruments be prepared?
The reliability of the test environment itself must also be checked. Before acceptance, establish the reference confirming that defect samples are genuinely defective, validated golden samples, the traceability of the measuring instrument, and the stability of camera placement. If a measurement system will test parts very close to tolerance limits, labeling decisions cannot be left to an arbitrary operator judgment. Ambiguous samples should be handled as a separate class or through an expert review process.
If an actual production conveyor is unavailable during FAT, PLC triggers and reject signals can be simulated. However, the simulator's limitations must be documented in the report. For example, the simulator may represent a reject mechanism that works perfectly with a 40 ms delay, while the pneumatic system on site may behave more variably depending on temperature and pressure. For the same reason, even if network outage scenarios are tested on a simulated MES server, additional verification against the plant's actual network policies may be necessary.
Rule of thumb: The more controlled the test environment, the easier it is to isolate software faults; the more representative it is of actual line conditions, the more confidently acceptance results can be transferred to the site. These two objectives are not interchangeable.
5. Functional tests: the right decision for the right product
The most basic test is to pass known good and defective parts through the system. However, the event chain must be recorded, not just the result: sensor trigger time, camera frame ID, prediction score, decision threshold, product ID, PLC output time, and physical rejection action. Cases such as the same product passing through again, an empty position, consecutive defective parts, and a change in direction of motion are tested separately.
Defect classes must not be conflated when measuring defect detection performance. A system that succeeds on "scratches" cannot be assumed to deliver the same accuracy on "missing screws." The frequency and severity of defects in actual production affect acceptance limits. Site-specific thresholds for these metrics must be defined in the contract or approved test plan; there is no single universal acceptance rate.
In a multi-camera system, the same product may be imaged from different views. In this case, tests cover the order in which the result object combining the camera frames is created, behavior when views are missing, and whether a late frame can change a decision already issued. From an engineering perspective, the most critical question is sometimes not what the model saw, but which product's image it saw.
FAT/SAT test planner
Illustrative checklist. Check each test when completed; no acceptance outcome is produced while critical tests remain open. Do not use these results in place of an actual test record.
6. Performance and endurance tests
Software that runs without errors in a short trial may not behave the same way over an eight-hour shift. Long-duration testing monitors memory consumption, buffer occupancy, dropped frames, GPU temperature, p95/p99 latency, network connectivity, and retry counts. Average latency must not be used alone; even a small tail of queued events that miss the reject mechanism's deadline can be critical.
The performance test's load profile should resemble reality. The average frame rate measured on a line handling 300 products per hour may conceal peaks such as sudden accumulation or simultaneous arrivals from two conveyors. Testing should therefore include normal load, peak load, brief packet bursts, and device reconnection behavior. Fast model inference does not mean the overall system has equally high capacity.
Controlled fault-injection tests are needed alongside extended operation: events such as unplugging an Ethernet cable, filling storage, an unreadable model file, camera temperature exceeding its limit, or loss of clock synchronization. The expected behavior for each scenario must be documented: an alarm, a controlled stop, or diversion to manual inspection? Silently reusing the last known decision is generally a dangerous behavior that should not be accepted.
7. Testing the PLC, MES, and operator interface together
Many integration problems arise because individual components behave correctly on their own but carry different timing or identity information about the same event. Writing "reject" to the PLC is not enough; the product, conveyor position, and active recipe to which it applies must be verified. The control logic must define what happens if the result message arrives late.
On the MES side, tests cover data format, authorization, retransmission, and the queue maintained during a disconnection. If production continues during a network outage and events are stored in a local buffer, they must subsequently be transferred in order and deduplicated. Sending the same record twice must not be reported as two defective products having been produced. Event identity and idempotent processing are therefore part of acceptance testing.
The operator interface should be evaluated not just for aesthetics, but also for how well the decision can be understood and how quickly an intervention can be made. Tests cover alarm clarity, which actions require operator authorization, how a nonconformity is flagged, and how interventions are traced. Even physical conditions such as loud noise, wearing gloves, and distance from the screen can affect usability in a factory.
8. Acceptance outcome: pass, conditional pass, fail
Three elements must be established in advance for every test: the expected result, the observed result, and the acceptance decision. Simply saying "passed" is not enough; the test step, timestamp, observed record, and any evidence link must be reported. Granting overall acceptance before critical nonconformities are closed can lead to later disputes over responsibility.
Conditional acceptance is possible, but requires informed, written acceptance of the residual risk. For example, a translation error confined to a reporting screen may allow conditional acceptance, whereas an indeterminate reject output after a timeout represents a different level of risk. Which findings block acceptance should be decided at the start of the project, not negotiated on acceptance day.
The final record should include system versions, installation configuration, the list of open nonconformities, action owners, target correction dates, and authorized approvals. Sample images, calibration files, test script versions, connection diagrams, and operator manuals should be included in the handover package.
9. Field scenario: a metal part inspection station
Suppose a line carries 120 metal parts per minute. The camera detects a crack on a part's surface and sends a reject signal to a pneumatic mechanism 1.4 meters downstream. During the initial FAT, defective images are classified correctly. During SAT, however, it becomes apparent that the PLC associates the result message with an old product counter value. If testing had covered only the model, this error might never have been seen.
The solution is a unique product event for each trigger, with sequence information carried alongside the decision. The reject window is measured on the line by verifying the actual transport speed and mechanical tolerance. The control software treats a late result as an error; it does not apply the old decision to the next product. If the MES connection is lost, tracking records are stored locally and retransmitted in a controlled manner.
The numbers and behaviors in this scenario are teaching assumptions. Actual acceptance criteria depend on the product, safety analysis, line speed, and contract. The key lesson is this: acceptance of a machine vision station requires system-level evidence far beyond correct model predictions.
10. A practical acceptance checklist
- Does every requirement have a defined test ID and acceptance criterion?
- Have the model, firmware, PLC, and camera configuration versions used been recorded?
- Are good, defective, ambiguous, and unexpected product samples ready?
- Can product identity be traced from the frame through the actuator to the report?
- Have camera outages, missing frames, and timeouts been tested?
- Are results available for peak load, extended operation, and restart tests?
- Has physical rejection been observed under actual site conditions?
- Have operator intervention, authorization, and alarm notifications been verified?
- Are open nonconformities, correction owners, and acceptance conditions documented?
- Have post-handover support, backup, and version rollback processes been defined?
11. A step-by-step example of an acceptance test specification
Every line in the acceptance record must translate into an auditable test case. TC-PLC-007 might, for example, aim to demonstrate that a late decision is not applied to the wrong part. Preconditions: the line simulator is running, the product counter has been reset, and the camera and PLC carry the same product ID. Procedure: trigger product A, deliberately delay the result message, then trigger product B. Expected behavior: the late message for A must not activate the reject mechanism for product B; the event must be logged as a timeout, and the defined safe operating procedure must be followed.
The evidence for this test is not just a screenshot. The PLC event trace, camera frame IDs, application log, and physical reject signal must be examined together. If a step fails, the owner of the open nonconformity, the preconditions for retesting, and the software version containing the fix must be recorded. This ensures that, when the test is repeated weeks later, someone else's question of "what exactly was done here?" does not go unanswered.
12. Prioritizing negative test scenarios by risk
Testing every possible failure with equal intensity can waste limited project time. Risk analysis considers a failure's impact, likelihood, and detectability. For example, a late reject message physically ejecting the wrong product may pose a higher risk than a chart rendering defect confined to a reporting screen. PLC timeouts, identity mismatches, incorrect recipes, and uncontrolled restarts are therefore tested first.
However, risk scores must not be treated as mathematical truths. In methods such as FMEA, different impacts can yield the same numerical score; a critical safety impact must not be overlooked because it is multiplied by a moderate likelihood. When documenting test priorities, explicitly explain in a sentence why each risk matters. Hazards under actual operating conditions should also be assessed in consultation with customer and production representatives. Vision software tests are kept separate from the machine's mandatory safety verification.
13. What evidence should be collected during a long-duration load test?
It is not enough for a model service to avoid shutting down during eight hours of operation. For example, if there are 48,000 triggers during the test, the numbers of acquired frames, generated decisions, messages sent to the PLC, and records written to the MES must be mutually consistent. Permissible differences are defined in advance; unexplained lost events cannot be hidden within a "successful run." Hourly fluctuations in system load should also be correlated with latency statistics.
Initial and final resource metrics are compared: is memory stable or continually increasing; do buffer queues shrink when the load subsides; does brightness change as the lighting driver heats up? Image samples are retained according to the selected retention policy so they can be reanalyzed later. User interface operations during extended operation must also be tested; an operator changing a filter or downloading a report must not block production decisions.
14. The relationship between test data versions and production recipes
Defect detection systems may use different recipes even within the same product family. Lighting, focus, masks, or thresholds used for one product may not apply to another. A recipe passing FAT does not prevent the wrong product recipe from being active during SAT. Test scenarios should therefore include which recipe is used with which product ID. The system's response when the same part is deliberately submitted to two different recipes can be tested.
Test datasets also change. Adding a new defect image does not automatically invalidate an earlier test report, but the version of the dataset used must be known to reproduce the exact result of the same test. The test dataset, labeling guidelines, and traceability of the reference measuring instrument should be considered together. If images can be transferred externally, access to personally or commercially sensitive information should also be restricted according to project policy.
15. How can human error be reduced in acceptance testing?
An operator checking the wrong row in a long checklist or matching a test photograph to the wrong part is a common risk. Test steps should therefore use a small number of clear action statements. Each test can include columns for "initial state," "action," "expected output," and "evidence." Where necessary, the test fixture can assign barcodes to parts to reduce manual matching. Automatic log collection can provide more consistent timing information than lengthy handwritten records.
The automation itself must also be tested. An image captured with the wrong product ID being turned into a success report introduces a new hazard. Independent checks by two people or automatic comparisons can be used to observe critical functions. At the end of testing, inconsistencies across records, such as 499 records instead of 500 for 500 triggers, may go unnoticed if only individual "passed" boxes are reviewed.
16. Which changes require which tests to be repeated?
Changing the camera lens may not require all software tests to be repeated; however, field of view, calibration, resolution, defect visibility, and measurement requirements must be reassessed. When the model version changes, offline quality tests and end-to-end latency must be measured again. When the PLC message format changes, integration, timeout, retransmission, and product matching tests take priority. Preparing a regression matrix that captures each change's impact both reduces test costs and prevents critical cases from being forgotten.
The statement "no code changed, only the threshold" can be misleading from a quality-risk perspective. Lowering the threshold may increase false rejects; raising it may cause critical defects to be missed. Configuration changes must therefore also be subject to approval and traceability. Previous acceptance results should be retained in a way that shows which assumptions no longer hold in the new version.
17. Sign-off responsibilities for evidence and acceptance records
Not everyone attending on test day has to provide the same type of approval. The integrator may confirm that the software version meets the conditions, the quality lead that reference defects are valid, the production lead that line intervention procedures are appropriate, and the OT team that network and access restrictions are satisfied. This division of responsibilities both establishes ownership during retesting and reduces disputes about "who approved it?"
The record must not be left as a presentation consisting of screenshots. It should include the test plan version, date, station tested, device serial number, identified nonconformities, and owners of open actions. If there is no written plan for closing an outstanding FAT finding during SAT, traceability between the two stages is lost. Digital signatures or corporate document systems may be used, but the essential basis of document reliability is consistency between evidence and decisions.
18. Managing scope in multi-station production
Installing ten copies of a system accepted at one station does not mean all ten stations are automatically accepted. Mounting angle, local lighting, mechanical reference, cable routing, and product transfer distance may differ between stations. Reusable design-level tests must therefore be distinguished from station-specific site checks. For example, model accuracy on a particular image set may serve as shared evidence, but camera calibration and PLC reject matching must be verified separately at every station.
Managing reports becomes harder as the number of stations increases. Even when the same test template is used, device identity and installation configuration must be associated with every result. Copying a factory's acceptance report directly from line A to line B can hide small but critical differences that emerge during maintenance. A central acceptance matrix is useful for management, but each row must be supported by local evidence.
19. Special case: systems that make dimensional measurements from images
Unlike defect detection, measurement systems place the true value and uncertainty at the forefront. For example, if the hole diameter tolerance is ±0.10 mm, the total uncertainty of image-based measurement must be sufficiently small relative to that tolerance. Pixel scale, distortion, part height, temperature, and the edge detection method affect the measurement. The FAT/SAT plan must therefore include comparison against a traceable reference and a repeatability study, not just "hole detected."
Measurement acceptance criteria must not confuse the product tolerance with the measurement system's uncertainty. Even if a check part deviates from its nominal value, the vision measurement error cannot be calculated on its own without knowing the reference system's uncertainty. If necessary, repeated measurements are taken with different operators, part placements, and shifts. This study also provides evidence that the mechanical fixture and optical arrangement can remain stable throughout production.
20. The most important information to hand over from acceptance to maintenance
Acceptance testing is not just about saying "yes" today; it should make it possible to understand future deviations. Reference images, expected sharpness and brightness ranges, the normal latency distribution, inspected defect classes, and timeout scenarios are therefore handed over to the maintenance team. If false rejects increase a year later, the images and decision behavior considered normal at acceptance can be compared with the current system.
The locations of critical spare parts, firmware versions, licenses, camera IP addresses, and recovery files should also be explained. The aim should be for the business to perform basic maintenance and controlled shutdowns even after supplier access ends. Open risks should be reviewed again at the closing meeting, and it should be confirmed that the maintenance team has been informed of them.
21. Which fields should be defined instead of a downloadable test template?
An acceptance test form should capture the same information regardless of the tool used: test ID, linked requirement, precondition, configuration used, procedure steps, expected observation, actual observation, evidence ID, nonconformity record, and approval status. These fields may be maintained in an Excel spreadsheet, a corporate test management system, or a simple local application. More important than the tool is linking every test to its result and not deleting evidence from earlier versions.
For example, REQ-PLC-014 could be verified using test TC-SIT-006 as an example. The test could examine "matching reject decisions to product IDs when two products trigger consecutively." The expected result is two independent decisions for two distinct product IDs and the correct PLC ACK. A log summary, PLC output traces, and an image of physical rejection can be retained as evidence. If the evidence conflicts, the test should remain open for investigation rather than be marked "passed."
22. A numerical example of the decision window
Suppose the conveyor speed is 0.8 m/s and the nominal distance between the camera and reject point is 0.64 m. The approximate camera-to-reject travel time is 0.64 / 0.8 = 0.80 seconds for this product. However, not all of this time is available to the software. The PLC scan cycle, actuator's mechanical response, product length, sensor mounting position, and fluctuations in motion speed must be included. For example, allocating 150 ms for mechanical response and 100 ms for control margin leaves 550 ms; this is only an illustrative budget.
Acceptance testing must demonstrate that this budget is met with actual hardware under actual load. An average processing time of 200 ms may seem adequate, but rare 700 ms events may deliver results too late for the physical reject point. The time at which a decision is issued for a particular product, the mechanical signal is transmitted, and the actual rejection is completed must therefore be verified with separate timestamps or measurement evidence.
23. How is "safe behavior" defined during a network outage?
If the connection between the camera and PLC is lost, a controlled stop may be appropriate on some lines, diversion of all products to a manual inspection line on others, and a different decision according to the production recipe on others. There is no universal fail-safe behavior; this policy must follow from the product and plant risk analysis. However, automatic application of the previous product's decision to a new product during a disconnection must be explicitly prevented because it increases the risk of incorrect decisions.
Testing must cover reconnection as well as disconnection. It must be decided whether messages in the old queue will be processed in sequence, deduplicated, or rejected as expired after connectivity returns. Each result must be associated with a product ID and a validity period. Uncontrolled execution of all pending reject commands as soon as the network returns can cause unwanted physical behavior.
Frequently asked questions
Can FAT and SAT replace each other?
Generally, no. FAT focuses on verifying the design in a controlled test environment, while SAT focuses on site conditions after installation. Although the scale of a project may allow some test steps to be combined, it must be clearly demonstrated that the different risks are addressed.
Is SIT just about testing the PLC connection?
No. Integrated behavior matters, including physical rejection, messaging, product identity, MES records, fault conditions, and synchronization. Opening a TCP connection does not prove that the correct production decision has been made.
Is IEC 62381 mandatory for every machine vision system?
The standard targets process industry automation systems and can serve as a reference for project-specific test plans. Its application to a particular machine vision project depends on the contract, industry, and other relevant obligations.
Is a single accuracy value enough for acceptance?
No. Defect detection, false rejects, latency, traceability, fault behavior, and operator actions are separate requirements. Accuracy can be particularly misleading for rare but critical defects.
Sources and technical references
Sources link to official institutional and project documentation. The diagrams and calculation examples were created for this article; they are not presented as measured results from a particular plant.
Publication note: No test or example value replaces the contract-specific acceptance specification or the plant's risk analysis. No code examples are included.