Connection between PLC and incremental rotary encoder
Firstly, determine whether the PLC is a source input or a drain input, and then select the type it supports
Number of encoders.
The source type is current outflow, and the drain type is current inflow. Due to the different designs and uses of PLCs by various brand manufacturers, the definitions of source and drain types are relatively different (for example, Mitsubishi's definition is exactly opposite to Siemens' definition). Mitsubishi's source input and drain input are both relative to the PLC common terminal (COM terminal or M terminal), where current flowing out is the source type and current flowing in is the drain type. Siemens' source input and drain input are both relative to PLC input terminals, with current flowing out being the source type and current flowing in being the drain type.
The output OUT terminal of the NPN collector open circuit output circuit is connected to 0V through a switch tube. When the sensor is activated, the switch tube saturates and conducts, and the OUT terminal is connected to 0V, outputting a 0V low-level signal; PNP collector open circuit output
The output OUT terminal of the circuit is connected to+V through a switch tube. When the sensor is activated, the switch tube saturates and conducts, and the OUT terminal is connected to+V, outputting a+V high-level signal.
Source type: Mitsubishi: common terminal connected to negative power supply, input terminal connected to positive power supply, supports PNP sensor;
Siemens: The common terminal is connected to the positive terminal, the input terminal is connected to the negative terminal, and NPN sensors are supported;
Leakage type: Mitsubishi: common terminal connected to positive, input terminal connected to negative, supports NPN sensors; Siemens: common terminal connected to negative, input terminal connected to positive, supports PNP sensors. (Commonly used)
To determine whether the input is a source type or a drain type input, simply short-circuit the PLC input point and the common point. If the input indicator light is on, it is a source type input PLC. The PLC common point needs to be connected to 0V and supports PNP sensors.
Wiring diagram of Mitsubishi source PLC and PNP encoder
Wiring diagram of Mitsubishi leakage type PLC and NPN encoder (commonly used)
Encoder calculation formula (roctic. com)
Encoder calculation formula
1. Calculation formula for linear velocity of transmission (deceleration) motor:
(1) Linear velocity calculation formula
(1-second pulse ÷ encoder resolution=number of turns/second)
(1-second pulse ÷ encoder resolution × transmission wheel circumference × 60 seconds) ÷ 1000 millimeters=transmission line speed (meters/minute)
(2) Pulse equivalent calculation formula
Encoder resolution ÷ drive wheel circumference=drive wheel pulse equivalent 2 Using a screw to calculate the opening and closing width
(1) Encoder resolution ÷ Screw pitch=Screw movement distance pulse equivalen