Syllabus of PLC Mitsubishi Qcpu 2020

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

CÔNG TY TNHH CƠ ĐIỆN TỰ ĐỘNG NHẤT TÍN

ĐC: 68B/2 TỔ 8, KP3, P TÂN HIỆP, TP. BIÊN HÒA, T. ĐỒNG NAI
Website: http://tudonghoadongnai.com hoặc: http://tudonghoadongnai.com.vn
÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷
ĐT: 0945791177

GIÁO TRÌNH
PLC MITSUBISHI QCPU - INVERTER - HMI
(This manual is for internal circulation only)

Biên soạn:
Ths. Lê Xuân Quang

January 25, 2020

1
CONTENTS
CONTENTS .............................................................................................................. 2
Part I. Overview of PLC Mitsubishi and Software Programming ............................ 4
1.1. Hardware structure of PLC set ................................................................... 4
1.2. GX work2 software and installing ............................................................. 8
1.3. Connection with GX Works2 (PC) to PLC ............................................... 9
Part II. Create a lader program, connect I / O PLC to devices ............................... 10
2.1. Download/upload a programe to PLC (practice). .................................... 10
2.2. Create a program with I/O basic. ............................................................. 10
2.3. Check programe in PLC........................................................................... 10
2.5. Connect relays to PLC outputs. ............................................................... 11
2.6. Connect sensors NPN and PNP to PLC input.......................................... 12
Part III. Programming Guide, check and handle the errors in the PLC .................. 13
3.1. SET and RESET instructions ................................................................... 13
3.3. TIMER instruction ................................................................................... 13
3.4. COUNTER instruction and applications ................................................. 15
3.5. COMPARATOR instruction .................................................................... 16
3.6. MOVE instruction and applications......................................................... 17
3.7. Conversion instructions............................................................................ 18
3.8. Call Subroutine ........................................................................................ 19
3.9. Real time programming ........................................................................... 20
3.9. Mathematics instructions ......................................................................... 21
3.10. Master control and master control reset instructions (MC/MCR) ......... 23
3.11. Set password AND Unlock password .................................................... 23
Part IV. INVERTER MITSUBISHI FR-E720-0.75K ............................................ 24
4.1 Wiring inverter .......................................................................................... 24
4.2. Clear all parameter ................................................................................... 25
4.3. Control inverter on keypad ...................................................................... 26
4.4. External operation .................................................................................... 30
4.5. Using PLC to CONTROL Inverter .......................................................... 34

2
Part V. HIGH-SPEED COUNTER PROCESSING ............................................... 35
5.1. Encoder and application ........................................................................... 35
5.2. Instructions to Process counter ................................................................ 35
5.3. Application Encoder and high speed counter .......................................... 37
PART VI. ANALOG............................................................................................... 37
6.1. SPECIAL FUNCTION BLOCK DA: ...................................................... 37
6.2. SPECIAL FUNCTION BLOCK DA: ...................................................... 41
6.3. INC (increase) and DEC (decrease) instructions ..................................... 42
6.4 Do exercises .............................................................................................. 42
PART VII. HUMAN-MACHINE INTERFACES_HMI ........................................ 43
7.1. Overview of GOT (Graphic Operation Terminal) ................................... 43
7.2. Technical details. ..................................................................................... 43
7.3. Connection Diagram. ............................................................................... 43
7.4. Install software and programing. ............................................................. 43
APPENDIX ............................................................................................................. 46

3
Part I. Overview of PLC Mitsubishi and Software Programming
1.1. Hardware structure of PLC set

1.1.1. Hardware structure of a PLC

Principle of PLC: Principle of Programmable Logic Controller:


Programmable Logic Controllers are used for continuously monitoring the input
values from sensors and produces the outputs for the operation of actuators based
on the program. Every PLC system comprises these three modules: CPU module.
Hardware structure QCPU
1.2.1. Base unit: Q33B, Q33B-E, Q35B, Q35B-E, Q38B, Q38B-E, Q312B, Q312B-E, Q35DB,
Q38DB, Q312DB, Q32SB, Q32SB-E, Q33SB, Q33SB-E, Q35SB, Q35SB-E, Q38RB, Q38RB-
E, Q35BL, Q35BL-E, Q38BL, Q38BL-E, Q35BLS, Q35BLS-D, Q38BLS,...
for example Base unit: Q38B

4
1.2.2. Power supply: Q61P-A1, Q61P-A2, Q61P, Q62P, Q63P, Q64PN , Q64P, Q61P-D,
Q61SP, Q64RPN, Q64RP, Q63RP,...
For Example Power Supply: Q61P

Rated input voltage 100 to 240VAC


Variable input voltage range 85 to 264VAC (-15% to +10% of rated input voltage)
Input frequency 50/60Hz+/-5%
Allowable momentary power failure period Within 20msec
Inrush current 20A 8msec or lower
Max input apparent power 130VA or lower
1.2.3. CPU unit: Q00JCPU, Q00CPU, Q01CPU, Q02CPU, Q02HCPU, Q06HCPU, Q12HCPU,
Q25HCPU, Q12PHCPU, Q25PHCPU,...
for example: Q02CPU, Q02HCPU, Q06HCPU, Q12HCPU, Q25HCPU,
Q02PHCPU, Q06PHCPU, Q12PHCPU, Q25PHCPU

