Introduction to PLC S7-200 Programming - Programming of Loading Detection Unit

 Foreword:  

    The whole experiment is carried out around the MES network-based modular flexible automated production line training system. The equipment is shown in the figure below:

    The experimental system is the most typical mechatronics and automation products, and it is suitable for teaching and training of machinery manufacturing and automation and other related majors. It is specially designed for teaching on the basis of being close to the industrial production and manufacturing site, and strengthens various control technologies and engineering practice capabilities. The system consists of 8 units. They are: loading detection unit, handling unit, processing and detection unit, handling and sorting unit, frequency conversion transmission unit, installation unit, installation handling unit and sorting unit. The control system is controlled by Siemens S7-200 and S7-300 PLC, with Better flexibility, that is, each station has a set of PLC control system for independent control, and after the basic unit module training is completed, adjacent two stations, three stations ... up to eight stations can be connected together to learn the control of complex systems, Programming, assembly and debugging techniques. Including pneumatic, motor drive and control, PLC, sensor and other control technologies.


1. Introduction of feeding testing station

   The schematic diagram of the feeding detection station is shown in the following figure:


(1) Hopper: used to store materials.

(2) Rotary table: drive the material to rotate

(3) Material guide mechanism: The material can be rotated on the turntable according to the set direction, and the workpiece can be conveyed.

(4) Workpiece slideway: slide the material onto the material table.

(5) DC gear motor: used to drive the turntable to rotate, and convey the workpiece through the material guide mechanism.

(6) Photoelectric sensor 1: The material arrival detection sensor is a photoelectric diffuse reflection sensor (the position below).

(7) Photoelectric sensor 2: Detects that the material reaches the waiting position (upper position). Different colors have different on-off thresholds.

(8) Magnetic sensor: used for cylinder position detection. When it is detected that the cylinder is in place accurately, it will send an in-position signal to the PLC. (When the magnetic sensor is wired, pay attention to the blue connection "-", the brown connection to the "PLC input terminal"). There are two upper and lower.

(9) Single rod cylinder: controlled by one-way pneumatic electric control valve. When the pneumatic solenoid valve is energized, the cylinder extends, and the material is sent to the linear moving device at the same time. The solenoid valve and the single-rod cylinder act simultaneously.

(10) Warning light: system power-on, running, stop signal indication, there are three colors of red, green and yellow.

(11) Mounting bracket: used to mount the lifting cylinder and various detection sensors.

(12) Control button board: used for basic operation, stand-alone control and online control of the system.

(13) Electrical mesh board: mainly install PLC host module, air switch, switching power supply, I/O interface board, various wiring terminals, etc.

 

    Its PLC I/O wiring diagram is as follows :



Second, stand-alone motion programming

2.1 Action process of stand-alone operation:

1 Initialize PLC operating parameters

 2 Press the "Power On" button, after which the reset light flashes and the green light stays on.

3 Press the "Reset" button, after that, the light starts to flash, the green light is always on, and the cylinder resets to the initial position (down).

4 Press the Start button,

5. Press the "Debug" button, the turntable starts to rotate, no material goes down to the material table within 30 seconds, the yellow light is on to warn, if there is material, the material table rises to the "up" position to wait for the material to be taken away, and the red light does not reach the upper position within 3 seconds. Lights to warn. 6. If the material is taken away, the material table will drop in place, otherwise wait, go to step 5 to cycle operation.

Note: On the control panel, the "Hand/Auto" and "Single/Joint" buttons are set to the "Hand" and "Single" positions,

      Press the "Stop" button to stop the device from running.


2.2 The PLC ladder diagram is as follows:










Guess you like

Origin http://10.200.1.11:23101/article/api/json?id=326867121&siteId=291194637