The SR31 is a compact metal-housed photoelectric fork sensor featuring a 30 mm × 42 mm slot and infrared LED emitter/receiver pair integrated in the fork arms. It operates on 10–30 VDC and delivers a 10 kHz switching frequency with 50 µs response time, making it suited for high-speed presence/absence and edge detection. Output polarity (NPN/PNP) and operating mode (light-on/dark-on) are selectable via a trimmer. The series also includes a Wide Gap variant (SR31-0) with a 120 mm slot gap. Housing is die-cast zinc (Zamak) rated IP60.
The SR31 is the polarity-selectable fork of its family: NPN or PNP and light-on or dark-on are chosen with a trimmer, so one part number serves either input type, while the SR31-0 is fixed to NPN and the SR31-1 to PNP. An infrared LED emitter and receiver sit in the arms of a slot 30 mm wide and 42 mm deep, so an object passing between them is detected by beam interruption.
It is rated only IP60, which means dust-tight but with no protection against water.
Best for
Presence or absence checks on opaque parts passing through the 30 mm slot, where the interrupted beam switches the output.
Edge detection on opaque webs or strips guided through the 30 mm slot, where the edge interrupts the beam and switches the output.
Dry machinery with no coolant or washdown, where IP60 protection is enough and the 30 mm slot gives the product room.
Selection notes
Check that the object and any flutter fit inside the 30 mm slot width and stay clear of the back of the slot.
Set the trimmer for NPN or PNP and for light-on or dark-on before wiring: a wrong setting gives an inverted or missing signal.
If the application only ever needs NPN or only PNP, the SR31-0 (NPN) and the SR31-1 (PNP) are the fixed-polarity versions, both with an M8 4-pin plug.
Specifications: General
Brand
Datalogic / Datasensing
Sensor type
fork label
Specifications: Performance
Range / distance
30.0 mm
Response time
50.0 ms
Switching frequency
10000
Specifications: Interface
Connection
cable_m8
Specifications: Electrical
Supply voltage
10–30 VDC
Specifications: Environment
Operating temperature
-10 to +60
Specifications: Sensing
Sensing method
through beam
Light source
Infrared LED
Specifications: Output
Output type
Push-pull
Specifications: Mechanical
Dimensions
13×50×70 mm
Housing material
Zamak (die-cast zinc)
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.