5
1) Module fixing hook, 2) MODE LED, 3) RUN LED, 4) ERR. LED, 5) USER LED, 6) BAT.
LED, 7) BOOT LED, 8) Serial number, 9) Memory card EJECT button Used to eject the
memory card from the CPU module, 10)Memory card installing connector, 11) USB connector,
12) RS-232 connector

14) RUN/STOP, 15) RESET/L, 15) RESET/L. CLR Used to turn "Off"
1.2.4. Input Module Specifications: QX10 AC Input Module, QX28 AC Input
Module, QX40 DC Input Module (Positive Common Type), QX40-S1 DC Input
Module (Positive Common Type), QX41 DC Input Module (Positive Common
Type), QX41-S1 DC Input Module (Positive Common Type),...
For example QX40 DC Input Module

6
1.2.5. Output Module Specifications: QY10 Contact Output Module, QY22
TRIAC Output Module, QY40P Transistor Output Module (Sink Type), QY41P
Transistor Output Module (Sink Type), QY68 Transistor Output Module (All
Points Independent, Sink/Source Type),QY80 Transistor Output Module (Source
Type), QY81P Transistor Output Module (Source Type),...

7
For example QY10 Contact Output Module

1.2. GX work2 software and installing


(Practice guide on the computer)

8
1.3. Connection with GX Works2 (PC) to PLC
- Checking driver
Using usb connector

Using RS-232 connector

9
1.5. Parameter setting, assignment and System Configuration.

Part II. Create a lader program, connect I / O PLC to devices


2.1. Download/upload a programe to PLC (practice).
2.2. Create a program with I/O basic.

- Write comments

- Check program / Running simulator / Test - Timing chart display


Shortcuts to fast program: F2 = Write mode; F3 = Monitor mode…
Click view => Toolbar => click mouse to choose tools to appear on screen.
2.3. Check programe in PLC
Chose Tool

10
2.4. Saving a project with another name

2.5. Connect relays to PLC outputs.


Types of output PLC
RELAY OUTPUT: SOURCE OUTPUT:

11
SINK OUTPUT: TRIAC OUTPUT:

2.6. Connect sensors NPN and PNP to PLC input.

Input wiring

12
Part III. Programming Guide, check and handle the errors in the PLC
3.1. SET and RESET instructions
Sample

3.2. Bit device output reverse (FF)

Program Example

3.3. TIMER instruction


OUT T, OUTH T (High-speed timer and Low-speed timer)
Sample

Timing chart:

OUT ST, OUTH ST (High-speed retentive timer and Low-speed retentive timer)

13
Change timer setting:

14
3.4. COUNTER instruction and applications

3.4.1. Normal Counter

3.4.2. Counter Up/Down

EXERCISES
EXERCISE 01 (USING TIMER AND COUNTER)

Comman Input/Output,...
15
Global device comment and local device comment

3.5. COMPARATOR instruction

3.5.1. Counter comparison

Exercise: explain the program below

16
3.5.2. Timer comparison (do exercises)

3.6. MOVE instruction and applications

3.6.1. Change DEC into BIN

DECIMAL (DEC) BINARY (BIN) DECIMAL (DEC) BINARY (BIN)


0 0000 8 1000
1 0001 9 1001
2 0010 10 1010
3 0011 11 1011
4 0100 12 1100
5 0101 13 1101
6 0110 14 1110
7 0111 15 1111

The ways to change DEC <-> BIN


17
3.6.2. Application examples:

Symbol [MOV K5 k1Y0]


K5 is the value which is exchanged from binary number 0101
K1Y0 is the value contains 4 bits starting at Y0; K1Y1 is the value contains 4 bits
starting at Y1;
K1Y3 is the value contains 4 bits starting at Y3; K2Y0 is the value contains 8 bits
starting at Y0; K2Y1 is the value contains 8 bits starting at Y2; K3Y0 is the value
contains 12 bits starting at Y0; Similar K4Y0,1,2,3 is the value contains 16 bits …
Samples for mov bits and mov words

3.7. Conversion instructions

18
Example

3.8. Call Subroutine


Create a main program first => Create subroutines
EXAMPLE

19
3.9. Real time programming

Registers and time memory in PLC mitsubishi Q srier

Using DATED instruction to reads real time in registers, result is stored in D1000
for example:

More example

20
Exercises:
Programming controller alarms working hours automatically for the company upon
request:
8h 30s the bell rings began working time
11:30 the bell rings 15s for break lunch
13h the bell rings 30s for work
16h30 the bell rings 45s for the end of working hours
The program only works from Monday to Friday every week, and do not work on
holidays, 30/4, 01/5, .....
Note! We should use Move instruction to erase the data in registers first…
3.9. Mathematics instructions

3.9.1. ADD instruction

Symbol

21
3.9.2. SUB instruction

Symbol

Application exercises:
Program to cotrol close and open a garage gate

3.9.3. MUL instruction

Symbol

