Lab 4 (PLC)

Download as pdf or txt
Download as pdf or txt
You are on page 1of 7

Curtin University of Technology

Sarawak Campus, Malaysia

Control System 301

Laboratory 4
Programmable Logic Controller

Name Chin Pin Rui Maung Thiha Tun

ID 7D7B5131 7D7B4921

Perth ID 13882424 14063194

Objectives
To Learn and understand software aspect by using of the PLC To draw a ladder diagram consisting of basic components of the PLC To learn the basic commands and the mnemonic codes for the instructions of the Handheld Programming console.

Equipment List: CX-PROGRAMMER Software Handheld Programming Console

1. Introduction
The automation of many different processes, such as controlling machines or factory assembly lines, is done through the use of small computers called a programmable logic controller (PLCs). This is actually a control device that consists of a programmable microprocessor, and is programmed using a specialized computer language. A modern programmable logic controller is usually programmed in any one of several languages, ranging from ladder logic to Basic or C. Typically, the program is written in a development environment on a computer, and then is downloaded onto the programmable logic controller directly through a cable connection.

2. CX-Programmer and PLC Console Application


2.1 Running Lights (PLC Console)

In this test 1, the operation is periodic and continuous with each cycle lasting 30secconds and it can be initiated and stopped with a single bush button or switch. In each cycle during the operation, each of the three lights will alternately be on and remain so for 10sec only with only one light on at any particular time. The operation will be stopped either when a pushbutton is pressed or the duration exceeds 3 minutes. Mnemonic Program Address 000000 000001 000002 000003 000004 000005 000006 000007 000008 000009 000010 000011 000012 000013 000014 000015 000016 000017 000018 000019 000020 000021 000022 000023 000024 000025 000026 000027 Instruction Operand LD OR OR OR AND NOT TIM LD OR OR AND NOT AND NOT AND NOT OUT LD TIM LD OR AND NOT AND NOT AND NOT OUT LD TIM LD OR AND NOT AND NOT AND NOT 000000 000100 000101 000102 000001 0000 #1800 000000 000100 T0003 000001 T0001 T0000 000100 000100 0001 #0100 T0001 000101 000001 T0002 T0000 000101 000101 0002 #0100 T0002 000102 000001 T0003 T0000

000028 OUT 000029 LD TIM 000030 000031 END(001)

000102 000102 0003 #0100 ---

2.2 Packaging Line Control (CX-PROGRAMMER)

In this test, it was about processing line for packaging apple, when PB1 (START Push Button) is pressed, box conveyor moves.Upon detection of box present, box conveyor will stops and apple conveyor will starts. Parts sensor will count for 10 apples. Then, the operation will repeated where the apple conveyor will stops and the box conveyor will starts again. Counter will be reset and the operation repeats until PB2 (STOP Push Button) is pressed.

2.3 Extra Test


(i) Describe the process using sketches Refer to Attachment for more details (ii) List the IO devices and assign addresses to input and output The sensors had been named as S1, S2 and S3 respectively, therefore, Input S1 S2 S3 Address 0.00 0.01 0.02 Output Warning Light Robotic Arm Conveyor Speed Address 1.00 1.01 1.02

(iii) Develop Truth Tables for one sensor indicating a defective item and also two sensors indicating defective items. D1 indicating the warning light will be light D2 indicating the robotic arm will be moving to pick up the item. S3 0 0 0 0 1 1 1 1 S2 0 0 1 1 0 0 1 1 S1 0 1 0 1 0 1 0 1 D1 0 1 1 1 1 1 1 1 D2 0 0 0 1 0 1 1 1

(iv) Develop a ladder logic diagram

You might also like