How to Wire a Photoelectric Sensor to an AC Timer Relay
Learn how to connect a 24V DC photoelectric sensor to an AC timer relay using an interposing relay. Complete wiring guide with diagrams, explanations, and troubleshooting.
Learn how to connect a 24V DC photoelectric sensor to an AC timer relay using an interposing relay. Complete wiring guide with diagrams, explanations, and troubleshooting.

This is a full build-along tutorial that goes beyond the Bob Teaches Tech YouTube video. It covers the hardware, wiring, GX Works2 project setup, and explains each step of an automatic timer loop sequence on a Mitsubishi FX3U PLC. You'll also find 15 real-world uses, 20 common beginner mistakes, a troubleshooting guide, and over 35 frequently asked questions.

Arduino digital I/O explained: pinMode, digitalRead, and digitalWrite with a tested button-and-LED wiring and code example.

Modbus register types explained: coils, discrete inputs, holding and input registers, function codes, and addressing conventions.
Step-by-step guide to connecting a PLC to SCADA over Modbus TCP, including port 502 setup and a troubleshooting table.
PLC data types explained: BOOL, INT, DINT, REAL, arrays, and structures-with a real scaling bug example and vendor comparison.

In PLC programming, the control of time is an essential factor when it comes to timely control in automation. Learn how to represent timers in the Mitsubishi's MELSEC series FX-3u PLC using the GX Developer software.