3.9.4. DIV instruction

Symbol

22
3.10. Master control and master control reset instructions (MC/MCR)
The master control instruction is used to enable the creation of highly efficient
ladder switching sequence programs, through the opening and closing of a
common bus for ladders. A ladder using the master control is as follows:

(1) MC (master control instruction) for public contacts connected in series.


After the implementation of MC, left bus behind the MC contacts.
(2) MCR (master control reset instruction) it is MC reset instruction, the MCR
instruction bus left of the restore location.
a set of circuit total switches. And contacts must be connected to the master contact
LD or LDI instruction.
3) MC command input contact is disconnected, the accumulation in the MC and
MCR timer, counter, reset/set command-driven component state before remain
3.11. Set password AND Unlock password
Steps to set password in Q CPU Mitsubishi.
Below is the complete chart to proceed with above steps

23
Part IV. INVERTER MITSUBISHI FR-E720-0.75K
4.1 Wiring inverter

24
4.2. Clear all parameter

25
RESET ALL PARAMETERS
1, SET P0 (starting torque) = 6% default.
2, SET P1= 50 HZ (Maximum Frequency)
3, SET P2 = 0 HZ (Minimum Frequency)
4, SET P3 = 50 HZ (Base Frequency)
5, SET P80 (P79=0) = = 200W = 0.2 KW (0.20). (Motor Capacity (Max))
6, SET P81 = 4 (Motor Pole)
7, SET P83 = 220V (Rated Motor Voltage).
4.3. Control inverter on keypad

4.3.1. Setting the frequency by the operation panel

Operation example Operate at 30Hz.

26
4.3.2. Setting the frequency by switches (Three-speed setting) (Pr. 4 to Pr. 6)

Operation example at low speed (10Hz)

27
28
4.3.3. Setting the frequency by analog input (voltage input)

Operation example Operate at 60Hz.

29
4.4. External operation

4.4.1. Start and stop using terminals

4.4.2. Setting the frequency by switches (three-speed setting) (Pr. 4 to Pr. 6)

30
31
4.4.3. Setting the frequency by analog input (voltage input)

Note: Setting the frequency by the operation panel (Pr.79 = 2)

4.4.4. Set for 8 speeds


Set Pr 79 = 0 To set parameters

32
Set Pr 179 = 8 (STR => STX second fuction)
Set to 3 Groups P4 – P6; P24 – P27; P232 – P239

33
4.5. Using PLC to CONTROL Inverter

4.5.1 Control relays

4.5.2 Control the speeds from analog modules.

Using voltage input (V0: Terminal 5 and 2)


Set Pr 73 = 0 or 10 to choose a voltage range at terminal 2 and 5 is 0 to 10v
Using current input (I): Terminal 5 and 4 (Pr = 10 => To Input 10V)
Set Pr 267 = 0 and switch the switch to I then Set "4" in any of Pr. 178 to Pr. 184

34
Part V. HIGH-SPEED COUNTER PROCESSING
5.1. Encoder and application

5.1.1. The constructing principle of an Encoder

5.1.2. Wiring to PLC

5.2. Instructions to Process counter

5.2.1. Count 1-phase input up or down (UDCNT1)

35
5.2.2. Count 2-phase input up or down (UDCNT2)

36
5.3. Application Encoder and high speed counter

5.3.1. Programing for 1 phase counter

5.3.2. Programing for 2 phase counter

PART VI. ANALOG


6.1. SPECIAL FUNCTION BLOCK DA:
Q62DAN -Q62DA -Q64DAN -Q64DA -Q68DAVN -Q68DAV -Q68DAIN -
Q68DAI
6.1.1. OVERVIEW
Resolution

37
38
6.1.2. External wiring

6.1.3. CONFIGURATION
1) I/O ASSIGNMENT

39
2) SWITCH SETTING

3) PARAMETER
SET ENABLE

4) AUTO_REFRESH

40
6.2. SPECIAL FUNCTION BLOCK DA:
Q64AD -Q68ADV -Q68ADI
6.2.1. OVERVIEW

6.2.2. WIRING

41
6.2.3. CONFIGURATION
6.3. INC (increase) and DEC (decrease) instructions
Acceleration and deceleration using for output analog
Combination positional control and the speed accelerates
Combination positional control, forward reverse and the speed accelerates
Advanced exercises:
6.4 Do exercises

42
PART VII. HUMAN-MACHINE INTERFACES_HMI
7.1. Overview of GOT (Graphic Operation Terminal)

7.2. Technical details.


7.3. Connection Diagram.
7.4. Install software and programing.
7.4.1. Install software
7.4.2. Upload/download
7.4.3. Programming
SAMPLE 01
Screen1

43
Screen2

Screen3

44
Screen4
Make Alarm History

45
APPENDIX
Some devices

Special auxiliary relays

Compile and coach by M.S. Le Xuan Quang, Master of Automation


Tel: 0945791177.
Email: [email protected]

Giáo trình học thực hành PLC CPUQ-Mitsubishi – Inverter – HMI (45g)
“Học một lần được hỗ trợ kỹ thuật suốt cuộc đời”

46

You might also like