Professional Documents
Culture Documents
Lab 02 - GX Works Ladder
Lab 02 - GX Works Ladder
1
LAB02 ME3013/14 – Programmable Logic Controllers
3. Lab contents
3.1. Duration: 5 class hours / group (2-3 students).
3.2. Basic exercises:
3.2.1. Build a new project:
Open GXW2: Start Programs MELSOFT GX Works 2.
2
LAB02 ME3013/14 – Programmable Logic Controllers
Write a program
Compile Build (or press F4) to convert the written program
3.2.4. Interlocking: one output would literally lock another output in place if the first one was
conducted, and vice versa.
3
LAB02 ME3013/14 – Programmable Logic Controllers
Question: If both inputs (X2 and X3) are active simultaneously, which output (Y0 or Y1) is
energized? Please check and answer.
3.2.1 Blinking light: Please read and compile the following code to learn Timer operation.
3.2.2 Counting workpieces: Please read and compile the following code to learn Counter
operation.
4
LAB02 ME3013/14 – Programmable Logic Controllers
Action(s)
Action(s)
Grafcet flowchart
There are some rules when designing the sequential control:
- Use one control relay (CR) for each step (state) in a control flow.
- When one step is active, only the control relay in this step is energized and other relays are
de-energized.
- The number of steps in the control flow is one-by-one with number of steps in a control
program. Each step in the control flow is described as a rung in ladder (control) program as
shown in Fig. 3.
With supposing that Step i, j and k are the consecutive steps.
A control rung
Fig. 4 shows an example of the sequential control which is described by a Grafcet flowchart
5
LAB02 ME3013/14 – Programmable Logic Controllers
Start
X1
Step 1 Y1
T1=3s
Step 2 Y2
T2=2s
Step 3 Y3
T3=2s
Step 4 Y4
T4=2s
6
LAB02 ME3013/14 – Programmable Logic Controllers
Exercise 01: Based on the above example, please answer the following two questions
- (1A) When output (light) Y2 or Y3 or Y4 turns ON, if button X1 is pressed what happen? If
something is wrong, please solve this problem.
- (1B) From the answer 1A, modify the transition condition between (active) step 2 (M2, line
10) and step 3 (M3, line 19) to “If X4 is pressed three times and Timer T2 turns ON” Step
3 (M3) is active. Please write down your answer.
Exercise 02: Based on Exercise 1A, write the program as the followings:
- In step 2: Output Y2 and Y3 turn ON
- In step 3: Output Y2, Y3, and Y4 turn ON
7
LAB02 ME3013/14 – Programmable Logic Controllers
8
LAB02 ME3013/14 – Programmable Logic Controllers
Answer: