To control the operation of sensors

Figure 3.3.7 Program code to make use of sensors and actuators
In indutrial applications, it is required to use various sensors to control the operations of systems and proceses using PLCs. Figure 3.3.7 shows a typical program to operate an electric motor and a pnematic cylinder with the help of some sensors such pneumatic proximity switch.
To control a mechatronics system we need to combine various mechanical and electrical input and output devices and to operate them in a sequential manner. Consider a prototype of industrial assembly line with 3 stations as shown in Figure 3.3.4.
At first station ST1, the sensor identifies an object (finished product) on the conveyer belt and sends a signal to the controller. Controller processes this information and actuates the electric motor to run the conveyer belt.
Second Station ST2: It is allotted for the inspection of the finished product or object. At ST2, conveyer belt stops. In case any fault diagnosed by the inspection system, the product will be taken away by the pneumatic actuators placed at Station 3, ST3. Following video link will show the demonstration of above system.