The SR21-RG is a metal-housed (Zamak) fork-type photoelectric sensor featuring dual red and green LED emitters, enabling reliable detection of color print register marks and labels on transparent films in automatic packaging lines. It offers 12-bit (4096-step) resolution with a 0.02 ms response time and up to 25 kHz switching frequency, making it suitable for high-speed applications. The sensor provides selectable NPN/PNP light-on/dark-on output via an M8 4-pin connector, with teach-in sensitivity adjustment via push-button. Supply voltage is 10–30 V DC, IP65 rated, and operating temperature r
The signal is resolved to 12 bits (4096 steps). Response is 0.02 ms and switching reaches 25 kHz, which is one cycle every 1 ÷ 25 kHz = 40 µs.
Best for
Colour print marks on transparent film, where red or dark ink absorbs the green light and the mark shows as a dark patch on the clear film.
High-speed applications that need a 0.02 ms response and switching up to 25 kHz.
Selection notes
Test the real print on the real film: yellow and other pale inks can leave little contrast.
To ignore printed colour and detect only a label gap or a film edge, the infrared SR23-5-IR-NH is the alternative, with an NPN output and a 5 mm range against 50 mm here.
Sensitivity is taught with a push-button on the sensor, so leave access to it after installation, and use a 4-pin M8 cable.
Specifications: General
Brand
Datalogic / Datasensing
Sensor type
fork label
Specifications: Performance
Range / distance
50.0 mm
Response time
0.02 ms
Switching frequency
25000
Specifications: Interface
Connection
m8_4pin
Specifications: Electrical
Supply voltage
10–30 VDC
Specifications: Environment
IP rating
ip65
Operating temperature
-20 to +60
Specifications: Sensing
Sensing method
through beam
Light source
Green LED
Specifications: Output
Output type
Push-pull
Specifications: Mechanical
Dimensions
20×26×90 mm
Housing material
Metal (Zamak)
Applications this product is commonly selected for. Open one to see the full recommended hardware and approach.
1. Install the IMPACT Software Suite and connect the camera
Install the IMPACT Software Suite on your PC, which provides both the configuration/viewer tools and the SDK. For a GigE Vision model (E100, M or U series), connect it to a dedicated NIC and, for USB3 models, use a certified USB3 cable and port. Power the camera and confirm it enumerates.
2. Bring the camera online and verify the link
For GigE Vision, put the camera and the host NIC on the same subnet (a static IP on the camera matching the NIC range is the most reliable starting point); for USB3, confirm the device is recognized. Open the IMPACT viewer/device tool, discover the camera, and verify a stable connection before streaming. Enabling jumbo frames on the NIC helps GigE throughput.
3. Set exposure, gain and trigger, then grab a first image
In the IMPACT tools, start a live stream and adjust exposure and gain until the image is well-lit without saturation; set white balance on color models. Begin in free-run (continuous) mode to confirm imaging, then switch to hardware or software trigger as your application requires. Capture and save a reference image once the scene looks correct.
4. Build a vision tool or move to the SDK/API
Use the IMPACT point-and-click vision tools to assemble an inspection, or use the IMPACT SDK to access the camera and results programmatically and feed them into your HMI/PLC application. As these are GenICam/GenTL-compliant devices, you can alternatively drive them from any GenICam-compliant third-party vision library if your pipeline standardizes on one.
5. Route the stable feed to deep-learning inspection (optional)
Once you have a stable, repeatable image, the feed can be sent to a deep-learning inspection platform such as Rosepetal for defect detection or classification tasks that go beyond rule-based tooling. Keep lighting, optics and trigger timing fixed so the images reaching the model stay consistent.
Frequently asked questions
Yes. It is meant for colour print register marks and labels on transparent films in automatic packaging lines.