Introduction to Galanz Photoelectric Sensors
Galanz photoelectric sensors are essential components in modern automation and control systems, widely used in appliances, industrial machinery, and safety devices. These sensors operate by emitting a light beam (typically infrared, visible red, or laser) and detecting changes in the received light intensity to sense the presence, absence, or position of an object. Understanding the correct wiring diagram is crucial for ensuring reliable operation, system safety, and optimal performance. This guide provides a detailed, professional overview of standard Galanz photoelectric sensor wiring configurations, tailored for engineers and technicians in the electrical and automation fields.
Key Components and Terminal Identification
Before examining specific wiring diagrams, it is vital to identify the standard terminals found on most Galanz photoelectric sensors. Typically, these sensors feature a compact housing with a cable outlet or a connector block. The common terminal designations include: V+ or Brown wire for the positive DC supply voltage, V- or Blue wire for the DC common or ground, and Output or Black wire (sometimes White or Gray) for the switching signal. Some models may have additional wires for output configuration selection (e.g., NPN vs. PNP) or a diagnostic function. Always refer to the specific model's datasheet, as designations can vary between diffuse, retro-reflective, and through-beam sensor types. The housing is usually marked with symbols or abbreviations adjacent to the terminals.

Standard DC Wiring Configuration
The most common power supply for Galanz industrial photoelectric sensors is DC, typically 12-24V DC. In a basic three-wire DC sensor, connect the Brown wire to the positive terminal of your DC power source. Connect the Blue wire to the negative terminal or ground of the same power source. This completes the power circuit for the sensor's internal electronics. The Black output wire is then connected to your load (e.g., a PLC input, relay coil, or indicator light). The other side of the load must be connected to either the positive supply (for an NPN output sensor, which sinks current) or the negative supply (for a PNP output sensor, which sources current). Incorrectly matching the sensor output type to the control system is a frequent installation error.
NPN vs. PNP Output Wiring
Galanz sensors are available in both NPN (sinking) and PNP (sourcing) output transistor types. This is a critical distinction. For an NPN output sensor, the output terminal acts as a switch to ground. When active, it connects the load to V-. Therefore, the load must be connected between the sensor's output wire and V+. For a PNP output sensor, the output terminal switches the positive voltage. When active, it connects the load to V+. Here, the load must be connected between the output wire and V-. Diagrams clearly show this difference: in an NPN setup, the load is on the high side; in a PNP setup, the load is on the low side. Always verify your controller's input requirements to select the correct sensor type.
Wiring for Different Operating Modes
Galanz photoelectric sensors can be configured for Light-On or Dark-On operation, sometimes via a wiring choice or a selector switch. In Light-On mode (also called "light operate"), the output switches ON when the receiver detects the light beam. This is standard for through-beam sensors in an uninterrupted state. In Dark-On mode ("dark operate"), the output switches ON when the light beam is blocked. This is common for object detection. Some sensors have a separate wire (e.g., White) that, when connected to V+ or V-, selects this mode. The wiring diagram will indicate how to make this connection. For example, connecting the function wire to V- might set Dark-On, while leaving it disconnected sets Light-On.
Connecting to Programmable Logic Controllers (PLCs)
Integrating a Galanz sensor with a PLC is a standard application. First, ensure the sensor's voltage range matches the PLC's supply and input card specifications. For a DC input card, identify if it is designed for Sinking (common positive) or Sourcing (common negative) inputs. A PNP sensor should be wired to a sinking PLC input. Connect the sensor's Brown wire to DC+, Blue to DC-, and Black output wire to the PLC input terminal. The PLC input's common is tied to DC-. Conversely, an NPN sensor should be wired to a sourcing PLC input. Here, the sensor's Black wire goes to the PLC input, and the input common is tied to DC+. Always include a protective fuse in the supply line and consider using shielded cable in electrically noisy environments.
Practical Wiring Diagram Example
Consider a Galanz diffuse sensor, model example GP-12D, with PNP NO (Normally Open) output, operating on 24V DC. The wiring diagram illustrates: DC power supply: 24V+ terminal connected to the Brown wire. 0V terminal connected to the Blue wire. Load: One side of a relay coil (or PLC input) connected to the sensor's Black output wire. The other side of the relay coil connected to the 0V (Blue wire) line. When an object is within the sensing range, the internal PNP transistor activates, connecting the Black wire to 24V+, thus completing the circuit through the relay coil to 0V, energizing the load. A free-wheeling diode should be placed across the inductive load (like a relay coil) for protection, with the cathode toward the positive side.
Safety and Troubleshooting Tips
Always disconnect power before wiring. Use the correct wire gauge for the current; 18-22 AWG is typical for sensor circuits. Secure connections firmly to prevent vibration-induced failures. Ensure the sensor is properly mounted and aligned for reliable detection. Common issues include no output: check power polarity and voltage, verify the sensing object is within range and correctly reflects/breaks the beam, and confirm the load is functional. Intermittent operation can be caused by electrical noise, insufficient supply power, or loose wiring. If the sensor cycles erratically, check for ambient light interference or reflective backgrounds (for diffuse sensors) and adjust sensitivity if available. Regularly inspect cables for damage.
Conclusion and Best Practices
Correctly wiring a Galanz photoelectric sensor is fundamental to system integrity. Always start with the manufacturer's datasheet for the specific model number, as wiring colors and functions can change. Plan your system by first choosing the sensor type (diffuse, retro-reflective, through-beam), then the required output type (NPN/PNP) and operating mode to match your controller. Draw a clear wiring diagram before installation. Use proper connectors and cable management. Testing with a multimeter to verify voltage at the sensor terminals and output switching is a recommended final step. Following these guidelines will ensure your Galanz sensors provide accurate, long-lasting service in any application.