3. After you ensure that the CPU setting is correct, press OK. Then Figure1 will arise again. Do not press OK, make sure that the Network Type settings is as in the Figure 3 and 4 below.
6. Once the ladder is ready, it can be transfer to the plc. But, before that the PLC should connected to the computer in order to communicate between them. This can be made by pressing:
Work online button or choose PLC then Work Online
This window will appear, just answer YES
7. When the PLC and the computer are connected you may transfer the program to the PLC. By pressing the Transfer to PLC button or choose PLC then Transfer then To Plc.
Page 7 Programmable Logic Controller_2 2. Practical 2 Packaging Line Control (Apple Conveyor)
Operation :
When PB1 (START Push Button) is pressed, the box conveyor moves. Upon detection of box present, the box conveyor stops and the Apple conveyor start. Part sensor will count for 10 apples. Apple conveyor stops and box conveyor starts again. Counter will be reset and operation repeats until PB2 (STOP Push Button) is pressed.
Page 9 Programmable Logic Controller_2 DRL - B PUSHER - A 3. Practical 3 CLAMPING AND DRILLING UNIT
This is a drilling section where two actuators involve (two pneumatic cylinders). The first actuator (cylinder A) pushes the part under the drilling operation. The drilling process is done by pneumatic B. After drilling, cylinder A must not return until drill feed unit has reached its start position. The sequence will begin where a start button is pressed. Each cylinder is controlled by a single solenoid valve.
Page 12 Programmable Logic Controller_2 PRACTICAL: 4. Build: a. PLC input and output wiring. b. PLC program (You are required to use SHIFT REGISTER Function) i. Ladder ii. Instruction list table 5. Connect input and output wiring 6. Test the program
Page 13 Programmable Logic Controller_2 4. Practical 4 == Car Park Control ==
This is simple car park control system that allows only a maximum of 100 cars parking space. Every time a car comes in, the PLC will automatically add one through sensor S1. Any car that goes out will automatically be subtracted by one through sensor S2. When 20 cars are registered, the car park full sign will be lighted to inform on coming vehicles not to enter.
Page 15 Programmable Logic Controller_2 5. Practical 5 ANALOG INPUT AND OUTPUT SETTING
The Analog Input Output Modules for OMRON CQM1H
Analog Input Modules CQM1-AD041 The CQM1-AD041 Analog Input Unit retrieves four analog signals from sensors or measuring equipment. This unit is used in combination with a power supply unit.
Analog Output Modules CQM1-DA021 A single Analog Output Unit makes two-point digital-to-analog possible at a speed of 0.5ms/two points. This unit is used in combination with a power supply unit.
The Analog I/O board is an inner board with 4 analog inputs and 2 analog outputs. The signal ranges that can be used for each of the 4 analog inputs are -10V to 10V, 0V to 10V, 0V to 5V, and 0 to 20mA. Each inputs signal range can be set independently. The signal ranges that can be used for each of the two analog output points are -10 to 10V and 0mA to 20mA. Each outputs signal range can be set independently.
Page 25 Programmable Logic Controller_2 6. Practical 6 Air Condition Control The closed loop block diagram for an air condition system controlled by PLC is as follow: SP Temp. sensor + - P V E=SP-PV Feedback signal Air Cond System Air Cond System PLC
In this application, the analogue input signal is used to control discrete output signal. The aircond will be On if the room temperature is more than 24C and turn Off if the temperature drop below 24C.
The measurement range of the temperature sensor RTD Pt100 is 0C to 100C
Page 26 Programmable Logic Controller_2 The temperature transmitter converts the resistance value received from RTD into 0 to 10V analog signal. Using the programming console; configure the analog input channels (IR 232, IR 233, IR 234, IR 235) to receive 0-10Vdc. DM 6611 : 0000-0000-0101-0101
The PLC analog input module converts the analog signal received from the temperature transmitter into digital signal. Refer to analog I/O specification for details. If the transmitter send 10V, what will be the corresponding value stored in the memory?
If the transmitter send 2.5V, what will be the corresponding value stored in the memory?
Page 27 Programmable Logic Controller_2 List the PLC input and output devices Discrete input list Address Tag Description Start Start the system (N/O contact) Stop Stop the system (N/C contact)
Discrete output list Address Tag Description KM1 Air Cond
Analog input list Address Tag Description Room_temp Temperature signal from transmiter
Page 30 Programmable Logic Controller_2 Design the PLC program Ladder
Start & stop the system:
Store the analog signal receives from temperature transmitter connected to channel IR 232 into data memory DM 0000.
Since the raw data received is between to .. Hex, we need to convert this data into engineering unit between 0C to 100C in BCD. Use the instruction BCD(24) to convert Hex value in DM 0000 into BCD value which is stored in DM 1000.
Page 31 Programmable Logic Controller_2 Use the instruction DIV(33) to divide the BCD value stored in DM 1000 with . to get the engineering unit 0C to 100C in BCD. Store the results in DM 1010.
Use the instruction CMP(20) and the related flag (more than : SR 255.05) to control the aircond based on the following conditions. If the temperature is more than 24C; turn On the aircond. If the temperature is less than 24C; turn Off the aircond.
Using calculator, convert BCD format of 24C into Hex format. Hex. Use the instruction MOV(21) to store this value in DM 1011.
Page 32 Programmable Logic Controller_2 Use the instruction BCD(24) to convert setpoint value in Hex (DM 1011) into BCD value which is stored in DM 1012.
If the temperature is more than 24C (setpoint); turn Off the aircond. If the temperature is less than 24C (setpoint); turn On the aircond
Page 34 Programmable Logic Controller_2 Practical procedures v. Get the required equipment ITEM QNTY. PLC 1 PC + programming cable 1 Push button 2 Contactor 1 DC voltage injector 1 Wires as needed
vi. Do the wiring for PLC discrete input & output vii. Do the wiring for analog input viii. Program mode. Clear the memory of the PLC ix. Write the program to the PLC x. Check the program (level 0) xi. Run mode. Run the PLC xii. Test the program by injecting DC voltage (0 to 10V) to the analog input channel to simulate signal received from the transmitter. DO NOT INJECT MORE THAN 10V. THE PLC ANALOG INPUT WILL BE DAMAGED.
Page 35 Programmable Logic Controller_2 7. Practical 7 Flow Control
The sensors are used to detect different level of the reservoir. We want to control the speed of discharge base on the level of the reservoir. If sensor 1 is On (reservoir at high level), the flow control valve will be opened 95%. If sensor 2 is On (reservoir at medium level), the flow control valve will be opened 50%. If sensor 3 is On (reservoir at low level), the flow control valve will be opened 25%.
Sensor 1, sensor 2 and sensor 3 are magnetic level switch (i.e discrete sensors). Flow control valve receives 0 to 10V analog signal from the PLC analog output module to control its percentage of opening (i.e analog output device). If it receives 0V, the it will be fully closed. If it receives 10V, then it will be fully opened. If it receives 5V, then it will be half opened. Product Discharge Flow Control Valve Sensor 1 Sensor 2 Sensor 3 Reservoir V a l v e C o n t r o l l e r
Page 36 Programmable Logic Controller_2 The PLC program written in the CPU use digital signal between 0 to 07FF. The PLC analog output module converts the digital signal into 0 to 10V analog signal. This analog signal will be sent to the valve controller that open and close the valve accordingly. (0V : fully closed / 10V : fully opened)
The diagram shows a conveyor system with a weight detector and 3-phase AC motor. The system is designed to move the conveyor belt at a certain speed when a specific value of weight is on the conveyor. If the weight exceeds the preset value, the conveyor speed increases to move the material off the belt at a faster rate. If the weight falls below the preset value, the conveyor speed is reduced. The system will cut off if the weight less than 2 kg.
LOAD CELL CONTROLLER CONVEYOR SET POINT OUTPUT HOPPER VALVE MOTOR
Page 38 Programmable Logic Controller_2 List the PLC input and output devices Input list Address Label Description Start Start the system Stop Stop the system S1 Reset the system
Output list Address Symbol Description H1 Indicator light Low speed H2 Indicator light High speed H3 Indicator light System off
Data storage Address Symbol Description Set point data : 5 kg(Hex)
Data from weight sensor for comparison purpose (Hex) Data from variable speed drive purpose (Hex) Data weight 1 : 6 kg(Hex) Data weight 2 : 10 kg(Hex) Data-weight 3 : 2 kg(Hex) Data-speed 1 :1000 rpm(Hex) Data-speed 2 : 1500 rpm(Hex)
Page 41 Programmable Logic Controller_2 Compare data between Analog Input and set point. When data less than set point, Indicator light H1 lit ON (Test the range from 2kg to 4kg)
Move the data for Normal speed = 55C Hex to address Analog Output.
Page 43 Programmable Logic Controller_2 2. Practical procedures xiii. Get the required equipment ITEM QNTY. PLC 1 PC + programming cable 1 Push button 3 Indicator light 3 Analog Input and Output Simulator 1 Fused isolator 1 Thermal overload relay 2 Wires as needed
xiv. Do the wiring for power circuit xv. Do the wiring for PLC input & output xvi. Write the program to the PLC xvii. Run mode. Run the PLC xviii. Switch ON supply for control circuit (48Vac) and test the program: Start Stop Thermal overload relay xix. Switch ON supply for power circuit (415Vac) and test the program xx. During the program testing, monitor the bit status (ON/OFF).