Mitsubishi Electric 13JW55 - Manuals
Mitsubishi Electric 13JW55 – Manual in PDF format online.
Manuals:
Manual Mitsubishi Electric 13JW55
Summary
SAFETY PRECAUTION (Always read these instructions before using the products.) When designing the system, always read the relevant manuals and give sufficient consideration to safety. During the exercise, pay full attention to the following points and handle the product correctly. [EXERCISE PRECAUTIO...
(1) CONTENTS CHAPTER 1 BASICS OF PROGRAMMABLE CONTROLLER 1- 1 to 1-14 1.1 Program ··········································································································································· 1- 1 1.2 Program Processing Procedure ········································...
(2) CHAPTER 4 SEQUENCE AND BASIC INSTRUCTIONS -PART 1- 4- 1 to 4-42 4.1 List of Instruction Explained in this Chapter ···················································································· 4- 1 4.2 Differences between OUT and SET / RST ··················································...
(6) INTRODUCTION This textbook explains the programmable controller, the program editing methods with GX Works2, the sequence instructions and the application instructions for understanding the MELSEC-Q series programming. The multiple CPU system is available for the MELSEC-Q series with multiple CP...
1 - 1 CHAPTER 1 BASICS OF PROGRAMMABLE CONTROLLER 1.1 Program If a programmable controller is assumed as a control ladder, it can be described by an input ladder, output ladder, and internal sequential operation. PB 1 LS 1 PB 2 X0 X1 X2 X3 X4 X5 X6 Input relay(virtual coil) COM Input module Input ci...
1 - 2 Internal Sequential Operation The following shows the signal flow of the internal sequential operation of figure 1.1. 1) When the sensor turns on, the coil of the input relay X6 is magnetized. 2) Magnetizing the coil of the input relay X6 conducts the normally open contact X6 and magnetizes th...
1 - 4 1.2 Program Processing Procedure The operation process is executed in series from the start step of the program memory left to right and top to bottom (in the order of 1), 2) ... 17)) in a ladder block unit as shown below. 0 3 7 17 1) X0 2) X1 5) X3 4) X2 6) X4 8) X5 9) X6 11) X7 13) X8 15) X9...
1 - 6 Base Unit Main base unit Extension base unit With three I/O modules With fiveI/O modules With eight I/O modules With 12 I/O modules P o w er s upp ly CP U Q33B Q35B Q38B Q312B Q63B Q68B Q612B Q65B (Requiring a power supply module) (Not requiring a power supply module) Q52B Q55B (For two module...
1 - 7 Power Supply Module Module name Input Output Q61P 100V to 240VAC 5VDC 6A Q62P 100V to 240VAC 5VDC 3A, 24VDC 0.6A Q63P 24VDC 5VDC 6A Q64P(N) 100V to 120V/AC200 to 240VAC 5VDC 8.5A Q61P-D 100V to 240VAC 5VDC 6A CPU Module CPU type Program capacity (maximum) Basic instruction processing speed Max...
1 - 8 Memory Card A QCPU equips a built-in memory as standard for storing parameters and programs, therefore, the programs can be executed without a memory card. The memory cards are required for the situations in the table below. Type Description SRAM card Data can be written or changed within the ...
1 - 12 (2) I/O numbers of a main base unit The I/O numbers of I/O modules which are attached to a main base unit are assigned as follows. This configuration applies to both I/O modules and intelligent function modules. CPU 0 0 to 0 F 10 t o 1F 20 t o 2F 30 t o 3F 40 t o 4F 50 t o 5F 60 t o 6F 70 t o...
1 - 14 1.5 System Configuration and I/O Number of Demonstration Machine Q61P QX 42 (64 points) QY 42P (64 points) Q64 AD(16 points) Q62 DAN (16 points) Power supply module CPU module Input module Output module Base unit Q38DB I/O panel X0 X3F Y40 Y7F USB cable Peripheral device 1 9 4 2 4 1 3 6 MELSE...
2 - 1 CHAPTER 2 OPERATING GX Works2 GX Works2 is a programming tool for designing, debugging, and maintaining programs on Windows ® . GX Works2 has improved functionality and operability, with easier-to-use features compared to existing GX Developer. Main functions of GX Works2 GX Works2 can manage ...
2 - 2 Monitoring/debugging Created sequence programs can be written to the programmable controller CPU and device values at operation can be monitored online/offline. Programs can be monitored and debugged. Diagnostics The current error status and error history of the programmable controller CPU can...
2 - 4 (2) Enhanced use of program assets Projects created with existing GX Developer can be utilized in a Simple project. Utilizing the past assets improves the efficiency of program design. Project created with GX Developer <GX Developer> <GX Works2> Can be used in GX Works2. (3) Sharin...
2 - 7 2.1.1 MELSOFT iQ Works MELSOFT iQ Works integrates the engineering software (GX Works2, MT Developer2, and GT Designer3). Sharing the design information such as the system design and programming in the whole control system improves the efficiency of program design and efficiency of programming...
2 - 8 [Purpose of the engineering environment] Network MES (Manufacturing Execution System) ERP (Enterprise Resource Planning) Integrating development environment which was independent of each device Sharing the design information in whole development phases (system designing, programming, test/star...
2 - 9 2.2 Basic Knowledge Required for Operating GX Works2 2.2.1 Screen configuration in GX Works2 3) Toolbar 9) Status bar 5) View contents display area 7) Edit screen (work window) 2) Menu bar 1) Title bar 8) Output window 4) Tab 6) View selection area
2 - 18 (From the previous page) The ladder block is hidden. 3) The selected ladder blocks are hidden. (b) Canceling the hidden ladder block. 1) Move the cursor! 1) Move the cursor to the hidden ladder block displayed in gray. 2) Click [View] → [Display Ladder Block]. (To the next page)
2 - 19 (From the previous page) The hidden ladder blocks are displayed. 3) The hidden ladder blocks are displayed. POINT Displaying/hiding ladder blocks • Multiple ladder blocks also can be displayed and hidden. • All ladder blocks can be displayed and hidden by the operation of [View] → [Display Al...
2 - 23 2.3.2 Creating a new project 1) Click on the toolbar or select [Project] → [New Project] ( Ctrl + N ). 2) Click the "Project Type" list button. 3) The "Project Type" list is displayed. Select "Simple Project". 1) Click! 2) Select! 3) Click and select! 4) Click! 5) Clic...
2 - 32 2.5 Creating Ladder Program 2.5.1 Creating a ladder program using the function keys Follow the steps below to create the ladder program as shown on the left. 1) Press the F5 key to open the Enter Symbol window. Enter "X2". If any other key is pressed by mistake, press the Esc key and ...
2 - 33 9) The entered symbol ( Y70 ) is displayed. 10) Press the F6 key, and enter "Y70". 11) Press the Enter key to confirm the entry. 12) The entered symbol ( Y70 ) is displayed. 13) Move the cursor to the symbol under Y70 . 14) Press the F5 key, and enter "X3". 15) Press the Enter...
2 - 35 9) The entered symbol ( Y70 ) is displayed. 10) Click on the toolbar, and enter "Y70". 11) Click the OK button. 12) The entered symbol ( Y70 ) is displayed. 13) Move the cursor to the symbol under Y70 . 14) Click on the toolbar, and enter "X3". 15) Click the OK button. 16) The...
2 - 40 2.8 Monitoring Ladder Program Status 1) Suppose that the ladder program (sequence program) has been written into the programmable controller CPU to proceed to the next step. 2) Set the RUN/STOP/RESET switch on the CPU to RESET once (for about one sec.), return it to STOP, then set it to RUN. ...
2 - 43 2.9 Diagnosing Programmable Controller CPU 1) Click! 1) Click [Diagnostics] → [PLC Diagnostics]. 2) The PLC Diagnostics screen is displayed. 1) 2) 3) 4) 5) 7) 6)
2 - 45 2.10 Editing Ladder Program 2.10.1 Modifying a part of the ladder program This section explains how to modify a part of the ladder program shown on the left. (OUT Y71 → OUT Y72) 1) Confirm that "Ovrwrte" is shown at the lower-right portion of the screen. If "Insert" is shown o...
2 - 49 (2) Deleting lines Perform the following steps to delete the line from the ladder shown on the left. 1) Click ( Alt + F9 ) on the toolbar. 2) Drag the mouse from the start position to the end position. 3) The line is deleted when the left button of the mouse is released. The line drawn for th...
2 - 50 2.10.3 Inserting/deleting rows (1) Inserting rows This section explains how to add a row to the ladder program shown on the left. 1) Click on any point of the row to move the cursor. A new row is inserted above the row selected with the cursor. A ladder program to be modified X2 X0 Y70 Y70 X3...
2 - 51 3) Select the [Edit] → [Insert Row] ( Shift + Ins ). 4) A new row is inserted above the selected row. (From the previous page) 4) A new row is inserted! 6) Click! 5) Click , then enter "X7"! 3) Click! (To the next page) 5) Click on the toolbar to open the Enter Symbol window. Enter ...
2 - 52 7) The entered symbol ( X7 ) is displayed. 8) Click on the toolbar, and enter "Y77". 9) Click the OK button. (From the previous page) 7) The symbol is displayed! 8) Click , then enter "Y77"! 9) Click! 10) The symbol is displayed! 10) The entered symbol ( Y77 ) is displayed. 11...
2 - 53 (2) Deleting rows This section explains how to delete the row from the ladder program shown on the left. 1) Click on any point of the row to be deleted to move the cursor. A ladder program to be modified X2 X0 Y70 Y70 X7 Y77 Y72 X3 1) Click to move the cursor! 2) The menu is displayed! (To th...
2 - 54 3) Select the [Edit] → [Delete Row] ( Shift + Del ). (From the previous page) 4) The row is deleted! 3) Click! 4) The selected row is deleted. 5) To convert the edited ladder program, click [Compile] → [Build] ( F4 ).
2 - 56 4) Click on the start point of the ladder program to be copied to move the cursor. 5) Drag the mouse over the ladder to specify the area. The selected area is highlighted. Click the step numbers and drag the mouse vertically to specify the area in ladder block units. 6) Click on the toolbar o...
2 - 57 8) Click on the toolbar or select [Edit] → [Paste] ( Ctrl + V ) to paste the cut or copied area. (From the previous page) 9) Completed! 8) Click! 9) The cut or copied ladder is pasted.
2 - 59 2.12 Saving Ladder Program 2.12.1 Saving newly-created or overwritten projects 1) Click on the toolbar or select [Project] → [Save] ( Ctrl + S ). Saving the existing project is completed at this step. 2) Specify the location to store the project. 3) Set a workspace name. 4) Set a project name...
3 - 1 CHAPTER 3 DEVICE AND PARAMETER OF PROGRAMMABLE CONTROLLER 3.1 Device A device is an imaginary element for programming in the programmable controller CPU, as well as the components (such as contacts and coils) that compose a program. X6 Y74 T2 Y74 Y Device No.Device symbol 74 Type Description R...
3 - 5 • When GX Works2 starts, it employs the preset values as the parameters. These values are called the default (initial values). • The programmable controller can run with those values unchanged, however, modify them within a specified range as necessary. Operation example: Changing the operatio...
4 - 1 CHAPTER 4 SEQUENCE AND BASIC INSTRUCTIONS -PART 1- 4.1 List of Instruction Explained in this Chapter This chapter explains the sequence instructions and basic instructions as shown below. Instruction symbol (Name) Function Drawing (devices to be used) Instruction symbol (Name) Function Drawing...
4 - 8 Operating Procedure (1) Creating a new project (a) Click on the toolbar. Click (b) The New Project dialog box is displayed. Set "Project Type" to "Simple Project", "PLC Series" to "QCPU (Q mode)", and "PLC Type" to "Q06UDH". Then click the OK but...
4 - 9 (2) Creating a program [Using the keyboard] F5 X 0 F5 C 0 F7 M 0 F4 Conversion Shift + [Using the tool buttons] (a) Click on the toolbar to open the Enter Symbol window. (b) Enter "X0" with the keyboard and click the OK button. (c) Click on the toolbar to open the Enter Symbol window. ...
4 - 10 (3) Writing the project to the programmable controller (a) Write the created ladder to the memory on the programmable controller. Click on the toolbar. The Online Data Operation dialog box is displayed. Click (b) Click the Parameter + Program button. Checkboxes for the target program and the ...
4 - 11 (d) If parameters have been already written, the confirmation dialog box for overwriting the parameters is displayed. Click the Yes button. Click (e) The Write to PLC dialog box is displayed. (f) If a program has already been written, the confirmation dialog box for overwriting the program is...
4 - 12 (g) Writing the program to the programmable controller is finished.
4 - 13 (4) Monitoring the ladder Monitor the ladder. (a) Click on the toolbar. Click (b) The ladder (write) screen is used to monitor the ladder. Operation Practice 1) Turning on the push button switch (X0) turns on Y70 and starts T0 at the same time. 2) When the timer T0 counts three seconds (time-...
4 - 14 4.5 PLS Pulse (turns on the specified device for one scan at rising edge of an input condition.) PLF Pulf (turns on the specified device for one scan at falling edge of an input condition.) Project name QB-5 Program name MAIN 0 3 X0 X1 PLS M5 PLF M0 1 2 1 • The PLS instruction turns on the sp...
4 - 15 Application • The instructions can be used in the standby program that waits for the operation condition. Execution command X0 M0 M5 Execution condition PLS M0 SET M5 Y70 K50 TO TO RST M5 [Timing chart] M5 M0 Y70 (operation) X0 (trigger) Execution condition 5sec. Time to wait for condition me...
4 - 16 • The instructions can be used for a program that detects passage of moving objects. After the passage of a product is detected, the next process for the product is started. X0 M0 Y70 PLF M0 SET Y70 Sensor (Detection of input from X0) Conveyor Sensor Product [Timing chart] X0 M0 Y70 Other Use...
4 - 17 Other Useful Ways of PLS and PLF Part 2 • The program for the repeated operation such as switching on/off status alternately by pressing the push button switch can be made with the instructions. If the PLS instruction is used in the above program, the rising edge caused when the push button s...
4 - 19 Operating Procedure The following procedures are the same as the Operating Procedure in section 4.4. (1) Creating a new project (2) Creating a program (3) Writing the project to the programmable controller (4) Monitoring the ladder Operation Practice • Turning on X2 turns on Y70, and turning ...
4 - 26 Operation Practice Verify the operation of the ladder, which was created with GX Works2 and written to the CPU of the demonstration machine, by monitoring the ladder on the screen. X3 X5 X4 0 3 5 6 9 P10 Y70 FEND Y72 END P10 CJ (1) When X3 is off (a) The operation is executed from 0 to FEND. ...
4 - 30 Operation Practice (1) When X0 and X1 are off, the CJ and SCJ instructions are not executed. Therefore, Y70 is on. (2) When X0 is turned on, the CJ instruction is executed and the program jumps to P10. Therefore, Y70 remains on. [Before CJ and SCJ execution] X0 X1 X0 X1 X3 Y71 Y70 SCJ P10 CJ ...
4 - 35 Project name QTEST1 Program name MAIN 4.8 Exercise 4.8.1 Exercise 1 LD to NOP When X0 turns on, Y70 is self-maintained, and Y74 and Y77 flicker alternately every 0.5sec. When X1 turns on, Y70 turns off and flickering of Y74 and Y77 also stops. [Timing chart] X0 Y70 TO Y74 T1 Y77 X1 0.5sec. 0....
4 - 37 Hint (1) The following shows the timing chart of the program. X0 M0 X1 Contact T0 Contact T1 Y70 Contact C0 1sec. 1sec. 1sec. 1sec One scan 5sec. Restart Counter of C0 1. 2. 10. 1. 2.0. (2) The following shows the basic flickering ladder and its timing chart. [Ladder] [Timing chart] T1 T0 T0 ...
4 - 40 Hint 1) 2) 3) 4) 5) 6) X7 ON? Y N Y70,Y71 0.5-sec. flickering Y N X0 ON? <CJ P0> Y72,Y73 1-sec. flickering X0 ON? Y N P10 Y70Y73 Reset Subroutine program <FEND> <FEND> END START Y72,Y73 Reset P0 Y70,Y71 Reset
4 - 41 Answers for the exercises in Chapter 4 Exercise No. Answer 1) Y70 2) X1 3) T1 4) T0 1 5) Y74 1) SET M0 2) C0 3) Y70 4) SET M1 5) RST C0 6) RST M0 7) RST C0 2 8) RST M1 1) PLS 3 2) PLF 1) P0 2) CALL 3) FEND 4) CALL 5) FEND 4 6) RET
5 - 1 CHAPTER 5 BASIC INSTRUCTION -PART 2- 5.1 Notation of Values (Data) The programmable controller CPU converts all input signals into ON or OFF signals (logical 1 or 0, respectively) to store and process them. Therefore, the programmable controller executes the numeric operation using the numeric...
5 - 2 Binary (BIN) The binary number system consists of two symbols: 0 and 1 which represent the order and size (amount). After a digit reaches 1, an increment is reset to 0 and the next digit (to the left) is incremented. The two digits 0 and 1 are called bits. Binary Decimal 0 0 1 1 10 2 11 3 100 ...
5 - 3 Hexadecimal The hexadecimal number system consists of 16 symbols: 0 to 9 and A to F which represent the order and size (amount). After a digit reaches F, an increment is reset to 0 and the next digit (to the left) is incremented. Decimal Hexadecimal Binary 0 0 0 1 1 1 2 2 10 3 3 11 4 4 100 5 5...
5 - 5 In the example below, a decimal number 157 is converted into the binary number. 1) 157128 2916 13 8 54 11 0 1 0 0 1 1 1 0 1 128 64 32 2 Bit weights 16 8 4 1 2) 157 1 0 0 1 1 1 0 1 128 64 32 2 16 8 4 1 78 39 19 9 4 2 1 1 Quotient 2 Remainder 2 2 2 2 2 2 0 1 1 1 0 0 In the example below, a decim...
5 - 9 5.2 Transfer Instruction Project name QB-11 Program name MAIN 5.2.1 MOV (P) 16-bit data transfer X7 T0 T0 1 T0 K50 C10 K1500 X1 C10 RST 13 X2 D0 T0 18 MOV X3 D1 C10 21 MOVP X4 D2 K157 24 MOVP X5 D3 H4A9D 27 MOVP 2 3 0 D S 1 ● When the input condition turns on, the current value of the timer T0...
5 - 10 3 ● When the input condition turns on, the hexadecimal number 4A9D is transferred to the data register D3. 0 1 0 0 1 0 1 0 1 0 0 1 1 1 0 1 D3 1 H4A9D 2 4 8 16 32 64 128 256 512 10 24 20 48 81 92 16 3 84 40 96 32 7 68 (4) (A) (9) (D) Hexadecimal numbers Binary numbersBit weights Difference bet...
5 - 11 Check Monitor the contents of the data registers D0 to D3. • After writing the data to the programmable controller, click [Online] → [Monitor] → [Device/Buffer Memory Batch]. The Device/Buffer Memory Batch Monitor dialog box is displayed. • Enter "D0" in the Device Name column of the ...
5 - 13 • Click the Display Format button. • Change the display of the numerical value in the monitor to the hexadecimal notation. • Select "HEX" for the device batch monitoring. [Device/Buffer Memory Batch Monitor screen] • Change the display of the numerical value in the monitor to the bina...
5 - 15 Operation Practice Check that "200" is displayed under both D0 and D1 on the monitor screen when X0 on the control panel of the demonstration machine is turned on. X0 X1 0 5 10 END D0 K200 D1 D0 D0 RST D1 RST MOV MOV 200 200 200 When X0 turns on, the current values of D0 and D1 become...
5 - 16 Project name QB-12 Program name MAIN 5.2.2 BIN (P) BCD → BIN data conversion instruction Operations to read and write data after step 35 S D X7 T0 T0 T0 K50 C10 K1500 X0 D5 K4X20 30 BINP X0 D6 K4X20 34 MOV 0 Check the difference from the BIN instruction. • When the input condition is turned o...
5 - 17 K4X20 Word devices D (data register), T (timer current value), and C (counter current value) consist of 16 bits (1 word), and data is basically transferred among the units of one device. Collecting 16 bit devices (such as X, Y, and M) means processing the word device. The device numbers alloc...
5 - 18 Project name QB-13 Program name MAIN 5.2.3 BCD (P) BIN → BCD data conversion instruction D S X7 T0 T0 T0 K50 C10 K1500 X6 K2Y40 T0 37 BCD K4Y50 C10 BCD 0 When the input condition is turned on, the data in the device specified in S is recognized as a binary (BIN code), converted into a binary ...
5 - 19 Displayable Range with BCD Instruction The displayable range of data with the BCD instruction (to be converted from BIN into BCD) is between 0 and 9999. Any data which is outside the range causes an error. (Error code 4100: OPERATION ERROR) To display a timer current value more than 9,999, us...
5 - 20 Project name QEX8 Program name MAIN Ladder example Create the following ladder with GX Works2 and write it to the CPU of the demonstration machine. Then check that the BCD instruction works properly. C0 K2Y40 X0 X1 0 8 RST C0 BCD C0 K10 Operating Procedure The following procedures are the sam...
5 - 25 Reference If D is a bit device, the operation becomes as follows; FMOV instruction Input condition D S K4 K2Y40 D0 FMOV n 0 0 0 0 0 0 0 1 0 1 1 0 1 1 0 1 S D0 (Example: when the content is 365) As specifies a two-digit number, these data are ignored. D 0 1 1 0 1 1 0 1 Y48 Y4F D 0 1 1 0 1 1 0 ...
5 - 27 Project name QB-15 Program name MAIN 5.3 Comparison Operation Instruction Size comparison C10 K4Y40 C10 BCD Y70 S1 S2 X3 SM413 (2-sec. clock) X4 K100 0 C10 K10 > Y71 S1 S2 C10 K10 < = Y72 C10 K20 = Y73 C10 K30 < > Y74 C10 K20 > C10 K40 < C10 K25 < = Y75 C10 K10 < = Y76...
5 - 28 Operation Practice Write the program to the CPU. Turn on X3 and X4. C10 starts to count. (one count every two sec.) The current counter value is displayed on the digital display (Y40 to Y4F). Make sure that the devices Y70 to Y76 turn on as follows. Y70 Y71 Y72 Y73 Y74 Y75 Y76 Outp ut 0 1 2 3...
5 - 29 Project name QEX10 Program name MAIN Ladder example Read the following ladder and write it to the CPU of the demonstration machine. Then check that the > and < instructions work properly. 0sec. ≤ T0 < 3sec. → Y70: ON, 2.7sec. < T0 < 3.3sec. → Y71: ON, 3sec. < T0 ≤ 6sec. → Y7...
5 - 30 ● The Open dialog box is displayed. Specify the save destination. ● Double-click the displayed workspace "SCHOOL". Double-click ● Click "QEX10" and click the Open button. Click Click The following procedures are the same as the Operating Procedure in section 4.4. (2) Writing t...
5 - 31 Operation Practice Turn on X0 and check that the program works properly. X0 T0 0 29 Y71 Y72 END M0 M10 X1 2 8 10 31 T0 K30 T0 K27 T0 K30 T0 K33 30 30 30 30 M0 RST K2Y40 T0 BCD M0 SET Y70 M10 T0 30 30 K60 SM400 14 21 25 Related Exercise ---- Exercise 8
5 - 35 Operation Practice (1) When X0 is turned on, the data in X30 to 3F and X20 to 2F are added, and the result is output to Y40 to Y53. (2) When X1 is turned on, the data in X30 to 3F is subtracted from the data in X20 to 2F, and the result is output to Y40 to Y53. When the result is a negative v...
5 - 36 Project name QB-18 Program name MAIN 5.4.2 * (P) BIN 16-bit data multiplication / (P) BIN 16-bit data division X0 0 D0 K2000 MOVP X2 3 1 S2 X3 7 D20 K600 D0 /P D S1 2 S2 D10 D0 K30 *P D S1 1 ● When the input condition is turned on, the content of the device specified in S1 is multiplied by th...
5 - 40 Operation Practice (1) When X0 is turned on, the data in X20 to X2F is multiplied by the data in X30 to 3F, and the result is output to Y40 to 5F. (2) When X1 is turned on, the data in X30 to X3F is divided by the data in X20 to 2F. The quotient is output to Y50 to 5F, and the remainder is ou...
5 - 42 Whether the data is processed in 2-word (32-bit) basis or not depends on the size of the data. In the following cases, 2-word instructions must be used. 1) When the data size exceeds the range (-32768 to 32767) in which data can be processed as 1-word D0 K50000 DMOV D S D1 D0 50,000 50000 Tra...
5 - 43 Project name QB-19 Program name MAIN 5.4.4 Calculation examples for multiplication and division including decimal points (when the multiplication or division is used) Example 1 Calculation example to determine a circumference Digitalswitch value × 3.14 → Integral part and Decimal part • Progr...
5 - 45 Application Example • Write the data to the data register with number which is specified with the digital switch. Project name Index register Program name MAIN T2 T2 K3000 X0 Z0 K2X20 5 BINP D0Z0 T2 MOVP 0 • Check the operation of the ladder executing the device batch monitoring. The operatio...
5 - 46 5.5.2 How to use file register R The file register (R) consists of 16 bits as well as the data register (D). Set the file register in the standard RAM of the QCPU or a memory card (SRAM card and Flash card). The file register to be stored in the Flash card can be read from the program only. T...
5 - 49 5.6 External Setting of Timer/Counter Set Value and External Display of Current Value The timer and counter can be specified by K (decimal constant) directly or by D (data register) indirectly. In the program shown below, the external digital switch can change the set value. Project name QTC ...
5 - 51 Project name QTEST5 Program name MAIN 5.7 Exercise 5.7.1 Exercise 1 MOV Transfer the eight input statuses (X0 to X7) to D0 once then output them to Y70 to Y77. (For example, Y70 turns on when X0 turns on.) X0 Y70 X1 Y71 X2 Y72 X3 Y73 X4 Y74 X5 Y75 X6 Y76 X7 Y77 Create the following program wi...
5 - 52 Project name QTEST6 Program name MAIN 5.7.2 Exercise 2 BIN and BCD conversion Output the number of times that X1 is turned on on the display connected to Y40 to Y4F in BCD. As a precondition, the set value of the counter (C0) can be input with the digital switch (X20 to X2F) and the setting w...
5 - 53 Project name QTEST7 Program name MAIN 5.7.3 Exercise 3 FMOV Create a program in which turning on X0 turns on the 64 outputs Y40 to Y7F and turning off X0 turns off the 64 outputs Y40 to Y7F. Create the following program with GX Works2 filling in the blanks . Then, check the operation using th...
5 - 54 Project name QTEST8 Program name MAIN 5.7.4 Exercise 4 Comparison instruction Using the two BCD digital switches, execute the calculation of (A - B) and display the result on the BCD digital display (Y40 to Y4F). (X20 to X2F) B (X30 to X3F) A (Y40 to Y4F) Displays the result of the calculatio...
5 - 56 Project name QTEST10 Program name MAIN 5.7.6 Exercise 6 Multiplication and division instructions Create a program that: 1) Sets data for multiplication and division when X0 is turned on. 2) Multiplies the value specified by the digital switches X20 to X27 by the value specified by the digital...
5 - 58 Answers for the exercises in Chapter 5 Exercise No. Answer 1) K2X0 1 2) K2Y70 1) D0 2) K4X20 3) BCD 2 4) K4Y40 1) K2Y40 2) K8 3 3) K0 1) BINP 2) BINP 3) > 4 4) <= 1) D + P 5 2) D - P 1) BINP 2) BINP 3) *P 4) /P 5) BCD 6 6) BCD 1) DMOVP 2) D*P 3) DBINP 4) DMOVP 5) D/P 6) D14 7 7) D16
6 - 1 CHAPTER 6 HOW TO USE OTHER FUNCTIONS 6.1 Test Function at Online As a preparation, follow the procedure below. Project name QEX14 Program name MAIN For details on the operation method, refer to chapter 2. 0 X6 Y70 X1 Y70 4 M10 TO X4 K1500 BCD TO K4Y50 0 13 T1 Y74 X6 Y74 17 X6 Y74 T1 23 END K30...
6 - 17 (1) Flowchart of when creating comments Set the device range on which comments are attached.* Double-click the comment file on the workspace. Create comments. Save the project. Read and confirm the ladder with comments When attaching comments to other devices *: This procedure is necessary fo...
6 - 23 6.8 Setting Security for Projects This section explains how to set security for projects to protect the projects and the data in the projects. Setting security restricts accesses to projects. Also, setting security prevents data such as POUs, device comments, and parameters, which are created...
6 - 32 (1) Setting the sampling trace 1) Click! 1) Click [Debug] → [Sampling Trace] → [Open Sampling Trace]. 2) The Sampling Trace screen is displayed. 3) Click! 3) Click [Debug] → [Sampling Trace] → [Trace Setting]. (To the next page)
7 - 1 CHAPTER 7 PROGRAMMING INTELLIGENT FUNCTION MODULE 7.1 Intelligent Function Module (1) Intelligent function module type On programmable controller CPUs (hereinafter referred to as QCPUs), some functions are not supported or are limited in use. Intelligent function modules support those function...
7 - 4 7.2.2 Data communication with intelligent function modules Data is transmitted or received in 16-bit or 32-bit units. Intelligent function modules have a buffer memory to store those data. QCPU Buffer memory Reading data Writing data Data Intelligent function module 0 1 2 10 Buffer memory addr...
7 - 7 7.5 Q64AD Analog/Digital Converter Module 7.5.1 Names of parts The following explains the parts of Q64AD. For details, refer to the User's Manual. Q64AD Q64AD RUN ERROR I+ V- V+ SLD (FG) A/D0-±10V0-20mA CH 1 CH 2 I+ V- V+ SLD I+ V- V+ SLD CH 3 CH 4 I+ V- V+ SLD A.G. 1 2 3 4 5 67 8 9 10 11 12 1...
7 - 13 (From the previous page) 6) Double-click! 6) Double-click Switch Setting. 7) Set! 8) Click! 7) The Switch Setting screen is displayed. Set Input range for CH1 to "0 to 10V". 8) Click the OK button. 9) Double-click! 9) Double-click Parameter. 10) Set! 10) The Parameter screen is displa...
7 - 17 7.6 Q62DAN Digital/Analog Converter Module 7.6.1 Names of parts The following explains the parts of Q62DAN. For details, refer to the User's Manual. 1) 2) 3) Q62DAN No. Name and appearance Description 1) RUN LED Indicates the operation status of the D/A converter module. ON : In normal operat...
7 - 18 7.6.2 D/A conversion characteristics (1) D/A conversion characteristics on voltage outputs (For analog output range from -10 to 10V in a standard resolution mode) A n a log ou tp u t v o lt a g e 5.0025V Digital input 0 0 Digital input value 10V 4000 -10V - 4000 5.0000V 2000 2001 2002 2003 20...
8 - 1 CHAPTER 8 SIMULATION FUNCTION 8.1 Simulation Function The simulation function is for debugging a sequence program using the virtual programmable controller on a personal computer. The created sequence program can be immediately debugged without connecting a programmable controller CPU. NOTE Sa...
8 - 2 8.3 Debugging with Example Program Use the following example for exercise. <<Example program>> Y70 X0 Y70 0 K4Y80 C0 MOV 14 X1 M0 SM412 SM400 4 6 11 C0 K9999 Y71 END
9 - 1 CHAPTER 9 MAINTENANCE 9.1 Typical Trouble The following bar graph shows the ratio of faulty parts and causes of programmable controller errors. [Source: Inspection made by JEMA (The Japan Electrical Manufacture's Association)] Figure 9.1 Faulty parts on programmable controllers (multiple answe...
9 - 2 9.2 Maintenance To keep programmable controllers in the best operating condition, conduct the following daily inspection and periodic inspection. (1) Daily inspection The following table lists the items that must be inspected daily. Table 9.1 Daily inspection Item Inspection item Inspection co...
9 - 3 (2) Periodic inspection The following table lists the items that must be inspected one or two times every half year to a year. When the equipment has been relocated or modified, or wiring layout has been changed, perform this inspection. Table 9.2 Periodic inspection Item Inspection item Inspe...
9 - 7 9.6 Using Support Equipment The following shows examples of support equipment in which programmable controller-used systems or devices automatically notify a detected failure or operation status to an operator or maintenance personnel during an automatic control operation. 1. Displaying an err...
9 - 8 3. Displaying the contents of the detected error on the screen The errors details of the programmable controller can be displayed on an external CRT screen, plasma screen, and liquid crystal screen. Screen display Starting first step in progress Arm Conveyor Error occurred! 00070 MELSEC-Q supp...
App. - 1 APPENDIX Appendix 1 I/O Control Mode The CPU supports two types of I/O control modes; the direct mode and refresh mode. Appendix 1.1 Direct mode In the direct mode, input signals are imported to a programmable controller every time they are input and treated as input information. The operat...
App. - 8 Appendix 4.2 One shot ladder (1) Output starts and continues for a certain time after the input X1 is turned on. (Time for the input being on must be longer than the set time limit.) T15 X1 0 T15 K70 Y75 X1Normally closed contact T15 Y75 Set time limit 7sec. (2) When the input X0 is turned ...
App. - 10 Appendix 4.4 Off delay timer MELSEC-Q does not provide off delay timers. Configure an off delay timer as follows. (1) The timer T6 starts operating when X5 is turned off. T6 Y70 0 T6 K8 Y70 X5 6 Y70 X5 Coil T6 Normally closed contact T6 Set time limit 0.8sec. X5 Y70 (2) Turning on X5 momen...
App. - 12 Appendix 4.6 ON-OFF repeat ladder In an ON-OFF repeat ladder, Y70 turns on when X1 is turned on, and turns off when X1 is turned on again. X1 0 Y70 FF Appendix 4.7 Preventing chattering input The timer is set so that it starts output when the input keeps being on for 0.2sec. X0 0 T1 5 T1 M...
App. - 14 Appendix 4.9 Time control program The time value is set in the two digits of a digital switch. The currently elapsed time is displayed on Y40 to Y47 while the outputs Y70 to Y72 turn on after the set time limit has elapsed. This operation is repeated. Push button for reading time X3 Switch...
App. - 37 Project name QA-7 Program name MAIN C5 SM410 C6 X0 Y070 M2 M3 SM400 (always ON) C5 C6 X7 K4Y40 D0Z0 BCD D33 C6 MOV C6 C5 -P C5 RST RST RST 0 5 16 43 46 57 79 Digital switch Writes 32760 to D35 and counts products manufactured when X20 to 2F are 0 D35 K32760 MOV K4X20 K0 = X2 K4X20 K0 <&...
App. - 39 Operation pattern from manual to automatic operation Teaching panel Coating bath X00 = Manual right moving buttonX01 = Manual left moving buttonX02 = Manual cleaning buttonX03 = Recording data buttonX05 = Reading data buttonX06 = Automatic operation buttonX07 = Operation stop buttonY73 = A...
App. - 44 Project name QA-14 Program name MAIN Appendix 4.26 Example of operation program calculating square root of data The data stored in D5 is calculated to its square root and the result is stored in D6 and D7. X0 0 D6 D5 BSQR K4Y50 D7 MOVP Sets data D5 K4X20 MOVP K4Y60 D6 MOVP Square root oper...
App. - 50 1 1 1 1 1 0 0 0 0 0 0 1 1 1 1 1 1 1 0 0 1 0 0 1 0 0 0 0 0 0 1 1 0 0 0 0 0 0 0 1 1 1 1 1 0 0 0 0 0 0 0 0 0 1 0 1 0 0 0 0 0 1 0 1 F 16 F 1 F 48 F 33 F 32 F 17 F 64 F 49 F 50 16 16 7 23 D10 D10 D0 Transferred by the MOVP instruction Added by a +P instruction Number of ON inputs among X20 to 5...
App. - 51 Appendix 5 Memory and File to be Handled by CPU Module Data to be stored in memories The following table lists the data and drive numbers which can be stored in the program memory, standard RAM, standard ROM, and memory card. CPU module built-in memory Memory card (RAM) Memory card (ROM) P...
App. - 52 Memory capacities and necessity of formatting The following tables list the memory capacities and necessity of formatting of each memory. Q04UD(E)H CPU Q06UD(E)H CPU Q010UD(E)H CPU Q13UD(E)H CPU Q20UD(E)H CPU Q26UD(E)H CPU Formatting Program memory 40K steps (160K byte) 60K steps (240K byt...
App. - 54 (2) Unsupported features The following table lists the features that are not supported in GX Works2. Use GX Developer, GX Simulator, or GX Configurator for the following features. Unsupported feature Alternate S/W Online function TEL function Monitor condition/Monitor stop condition settin...
App. - 58 (d) Using function blocks Before using function blocks in GX Works2, review the following precautions. Function Description Use function blocks created with ladder Function blocks created with ladder can be used for ladder program, ST program, and SFC program operation outputs. * When usin...
App. - 61 (13) Compatibility with GX IEC Developer For the compatibility between GX IEC Developer and GX Works2, review the following precautions. Function Description Open projects in other formats Function names of ST language are different between GX IEC Developer and GX Works2. Compile the progr...
App. - 65 (c) Device for which indexing can be used Indexing can be used only for the devices shown below. • ZR: Serial number access format file register • D: Extended data register • W: Extended link register (d) Usable range of index registers The following table shows the usable range of index r...
App. - 66 (2) When specifying the 32-bit indexing using "ZZ" specification (a) One index register can specify 32-bit indexing using "ZZ" specification such as "ZR0ZZ4". The following shows the 32-bit indexing with "ZZ" specification. M0 MOVP K100 DMOVP K100000 Z4 ZR0Z...
App. - 67 (e) The following shows an example of the 32-bit indexing with "ZZ" specification and the actual processing device. (When Z0 (32-bit) is 100000 and Z2 (16-bit) is -20) Ladder example Actual process device X0 DMOV K100000 Z0 MOV ZR1000Z0 D30Z2 MOV K-20 Z2 X1 MO V Descr iption ZR1010...
App. - 68 Appendix 9 FB Appendix 9.1 FB FB is an abbreviation for a Function Block that is designed to convert a ladder block, which is used repeatedly in a sequence program, into a component (FB) to be utilized in a sequence program. This not only increases the efficiency of program development but...
App. - 70 (3) Reusing Converting a standard program into a component allows the program to be reused any number of times. As a result, operations such as copying a sequence program and modifying a device, which have often been required in the past, will be unnecessary. Converted into a component FB ...
App. - 72 <Example of partner product> FBs for partner products Vision sensor FB FB FB RFID CC-Link Ethernet Laser displacement sensor Vision sensor RFID Laser displacement sensor Partner product family (1) FB library lineup FB libraries include "FBs for MELSEC-Q/L modules" and "FB...
App. - 74 Appendix 9.2 Creating a program by using an FB library This section explains the procedure to create a program by using an FB library. Appendx 9.2.1 Programs to be created This section explains how to use an FB library with an example of importing an analog value from an analog input modul...
App. - 77 Appendix 9.2.4 Pasting FBs Drag and drop FBs to be pasted to the program window from the Project view or Selection window. (Drag and drop from the Project view is possible from GX Works2 1.24A or later.) Operating Procedure 1) Paste "M+Q64AD_ReadADVal" to the program window. From t...
App. - 78 Appendix 9.2.5 Setting names of the pasted FBs When an FB library is pasted to the program window, a dialog to input a name of the pasted FB (FB instance name) is displayed. Instance name is a name to distinguish the FB. A temporary name is automatically set to the instance name. To use th...
Mitsubishi Electric Manuals
-
Mitsubishi Electric WD-73835
Manual
- Mitsubishi Electric SW2D5C-GTWK2-E Manual
-
Mitsubishi Electric WD-57734
Manual
-
Mitsubishi Electric E-20TP
Manual
-
Mitsubishi Electric A1SJ71E71N-B2
Manual
-
Mitsubishi Electric CK-35308
Manual
-
Mitsubishi Electric WS-65411
Manual
-
Mitsubishi Electric HS-S8300E(BRS)
Manual
-
Mitsubishi Electric DX-PC25EA
Manual
-
Mitsubishi Electric XL5980LU
Manual
-
Mitsubishi Electric XL6500U
Manual
-
Mitsubishi Electric 1770G
Manual
-
Mitsubishi Electric WT-42413
Manual
-
Mitsubishi Electric WD-57831
Manual
-
Mitsubishi Electric MSH-A18ND
Manual
-
Mitsubishi Electric WD-60C8
Manual
-
Mitsubishi Electric XL650U
Manual
-
Mitsubishi Electric HL2750U
Manual
-
Mitsubishi Electric MSZ-GE09NA
Manual
-
Mitsubishi Electric P40
Manual