You are on page 1of 14

Connection of sensors and relay with PLC

At the Input side; There are three sensors

Photoelectric sensors, proximity capacitive sensors and Inductive proximity sensors

Each sensors have 3 wires (use sensors with 3 wire)

• Brown (+24 vdc)


• Black (DI)
• Blue (Common Ground)

Connect the brown wire to the +24 vdc and blue wire to the common ground.

The black wire is for the digital input (DI) of the plc 12, 13, 14, (any free slot).

Blue (Common Ground)


At the Digital Output side:

Three Digital output slots are connected to three electromagnetic relays

D/O 12, 13, 14 connected to A1 of each solenoid valve

A2 is connected to -24 Vdc

Three Electromagnetic relay are connected to individual Solenoid valve


At the electromagnetic relay side,

+24 vdc - 24 vdc

There are 16 connecting ports, but we are using these 4 terminals

• A1 (Connected to Digital Output side)


• A2 (-24vdc)
• 11 (+24vdc)
• 14 (connected to R side of the solenoid valve)

• Use 12 if you want solenoid to behave as Normally Close


At Solenoid valve

R and L are written inside the solenoid valve

R is connected to port 14 of relay

L is connected to -24 Vdc

Programming the PLC

1. Switch On the MCB and once the PLC is ready, switch on the PC.
2. Open the OPM software make the remote connection with PLC
from the drop-down list in system.

Fig 1: Drop-down list of System.

3. After step 2, a dialog box opens. Double click on the 0 to make


the OFFLINEstatus into ONLINE (Green).
Fig 2: PSR II Remote Operation

4. Steps to build the program


a. Click on the timer in CAEx plus, select TON and place it on the screen.

Fig 3: Timer in CAEx plus

b. Right click on the PT terminal and select “Create Value Field”


from the list.Input (IN) is given from S1 and output (Q) is taken
from D01, S12 IN and output (Q) is taken from D12. Same for
S13, and S14 from D13 and D14 Respectively
c. Preset time (PT) is taken as 0.5s by typing T#0.5s in the value field.
d. Create OLT Field by right clicking on ET to display the count for the timer.

e. Drag and Drop AND Logic


f. Make connection as follows

5. Right click on the CPC185(M) and click on the “Code


Generation” from thedropdown list.

Fig 7: Code Generation.

6. After step 5, a dialog box shows up. There, click the start option.
Fig 8: Code Generation dialog box.

7. After step 6, open OPM and select Workflow, a drop-sown list


appears fromwhich we select “Step 5 - Load parameters into the
automation units.

Fig 9: Loading Parameters.

8. After step 7, a dialog box opens. Upon double clicking on


‘0’another dialog boxopens. There double click on M to load
parameters.

Fig 10: Parameter Loader (First dialog box)

Fig 11: Parameter Loader (Second dialog box)


9. After step 8, another dialog box shows and there click ‘OK’.

Fig 12: Generating parameters (Third dialog box).

10. Now open CAEx plus and right click on the CPC185. Then select
Online Test.Now double click on the “Test_1_bulb” option.

Fig 13: Online test.

11. Switch on the DI S01 on the control panel and correspondingly the
DI S01 signal line turns to RED in CAEx plus after waste is detected
s12,s13 and s14 response after 0.5s and the cylinder pushes the
waste.

12. To stop online test, click on the button as shown below.


13. To disconnect the remote connection, go the dialog box opened
in step 3 and then click on the Hang up button as shown below.

Fig 15: Disconnecting remote connection.

SCADA design

i. Switch On the MCB and let the RY (Ready-LED) turn to stable yellow, and switch
on the PC.
ii. Let the server PC get connected to SCADA.
iii. Click “console” to check the server connection.
Type 1 and press enter. The following dialog box shows up the successful
connection to server

iv. Open the CAE Client software.


v. Right Click on pictures and create new folder and give appropriate name like
Automatic_waste_segegration

vi. Double click on the Basics folder. Then copy StartUp, Toolbar1 and toolbar2 files
and past them to the folder created in previous step (i.e. in Group3 folder).

vii. Double Click on StartUP.


viii. Picture Editor opens up. If it shows up Read only. Need to change to Write mode
from main server. To do so, go to properties, untick read only radio button.
ix. Open the StartUp. Now you can see it is change to Write mode now you can edit to
create SCADA drawing for your application.

You can create drawings like shown above by using lines, circle, text options
provided in ribbon type.
After you finish designing your system in Picture Editor, Go to action scripts. Select
StartUp. Change the directory to your folder you created in step v.

Automatic_waste_segegration

x. Go to Project Management Section. Select the SCADA Clients. Right click on cstA
and select Update all

xi. Open the SCADA Client software.


The design you made in Picture Editor shows up in SCADA Client as shown above.

Steps to operate

1. Switch On the MCB and once the PLC is ready, switch on the PC.

1. Turn ON the power supply for pneumatic compressor.


2. Turn ON the power supply for the power converter.

3. Switch on the switch s 01

4. Turn on the Motor controller for both the Hopper and conveyor belt
5. Dump the waste in the hopper

To stop the process


1. Switch s01 to stop the process
2. Turn off the motor

You might also like