Home

GX Works2 Beginner`s Manual (Structured Project)

image

Contents

1. lt Device mode Address mode gt JG NE LDP Tee amp 4 Rosy ee A 4 JS LDP i AMKI D 500 0o c0 5 4OX16 EN ENO C gt i EN ENO m C X S 2 JN ow cR te a 6 we oe 3 m 0x S 5E x0 S s 18 we a cor uw es 8 cen cw a a wise y MEN Y10 ME ca MEM SZ LLLI 2 o SOMIE DT TEN E OUT_T w re OU NEZ ee Re ee ee EN ENO a a a ee ee ee EN ENO MEM M M M lll yl lyIbIIIl TC0 TCoail o a YS T e ILILASML LS 10 Tvalue e 4 s s sl s s s sc 101 MEME Displaying labels and devices at the same time You can display devices also in the label display mode by adding an optional setting Select Tool Options to display the Options screen On the Options screen select Program Editor Structured Ladder FBD Label and check Display label and devices In the example below X1 and DO are labels lt Display Label mode gt lt Display label and devices mode gt 3 2 6 Creating a program 3 2 Creating a Project 3 2 7 Compiling a program There are two types of compiling shown below The compile target is different between the two types Select Rebuild All here The Rebuild All procedure is described below Refer to the following manual for compiling L gt GX Works2 Version 1 Operating Manual Structured Project NOI OVERVIEW Table 3 1 Compiling type and target program Compil
2. 4 3 4 2 2 Screen configuration in GX eii cm TE 4 3 4 2 3 Creating a new PLOjet ccccccssscccccessseeccseeccccceucececseecececsusececseueeesseuaceesssusececsseaeeeessusnseeseessaages 4 3 4 2 4 Setting paratfielGl See dericusceetokacinen dete Pire Ina sque Dn etn Gc estos deba suseocc odia edad ute uuu aUa l adno oe tado de bains 4 3 4 2 5 siae M le ERIT TT T ET 4 3 4 2 6 Creating a NOG RAN ENT Nm T 4 4 4 2 7 edo Ine A VOGT AN PETROL 4 7 4 3 Writing a Project to the programmable controller 4 8 4 4 Monitoring Operations 4 8 4 4 1 Monitoring a FO OFAN aca pace ERE 4 8 4 4 2 Batch monitoring of device VAlUCS cccscccccseseecccesseececceuseececsuceesseaseeessceeeeeessaeeeessenseeessaesags 4 11 4 5 Diagnosing the programmable controller 4 12 4 6 Reading a Project from programmable controller 4 12 4 Printing 4 12 4 8 Saving a Project 4 12 4 9 Exiting GX Works2 4 12 5 CREATING TWO OR MORE PROGRAM BLOCKS 0 1to5 19 5 1 Created Program 5 2 9 14 Operations of UO MUU ie gece esate ed esse ee eee ec mec 5 2 5 1 2 CIOSIBHd DIOSL AE PETEA E nee E E E E E E E EE E E E 5 3 5 2 Creating a Project 5 4 5 2 1 Staring OX Works Zsarnai rierien neier iieiea ass 5 4 Da2 Screen configuration in GX Works2 sccseccdsesscsieesausssanendsesdancobseoaanadenerasiaceaeiiedheadesdeelsaseiweseneesniebieass 5 4 OAM Aricia eR a new No oj cio PME OE T T 5 4 5 2 4 Seting p
3. Opening two or more Device Buffer Memory Batch Monitor screens You can open two or more Device Buffer Memory Batch Monitor screens The screen number is indicated at the end of the screens title Device Buffer Memory Batch Monitor Device Device Name z fC Set Value Reference Program Reference L I J Device Buffer Memory Batch Monitor 2 Devi VICE ce n Eu uu A At AL IZ Device Name TIC Set Value Reference Program 8 Device Buffer Memory Batch Monitor 1 Monitoring r Device Device Name po v T C Set Value Reference Program Reference C Buffer Memory Module Start z HEX Address z pec z Display format Modify Value 2 it 32 226l esc J 16 Details Open Save To the next page 3 36 3 4 2 Batch monitoring of device values 3 4 Monitoring Operations V Changing the current value Click the modify value button on the Device Buffer Memory Batch Monitor screen to display the Modify Value screen which allows you to change the current value NOI OVERVIEW fe 1 Select a device whose current Device Name DO w T C Set Value Reference Program Reference Va Uu e iS to be ch a n g ed C Buffer Memory Module Start F HE Address ug oec Display Format 7 Modify Value 32 amp l ASC g 16 Details Open
4. Connection Channel Remote Operation List information m Connection Channel List Displays the connection tobe 7 use lt gt PLC Module rget information aoe SEHISHO TargetPLC Specify Execution currently set Network No Pf Station No Host PLC Type Q02 Q02H Target QO2HCPU Specify Execution Target Allows you to set the Currently Spectied Station target station for Programmable Vie Suc remote operation controller status RUN ee Select Currently Displays the programmable ERR rng EE for controller CPU status 2 ERES l BAT Operation BOOT ese Allows you to select the ors programmable controller Pu CPU status to be set RESET Select either RU N C Remove Memory Card PAUSE or STOP for TT this example atur oak Operation during RUN Device Memory T P Q pict dered 5 Allows you to set the Execute operations to be executed to the device memory and signal flow when the programmable controller CPU is switched to RUN Monitor status display example amp pouring Program Structured Ladder FBD refilling PRG Program Structured adder FBD i Lower LS of water tank Upper 1S of water tank gt refill rot on a a Ch S MNT a ee S28 qul ea am vae wee Cpunter current value dj Counter value monitornb 20 Po gt gt To the next page 5 14 5 4 1 Monitoring a program 5 4 Monitoring Operations
5. indicating PRG Program Structured Ladder FBD SEE PROGRAM IN ST Oy LANGUAGE CREATING f indicating PRG Program Structured Ladder FBD 1 Y Os 28 FO OF a TT T x 1289 oP 9 ME Oo oO i co Specify global labels ee eae Specify global labels 5 2 8 Compiling a program Refer to the following section and manual for compiling 3 2 7 Compiling a program gt GX Works2 Version 1 Operating Manual Structured Project 2 2 8 Compiling a program 5 11 ic GX Works2 o CREATING TWO OR MORE PROGRAM BLOCKS 5 3 Writing a Project to the programmable controller Refer to the following section for the procedure to write a project to the programmable controller CPU s 3 3 Writing a Project to the programmable controller 5 4 Monitoring Operations Execute monitoring and check the operations Note that some screen shot colors have been changed for printing convenience GX Works2 is able to simulate programmable controller operations in offline mode Refer to the following manual for the simulation function GX Works2 Version 1 Operating Manual Common 5 4 1 Monitoring a program 1 Click Project in the view selection area on the Navigation window to display the Project view 2 Double click POU Program pouring Program on the Project view to display the II M22 pouring PRG Program Structured Ladder
6. AO og Za LLI cr co Oz 9 MC O O mr en Restrictions 9 Input within 128 characters to Title Make sure that the total characters of Save Folder Path Workspace Name and Project Name is 200 or less You cannot save any project to route directories such as C or D Er GX Works2 3 CREATING PROGRAM IN STRUCTURED LADDER FBD LANGUAGE 3 9 Exiting GX Works2 End the project m EA 1 Select Project Exit Q to exit GX Works2 O New Ctr N Open Ctrl 0 Close EE Save Ctrl S Save As Compress Unpack gt Delete Verify Project Revision gt Change PLC Type Change Project Type Object gt Intelligent Function Module gt Open Other Data gt Export to GX Developer Format File Library b Security b eH Print J Ctrl P Print Preview B Print Window Print Window Preview Printer Setup The Latest File Start GX Developer z If you have not saved the project the following message appears Click the button to save the project Click the button to exit GX Works2 without saving the project MELSOFT Series GA Works E AN Do vau want bo save Ehe project o cme tl MELSOFT w 4 CREATING PROGRAM IN ST LANGUAGE This chapter explains how to create a program in the ST language with a Structured Project using a simple ST program Refer to the following manuals for the details on structured pr
7. MITSUBISHI Ten A V ELECTRIC Engineering Software GX Works2 Beginner s Manual Structured Project SW1DNC GXW2 E SAFETY PRECAUTIONS Always read these instructions before using this product Before using this product thoroughly read this manual and the relevant manuals introduced in this manual and pay careful attention to safety and handle the products properly The precautions given in this manual are concerned with this product For the safety precautions of the programmable controller system refer to the User s Manual for the CPU module In this manual the safety precautions are ranked as AN WARNING and A N CAUTION Indicates that incorrect handling may cause hazardous conditions resulting in A WARNING death or severe injury Indicates that incorrect handling may cause hazardous conditions resulting in minor or moderate injury or property damage N CAUTION wm e e SS SS Note that the N CAUTION level may lead to serious consequences according to the circumstances Always follow the precautions of both levels because they are important for personal safety Please save this manual to make it accessible when required and always forward it to the end user Design Instructions N WARNING When data change program change or status control is performed from a personal computer to a running programmable controller create an interlock circuit outside the programmable cont
8. Point Monitor status GX Works2 displays the Monitor status while it is executing the work window monitor The Monitor status disappears when GX Works2 stops all types of monitoring The Monitor status indicates the programmable controller CPU simulator scan time RUN STOP status etc Scan status Select the Local Device monitor 0 300rms Local Device nok Executed USER status ERR status RUN STOP status Connection status Refer to the following manual for the Monitor status Ls GX Works2 Version 1 Operating Manual Common Monitor status display Display of bit value status ON OFF status GX Works2 displays the ON OFF status bit values of contacts coils etc as the ON OFF status of devices and labels Refer to the following manual for the bit value ON OFF status display L gt GX Works2 Version 1 Operating Manual Common ae OFF status ON status d water refill output ep e water refill output OUT_C EM ENG EM ENO Counter coil CCail E cci el Doe e re or or oc os c s 5 s s a E EBD Display of contents status current value other than bit values GX Works2 displays the current values of non bit device for contacts coils etc and the contents of character strings as shown below Current value of label Current value of label EM EMO Yo Counter _current salue 2 18 d Counter value monitauring 2 9 Switching of the curren
9. Error Clear Clears the error information displayed in Current Error 9 Error Help Displays the explanation window for the currently selected error number 10 Error History Displays the latest error history 11 Clear History Deletes the error history list in Error History 12 Status Icon Legend Indicates icons corresponding to errors displayed in the Status column of the Error Information 13 Monitor Status Indicates the monitoring status executed or stopped 14 ME Displays the programmable controller CPU status 15 Stop Monitor Starts or stops monitoring 16 Create CSV File Saves the error information to a CSV file 2 Click the c button to close the PLC Diagnostics screen 3 6 Reading a Project from programmable controller 3 6 Reading a Project from programmable controller You can read data to a project from the programmable controller CPU selected as the connection destination in Section 3 3 1 Online Debug Diagnostics Tool Window 1 Select Online Nd Read from PLC to display the Online Data Operation NOI OVERVIEW HM write to PLC verify with PLC ene ce z eee You can click JW ReadfromPLC to Ez display the Online Data Operation 222 screen jog O lt O 3 2 Setthe Target module and Target Serial Port PLC Module Connection LISB ia project on the Online Data Operation screen After the setting click the Title Project Name Target Detail Last Change
10. RUN PAUSE or STOP for o this example Device Memory Not Cleared Y Operation during RUN Allows you to set the dee operations to be executed to the device memory and signal flow when the programmable controller CPU is switched to RUN Execute Monitor status display example 1 BR OUT T 0505 L qnm TX M eee Se eo ee a ek ee ee ee reg TCail E re e Displays the OFF status Vicari cassia acceding ate al MOVP E EN ENO RE 10 d v AR Displays the current values ae EN ENO LL To the next page 3 30 3 4 1 Monitoring a program 3 4 Monitoring Operations Point Monitor status GX Works2 displays the Monitor status while it is executing the work window monitor The Monitor status disappears when GX Works2 stops all types of monitoring The Monitor status indicates the programmable controller CPU simulator scan time RUN STOP status etc Scan status Select the Local Device monitor Local Device nok Executed USER status ERR status RUN STOP status Connection status Refer to the following manual for the Monitor status 3 GX Works2 Version 1 Operating Manual Common Monitor status display Display of bit value status ON OFF status GX Works2 displays the ON OFF status bit values of contacts coils etc as the ON OFF status of devices and labels Refer t
11. Save Do not display comments Device AND SYSTEM SS CONFIGURATION o ojojo o o o o o o ola T STRUCTURED LADDER CREATING PROGRAM IN FBD LANGUAGE 8 Device Buffer Memory Batch Monitor 1 Monitoring SEE 2 G i ck th e Modify Value b u tto n to r Device Pas seer TET d isplay the Mod ify Value screen C Buffer Memory Modulestart wt Address ed Bre e one m im rime d Or click um Modify Value to display p the Modify Value screen PROGRAM IN ST Q1 LANGUAGE lt ad O amp o ud e T mm D Change the current value odify Value For the change procedure refer to the Device Label Buffer Memory following Device Label i DO Point in the 3 4 1 Data Type Word Signed Value f pec HEX Settable Range 32758 to 32757 Execution Result e Execution Result Device Label Wiord Signed Reflect to Input Column Delete 3 4 2 Batch monitoring of device values 3 37 i GX Works2 3 CREATING PROGRAM IN STRUCTURED LADDER FBD LANGUAGE 3 5 Diagnosing the programmable controller You can check the programmable controller RUN STOP status and error status Refer to the following manual for the details on Network Diagnostics Ethernet Diagnostics and CC Link IE Control Diagnostics L3 GX Works2 Version 1 Operating Manual Common LBeesks Teo _widow H
12. Select a connection point by moving the cursor and click there to automatically connect the connection point For avoiding automatic connection lay out network elements while pressing and holding the snit button To the next page 3 2 6 Creating a program 3 13 r GX Works2 3 CREATING PROGRAM IN STRUCTURED LADDER FBD LANGUAGE T POU_01 PRG Program Structured Ladder FBD f Click Close contact on the Structured Ladder FBD toolbar and then move the cursor to a desired position to display a close contact there Click the close contact to connect it with a function of the LDP and enable setting of a variable Settings e Variable TSO 1 TSO indicates a contact of the timer TO irre 7 8 Draw a grid line on the left figure position 1 EEM using the procedure described in the step 3 After drawing grid lines click le Select Mode on the Structured Ladder FBD toolbar to specify the select mode 9 Click Coil on the Structured Ladder FBD toolbar and then move the cursor to a desired position to display a coil there Click the coil to connect it with the close contact TSO and enable setting of a variable After drawing grid lines click i Select Mode on the Structured Ladder FBD toolbar to specify the Select mode Settings e Variable Y10 En 1O Select Function OUT T on the Function Block Selection window drag it and drop it in a desir
13. refer to the following 3 7 Printing Program B 3D 2m8 LibraryName Data Name PI 01 4 8 Saving a Project Refer to the following section for the project saving procedure c s 3 8 Saving a Project 4 9 Exiting GX Works2 Refer to the following section for the project ending procedure s 3 9 Exiting GX Works2 tl MELSOFT w NOI OVERVIEW 5 CREATING TWO OR MORE PROGRAM BLOCKS This chapter explains how to create a Structured Project in which two or more program blocks are made into one program using a simple example Refer to the following manuals for the details on structured programs including programming languages labels data types and functions instructions gt MELSEC Q L F Structured Programming Manual Fundamentals 3 Structured Programming Manual of the programmable controller CPU CREATED PROGRAM AND SYSTEM Q CONFIGURATION zy za oa ot O Q o ul 5 amp 2 z p KO i ae X Lr Ow FBD LANGUAGE 5 1 Created Program usua nu RR ERG EE be FUEGO arx CERE Es 5 2 5 2 Creating aProject eleleeseren 5 4 T 5 3 Writing a Project to the programmable controller 5 12 M T 5 4 Monitoring Operations 0 0000 cece eee eee 5 12 TE 5 5 Diagnosing the programmable controller 5 18 reg 5 6 Reading a Project from programmable controller 5 18 5 oS PNN gor ud ache uoa d o E ee ee e cR d na Ro POE EROR 5 1
14. 2 Q Y10 LDP TRUE X0 OR Y10 AND NOT TSO Qao OUT T Y10 TCO 10 a 3 MOVP XI 10 VARI ZPS ST 1 MOVP X2 20 VARI Chapter4 Fos wW Y QO C m OW LL Refer to the following manual GX Works2 Beginner s Manual Simple Project 0D Z You can create the Inline ST Box that displays ST language programs in the Ladder Editor and edit ost Ladder 2 aP and monitor ST language programs Er Refer to the following manual for the details Y O z GX Works2 Version 1 Operating Manual Simple Project Aasi Refer to the following manual o SFC j GX Works2 Beginner s Manual Simple Project S gt F FO og Zn Lu T co Oz N xX O O eal en iS GX Works2 2 CREATED PROGRAM AND SYSTEM CONFIGURATION MEMO tl MELSOFT w NOI OVERVIEW 3 CREATING PROGRAM IN STRUCTURED LADDER FBD LANGUAGE This chapter explains how to create a program in the Structured Ladder FBD language with a Structured Project using a simple Structured Ladder program Refer to the following manuals for the details on structured programs including programming languages labels data types and functions instructions L gt MELSEC Q L F Structured Programming Manual Fundamentals 3 Structured Programming Manual of the programmable controller CPU CREATED PROGRAM AND SYSTEM CONFIGURATION STRUCTURED LADDER CREATING PROGRAM IN FBD LANGUAGE 3 1 Created Program sua eR RR EG E
15. Ah em x display the PC side I F Serial setting screen oar Board ui M E J Double click pi Serial USB in PC side I F to USB PLC CC IE Cont CC Link Ethernet CC IE Field CC IE Field Module NET 10 H Module Module Master Local Communication Module Module Head Module a PLC Mode QCPU Q mode ml fis Connection Channel List ul No Specification Other Station Other Station E Single Network Co existence Network PLC Direct Coupled Setting Connection Test Time Out Sec 30 Retry Times O Gmewesa atio PLC Type Detail CC IE Cont CC IE Field Ethernet CC Link C24 NET 10 H nr System Image d Phone Line Connection C24 E mH Ng a a CC IE Cont CC IE Field Ethernet CC Link C24 Cinal NET 10 H Ao Accessing Host Station Multiple CPU Setting JIII e lot Specified 1 Zo 4 PC side I F Serial Setting x 4 Set the PC side I F C ps232C After the setting click the button to use complete the setting and close the screen Settings e Select USB Lc E 5 Click PLC Module in PLC side I F to JEN ciem cip mee ame D RE select the interface to be used Board Board CCIE Cont C Ethernet C24 GOT CCIEField CCIE Field C Link C ar T 10 H Module Module Master Local Communication qdule Module Head Module afl C i C k it PLC Mode QCPU Q mode J Ii i Connection Channel List Wil No Specification Other
16. Class Label Name T Global Label Setting screen Settings T e Class VAR GLOBAL C System label is reserved to be registered _ System label is reserve o execute the Reservation to Register Release for the system abel reflection to the system label database is required lease execute Reflect to System Label Database To execute Online Program Change execute Online Program R R Change and save 9 Directly input the Label Name on the Global Label Name Label Setting screen Settings e Label Name VAR1 VARI C System label is reserved to be registered System label is reserve To execute the Reservation to Register Release for the system R abel reflection to the system label database is required Please execute Reflect to System Label Database R To execute Online Program Change execute Online Program Change and save gt Restrictions 9 Characters available for the label name You can enter up to 32 characters as the label name However note that the following label name will cause a compile error Label name which contains space Label name whose first character is a number Label name equivalent to a device name For other characters unavailable for the label name refer to the following manual GX Works2 Version 1 Operating Manual Common V To the next page 3 8 3 2 5 Setting labels 8 Global Label Setting Globali Cees LeName Datatyp
17. F PLC Parameter amp Network Parameter F B D screen Hin Remote Password Intelligent Function Module TET E ae Display the refilling PRG program Structured Global Label eon Ladder FBD screen and the indicating PRG pou program Structured Ladder FBD screen in the POU B Program B Double click it same way Local La refilling i Program Local Label 9 indicating i Program is Local Label iy FB FUN Structured Data Types B Local Device Comment Device Memory Device Initial value D telah i MERE iy V To the next page a 5 4 1 Monitoring a program 5 4 Monitoring Operations V ld Diei A Wndow tb 3 Select Online Monitor Start Monitoring B All Windows to monitor all available screens U Write to PLC verify with PLC Toes You can also click 4 Start Monitoring to switch ics acie eee el individual screens to the monitoring status Password Keyword gt NOI OVERVIEW Soft Security Key Management PLC Memory Operation b 4 Delete PLC Data z Set the programmable controller CPU to RUN gt lt x rc z a i Set the RUN STOP switch on th UNES Eo c et the switch on the programmable y z Program Memory Batch Download controller CPU to RUN a S Latch Data Backu gt LLI 0 ME You can also switch the programmable controller ROL E W W I i H Q z uen status between RUN
18. PROGRAM IN ST CREATING Q1 LANGUAGE Point Positioning Function and Function block using the Element Selection window You can easily position Function and Function block by dragging them from the Element Selection window Perform the following procedure to display the Element Selection Window Select View Docking Window Element Selection In the example below drag the Function LDP from the Element Selection window and drop it on the POU 01 PRG Program Structured Ladder FBD screen to position it there Refer to the following manual for the details GX Works2 Version 1 Operating Manual Structured Project Local Label Setting POU_01 PRG 4 POU_01 PRG Program St X 4 b Element Selection 7 s Globe amp POU_01 PRG Program Structured Ladder FBD M Efx x diis a Device D S gt AO og Zn Lu T yo OI 9 MC O O eal en I ll rLX B LDD E LDD B LDD E LDD B LDD E LDD gt E LDE DE lt 1 Drag it E p B LDE gt LDE LDPCHK Click itt Rising Edge on the structured ladder FBD toolbar and then click a desired location to position the Rising Edge there V To the next page 3 2 6 Creating a program 3 11 ie GX Works2 3 CREATING PROGRAM IN STRUCTURED LADDER FBD LANGUAGE y 3 Click L Interconnect Mode on the Structured Ladder FBD toolbar to specify the Interconnect mode Click the start p
19. Registration Selection screen Perform the following procedure to display the Label Registration Selection screen Select Edit List Operands Click 5 List Operands Refer to the following manual for the details on the Label Registration Selection screen s GX Works2 Version 1 Operating Manual Structured Project Label Registration Selection Vete kaai Select from Registered Label Scope to Find Globali Label Setting Information Type Classification simple Data Types Scope to Register alob al E E ANY v mi rA Class vaR GLOBAL Select a label to be used Data Type WordSigned E Device DO Constant Comment Sets the selected label to the program editor Apply Minimize dialog after applying Click the Apply button to set the selected label Displaying label candidates GX Works2 displays label candidates whose former portion agrees with the entered character string In this program example GX Works2 displays labels and instructions starting from V when you enter V You can select a displayed label instead of entering the label completely e POU_01 PRG Program ST Y 10 LDP TRUE X0 OR Y 10 AND NOT TS0 OUT T Y 10 TC0 10 MOVP X1 10v VARI Using templates Using templates according to the instructions functions Si POU 01 PRG Program ST B 5 Input MOVP X2 20 VAR1 directly YTO LDP TRUE X0 OR Y10 AND NOT T
20. S ast 10 16 Details Open Save Do not display comments E 6 Setthe programmable controller CPU to RUN Set the RUN STOP switch on the programmable controller CPU to RUN To the next page 3 4 2 Batch monitoring of device values 3 35 Er GX Works2 3 CREATING PROGRAM IN STRUCTURED LADDER FBD LANGUAGE TTET z f Click B Stop Monitoring on the toolbar to crum n e CTC Set value Reference Program Reference H H C Buffer Memory Modest fo ve address ge sz Stop monitoring viv 2 EIAS LIC Monitored values remain even after GX Works2 stops monitoring oj oj o o o o 9 ojo ojo ojo 8 Click FA on the screen to close the Device Buffer Memory Batch Monitor screen 8 Device Buffer Memory Batch Monitor 1 Monitoring Device Name DO T C Set Value Reference Program Reference C Buffer Memory Module Start v HEX Address v DEC v 9 r Display format Modify Value 2 Aid 3222 6 esc E 16 petsis oven save Set the programmable controller CPU to STOP Set the RUN STOP switch on the programmable controller CPU to STOP You can switch the programmable controller status between RUN and STOP using remote operation For the remote operation refer to the following Point in the 3 4 1 g F a 0 i uU 0 0 0 0
21. Target Memory Size button to read the project prog ram pc UII Ice from the programmable controller Online Data Operation STRUCTURED LADDER CREATING PROGRAM IN FBD LANGUAGE 2010 11 25 12 57 2986 Bytes 2010 11 25 12 56 56 564 Bytes Detail 2007 03 08 14 06 22 27434 Bytes zDetai ii Free Volume se Volume Setting of the project aS Related Functions lt lt TEE i o E Set Clock PLC User Data Write Title Format PLC Clear PLC Memory Arrange PLC Operation Memory Memory Setting of the target module Target module Select PLC Module gt gt PROGRAM IN ST Q1 LANGUAGE CREATING Setting of the project e Symbolic Information Select Program Memory Device Memory in Target Memory and check GX Works2 Structured Project in Target oymbolic Information contains program files and variables PLC Data Select Program Memory Device Memory in Target Memory and EO og Za LLI gx co Oz 9 MC O O mr m check PLC Network Remote Password Switch Setting in Target 1 Do not check Global Device Comment and Device Memory 1 If you have checked desired items for the Write to PLC setting such items are checked as the default for the Read from PLC setting o To the next page Restrictions In the case of FXCPU e In the case of structured project data can be read from the FXCPU only in the FX3u and FX3uc Serie
22. X3 turns ON and the water refill output Y11 turns ON When the water refill output Y11 is ON and the water supply to the tank is sufficient the upper limit switch X4 turns ON and the water refill output Y11 turns OFF B Warning indicating operation e When the tea server performs the water refilling operation 5 times the tea leaf replacement indicator lamp Y 12 turns ON When a user presses the tea leaf replacement check button X2 the tea leaf replacement indicator lamp Y12 turns OFF 5 2 5 1 1 Operations of program 5 1 2 Created program Create the following program blocks mM Program block for the tea pouring operation i pouring PRG Program Structured Ladder FBD Counter coil f 8Gaoil e amp a do we ow Rowe 9 5 X 5 CYalue ENO Counter current value T S di Counter value monitoring 5 1 Created Program 5 1 2 Created program NOI OVERVIEW CREATED PROGRAM AND SYSTEM Q CONFIGURATION zg za oa oa aj O Q o ul 5 amp 2 z p KO Se Of Lr Ow FBD LANGUAGE PROGRAM IN ST Oa LANGUAGE CREATING X Os E FO oc a TT T x 1289 oP 9 ME Oo oO i co ic GX Works2 o CREATING TWO OR MORE PROGRAM BLOCKS 5 2 Creating a Project Create projects for the tea pouring operation water refilling operation and warning indicating operation using Structured Ladder program 5 2 1 Starting GX Works2 Refer to the following sect
23. connection destination connection cable etc lil MELSOFT Application i Cannot communicate with the specified CPLI or station The Following are possible causes Communication time out Cable trouble PLC power are OFF or reset status USB trouble Please restart or check USB driver installation communication error dialog is being displayed with other MELSOFT products Please close the error dialog ES 01808502 Click the button to finish Transfer Setup and close the screen NOI OVERVIEW AND SYSTEM CONFIGURATION STRUCTURED LADDER CREATING PROGRAM IN FBD LANGUAGE PROGRAM IN ST Q1 LANGUAGE x x O O Qc A LLI c O 9 MC O O mr en Er GX Works2 3 CREATING PROGRAM IN STRUCTURED LADDER FBD LANGUAGE You can set two or more connection destinations and change them over if there are two or more connection destinations Connection Destination huic E LL 1 3 T Ld Current Connection pie Connection b Set as Default Connection All Connections M Connectio LORY Delete Rename Sore b ET Property Add New Data Data Mame Connection Set as Default Connection oa V Navigation i ox DP ey a Curent Connection pur Connection All Connections ee Lonnectionl m Canneckianz Newly created connection destination 1 Select Connection1 in the Current Connection on
24. creating a structured project for the first time Learning the operations of available functions regardless of project type ails Learning the functions and operation Ee methods for programming Maas n Learning the operations and operating aa procedures when creating function blocks FB in Simple project Learning data setting methods for DOEI intelligent function module A 11 3 Operations in each programming language For details of instructions used in each programming language refer to the section 4 section 5 on GX Works2 GX Works2 Version 1 Beginner s Manual Operating Manual the next page GX Works2 Purpose Installation Instructions Structured Project 1 MELSAP3 and FX series SFC only A 12 Simple Project e ey Outline e dieran Outline Ex CENE NE Outline s eere eit Outline Structured Project Simple Structured Deu gent Common Proiect Proiect Function J J Module ooo oo m ace ee M Details a E a EE Bcc Se Ss ee Details 4 Details of instructions in each programming language for QCPU Q mode LCPU MUT ME EE Manual for MELSEC Q L Structured Q L MELSEC Q L QnA Structured module to Programming Manual Programming Programming Manual Purpose Programming Manual be used Manual Common Special Application Noii PID Control Fundamentals Instructions Instructions Functions Noii Instructions Learning details of programmable A
25. i d E Aaa coh es CIT a 13 A AA E EET ES 4 Set the prog ram mable controller CPU to RUN jiener Set the RUN STOP switch on the a programmable controller CPU to RUN V To the next page 3 4 1 Monitoring a program 3 29 i GX Works2 3 CREATING PROGRAM IN STRUCTURED LADDER FBD LANGUAGE Point You can switch the programmable controller status between RUN and STOP using remote operation as follows The Settings of the remote operation may vary depending on the programmable controller used Refer to the following manual for the details on the remote operation L GX Works2 Version 1 Operating Manual Common Select Online Remote Operation to display the Remote Operation screen You can switch the programmable controller status between RUN and STOP on this screen Remote Operation E3 Connection Channel List Connection Channel List information Displays the connection target information currently set Connection Interface WB o amp RCModue Target PLC j j Station No Host PLC Type 02 Q02H Specify Execution Target Allows you to set the target station for remote operation Select Currently Specified Station for this example Operation Allows you to select the programmable controller CPU status to be set Programmable controller status Displays the programmable controller CPU status _ STOP C PAUSE C Latch Clear C D E Select either
26. pgo o D o paoe N co M co J o jojoj o ojojojo m s e s rr m v iul o ejo o o olo jo Bolo 4 o Gaan o ACIE oo ow ojo o ojoj om jo fy Gio nA oO feo oes o Ca o keh os e e e e e e o E E o e STRUCTURED LADDER CREATING PROGRAM IN FBD LANGUAGE Point You can save the contents set on the Display Format screen When the monitoring screen is opened again the contents set previously on the Display Format screen will not be displayed The default setting will be displayed To display the previous setting you can save the setting to a file and read the file To save the setting click Save button on the Device Buffer Memory Batch Monitor screen To read the saved setting click Open button on the Device Buffer Memory Batch screen Monitor screen You can set the data display format also on the Device Buffer Memory Batch Monitor screen For setting the display format click the Display Format button on the Device Buffer Memory Batch Monitor screen The contents of setting are reflected on the Display Format screen 2 m 22 lE hd PROGRAM IN ST CREATING Q1 LANGUAGE E FO og Zo LU Y o Oz 9 MC O O mr m pep D Click JE Start Monitoring on the toolbar to SS T C Set Value Reference Program Reference S ta rt m O n to rl n g Display Form isi at 2 s 32
27. structured project data can be read from the FXCPU only in the FX3u and FX3uc Series version 3 00 or later When data cannot be read from the FXCPU carefully store projects written in the programmable controller NOI OVERVIEW MELSOFT Application 3 The left screen is displayed Do you want to execute writing the program Caution The following option is checked For PLC Read Write When writing to PLC after a Rebuild All operation clear the device ranges set in the Device label Cl ick th e p Yes b u tto n to write auto assign setting to 0 After ting a Rebuild All when labels are reassigned to new devices values from the previous program will remain in the previously assigned 1 palin ebuild All els are reassigned to levices values from the previous program will remain in the previously assigne the project program When writing to the CPU after a Rebuild All operation clear the device ranges set in Device Label Auto Assign setting to 0 It may take a few minutes to clear all of the devices depending on the number of target devices being cleared The Following cases may indicate that the clear process was not completed successfully For safety please interrupt the process and reset the programmable controller CPLI clear all the device memory including latched devices and clear all File registers Or please execute the PLC write after executing Rebuild All again If an error occurs during the clear process If an erro
28. 1 Section 3 3 2 Section 3 4 1 Section 3 4 2 Section 3 5 Section 3 9 Section 4 2 6 Section 4 4 1 Section 5 4 1 Print date Sep 2010 Jan 2011 Jul 2011 Jan 2012 May 2012 Feb 2013 May 2013 Dec 2013 Jun 2014 Manual number Revision SH NA 080788ENG G C orrection Section 3 2 6 Section 3 3 1 Section 3 3 2 Section 3 5 Section 3 6 SH NA 080788ENG H Correction MANUALS Section 2 1 Section 3 2 1 Section 3 2 2 Section 3 2 3 Section 3 2 4 Section 3 2 5 Section 3 2 6 Section 3 2 7 Section 3 3 1 Section 3 3 2 Section 3 4 1 Section 3 4 2 Section 3 5 Section 3 6 Section 3 7 2 Section 3 7 4 Section 3 8 Section 4 2 6 Section 4 4 1 Section 5 2 5 Section 5 2 7 Section 5 4 1 SH NA 080788ENG I Qa Section 3 2 8 Correction MANUALS Section 1 1 Section 2 2 Section 3 1 2 Section 3 2 1 Section 3 2 2 Section 3 2 3 Section 3 2 6 Section 3 3 2 Section 3 4 1 Section 3 4 2 Section 3 6 Section 3 7 1 Section 3 7 2 Section 3 7 3 Section 3 8 Section 3 9 Section 4 2 6 Section 4 4 1 Section 5 1 2 Section 5 2 5 Section 5 2 7 Section 5 4 1 SH NA 080788ENG J C orrection MANUALS GENERIC TERMS AND ABBREVIATIONS IN THIS MANUAL Section 3 2 3 Section 3 3 1 Section 3 4 1 Section 3 4 2 Section 3 8 Section 4 4 1 Section 5 4 1 SH NA 080788ENG K Correction MANUALS Section 3 2 1 Section 3 2 2 Section 3 2 3 Section 3 2 5 Section 3 2 6 Section 3 4 1 Sectio
29. 1 Monitoring a program 5 4 Monitoring Operations V 5 Turn ON inputs XO X1 and X2 in the programmable controller and check the following operations You can turn ON inputs XO X1 and X2 using the test operation above e When X1 turns ON while XO is ON the programmable controller turns ON Y10 When X1 turns ON while XO is OFF the programmable controller does not turn ON Y 10 X1 Tea pouring button turns ON The programmable controller turns ON Y 10 while XO Cup detection is ON Tea pouring output Tea paurng buton d Tea paurncg output p a _ e When X3 turns ON the programmable controller turns ON Y 11 X3 Lower LS of water The programmable controller turns ON Y 11 tank turns ON Water refill output NOI OVERVIEW Lup detectian CREATED PROGRAM AND SYSTEM Q CONFIGURATION Lower Ls af water tank UpperLs af watertank gt Water refill output m m ma zy LLI za oa 5 C i O Q o ul 5 amp 2 z p KO Se X Lr Ow FBD LANGUAGE Vater refill output e When X4 turns ON while X3 is ON the programmable controller turns OFF Y11 X4 Upper LS of water The programmable controller turns OFF tank turns ON Y11 Water refill output Lower 15 nf water tank LUIpper LS of water tank water refill output Vater refill output PROGRAM IN ST Oy LANGUAGE CREATING e When Y11 turns ON OFF 5 times the programmable con
30. 9 3 2 8 Greatng ai FBD VO OMAN M RET TT 3 20 3 3 Writing a Project to the programmable controller 3 21 3 3 1 Connecting the personal computer to the programmable controller 3 21 3 3 2 Writing a project to the programmable controller cccccsscccceseceseseceseeseeseeseeseeseesseeeensaeess 3 26 3 4 Monitoring Operations 3 29 3 4 1 Monitoring a Ol COVA Tm RR Tm TT 3 29 3 4 2 Batch monitoring f device ValUGS ssisisrrciriiiciridricsricsrti T 3 34 3 5 Diagnosing the programmable controller 3 38 3 6 Reading a Project from programmable controller 3 39 3 Printing 3 41 3 7 1 Setting the printer vacceeswctytvnccdedandeceed lt hexncosesdehesugndeceneaeedasusbeciecesusesduaadnanandeesddaesudeesceseedesesccusseeieeease 3 41 3 7 2 Previewing POON AM caureatnravineantatsuvnctetninmariontcsuninanuntisaay boat elonteliebenieeaidaiwiueediscednnrarantatadtatoawanat 3 42 Sui Faning mee rl NR TNNT m 3 44 3 7 4 Previewing a PEG Parameter ro s1sccescscaveaacnenecusesnannetiscanaecnoaeinaieie o usetenbnat VES enbosieaieadgatohebeateas 3 45 3 7 5 Pintinga PLO Parame lei EET 3 46 3 8 Saving a Project 3 47 3 9 Exiting GX Works2 3 48 4 CREATING PROGRAM IN ST LANGUAGE 4 1to4 12 4 1 Created Program 4 2 4 1 1 PST AIIM Ss CF PROGRAMM NENNT 4 2 4 1 2 FS AUS Ch OI ENN eats ss si fate ze E cece cee cee ec ee ace dee se T 4 2 4 2 Creating a Project 4 3 4 2 1 SEU I Sio ccu
31. 9 5 8 Saving a Project iscsooscuRREERRERRDERERERESEERASGEER Exs 5 19 5 9 Exiting GX Works2 ee 5 19 or Os F FO og Zo WwW tx 1289 oP 9 d Oo oO aa ic GX Works2 o CREATING TWO OR MORE PROGRAM BLOCKS 5 1 Created Program This section explains how to create a program for controlling a tea server system which consists of a tea pouring operation water refilling operation and warning indicating operation This section also explains a program which works as one Structured Project and the program operations 5 1 1 Operations of program Tea leaf replacement Tea leaf indicator lamp replacement Y12 check button X2 m Tea PE is tt XI ne A Tea pouring A output Y10 AS Cup detection XO Water refill output 11 Eu e limit switch qu Water refill tank Ji Lower limit switch B Tea pouring operation When a user presses the tea pouring button X1 that is when X1 turns ON while the cup detection XO is ON the tea pouring output Y10 turns ON and the tea server pours tea into the cup The tea server pours tea while the user is pressing and holding the button and stops pouring when the user releases the button The tea server does not pour tea when the user presses the tea pouring button X1 if the cup detection XO is OFF B Water refilling operation When water inside the water refill tank is running low the lower limit switch
32. A n version Generic product name for SWnD5C GPPW E SWnD5C GPPW EA SWnD5C GPPW EV and SWnD5C GPPW EVA n version Abbreviation for MELSOFT iQ Works Generic term for personal computers on which Windows operates Abbreviation for Mitsubishi programmable controller MELSEC Q series Abbreviation for Mitsubishi programmable controller MELSEC L series Abbreviation for Mitsubishi programmable controller MELSEC F series Generic term for Q00J Q00 Q01 Generic term for Q02 Q02H Q06H Q12H and Q25H Generic term for QOOUJ QOOU Q01U Q02U Q03UD QOSUDE QOS3UDV Q04UDH QO4UDEH Q04UDV Q04UDPV QO6UDH QO6UDEH Q06UDV QOGUDPV Q10UDH Q10UDEH Q13UDH Q13UDEH Q13UDV Q13UDPV Q20UDH Q20UDEH Q26UDH Q26UDEH Q26UDV Q26UDPV Q50UDEH and Q100UDEH Generic term for Basic model QCPU High Performance model QCPU and Universal model QCPU Generic term for LO2S LO2S P L02 LO2 P L06 LO6 P L26 L26 P L26 BT and L26 PBT Generic term for FXos FXo FXoN FX1S FX1N FX1NC FXu FX2c FX2N FX2Nc FX3s FX3G FX3Gc FX3u and FX3uc Generic term for QCPU Q mode LCPU and FXCPU Generic term for MELSAP3 MELSAP L and FX series SFC A 17 MEMO aN MELSOFT 1 OVERVIEW This manual explains the procedures to actually create a program Structured Project using GX Works2 and operate the programmable controller using the created program If this is your first time creating a Structured Project using GX Works2 y
33. AM AND SYSTEM 9 CONFIGURATION E Connecting the personal computer to the programmable controller Make sure to turn OFF the power of all units before connecting the personal computer to the programmable controller CPU Refer to the following manual for the details on setting when using another channel or using the FXCPU for connection STRUCTURED LADDER CREATING PROGRAM IN FBD LANGUAGE Notebook personal computer Programmable controller Q02HCPU JE e USB Cable B Setting the Transfer Setup PROGRAM IN ST Q1 LANGUAGE CREATING Set the channel to connect the personal computer to the programmable controller CPU Q02HCPU with a USB cable Refer to the following manual for the details on setting when using another channel or using the FX CPU for connection K gt GX Works2 Version 1 Operating Manual Common EO og Za LLI gx o Oz 9 MC O O mr en 1 Click Connection Destination in the view selection area on the Navigation window to display the Connection Destination view 2 Double click Connection1 in the Current Connection on the Connection Destination view to display the Transfer Setup screen Current Connection Double click it All Connections Connection i V To the next page 3 3 1 Connecting the personal computer to the programmable controller 3 21 ie GX Works2 3 CREATING PROGRAM IN STRUCTURED LADDER FBD LANGUAGE 2t hon
34. BAL you cannot set or change the initial value e Comment No setting e Remark No setting Refer to the following manual for the details on the global label local label setting procedure lt GX Works2 Version 1 Operating Manual Structured Project Refer to the following manual for the details on the programming of global labels and labels 3 10 3 2 5 Setting labels MELSEC Q L F Structured Programming Manual Fundamentals 3 2 Creating a Project 3 2 6 Creating a program Create the Structured ladder FBD program shown in Section 3 1 2 1 Double click POU Program POU 01 Program on the Project view to display the POU 01 PRG Program Structured Ladder FBD screen Project b b aA 28 Parameter p PLC Parameter t Network Parameter Hin Remote Password Intelligent Function Module Global Device Comment Global Label Globali Program Setting POLI B Program 8 POU_O1 2 Local P di FB FUN amp Structured Data Types L3 Local Device Comment Device Memory Device Initial value NOI OVERVIEW CREATED PROGRAM AND SYSTEM CONFIGURATION Double click it STRUCTURED LADDER CREATING PROGRAM IN FBD LANGUAGE f POU 01 PRG Program Structured Ladder FBD SEE 2 Drag Function LDP from the Function Block Selection window and drop it on the POU 01 PRG Program Structured Ladder FBD screen to position it there
35. E be eeeceecusen es 3 2 3 2 Creating a Project 0 ce es 3 3 i 3 3 Writing a Project to the programmable controller 3 21 M T 3 4 Monitoring Operations 0 00 00 cece eee eee 3 29 TE 3 5 Diagnosing the programmable controller 3 38 reg 3 6 Reading a Project from programmable controller 3 39 5 Wut m gua ceds ow ee eee ee 15 27 0277 77 221117112 1T 3 41 3 8 Saving a Project ccccusscetudGnseeve sds betieseuseesue 3 47 3 9 Exiting GX Works2 00 es 3 48 S gt F FO OF Za LLI To c o Oz 9 MC O O eal en i GX Works2 3 CREATING PROGRAM IN STRUCTURED LADDER FBD LANGUAGE 3 1 Created Program This section explains the operations of the program to be created and ladder programs 3 1 1 Operations of program e When XO turns ON the programmable controller turns ON Y10 and then turns OFF Y10 1 second later When X1 turns ON the programmable controller transfers K10 to DO which is defined with the LABEL VAR1 When X2 turns ON the programmable controller transfers K20 to DO which is defined with the LABEL VAR1 3 1 2 Created program B Inthe case of Structured Ladder EV PRG Program Structured Ladder FBD LDP EN ENO B Inthe case of FBD amp POU 01 PRG Program Structured Ladder FBD LDP TRFRUE REB 0 9 os 367 3 1 1 Operations of program 3 2 Creating a Project 3 2 Creating a Project Create
36. G PROGRAM IN FBD LANGUAGE 1 The label VAR1 is set in Section 3 2 5 PROGRAM IN ST CREATING Q1 LANGUAGE To the next page gt EO og Zn LLI T co Oz 9 MC O O eal en 3 2 6 Creating a program 3 17 ic GX Works2 3 CREATING PROGRAM IN STRUCTURED LADDER FBD LANGUAGE 3 18 V Point Copying a ladder block or ladder symbol When there is a similar ladder block you can create a new ladder block efficiently by copying the existing similar ladder block and editing necessary portions Click the header of an existing ladder block drag it and drop it while pressing the Cd key to copy the existing ladder block as shown below ft POU 01 PRG Program Structured Ladder FBD Change 10 to 20 in this example When copying only a ladder symbol such as contact coil and function click a desired ladder symbol drag it and drop it while pressing the sni key to copy the ladder symbol Changing over the device display format You can check a program by changing over the device display format between Device and Address Switch the device display format after performing compiling or compiling all when using local labels Refer to the following section for compiling s 3 2 7 Compiling a program Procedure to display Device Select View View Mode Device 9 Procedure to display Address Select View View Mode Address
37. IONS OF USE FOR THE PRODUCT wessrcencecetacsrdeerecatened sonctiedqnssisviacenacsasdotwevattalsculacctastacuacteceeatt A 2 nido A 3 i gg esPoipe c EE E E E E A 6 CONTENT A 6 MANUAL S reien A E Q A 9 GENERIC TERMS AND ABBREVIATIONS IN THIS MANUAL eeeeeennnmn A 17 1 OVERVIEW 1 1to 1 6 1 1 Simple Project and Structured Project 1 2 1 2 Program Creation Procedure 1 4 2 CREATED PROGRAM AND SYSTEM CONFIGURATION 2 1t02 4 2 1 System Configuration 2 2 2 2 Overview of Program Creation 2 2 3 CREATING PROGRAM IN STRUCTURED LADDER FBD LANGUAGE 3 1 to 3 48 3 1 Created Program 3 2 2 141 Operations of program RE T 3 2 3 1 2 Dace Moore 2 4 Pe ooo I 3 2 3 2 Creating a Project 3 3 3 2 1 Saning OX WOKS A 3 3 3 2 2 Screen configuration in GX Works2 cccccccseeceecceeesececceusececsceseeeecaueeeeecsuuecesseeueeeessuauseesssessees 3 4 3 2 3 Creating a new project 55 ceantdccnstencecscncacscbdcanessainas deb Gesehececnnaetcucieedesaaldennaceuehesasbadendecseeecedlecceanidsastacs 3 5 3 2 4 Seting AN dme le S cece ceca des stu cco a chasdetenentcacca cane ieai A ARENE aa Aa AAEE Rin iniiai 3 7 3 2 5 Seting 0 21 saii E eaa a el AE S 3 8 3 2 6 creating a POON aN mem 3 11 3 2 1 OMA INN A prO A hen TT T 3 1
38. LANGUAGE CREATING S gt F AO og Zn Lu Ir c Oo Cos u xX O O eal en i GX Works2 3 CREATING PROGRAM IN STRUCTURED LADDER FBD LANGUAGE Test operation Forcing a contact ON OFF Double click a monitored device or label while pressing the key to force a device in the programmable controller ON OFF Changing the current value of a word device Double click a monitored word device to display the Modify Value screen where you can change the current value Modify Value Input the numeric value to be set and Device Label Buffer Memory click the s button to change the Device Label current value to the input numeric value WAR 1 Data Type Word Signed value Ti LL HEX Settable Fange 32r 0 to ere plea Execution Result lt Execution Result Device Label Word Signed Reflect to Input Column Delete c 3 32 3 4 1 Monitoring a program 3 4 Monitoring Operations V 5 Turn ON inputs XO X1 and X2 in the programmable controller and check the following operations You can turn ON inputs XO X1 and X2 using the test operation above NOI OVERVIEW When XO turns ON the programmable controller turns ON Y10 and then turns OFF Y10 1 second later XO turns ON Y 10 remains ON for 1 second CREATED PROGRAM AND SYSTEM CONFIGURATION When X1 turns ON the programmable controller transfers K10 to VAR1 device DO X1 turns ON T
39. M POU 01 Program on the Project view to Parameter display the POU_01 PRG Program Structured PLC Parameter mou Ladder FBD screen a Intelligent Function Module Global Device Comment i e dois Program Setting POU B Program i POU 01 Double click it Local Lael iy FB FUN Structured Data Types ha Local Device Comment Device Memory Device Initial value NAM EN ENO TC0 LTOoil 10 _T alue To the next page 3 42 3 7 2 Previewing a program 3 Printing Broje Edt Find Replace Compile View 3 Select Project Print Window Preview to Ht P display the Print Window Preview screen Ctrl o Ctrl s Save Bs Compress Unpack NOI OVERVIEW Delete verify Project Revision Change PLC Type Change Project Type Object Intelligent Function Module Open Other Data CREATED PROGRAM AND SYSTEM S9 CONFIGURATION Export to GX Developer Format File Library Security Print J Ctrl P Print Preview B Print Window Printer Setup The Latest File Start GX Developer z Exit Q STRUCTURED LADDER CREATING PROGRAM IN FBD LANGUAGE 4 After checking the contents click the button to print the program Click the _ s button to close the Print Window Preview screen PROGRAM IN ST CREATING Q1 LANGUAGE Program 6 30 2009 Library Name Data Name POU 01 gt F FO og Z
40. O T 1 Select Project Printer Setup to display the amp z9 Dy Hew sali Printer Setup screen 3 p Open Ctrl O Close 2 e Save Ctrl S Save As 5 lt Lu Compress Unpack gt A e rn gl ol ssa 1 as Delete 2 Verify E lt e LL Y Q Project Revision D as s m Change PLC Type Change Project Type Object Intelligent Function Module gt Open Other Data b Export to GX Developer Format File Library gt Security b GH Print 2 Ctrl P Print Preview B PROGRAM IN ST CREATING Q1 LANGUAGE Print Window Print Window Preview Printer Setup h The Latest File Start GX Developer z Exit Q gt AO og Zn Lu T co Oz 9 MC O O eal en em 2 Select the Printer Paper size Orientation etc dodi After the setting click the button to close Name Properties g the Printer Setup screen Status Ready Type Where Comment Paper Orientation Size B4 Portrait Source Automatically Select C Landscape Network Cancel 3 7 1 Setting the printer 3 41 neon GX Works2 3 CREATING PROGRAM IN STRUCTURED LADDER FBD LANGUAGE 3 7 2 Previewing a program You can display a program in the image of printing 1 Click Project in the view selection area on the Navigation window to display the Project view x 2 Double click POU Program T
41. OGRAM BLOCKS 5 2 6 Setting labels Refer to the following section for the global label setting procedures Refer to the following Setting global labels for settings gt 3 2 5 Setting labels Refer to the following manual for the details on global local label setting procedures lt 3 GX Works2 Version 1 Operating Manual Structured Project Refer to the following manual for the details on programming of global labels and local labels MELSEC Q L F Structured Programming Manual Fundamentals B Setting global labels is Global Label Setting Global BEE x E T Oo reum bwon po MEN o r Upper LS of water tank Bit Pe Tea powng output Bt Ie VAR mwaterreil output Bit po NT XQXl MAH GLOBAL Replacement indicato lamp Bt Pet MAR GL BAL m Cowmter contact BE es VAR GLOBAL E i eaa a I SS VAR GLOBAL m Ceunter cument value QWordSiged cN0 ew VAR GLOBAL poon EE qo IDUU BBBB o zi C System label is reserved to be registered System label is reserved to be released C The system label is already registered to the system label database abel reflection to the system label database is required lease execute Reflect to System Label Database Reservation to Release System Label System Lab To execute Online Program Change execute Online Program Database Mot Reflected Change and save Import Sy
42. P on the Function Block Selection window drag it and drop it in a desired position to position MOVP there Tc Ds Draw a grid line on the left figure position 1 using eee the procedure described in the step 3 Click of s and d and set the input and output variables Settings e S 10 e d VAR1 1 The label VAR1 is set in Section 3 2 5 To the next page 3 2 6 Creating a program 3 15 ic GX Works2 3 CREATING PROGRAM IN STRUCTURED LADDER FBD LANGUAGE V Point Selecting a label from the Label Registration Selection screen You can input a label also by selecting it from the Label Registration Selection screen Perform the following procedure to display the Label Registration Selection screen Select Edit List Operands Click List Operands Refer to the following manual for the details on the Label Registration Selection screen GX Works2 Version 1 Operating Manual Structured Project Label Registration Selection dete Narre NARI Select from Registered Label Scope to Find Globali Label Setting Information Type Classification simple Data Types Scope to Register Globali SR ANY r Class IT S 1 Select a label to be used Data Type Word Signed Device v Constant Comment Sets the selected label to the program editor Minimize dialog after applying 2 Click the Apply button to set the selected Displaying
43. S0 You can select Function MOVP on the OUT T Y 0 TCO 10 i MOVP X1 10 VARI Function Block Selection window MOVP X2 20 VARI Settings e MOVP X2 20 VAR1 1 The label VAR1 is set in Section 4 2 5 S POU 01 PRG Program ST 4 6 4 2 6 Creating a program 4 2 Creating a Project 4 2 7 Compiling a program Refer to the following section and manual for compiling s 3 2 7 Compiling a program s GX Works2 Version 1 Operating Manual Structured Project 4 2 7 Compiling a program NOI OVERVIEW CREATED PROGRAM AND SYSTEM Q CONFIGURATION CREATING PROGRAMIN STRUCTURED LADDER aN FBD LANGUAGE PROGRAM IN ST CREATING C1 RENAN S gt F FO OF Za LLI To c o Oz 9 MC O O eal en ic GX Works2 4 CREATING PROGRAM IN ST LANGUAGE 4 3 Writing a Project to the programmable controller Refer to the following section for the procedure to write a project to the programmable controller CPU 3 3 Writing a Project to the programmable controller 4 4 Monitoring Operations Execute Monitor to check the operations Note that some screen shot colors have been changed for printing convenience GX Works2 is able to simulate the programmable controller operations in offline mode Refer to the following manual for the simulation function 3 GX Works2 Version 1 Operating Manual Common 4 4 1 Monitoring a program 1 Click Project i
44. Station Other Station i Single Network Co existence Network PLC Direct Coupled Setting Connection Test Time Out Sec 30 Retry Times 9 O mednet PLC Type Detail ion CC IE Cont CC IE Field Ethernet CC Link C24 NET 10 H System Image 1 b Phone Line Connection C24 ice CCIE Cont CCIE Field Ethernet CC Link NET 10 H Accessing Host Station a CPU Setting r Target System j 3 3 Target PLC Not Specified eet To the next page 3 22 3 3 1 Connecting the personal computer to the programmable controller Transfer Setup Connection1 al CC IE Cont NET 10 H Board PLC CC IE Cont Module NET 10 H Module Ethernet CC IE Field Q Series NET II PLC Board Board Bus Board Board Ethernet C l l C k l t eld CCIE Field Module ocal Communication Head Module EB Sdule fa Li No Specification Other Station Time Out Sec 30 Retry Times 0 CCIE Cont CC IE Field Ethernet NET 10 H Single Network PLE Mode QCPU Q mode Connection Channel List PLC Direct Coupled Setting Connection Test PLC Type Detail Other Station Co existence Network CCIECont CCIE Field Ethernet NET 10 H Accessing Host Station Multiple CPLI Setting 3 J 3 3 Target PLC Not Specified 18 2936304 MELSOFT Application CC Link C24 System Image 3 si Phone Line Connection C24 Cancel CC Link C24 1 Succe
45. T co Oz 9 MC O O eal en i GX Works2 4 CREATING PROGRAM IN ST LANGUAGE Point Monitor status GX Works2 displays the Monitor status while it is executing the work window monitor The Monitor status disappears when GX Works2 stops all types of monitoring The Monitor status indicates the programmable controller CPU simulator scan time RUN STOP status etc Scan status Select the Local Device monitor 0 300rms Local Device nok Executed USER status ERR status RUN STOP status Connection status Refer to the following manual for the Monitor status L GX Works2 Version 1 Operating Manual Common Monitor status display 9 Switching of the current value display between decimal and hexadecimal You can switch the current value display between decimal and hexadecimal using the following procedure Procedure to switch the current value display to decimal Select Online Monitor Change Value Format Decimal Procedure to switch the current value display to hexadecimal Select Online Monitor Change Value Format Hexadecimal Refer to the next page for the test operation Test operation Forcing a contact ON OFF Double click a monitored device or label while pressing the snis key to force a device in the programmable controller ON OFF Changing the current value of a word device Double click a monitored word device to display the Modify Value screen where you can change the
46. THIS MANUAL Section 1 Section 2 2 Section 3 Section 3 2 1 Section 3 2 2 Section 3 2 3 Section 3 2 5 Section 3 2 6 Section 3 2 7 Section 3 3 1 Section 3 3 2 Section 3 4 1 Section 3 4 2 Section 3 7 2 Section 4 Section 4 2 6 Section 4 4 1 Section 4 7 Section 5 Section 5 2 5 Section 5 2 6 Section 5 4 1 Section 5 7 Model Addition Q00J Q00 Q01 Addition MANUALS Section 1 1 Correction MANUALS Section 3 1 Section 3 2 Section 3 3 Section 3 4 Section 3 5 Section 3 6 Section 3 7 Section 3 8 Section 3 9 Section 4 1 Section 4 2 Section 4 4 Section 4 7 Section 5 1 Section 5 2 Section 5 4 Section 5 7 Correction SAFETY PRECAUTIONS Section 1 2 Section 3 2 2 Section 3 2 3 Section 3 2 5 Section 3 2 6 Section 3 7 1 Section 3 7 2 Section 3 7 3 Section 3 8 Section 4 9 Section 5 2 6 Section 5 9 Model Addition L02 L26 BT Addition CONDITIONS OF USE FOR THE PRODUCT Correction MANUALS GENERIC TERMS AND ABBREVIATIONS IN THIS MANUAL Section 3 2 1 Section 3 2 2 Section 3 2 3 Section 3 2 4 Section 3 2 5 Section 3 2 6 Section 3 2 7 Section 3 3 2 Section 3 4 1 Section 3 4 2 Section 3 5 Section 3 6 Section 3 7 2 Section 3 7 4 Section 4 2 5 Section 4 2 6 Section 4 4 1 Section 5 2 5 Section 5 2 6 Section 5 2 7 Section 5 4 1 Correction SAFETY PRECAUTIONS MANUALS GENERIC TERMS AND ABBREVIATIONS IN THIS MANUAL Section 3 2 1 Section 3 2 2 Section 3 2 3 Section 3 2 7 Section 3 3
47. USE FOR THE PRODUCT 1 Mitsubishi programmable controller the PRODUCT shall be used in conditions i where any problem fault or failure occurring in the PRODUCT if any shall not lead to any major or serious accident and ii where the backup and fail safe function are systematically or automatically provided outside of the PRODUCT for the case of any problem fault or failure occurring in the PRODUCT The PRODUCT has been designed and manufactured for the purpose of being used in general industries MITSUBISHI SHALL HAVE NO RESPONSIBILITY OR LIABILITY INCLUDING BUT NOT LIMITED TO ANY AND ALL RESPONSIBILITY OR LIABILITY BASED ON CONTRACT WARRANTY TORT PRODUCT LIABILITY FOR ANY INJURY OR DEATH TO PERSONS OR LOSS OR DAMAGE TO PROPERTY CAUSED BY the PRODUCT THAT ARE OPERATED OR USED IN APPLICATION NOT INTENDED OR EXCLUDED BY INSTRUCTIONS PRECAUTIONS OR WARNING CONTAINED IN MITSUBISHI S USER INSTRUCTION AND OR SAFETY MANUALS TECHNICAL BULLETINS AND GUIDELINES FOR the PRODUCT Prohibited Application Prohibited Applications include but not limited to the use of the PRODUCT in Nuclear Power Plants and any other power plants operated by Power companies and or any other cases in which the public could be affected if any problem or fault occurs in the PRODUCT e Railway companies or Public service purposes and or any other cases in which establishment of a special quality assurance system is required by the P
48. Y Assignment Default 3 2 Creating a Project 1 Double click Parameter PLC Parameter on the Project view to display the Q Parameter Setting screen 2 Click the button to determine the settings and close the screen The parameters remain unchanged from the initial setting in the example in this manual Refer to the following manuals for the details on parameter setting L s GX Works2 Version 1 Operating Manual Common CPU Manual 3 CPU Programming manual 3 Manual of the Network being used 3 2 4 Setting parameters NOI OVERVIEW CREATED PROGRAM AND SYSTEM CONFIGURATION STRUCTURED LADDER CREATING PROGRAM IN FBD LANGUAGE PROGRAM IN ST Q1 LANGUAGE CREATING S gt F FO OF Za LLI To c o Oz 9 MC O O eal en ic GX Works2 3 CREATING PROGRAM IN STRUCTURED LADDER FBD LANGUAGE 3 2 5 Setting labels Set Global Labels L 1 Double click Global Label Global1 on the PES i Mb Project view to display the Global Label Setting 18 p ric Paranee screen amp Network Parameter Hin Remote Password Intelligent Function Module S Global Device Comment 8 ogram 5 ig POLI B Program M POU 01 i Program Local Label di FB FUN Structured Data Types ha Local Device Comment Device Memory Device Initial Value is Global Label Setting Global EIE 2 Select the Class from the list box on the a
49. a i z m Progra Delete co Local L Osu ae LOCA Rename On E M refilling rw lt Progra Open Task Setting D EE D Local L Z Z iom 9m Open Uncompiled Data oc 5 indicating d m a Progra ET Property O Lo m a Local Laber di FB FUN Structured Data Types B Local Device Comment Device Memory Device Initial Value Task Setting Task_01 Sci 6 Click the button to display the Program Program Name Comment Selection screen IC PROGRAM IN ST Oa LANGUAGE CREATING 1 pouring 2 refilling 3 indicating 33 Y X Os 28 FO oc Z TT X 1289 oP 9 ME Oo oO i co v f Select the program block name Libraries Programs Click the button to register the selected Cancel program block to the Task Setting screen and close the Program Selection screen lt Project gt Repeat the steps 6 and 7 and register three program blocks for the tea pouring operation water refilling operation and warning indicating operation in the following order to the Task Setting screen Settings Libraries Select lt ALL gt Program Select the following programs in this order 1 pouring 2 refilling 3 indicating Refer to the following manual for the details on registering a program block to a task gt GX Works2 Version 1 Operating Manual Structured Project 5 2 5 Preparing creating the program configuration haer ics GX Works2 o CREATING TWO OR MORE PR
50. a project using Structured Ladder programs Refer to Section 3 2 8 for creating an FBD program NOI OVERVIEW 3 2 1 Starting GX Works2 R 1 Select the software package menu to be Administrator started cd Ber Set Program Access and Defaults W windows Catalog E mail Outlook Express D Windows Update CREATED PROGRAM AND SYSTEM i9 CONFIGURATION fg MELSOFT Application fm GX Works2 gt TE GX Works2 9 Gx Works2 Help E STRUCTURED LADDER CREATING PROGRAM IN FBD LANGUAGE A Log Off g Shut Down 2 The selected software package is started PROGRAM IN ST CREATING Q1 LANGUAGE S gt ot FO og Zn Lu T o Oz 0 X O O Ej en icon on the desktop to start the software package E Mv Documents x Jg Double click the GX Works2 icon My Computer My Mebwork Places ru Internet Explorer 3 2 1 Starting GX Works2 3 3 Er GX Works2 3 CREATING PROGRAM IN STRUCTURED LADDER FBD LANGUAGE 3 2 2 Screen configuration in GX Works2 The GX Works2 screen has the following configuration Select View or Hide in the View menu for each of the Toolbar Status bar Navigation Window Function Block Selection window and Output window Refer to the following manual for the details on the GX Works2 screen configuration s GX Works2 Version 1 Operating Manual Common Title bar GE MELSOFT Series GX Works2 Untitled P
51. al Structured Project Specify global labels 5 2 7 Creating a program Create the program block for the tea pouring NOI OVERVIEW CREATED PROGRAM AND SYSTEM Q CONFIGURATION Z LL za oa ot aj O Q o ul 5 amp 2 z p KO Se X Lr Ow FBD LANGUAGE PROGRAM IN ST Oa LANGUAGE CREATING X Os 28 FO oc a TT ir 1289 oP 9 ME oO oO i co ics GX Works2 o CREATING TWO OR MORE PROGRAM BLOCKS mM Creating the program block for the water refilling operation Create the program block for the water refilling operation shown in Section 5 1 2 1 Double click POU Program refilling gt Program on the Project view to display the refilling PRG Program Structured Ladder FBD screen Project DP 3 59 2 Ath f Parameter E PLC Parameter i Network Parameter i Remote Password a4 Intelligent Function Module Global Device Comment Global Label Globali y Program 9 pouring Program 2 Lacal Label E Nj refilling 9 indicating Program Ed Lacal Label d FB FUN Structured Data Types ha Local Device Comment a Device Memory Device Initial value Double click it 2 Create the program block for the water refilling kc refilling PRG Program Structured Ladder FBD OLA i i operation shown in Section 5 1 2 Refer to the following section and man
52. and STOP using remote S28 Register Cancel Display Module Menu l Monitor Mode F3 operation 3 watch P GAY Monitor write Mode shift F3 Refer to the next page for remote operation Local Device Batch Read Save CSV i m un Stop Monitoring Alt F3 Change Value Format Decimal Change Value Format Hexadecimal E Device Buffer Memory Batch zy LLI za oa ot aj O Q o ul 5 amp 2 z p KO i a O Lr Ow FBD LANGUAGE Program List Interrupt Program List Monitor Condition Setting Monitor Stop Condition Setting Entry Ladder Monitor Delete All Entry Ladder Change Instance Function Block Bed SFC All Block Batch Monitoring TON SFC Auto Scroll PROGRAM IN ST CREATING Oa LANGUAGE To the next page Y Oz 28 FO OF a TT T x 289 oP 9 d Oo oO co 5 4 1 Monitoring a program 5 13 Er GX Works2 5 CREATING TWO OR MORE PROGRAM BLOCKS You can switch the programmable controller status between RUN and STOP using remote operation as follows The Settings of the remote operation may vary depending on the programmable controller used Refer to the following manual for the details of the remote operation GX Works2 Version 1 Operating Manual Common Select Online Remote Operation to display the Remote Operation screen You can switch the programmable controller status between RUN and STOP on this screen
53. arameters NERO E Dm 5 4 D 5 4 5 5 5 6 5 7 5 8 5 9 5 2 5 Preparing creating the program configuration 5 2 6 Setting labels ccccccccssssseecessseeeeseeseeesseeees 5 2 7 Creating a program cccssscccceseeeeeeceeseeeeseeeees 5 2 8 Compiling a program eeeeeeeeeeeeen Writing a Project to the programmable controller Monitoring Operations 5 4 1 Monitoring a DFOGF amp ITI ssrcssscsccecctticetsnnsascnnronccedes 5 4 2 Batch monitoring of device values Diagnosing the programmable controller Reading a Project from programmable controller Printing Saving a Project Exiting GX Works2 B MANUALS Related manuals are separately issued according to the purpose of their functions in GX Works2 Related manuals The manuals related to this product are shown below Refer to the following tables when ordering required manuals 1 Operation of GX Works2 Manual name GX Works2 Version 1 Operating Manual Common Explains the system configuration of GX Works2 and the functions common to a Simple project and Structured project such as parameter setting operation method for the online function Sold separately GX Works2 Version 1 Operating Manual Simple Project Explains operation methods such as creating and monitoring programs in Simple project of GX Works2 Sold separately GX Works2 Version 1 Operating Manual Simple Project Function Block Explains m
54. au x 11 EH ENO caumar aail ocail value 2 Fepbiscemeni indiceriar Em p 1 01 7 1 3 Tem bmi check buan RET 11 EH EMO d aumter cail 4 Caumer curreri walu oumerwalue_manitauring CREATED PROGRAM AND SYSTEM Q CONFIGURATION Ze za oa oa aj O Q o ul 5 amp 2 z p KO i a O Lr Ow FBD LANGUAGE 5 8 Saving a Project Refer to the following section for the project saving procedure s 3 8 Saving a Project 5 9 Exiting GX Works2 PROGRAM IN ST CREATING Oa LANGUAGE Refer to the following section for the project ending procedure gt 3 9 Exiting GX Works2 Y Os 28 ro og Z TT T x 289 oP 9 ME Oo oO i co Microsoft Windows are registered trademarks of Microsoft Corporation in the United States and other countries Ethernet is a registered trademark of Xerox Corp Other company names and product names used in this document are trademarks or registered trademarks of respective companies SH NA 080788ENG P 1506 KWIX MODEL GXW2 HOW O KP E MODEL CODE 134223 MITSUBISHI ELECTRIC CORPORATION HEAD OFFICE TOKYO BUILDING 2 7 3 MARUNOUCHI CHIYODA KU TOKYO 100 8310 JAPAN NAGOYA WORKS 1 14 YADA MINAMI 5 CHOME HIGASHI KU NAGOYA JAPAN When exported from Japan this manual does not require application to the Ministry of Economy Trade and Industry for service transaction permission Specifications subject to change without notice
55. ble controller status baa atid eld deed between RUN and STOP using remote i operation C gt gt Point in the step4 Watch Local Device Batch Read Save CSV BR stop Monitoring Alt F3 Change Value Format Decimal Change Value Format Hexadecimal m Device Buffer Memory Batch Program List Interrupt Program List Monitor Condition Setting Monitor Stop Condition Setting Entry Ladder Monitor Delete All Entry Ladder Change Instance Function Block ox SFC All Block Batch Monitoring TOM SFC Auto Scroll 5 4 2 Batch monitoring of device values Refer to the following section for the Batch monitoring of device values s 3 4 2 Batch monitoring of device values 5 5 Diagnosing the programmable controller You can check the programmable controller RUN STOP status and error status Refer to the following section for the diagnosis procedure lt gt 3 5 Diagnosing the programmable controller 5 6 Reading a Project from programmable controller Refer to the following section for the procedure to read a project from the programmable controller 3 3 6 Reading a Project from programmable controller 5 18 5 4 2 Batch monitoring of device values 5 7 Printing 9 7 Printing For the Printing a project procedure refer to the following s 3 7 Printing NOI OVERVIEW Program T 1 2008 Library Narne Data Name indicatina Waer redill ampa
56. checked Libraries Type Class Types 1 Set Libraries Type Class Types and Array Element in this order After completing the setting click the button Directly input the Device on the Global Label Setting screen Inputting Device in GX Works2 automatically sets Address In the same way inputting Address automatically sets Device Settings e Device DO 3 2 5 Setting labels NOI OVERVIEW CREATED PROGRAM AND SYSTEM SS CONFIGURATION STRUCTURED LADDER CREATING PROGRAM IN FBD LANGUAGE PROGRAM IN ST CREATING Q1 LANGUAGE S gt AO og Zo LLI T co Oz 9 MC O O mr m ic GX Works2 3 CREATING PROGRAM IN STRUCTURED LADDER FBD LANGUAGE Global Label Setting Global l Class 1 VAR_GLOBAL v LJ System label is reserved to be registered System label is reserved to be released To execute the Reservation to Register Release for the system label reflection to the system label database is required Please execute Reflect to System Label Database To execute Online Program Change execute Online Program Change and save lt Re ase System Label 6 Setthe Constant Comment and Remark on the Global Label Setting screen Relation with System Label System Label Name and Attribute are not used in examples shown in this manual Settings e Constant When the label class is VAR_GLO
57. current value Modify Value Input the numeric value to be set and Device Label Buffer Memory click the s7 button to change the Device Label current value to the input numeric value Data Type Word Signed Value 10 Settable Range 4 32 766 to 327567 Execution ResulE lt Execution Result 4 10 4 4 1 Monitoring a program 4 4 Monitoring Operations V 5 Turn ON inputs XO X1 and X2 in the programmable controller and check the following operations You can turn ON inputs XO X1 and X2 using the test operation above NOI OVERVIEW e When XO turns ON the programmable controller turns ON Y 10 and then turns OFF Y10 1 second later ST 9i be MAI AND NOT 2M VARI Y10 remains ON MOVP x2 20 VARI XO turns ON for 1 second CREATED PROGRAM AND SYSTEM Q CONFIGURATION YARI 10 CREATING PROGRAMIN STRUCTURED LADDER aN FBD LANGUAGE LDP TRUE KO OR Y10j our T v10 rcd 10 X2 turns ON PROGRAM IN ST C1 RENAN CREATING l Read From PLC 2787 Tet We e 6 Select Online Monitor Stop S o BE o Monitoring to stop pause the monitor status Eg tis Open all Bacal sae on the POU_01 PRG Program ST screen Z9 Redundant Operation x LLI O Password Keyword gt 1 a a c bs A OE You can click B Stop Monit
58. e Text language ST Structured Text This text language allows you to describe controls by syntax including alternative sequences offered by conditional sentences and repetition offered by repetition sentences in the same way as high level languages such as the C language Accordingly you can briefly create programs easy to look at B Structured Project In a Structured Project you can create programs by structured program By dividing controls into small portions and making parts of common contents you can create programs easy to understand and applicable to many cases by structured program You can create sequence programs using the following programming languages Graphic languages e Ladder Use this graphic language to describe programs as ladders consisting of contacts coils etc using the same operating procedures as the conventional GX Developer e Structured Ladder FBD otructured Ladder is created based on the relay circuit design technology Because this language is easy to understand intuitively it is used generally for sequence programs Every ladder always starts from a base line on the left Structured Ladder consists of contacts coils function blocks and functions which are connected each other with vertical lines and horizontal lines FBD connects functions and function blocks with ruled lines to describe ladders e SFC Use this graphic language to describe sequence control in a way easy to understand Desc
59. e Buffer Memory Batch Monitor screen Set a device to be monitored Select DO in this example Setting of Device e Device Select Device Name e Device Name DO Click the petais button to display the Display Format screen V To the next page 3 34 3 4 2 Batch monitoring of device values 3 4 Monitoring Operations 4 Set the Display Format of the device to be z Display Format Lu Monitor Format Display Value Switch Mo of Points m O n Ito red z C Bit 16bk Integer gis Points of word device that display in 1 line LLI Por rie Bk Device Bit and Word Format Setting on the Display Format screen 5 Bit and Word C 10Points 16 Points C RealNumber s26t Monitor Format Bit and Word Bit Multi point C Reall r 64t Word Device Word Multi point Format Dis la p 1 6 bi t In te er 2 C Word Multipoint ASCII C pp 8Points C 10 Points p y j g e Value DEC Display Examples Bit Order O F owitch No of Points Bit Device Bit and Word Format 16 Points Word Device Word Multi I point Format 8 Points j After the setting click the button to close the Display Format screen Refer to the following manual for the details on Display Format s GX Works2 Version 1 Operating Manual Common m amp re o5 an ow ojoj ojojo omm os oo kn os e os e ESoBoUc ig ojele jo CREATED PROGRAM AND SYSTEM 99 CONFIGURATION n o
60. e sl o ol ste pan edari _ a o execute the Reservation ta Register Release for the system abel reflection to the system label database is required lease execute Reflect to System Label Database To execute Online Program Change execute Online Program Change and save Point 3 2 Creating a Project 4 Directly input the Date Type on the Global Label Setting screen Settings Date Type Word Signed You can click to display the Type Selection screen and then select the Types on this screen Data Type Selection Libraries Data Type Double Word 5igned wWaord LInsigned Bit String 16 bit Double Word Unsigned Bit String 32 bit FLOAT Single Precision Type Class Simple Types Structured Data Types Function Blacks Arrav Element ARRAY Element c s Global Label Setting Global1 Class Label Name Constant VAR GLOBAL v Data Type Device D0 b Thi L to L System label is reserved to be registered _ System label is reserved to be released To execute the Reservation to Register Release for the system label reflection to the system label database is required Please execute Reflect to System Label Database To execute Online Program Change execute Online Program Change and save Reservation to Register Systerr To the next page Settings 1 ALL 2 Simple Types 3 Word Signed 4 Array Element Not
61. eb 1 Select Diagnostics PLC Diagnostics to display the PLC Diagnostics screen Ethernet Diagnostics CC IE Control Diagnostics CC IE Field Diagnostics MELSECNET Diagnostics CC Link Diagnostics Sensor Device Monitor System Monitor Online Module Change PLC Diagnostics 13 The function menu is extended from the PLC image ion w PLC Status Information ange the window size and position after error ju dot dq Year MonthjDay Time 16 6 z o Description Connection Channel List 1 Connection Channel List Displays the information on connection between the personal computer and the programmable controller CPU System Image Displays visually the Connection Channel List 2 E T Displays the model name operation status and switch status connected station 3 Displayed information Select a radio button to display Error Information Current Error and Error History Continuation selection Error Information PLC Status Information Serial Communication Error Check this check box to reduce the PLC Diagnostics screen size and adjust the display position at the time of Error Jump 5 Current Error Displays the current CPU error information 6 Error History Displays the error history 4 Setting for Error Jump Jumps to the ladder step number which contains the error corresponding to the currently selected 7 Enordump error number 8
62. ed Ladder FBD tool bar Refer to 3 1 2 for an FBD program Point Displaying or hiding left power rail Even while left power rail are displayed you can create an FBD program by ignoring left power rail If you try to delete a left power rail to which a function etc is already connected the left power rail is not deleted Delete a connection to the left power rail first and then delete the left power rail It is not possible to create programs in the symbolic expression using FBD When using FBD create programs in the functional expression using functions and operators Creating two or more ladders in one ladder block When creating an FBD program you can create two or more ladders in one ladder block In this case a warning is displayed during compiling It is possible to hide this warning by adding an optional setting Select Tool Options to display the Options screen On the Options screen select Compile Output Result Disable Warning Codes enter C2034 and click the 8 button gt button 3 20 3 2 8 Creating an FBD program 3 3 Writing a Project to the programmable controller 3 3 Writing a Project to the programmable controller Write a project to the programmable controller CPU a ad Lu 3 3 1 Connecting the personal computer to the programmable 6 controller 2 Connect the personal computer and a programmable controller with a cable and set the connection channel CREATED PROGR
63. ed position to position OUT T there Click of TCoil and TValue 2 and set the input variables Settings e TCoil TCO e TValue 10 1 Set a coil of the timer to TCoil 2 Set the set value of the timer to T Value 3 TCO indicates a coil of the timer TO To the next page 3 14 3 2 6 Creating a program 3 2 Creating a Project E POU_01 PRG Program Structured Ladder FBD 11 Draw a grid line 1 using the procedure pu described in the step 3 e After drawing a grid line click Select Mode on the Structured Ladder FBD toolbar to specify the Select mode NOI OVERVIEW 1 2 Select a ladder block and click New Ladder Block After on the Structured Ladder FBD toolbar to add a ladder block CREATED PROGRAM AND SYSTEM SS CONFIGURATION Point Create a one Structured Ladder program in one ladder block STRUCTURED LADDER FBD LANGUAGE CREATING PROGRAM IN ESE REO E 13 Click AF Open Contact on the Structured Ladder FBD toolbar and then move the cursor i to a desired position to display an open contact TC0 Tesi there 10 Tvalue PROGRAM IN ST Q1 LANGUAGE CREATING Click the open contact to connect it with the left bus line and enable setting of a variable Settings e Variable X1 gt FO og Za LLI T co Oz 9 MC O O mr m 14 Select Function MOV
64. edundant Operation Password Keyword gt Soft Security Key Management PLC Memory Operation gt Delete PLC Data PLC User Data gt Export to ROM Format Program Memory Batch Download Latch Data Backup gt PLC Module Change gt Set Clock Register Cancel Display Module Menu Monitor Gy Monitor Mode F3 Watch gt S39 Monitor write Mode Shift F3 Local Device Batch Read Save CSV Lis Start Monitoring All Windows id Stop Monitoring All Windows m Start Monitoring m Stop Monitoring Alt F3 Change Value Format Decimal Change Value Format Hexadecimal ED Device Buffer Memory Batch x Program List Interrupt Program List Monitor Condition Setting Monitor Stop Condition Setting Entry Ladder Monitor Delete All Entry Ladder Change Instance Function Block SFC All Block Batch Monitoring Device Buffer Memory Batch Monitor 4 x IC Set Value Reference Program Display Format Modify Value 2 i 32 82 x ASC g 16 Details Open Save i F E D C B A 9 8 7 6 sesen H Restrictions Set a device address to be monitored Label Name is not available h Batch monitoring of device values Select Online Monitor Device Buffer Memory Batch to display the Device Buffer Memory Batch Monitor screen Or click roth Device Buffer Memory Batch Monitor to display the Devic
65. elete Project z Po ig Ab Parameter rwy PLC Parameter B Network Parameter rr Remote Password ned Intelligent Function Module Global Device Comment H Global Label z9 Program Setting Z LLI za oa ot aj O Q o ul 5 amp 2 z p KO i ae X Lr Ow FBD LANGUAGE E48 POU X k Pr Lol il FE FUN Local Devi Rename Device Memor Device Initial PROGRAM IN ST Oy LANGUAGE CREATING X Os 28 FO oc Z TT Ir 1289 oP 9 d Oo oO al co 2 Click the button to delete the selected data To the next page 5 2 5 Preparing creating the program configuration 5 5 ic GX Works2 o CREATING TWO OR MORE PROGRAM BLOCKS 3 Select POU Program on the Project view right click Program and then select the menu item Add New Data The New Data screen appears Project DP 08 bb 21 Ah zm Parameter i rw PLC Parameter 2 BE Network Parameter gig Remote Password of Intelligent Function Module Global Device Comment Global Label za Program Setting L ag Point When creating a new project GX Works2 automatically creates POU 01 PRG under POU Pool Because the language Structured Ladder FBD used in this chapter is same as the language adopted in POU 01 PRG you can use POU 01 PRG by changing its data name instead of deleting it 4 Set the Data Type Language and Data Name Cl
66. ening an existing project The Opening an existing project function has the single file format and workspace format screens Refer to the following manual for the details on the existing project opening procedure s GX Works2 Version 1 Operating Manual Common 1 Perform either operation below e Select Project Open e Click Open 2 The Open Project screen appears Enter the folder where the project is saved Look in C3 Sample eaae F Hii Projecti xul HB Project2 qxw Specify the existing project to be opened The selected project is displayed in File name i E Projecti OR m Places Cancel Open a Workspace Format Project MELSOFT Navigator supports this format 3 Click the button to open the selected project 3 6 3 2 3 Creating a new project 3 2 4 Setting parameters Set parameters Project PP G3 7 B ig An i Parameter P h iB Network Pariieter Hin Remate Password Intelligent Function Module 3 Global Device Comment haat Global Label Program Setting Pou Program Mj POU n1 W Program H Local Label di FBIFUN Structured Data Types B Local Device Comment Device Memory Device Initial value Double click it PLC Name PLC System PLC File PLCRAS Boot File Program SFC Device 1 O Assignment Multiple CPU Setting Click the End button after finishing the setting Acknowledge X
67. es already compiled program blocks also 6 8 Target program to be compiled Os E A U Build Converts non compiled program blocks among program blocks registered in the task into lQ d sequence program Does not compile already compiled program blocks A m 20 Rebuild All Converts all program blocks registered in the task into sequence program OTO E i Z LLI aaa e Gine Debug Diagn 1 Select Compile Rebuild All to execute T Rebuild All EUN e a A az You can click amp Rebuild All to execute Rebuild BFE Esc my on All reo OWL MELSOFT Series GX Works2 2 The screen shown on the left appears te ee Rebuild all automatically assigned devices will be Click the button to execute Rebuild All re evaluated and devices may change Currently the Following option setting is checked Clear the device ranges set within the Device label automatic assign setting to D In that case values From the previous program will remain in the previously assigned devices For safety ensure that device assignments match by clearing all device memory latched data and File registers PROGRAM IN ST CREATING Q1 LANGUAGE v Check for duplicated coils perform consistency pair check and other ladder checks after Rebuild All is complete Are you sure you want to Rebuild All O c Q LLI gx c Oo Oz 9 MC O O mr m l 3 When finishing Rebuild All GX Works2 Re R
68. esi Duane C displays the result on the Output window 5 ntonsn ore RR pa If an error occurs check the contents eliminate the cause of error and then execute Build or 5 Information Counter VAR range 0 point used Rebuild All as described in the step 1 When an error is not detected 3 2 7 Compiling a program 3 19 i GX Works2 3 CREATING PROGRAM IN STRUCTURED LADDER FBD LANGUAGE Point Make sure to compile the created or edited program to make it a sequence program executable in the programmable controller CPU e Warning C9062 is compiled correctly as a program and can be monitored Compile status checking method You can check the compile status on the Project view fs 5 12 ath 24895 Parameter PLC Parameter xi fy Network Parameter Hin Remote Password 3 Intelligent Function Module Global Device Comment Global Label a foam e Each non compiled portion is displayed in red Ex Local Label di FB FUN B Structured Data Types Local Device Comment Device Memory f Device Initial Value 3 2 8 Creating an FBD program Create an FBD program using the same procedure for Structured Ladder programs without using left power rail on the left for Structured Ladder Display or hide left power rail by selecting Edit on the menu bar selecting Ladder Symbol and clicking Left Power Rail Or hide Left Power Rail by clicking Left Power Rail on the Structur
69. ethods for such as creating function blocks pasting function blocks to sequence programs and operating FB library in Simple project of GX Works2 Sold separately GX Works2 Version 1 Operating Manual Structured Project Explains operation methods such as creating and monitoring programs in Structured project of GX Works2 Sold separately GX Works2 Version 1 Operating Manual Intelligent Function Module Explains operation methods of intelligent function module such as parameter setting monitoring programs and predefined protocol support function in GX Works2 Sold separately GX Works2 Beginner s Manual Simple Project Explains fundamental operation methods such as creating editing and monitoring programs in Simple project for users inexperienced with GX Works2 Sold separately 2 Structured Programming Manual name MELSEC Q L F Structured Programming Manual Fundamentals Explains the programming method types of programming languages and other information required to create structured programs Sold separately MELSEC Q L Structured Programming Manual Common Instructions Explains the specifications and functions of common instructions such as sequence instructions basic instructions and application instructions that can be used in structured programs Sold separately MELSEC Q L Structured Programming Manual Application Functions Explains the specifications and functions of application functions that can be used in str
70. f device label automatic assign setting Completed Symbolic Information Write Completed Write to PLC Completed Writing Completed When processing ends close this window automatically Close To the next page 3 3 2 Writing a project to the programmable controller Sa 277 Er GX Works2 3 CREATING PROGRAM IN STRUCTURED LADDER FBD LANGUAGE Online Data Operation 5 9 Click the cee button to close the epee sytem ios Online Data Operation screen EUM C Read Write C Verify a PLC Module i Intelligent Function Module Title Edit Data Delete Execution TargetData No Yes Parameter Program Select All Cancel All Selections Pie Size 2971 Bytes 2010 11 25 11 38 55 2212 Bytes 2010 11 25 11 38 53 564 Bytes O etat 2010 11 25 11 38 54 DN NOW oz SSS Sa a Necessary Setting No Setting Already Set Writing Size Free Volume Lise Volume 6 656Bytes Set if itis needed No Setting Already Set 74 240 40 448Bytes Refresh Execute Close Related Functions Remote Set Clock PLC User Data Write Title Format PLC Operation Clear PLC Memory Arrange PLC Memory Memory 3 3 2 Writing a project to the programmable controller 3 4 Monitoring Operations 3 4 Monitoring Operations Execute Monitor to check the operations In some monitor screen display examples colors are changed for the convenience of printing GX Works2 has the fu
71. g in the example in this manual Refer to the following manuals for the details on parameter setting C gt GX Works2 Version 1 Operating Manual Common s CPU Manual 5 CPU Programming manual t s Manual of the Network being used PROGRAM IN ST LANGUAGE Reference location leads to the reference location and reference manuals Click the End button after finishing the setting o o a a x Ww x o z x Oo Ol a a Section title Clarifies the section of currently 3 2 4 Setting parameters 3 7 opened page Since the above page was created for explanation purpose it differs from the actual page A 15 This manual also uses the following columns Point This explains notes for requiring attention or useful functions relating to the information given on the same page Restrictions This explains restrictions relating to the information given on the same page Symbols used in this manual The following shows the symbols used in this manual with descriptions and examples ME MELSOFT Series GX Works2 Untitled Project POU_01 PRG Program Structured Ladder FBD Project Edit Find Replace Compile view Online Debug Diagnostics Tool Window Help DEA S0 i6 o cae ex ER ER Ej 5 n FR LP 108 05 6 s I ELE ifs e 1 2 Q Parameter Setting 3 PFC Name PLC System PLC File PLCRAS Boot File Program SFC Device 1 O Assignment M
72. gram ST screen to input it there After that input the parameters of the function 3 Refer to the following manual for the details fan lt s GX Works2 Version 1 Operating Manual Structured Project LE at POU 01 PRG Program 5T E Global LabelSel d b F E Element Selection x ri ra E nc z ES M M e All Parts cw e ii LL 5 POU_01 PRG Program ST oX 3 4 10 51 0 E 3 SWRITE E E J WRITE s El J zMRD L o0 E LZNWR 0 2 Drop it EWE u E LDF z E x 253 fru PPICHE lt gt Q 1 Drag it Kes ST ST 3 Input OUT T Y10 TCO 10 directly and Miei iie OR Y10 AND NOT TSO click the key You can select Function OUT T on the Function Block Selection window Settings OUT T Y10 TCO 1 10 gt FO og Za LLI T co Oz 9 MC O O mr m 1 TCO indicates the coil of timer TO 4 Input MOVP X1 10 VAR1 directly and click Si POU_01 PRG Program ST Y10 LDP TRUE X0 OR 10 AND NOT TSO Enter t OUIT T Y10 TCO 10 the key MOVP XI 10 VAR You can select Function MOVP on the Function Block Selection window Settinas e MOVP X1 10 VAR1 2 2 The label VAR1 is set in Section 4 2 5 To the next page 4 2 6 Creating a program 4 5 Er GX Works2 4 CREATING PROGRAM IN ST LANGUAGE Daine O Selecting a label from the Label Registration Selection screen You can input a label also by selecting it from the Label
73. h gt Local Device Batch Read Save CS SRE 2 Setthe Target module and Target project on Connection Channel List REN the Online Data Operation screen After the setting click the button itle Target Detail Last Change a m T 2010 11 25 11 38 55 2010 11 25 11 38 53 a O Detail 2010 11 25 11 38 54 A w es Necessary Setting No Setting Already Writing Size 6 656Bytes um z a H fo Ww el a E E H Remote Operation Set Clock PLC User Data Write Title Format PLC Clear PLC Memory Arrange PLC Memory Memory Setting of the target module e Target module Select lt lt PLC Module gt gt Setting of the project e Symbolic Information Select Program Memory Device Memory in Target Memory and check Symbolic Information in Target Program Program File and MAIN are checked in PLC Data and change into gray Symbolic Information contains program files and variables e PLC Data Select Program Memory Device Memory in Target Memory and check PLC Network Remote Password Switch Setting in Target Do not check Global Device Comment or Device Memory V To the next page 3 26 3 3 2 Writing a project to the programmable controller 3 3 Writing a Project to the programmable controller Restrictions In the case of FXCPU e The symbolic information is displayed only in the FX3u and FX3uc Series version 3 00 or later In the case of
74. he programmable controller transfers K10 to VAR1 STRUCTURED LADDER CREATING PROGRAM IN FBD LANGUAGE When X2 turns ON the programmable controller transfers K20 to VAR1 device DO X2 turns ON The programmable controller transfers K20 to VAR1 PROGRAM IN ST Q1 LANGUAGE CREATING DE PE NEST aic 6 Select Online Monitor Stop o E iB dale Monitoring to reset the monitor status of the Pe eres Men SE POU 01 PRG Program Structured Ladder 82 DIE FBD screen uro Soft Security Key Management Om eee i You can click 8 Stop Monitoring to reset the Moi monitor status of the POU 01 PRG Program kid MD Structured Ladder FBD screen PLC Modul change TG f Set the programmable controller CPU to STOP o 4 Ed apo E uA oet the RUN STOP switch on the programmable B vemm controller CPU to STOP You can switch the programmable controller status 8 between RUN and STOP using remote EO operation D For the remote operation refer to the following a bee ee pE epe 3 4 1 Monitoring a program 3 33 ic GX Works2 3 CREATING PROGRAM IN STRUCTURED LADDER FBD LANGUAGE 3 4 2 Online Debug Diagnostics Tool Window Help Read from PLC gm mmm c P U write to PLC Verify with PLC er et x f Global Label Setting Remote Operation S R
75. ick the button to create a program block and close the window Hew Data Data Tvpe Program Block Data Mame pouring Repeat the steps 3 and 4 and create three program blocks for the tea pouring operation water refilling operation and warning indicating operation Program Language Settings u ILICE Data Type Select Program Block aak Tma e Data Name Input the following names DELI 4 1 pouring 2 refilling Inherent Property 3 indicating Use Macrocode use mcIMcR Use ENIENG e Language Select Structured Ladder FBD ce To the next page 5 6 5 2 5 Preparing creating the program configuration 5 2 Creating a Project 5 Select Program Setting No Execution Type MAIN Task 01 on the Project view right click the Task 01 and then select the menu item Open Task Setting Project f 33 3 5 2 Ah 485 Parameter p PLC Parameter BR Network Parameter NOI OVERVIEW Hig Remote Password i 4 i Intelligent Function Module The Task Setting task name window appears Global Device Comment Er Global Label 1 The Task Name is Task_01 for this example rs Program Setting gt oO d Initial Program YS Ee J Scan Program a uy OA lf Standby Program t e E O lif Fixed Scan Program EOL d Low Speed Program uj eO 5 J a No Execution Type O e O MAIN fee LER 3 a POL C Add New Data B Program 2s ix Co 9 pouring
76. ile result error information and warning information wj Status bar 3 2 Creating a Project 3 2 3 Creating a new project At first create a project z l S xd EE E ue 1 Perform either procedure below to display the i Chl4N New Project screen O P Open 5 Cr O e Select Project New 2 Close Click m New T z EM save Ckrl 5 e o ns Save s TS i 5 Compress Unpack PAS lt lt 528 Delete verifv 3 fines Project 2 Select the Series Module Type Project eo houma Type and Language from the list boxes for the new project to be created odule Type ozgH si I MA After the setting click the button Project Type structured Project Settin g S E ui e Series QCPU Q mode anguage Languag uL a Module Type Q02 Q02H Camel Project Type Structured Project e Language Structured Ladder FBD 1 Labels are always available in structured projects You do not have to check Use Label STRUCTURED LADDER CREATING PROGRAM IN FBD LANGUAGE PROGRAM IN ST CREATING Q1 LANGUAGE mn A H E L t TESS TSE edea EES eNom 3 GX Works2 creates a new project iDEA S E zp Meee i mme ifs e zn A Lb E B gt EO og Zn Lu T co Oz 9 MC O O eal en 3 2 3 Creating a new project 3 5 i GX Works2 3 CREATING PROGRAM IN STRUCTURED LADDER FBD LANGUAGE Point Op
77. information Displays the connection target information currently set Programmable controller status Displays the programmable controller CPU status Monitor status display example Displays the ON status V To the next page J e Remote Operation Connection Channel List Connection Interface LSB lt gt PLC Module Target PLC j Station No Host PLC Type Q02 Q02H pecify Execution Target Currently Specified Station kd Operation RUN C STOP C PAUSE Latch Clear RESET C Remove Memory Card Operation during RUN Device Memory Not Cleared Y Signal Flow Hold Execute Close 4 4 1 Monitoring a program VARI 10 YARI 10 Displays the current values NOI OVERVIEW Specify Execution Target Allows you to set the target station for remote operation Select Currently Specified Station for this example Operation Allows you to select the programmable controller CPU status to be set Select either RUN PAUSE or STOP for this example Operation during RUN Allows you to set the operations to be executed to the device memory and signal flow when the programmable controller CPU is switched to RUN CREATED PROGRAM AND SYSTEM Q CONFIGURATION CREATING PROGRAMIN STRUCTURED LADDER aN FBD LANGUAGE PROGRAM IN ST CREATING C1 RENANE S gt AO og Zn Lu
78. ing labels Refer to the following manual for the details on global local label setting procedures L gt GX Works2 Version 1 Operating Manual Structured Project Refer to the following manual for the details on programming of global labels and local labels gt MELSEC Q L F Structured Programming Manual Fundamentals 4 2 1 Starting GX Works2 4 3 Ln GX Works2 4 CREATING PROGRAM IN ST LANGUAGE 4 2 6 Creating a program Create the ST program shown in Section 4 1 2 1 Double click POU Program 9 POU 01 Program on the Project view to display the POU 01 PRG Program ST screen Praject E os B 2 Ain 5 Parameter E PLC Parameter iB Network Parameter m Remote Password Intelligent Function Module 39 Global Device Comment D Global Label Globalt fie Program Setting POU B Program i POU n1 Local EN di FB FUM Structured Data Types Local Device Comment Device Memory Device Initial value Double click it 5 POU_01 PRG Program ST 2 Input Y10 LDP TRUE X0 OR Y10 AND VERSUS 0 SIC TINE Tet COSE o NOT S0 y directly and click the key You can use the Function Block Selection window for the input Settings e Y10 LDP TRUE X0 OR Y10 AND NOT 1505 1 TRUE indicates the ON status JU 2 TSO indicates the contact of timer TO To the next page Point Basic description and display colors Programming in the ST language con
79. ion for the GX Works2 startup procedure 3 2 1 Starting GX Works2 5 2 2 Screen configuration in GX Works2 Refer to the following section for the GX Works2 screen configuration 3 2 2 Screen configuration in GX Works2 5 2 3 Creating a new project Refer to the following section for the new project creation procedure 3 3 2 3 Creating a new project 5 2 4 Setting parameters Refer to the following section for the parameter setting procedure 3 3 2 4 Setting parameters Refer to the following manuals for the details on parameter setting GX Works2 Version 1 Operating Manual Common L CPU Manual lt gt CPU Programming manual 5 4 5 2 1 Starting GX Works2 5 2 Creating a Project 5 2 5 Preparing creating the program configuration Create a POU three program blocks for Structured Ladder FBD program and register the three program blocks created in the POU to a task When you create a new project GX Works2 automatically creates the Program File Task and POU shown in the table below NOI OVERVIEW Table 5 1 Name of Program File Task and POU created automatically Item Name Program Setting No Execution Type MSS Task 01 The program block POU 01 is registered in Task 01 POU POU 01 CREATED PROGRAM AND SYSTEM Q CONFIGURATION Task 1 Select POU Program POU 01 on the Z hloa Lat Project view right click POU 01 and then E select the menu item D
80. label candidates GX Works2 displays label candidates whose former portion agrees with the entered character string In this program example GX Works2 displays labels starting from V when you enter V You can select a displayed label instead of entering the label completely POU 01 PRG Program Structured Ladder FBD Ox 15 Select a ladder block and click zL ADD Ladder Block After on the Structured Ladder FBD toolbar to add a ladder block S To the next page 3 16 3 2 6 Creating a program 3 2 Creating a Project T POU 01 PRG Program Structured Ladder FBD 16 Click nis Open Contact on the Structured Ladder FBD toolbar and then move the cursor to a desired position to display an open contact there Click the open contact to connect it with the left bus line and enable setting of a variable Settings e Variable X2 NOI OVERVIEW CREATED PROGRAM AND SYSTEM CONFIGURATION 1 f Select Function MOVP on the Function Block Selection window drag it and drop it in a desired position to position MOVP there Draw a grid line on the left figure position 1 using the procedure described in the step 3 Click of s and d and set the input and output Input variable s Output variable d variables Settings e S 20 e d VAR1 POU_01 PRG Program Structured Ladder FBD STRUCTURED LADDER CREATIN
81. le Create Task in Program File Create POU PE Register program block of POU to Task in Program File E V 4 Setting labels Define global labels Sou Define local labels o Editing the program Edit the program in each POU V To the next page 1 2 Program Creation Procedure 6 Conversion Compile the program NOE OVERVIEW V f Connecting the programmable controller CPU CREATED PROGRAM AND SYSTEM Q CONFIGURATION Connect the personal computer to the programmable controller CPU V 8 Writing to the programmable controller 3 3 1 Set the connection destination Z Lu za Go Os O ge a n LL o X zc O Sz ac Lr Ow FBD LANGUAGE Write the parameters to the programmable controller CPU 235 Write the program to the programmable controller CPU M V 9 Checking operations PROGRAM IN ST CREATING Q1 LANGUAGE Monitor the sequence program execution status and check operations 4 4 5 4 Check for errors in the programmable controller dug gt F FO og Zn Lu T co Oz 0 MC O O mr m V 10 Printing Print the program and parameters 11 Exiting GX Works2 Save the project 3 8 Exiting GX Works2 3 9 on GX Works2 1 OVERVIEW MEMO tl MELSOFT w ING OVERVIEW 2 CREATED PROGRAM AND SYSTEM CONFIGURATION This chapter explains the system configuration and gives an overview of the program created b
82. ll controller CPU languages error codes special relays and special registers Details a Learning the types and details of common instructions Learning the types and details of instructions for intelligent function modules pa Details Learning the types and details of instructions for network modules es Details Tal Learning the types and details of instructions for the PID control function m Learning details of specifications functions and instructions of SFC MELSAP3 Learning the fundamentals for i Details Learning the types and details of common instructions Learning the types and details of Using instructions for fe ey Details Outline Structured lintelligent function Ladder modules FBD or ST Learning the types language land details of instructions for Outline network modules Learning the types and details of instructions for the lt a PID control rcgis Details A 1 m Details ee rd Details C2 5 Details of instructions in each programming language for FXCPU MELSEC Q L F Structured FXCPU Structured Programming Manual FXCPU Programming Manual Programming Purpose Manual Device amp Basic amp ROON FXo FXos FX1s FX1N FX3s Fundamentals Applied EE FXon FX1 FX2N FXinc FX3c FX3u Instruction FXu FX2c FX2NC FX3cc FX3uc Learning the types and details of Using ladder basic application EN ins
83. n Lu T o Oz N xX O O eal en 3 7 2 Previewing a program 3 43 Er GX Works2 3 CREATING PROGRAM IN STRUCTURED LADDER FBD LANGUAGE 3 7 3 Printing a program f POU 01 PRG Program Structured Ladder FBD E b 1 L D i S p ay a p rog ra m E en Eno E For the display procedure refer to the following A s 3 7 2 Previewing a program 2 Select Project Print Window to display the d Print Window screen Open Ctrl 0 Close Save Ctrl S Save As Compress Unpack Delete Verify Project Revision Change PLC Type Change Project Type Object Intelligent Function Module Open Other Data Export to GX Developer Format File Library Security 3 Print J Ctrl P Print Preview B Print Window Preview Printer Setup The Latest File Start GX Developer z Exit Q Print Window a 3 Click the button to start printing Printer Name Propetties Status Ready Type Where Comment Print range Copies All Number of copies mE E EE E Click it ras C Cancel 3 44 3 7 3 Printing a program 3 Printing 3 7 4 Previewing a PLC Parameter You can display PLC Parameter in the image of printing 1 Display PLC parameters 1 W W W W DP 23 x Bp i2 dhe Double click Parameter PLC Parameter on dod dtd the Project view to display the Q Parameter Settin mmm Double click it J play g Hin Remote Pass
84. n 3 4 2 Section 4 4 1 Section 5 4 1 SH NA 080788ENG L Correction GENERIC TERMS AND ABBREVIATIONS IN THIS MANUAL Section 3 2 7 Section 3 3 2 Section 3 4 1 Section 3 4 2 Section 3 5 Section 4 4 1 Section 5 2 5 Section 5 4 1 SH NA 080788ENG M Model Addition QO4UDPV QO6UDPV Q13UDPV Q26UDPV L02S P L06 P L26 P FX3s Correction MANUALS GENERIC TERMS AND ABBREVIATIONS IN THIS MANUAL Section 3 2 1 Section 3 2 2 Section 3 2 3 Section 3 2 6 Section 3 3 1 Section 4 2 6 SH NA 080788ENG N C orrection Section 3 2 3 Section 3 8 Section 3 9 SH NA 080788ENG O Front cover correction Jun 2015 SH NA 080788ENG P Correction Section 3 4 2 Japanese Manual Version SH 080734 S This manual confers no industrial property rights or any rights of any other kind nor does it confer any patent licenses Mitsubishi Electric Corporation cannot be held responsible for any problems involving industrial property rights which may occur as a result of using the contents noted in this manual 2008 MITSUBISHI ELECTRIC CORPORATION INTRODUCTION Thank you for purchasing the Mitsubishi integrated FA software MELSOFT series Before using the product thoroughly read this manual to develop full familiarity with the functions and performance to ensure correct use CONTENTS SAFETY PRECAUTIONS vi dccissecnnceetme nich etdosananyatsebanodatedinrenenmanbied ach ERASER ace ERRIRE eastueedacsunnoeteacei mands A 1 CONDIT
85. n the view selection area on the Navigation window to display the Project view a 2 Double click POU Program NEUE POU 01 Program on the Project view to dL display the POU 01 PRG Program ST poete screen A ou i a Double click it a Sd Data Types em en iin Comment j E p Initial Value ERE C M 3 Select Online Monitor Start Monitoring to switch the LT POU O1 PRG Program ST screen to the ie een monitoring status ameme You can also click P Start Monitoring to switch d the POU 01 PRG Program ST screen to the monitoring status 4 Set the programmable controller CPU to RUN Set the RUN STOP switch on the programmable controller CPU to RUN To the next page 4 8 4 4 1 Monitoring a program Point 4 4 Monitoring Operations You can switch the programmable controller status between RUN and STOP using remote operation as follows The Settings of the remote operation may vary depending on the programmable controller used Refer to the following manual for the details on the remote operation KL s GX Works2 Version 1 Operating Manual Common Select Online Remote Operation to display the Remote Operation screen You can switch the programmable controller status between RUN and STOP on this screen Connection Channel List
86. nction to simulate programmable controller operations in the offline mode Refer to the following manual for the simulation function Ls GX Works2 Version 1 Operating Manual Common NOI OVERVIEW 3 4 1 Monitoring a program CREATED PROGRAM AND SYSTEM 99 CONFIGURATION 1 Click Project in the view selection area on the Navigation window to display the Project view Zw ul 5 L zz E e l m B ao Lb TI 2 Double click POU Program POU 01 Program on the Project view to Ta EIE display the POU_01 PRG Program Structured amp arameter z jp PLC Parameter Ladder FBD screen oz ul t Network Parameter z g Hin Remote Password d D Intelligent Function Module H O 2 2 Global Device Comment C c lt lt Global Label OQA Globali 5 Program Setting 5 POU B Program 208 Em Double click it o7 Local La zr FO diy FB FUN oO Structured Data Types a ap ha Local Device Comment LLI 5 evice Memor c e ai i UN Y O 2 O2zm aie ors ph e ien J Select Online Monitor Start E ee Monitoring to switch the POU 01 PRG me Program Structured Ladder FBD screen to the a monitoring status magan a ri You can also click bzi Start Monitoring to switch pe i the POU_01 PRG Program Structured Ladder E lt lt FBD screen to the monitoring status 7
87. ns Connection Connection 1 Select Connection2 in the All Connections on the Connection Destination view right click it and then select the menu item Set as Default Connection The connection destination set as the default connection destination is displayed in Current Connection on the Connection Destination view 3 3 1 Connecting the personal computer to the programmable controller 3 25 NOI OVERVIEW CREATED PROGRAM AND SYSTEM CONFIGURATION STRUCTURED LADDER CREATING PROGRAM IN FBD LANGUAGE PROGRAM IN ST Q1 LANGUAGE CREATING S EO og Zo LLI n2 co OI 9 MC O O eal en ic GX Works2 3 CREATING PROGRAM IN STRUCTURED LADDER FBD LANGUAGE 3 3 2 Writing a project to the programmable controller Write the project data to the programmable controller CPU set as the connection destination in Section 3 3 1 Online Debug Diagnostics Tool Window 1 Select Online Write to PLC to display the amp Read from PLC Online Data Operation screen verify with PLC Rcx You can click Write to PLC to display the Online en Data Operation screen Password Keyword gt Soft Security Key Management PLC Memory Operation gt Delete PLC Data PLC User Data H Export to ROM Format Program Memory Batch Download Latch Data Backup PLC Module Change b Set Clock Register Cancel Display Module Menu Monitor H Watc
88. o the following manual for the bit value ON OFF status display GX Works2 Version 1 Operating Manual Common OFF status ON status EE DP io Jar E ces P ys d T E ds as F D oe eA d LDP M jar Bow oe x aM MOS v 2 2 oes hos o xoxo x EN ENO LI m jl o we os BEEN 1 a aal a a a ml s sSdmoxR woes a Sce cg a at e d We os 0s wA 0 O je ee ee y Bt dpm 4 ws OUT T s 5 5 ONIS s s e ICE uu P oUm i oe EN ENO a ee EN ENO VM TC0 TCoil oso e e e n sr f sr a Tail us M 10 TYalue eoa a an a w a a e a scccc 10 TYalue Display of contents status current value other than bit values GX Works2 displays the current values of non bit devices for of contacts coils etc and the contents of character strings as shown below Switching of the current value display between decimal and hexadecimal You can switch the current value display between decimal and hexadecimal using the following operations Operation to switch the current value display to decimal Select Online Monitor Change Value Format Decimal Operation to switch the current value display to hexadecimal Select Online Monitor Change Value Format Hexadecimal 3 4 1 Monitoring a program NOI OVERVIEW CREATED PROGRAM AND SYSTEM CONFIGURATION STRUCTURED LADDER CREATING PROGRAM IN FBD LANGUAGE PROGRAM IN ST Q1
89. ograms including programming languages labels data types and functions instructions 4 1 4 2 4 3 4 4 4 5 4 6 4 7 4 8 4 9 gt MELSEC Q L F Structured Programming Manual Fundamentals 3 Structured Programming Manual of the programmable controller CPU Created Programs 22 2 264 ors ELERG SES ce EGRE Eu sen Es 4 2 Creating a Project 0 0 0 ccc es 4 3 Writing a Project to the programmable controller 4 8 Monitoring Operations 0000 ees 4 8 Diagnosing the programmable controller 4 12 Reading a Project from programmable controller 4 12 PRINUNG 52 6205 nee ode eee ee ee 4 12 Saving a Project iuoousRRERRRAERRRRRERSREESEEAEREAEES 4 12 Exiting GX Works2 ee 4 12 NOI OVERVIEW CREATED PROGRAM AND SYSTEM Q CONFIGURATION CREATING PROGRAMIN STRUCTURED LADDER aN FBD LANGUAGE PROGRAM IN ST CREATING C1 LANGUAGE S gt F FO OF Za LLI To c o Oz 9 MC O O eal en Lon GX Works2 4 CREATING PROGRAM IN ST LANGUAGE 4 1 Created Program This section explains the operations of the program to be created and ST programs 4 1 1 Operations of program e When XO turns ON the programmable controller turns ON Y 10 and then turns OFF Y10 1 second later When X1 turns ON the programmable controller transfers K10 to DO which is defined with the LABEL VAR1 When X2 turns ON the programmable con
90. oint and end point in this order to draw a grid line as shown left GX Works2 is using the Auto Connect function described in Point Start Point Point Connection with grid line Connect ladder symbols such as contacts coils Function and Function block with grid lines Click L Interconnect Mode and draw a grid line Turn ON the Auto Connect function in the interconnect mode to easily draw a grid line only by specifying the start point and end point using the mouse Refer to the following manual for the details L gt GX Works2 Version 1 Operating Manual Structured Project Start Point Jt End Point Jat mak npidrigih En EN E ENO Perform either of the following procedures to turn ON the Auto Connect function Click L Auto Connect en 9 Select Edit Auto Connect to put a check mark e Right click the Structured Ladder FBD work window to display the menu and select Auto Connect to put a check mark E POU_01 PRG Program Structured Ladder FBD g New Ladder Blades A New Ladder I Click it 4 Click I Select Mode on the Structured Ladder FBD toolbar to specify the Select mode To the next page 3 12 3 2 6 Creating a program 3 2 Creating a Project D Set the function LDP Click the input variable of s and set the input variable i Settings Y 2 Point Referring to the data type of input output label
91. oring to reset the rog naa POU_01 PRG Program ST screen intor m wor f Setthe programmable controller CPU to STOP n EE Set the RUN STOP switch on the programmable S ME controller CPU to STOP Ba at You can switch the programmable controller status vircs RN between RUN and STOP using remote EH stop Monitoring Alt F3 O p e rati O n Change Value Format Decimal Change Value Format Hexadecimal x Point In the step4 I Device Buffer Memory Batch Program List Interrupt Program List Monitor Condition Setting Monitor Stop Condition Setting Entry Ladder Monitor Delete All Entry Ladder Change Instance Function Block 4 4 2 Batch monitoring of device values For the Batch monitoring of device values procedure refer to the following 3 4 2 Batch monitoring of device values 4 4 2 Batch monitoring of device values 4 11 Lon GX Works2 4 CREATING PROGRAM IN ST LANGUAGE 4 5 Diagnosing the programmable controller You can check the programmable controller RUN STOP status and error status Refer to the following section for the diagnosis procedure lt gt 3 5 Diagnosing the programmable controller 4 6 Reading a Project from programmable controller Refer to the following section for the procedure to read a project from the programmable controller lt s 3 6 Reading a Project from programmable controller 4 7 Printing For the Saving a Project procedure
92. ou are recommended to read this manual first and then use GX Works2 Refer to the following manual for Simple Projects L gt GX Works2 Beginner s Manual Simple Project 1 1 Simple Project and Structured Project 1 2 1 2 Program Creation Procedure 1 4 NO OVERVIEW CREATED PROGRAM AND SYSTEM Q CONFIGURATION zy za oa ot O Q o ul 5 amp 2 z p KO i a Of Lr Ow FBD LANGUAGE PROGRAM IN ST Q1 LANGUAGE CREATING S gt F FO OF Za LLI To c o Oz 9 MC O O eal en i GX Works2 1 OVERVIEW 1 1 Simple Project and Structured Project B Simple Project In a Simple Project you can create sequence programs using instructions for the Mitsubishi programmable controller CPU The Simple Project offers the same operability for program creation as the conventional GX Developer You can create sequence programs using the following programming languages Graphic languages e Ladder Use this graphic language to describe programs as ladders consisting of contacts coils etc using the same operating procedures as the conventional GX Developer e SFC Use this graphic language to describe sequence control in a way easy to understand Describe steps which specify the processing and transition conditions which specify conditions for proceeding to the next step You can describe steps and transition conditions using the ladder languag
93. r occurs while the program is being written AND SYSTEM CONFIGURATION Mo a Point If a program or parameters already exist in the programmable controller the following screen appears Click the Or vetod button to overwrite the existing program or parameters When you click the eoal button GX Works2 overwrite the existing program or parameters without displaying the overwrites confirmation screen for other data STRUCTURED LADDER CREATING PROGRAM IN FBD LANGUAGE When parameters already exist When a program already exists MELSOFT Application MELSOFT Application Parameter already exists Program MAIN already exists Are you sure you want to overwrite the existing file 4re you sure you want to overwrite the existing file Caution If passwords or keywords have been set they will remain enforced To remove password protection the password or keyword delete operation must be performed Yes to all No Yes Yes to all Mo PROGRAM IN ST Q1 LANGUAGE z c D O O Qc A LLI c O 9 MC O O mr en 4 The left screen is displayed during writing When writing is finished Write to PLC Completed appears Click the button to close the EBEEBSREEEEESREEEREU 6 6 Write to PLC screen TTT TTT 0050 Write to PLC Boot File Write Completed Remote Password Write Completed Program MAIN Write Completed Clear of the device value in the range o
94. ribe steps which specify the processing and transition conditions which specify conditions for proceeding to the next step You can describe steps and transition conditions using the ladder language 1 1 Simple Project and Structured Project Text language ST Structured Text This text language allows you to describe controls by syntax including alternative sequences offered by conditional sentences and repetition offered by repetition sentences in the same way as high level languages such as the C language Accordingly you can briefly create programs easy to look at N93 OVERVIEW Restrictions The FXCPU does not support the ST language in Simple Project and does not support the ladder language and SFC language in Structured Project CREATED PROGRAM AND SYSTEM Q CONFIGURATION zy za oa 5 C zl O Q o ul 5 amp 2 z p KO i ae X Lr Ow FBD LANGUAGE PROGRAM IN ST Q1 LANGUAGE CREATING F FO OF Za W Ir c Oo Oz 9 MC O O eal en Er GX Works2 1 OVERVIEW 1 2 Program Creation Procedure The figure below shows how to create a program with a Structured Project and execute it in a programmable controller CPU 1 Opening a project Start GX Works2 3 2 1 Create a new Structured Project Or open an existing Structured Project 3 2 3 2 Setting parameters 3 2 4 Set the parameters V 3 Creating the program configuration Create Program Fi
95. roject Men u bar gt Project Edit Find Replace Compile view Online Debug Diagnostics Tool Window Help Toolbar Navigation Window Project E E Parameter D PLC Parameter E Network Parameter in Remote Password Intelligent Function Module Global Device Comment Global Label View contents display area H gren POU Displays the contents of crm a POU 01 the currently selected view gw Local Labe diy FB FUN Structured Data Types Local Device Comment Device Memory Device Initial Value View selection area Allows selection of the view to be displayed Local Label Setting POU_01 PRG 3 Global Label ER SER PH Global1 a jo x DEEE E f POU 01 DIUI PEER Isis Program v Ladder FBD Mo Result Data Name 1 Information Word device VAR range 0 point L 2 Information Bit device VAR range 1 points ust 3 Information Pointer VAR range 0 point used 4 Information Timer VAR range 0 point used 5 Information Counter VAR range 0 point used Rebuild All Completed Error 0 Warming 0 Check Warming 0 English Structured Q02 QU02H 3 4 3 2 2 Screen configuration in GX Works2 Function Block selection window Displays the list of function blocks available to program creation Work window SS Used for programming parameter setting monitoring etc Output window Displays the comp
96. roller to ensure that the whole system always operates safely Furthermore for the online operations performed from a personal computer to a programmable controller CPU the corrective actions against a communication error due to such as a cable connection fault should be predetermined as a system Startup and Maintenance Instructions N CAUTION The online operations performed from a personal computer to a running programmable controller CPU Program change when a programmable controller CPU is RUN operating status changes such as forced input output operation and RUN STOP switching and remote control operation must be executed after the manual has been carefully read and the safety has been ensured When changing a program while a programmable controller CPU is RUN it may cause a program corruption in some operating conditions Fully understand the precautions described in GX Works2 Version 1 Operating Manual Common before use The positioning test functions of OPR JOG inching or positioning data for QD75 LD75 positioning module must be executed with the programmable controller set to STOP after the manual has been carefully read and the safety has been ensured Specially when executing the function on the network system ensure the safety thoroughly since the machinery whose operation cannot be checked by an operator may be activated The operation failure may cause the injury or machine damage A 1 CONDITIONS OF
97. s for users inexperienced with GX Works2 Sold separately SH 081261ENG 13JZ79 Point The Operating Manuals are included on the CD ROM of the software package in a PDF file format Manuals in printed form are sold separately for single purchase Order a manual by quoting the manual number model code listed in the table above Purpose of this manual This manual explains the operation for creating sequence programs in Structured project one of the functions supported with GX Works2 Manuals for reference are listed in the following table according to their purpose For information such as the contents and manual number of each manual refer to the list of Related manuals 1 Installation of GX Works2 and USB driver GX Works2 GX Works2 Version 1 Purpose Installation Operating Manual Instructions Common Learning the operating environment and installation method Details Learning a USB driver installation method Details 2 Operation of GX Works2 GX Works2 GX Works2 Version 1 Beginner s Manual Operating Manual Purpose Simple Project i Simple Structured aenea ee Project Project comman Function Project EuncHon Block Module Learning all functions of GX Works2 Learning the project types and available languages in GX Works2 Learning the basic operations and a operating procedures when creating a simple project for the first time Learning the basic operations and mmm operating procedures when
98. s in a Function or Function block Double click a positioned function or function block to display the Function FB Label Setting screen where you can refer to the data type of labels Refer to the following manual for the details GX Works2 Version 1 Operating Manual Structured Project Sequence Instruction Function FB Label Setting LDP F PRIEIEd E POU 01 PRG Program Structured Ladder FBD Class Label Name Data Type F VAR_INPUT Bit CREATED PROGRAM AND SYSTEM 9 CONFIGURATION STRUCTURED LADDER CREATING PROGRAM IN FBD LANGUAGE 6 Click AF Open Contact on the Structured Ladder FBD toolbar and then move the cursor to a desired position to display an open contact there Click the open contact to connect it with the left bus line and enable setting of a variable GX Works2 is using the Auto Connect function described in Point Settings e Variable Y 10 PROGRAM IN ST CREATING Q1 LANGUAGE gt EO og Zn Lu T co Oz 9 MC O O eal en Point Automatic connection with grid lines While the Auto Connect function is ON you can easily connect network elements such as contacts and coils with connection points on the right side of left bus lines vertical grid lines contacts coils functions and function blocks Refer to the following manual for the details GX Works2 Version 1 Operating Manual Structured Project
99. s version 3 00 or later When data cannot be read from the FXCPU carefully store projects written in the programmable controller Er GX Works2 3 CREATING PROGRAM IN STRUCTURED LADDER FBD LANGUAGE If a program or parameters already exist in the GX Works2 the following screen appears Click the Or wetea button to overwrite the existing program or parameters When you click the estaail button GX Works2 overwrite the existing program or parameters without displaying the overwrites confirmation screen for other data When symbolic information already exists When parameters already exist MELSOFT Application MELSOFT Application Parameter already exists A Are you sure you want to overwrite the existing file Read symbolic information From PLC Do you want bo erase data in the project Yes to all No peer The left screen is displayed during reading When reading is finished Read from PLC Completed appears Click the button to close the Read from PLC screen EBHHEBEHHHSNHEEBESSE 4 CITT TTT TTT 0 D ARE RR RR T E Rd Parameter Upload Completed Boot File Upload Completed Remote Password Upload Completed Symbolic Information Upload Completed Reading Completed When processing ends the window is automatically close Close m x 4 Click the co button to close the r Connection Channel List Serial Port PLC Module Connection USB System Image Q n n e D a
100. sists of syntaxes operators function function block devices labels etc Refer to the following manual for syntaxes operators and programming z MELSEC Q L F Structured Programming Manual Fundamentals Make sure to write at the end of a statement Comment You can describe comments in a program L P amp POU 01 PRG Program ST YM k i t v at Y10 LDP TRUE x0 OR Y10 AND NOT TSI are SUTE O entera aA OUT T Y10 TCO 10 the end of each statement You can describe comment in a program MONP XT 10 VART MOVP X2 20 VARI You can describe comments within program 4 4 4 2 6 Creating a program 4 2 Creating a Project Display colors GX Works2 displays syntax operators comments constants string constants devices and labels using the following colors in the initial setting Syntax gf blue Operator Bil black Comment Bl dark green Constant il black NOI OVERVIEW String constant fij black E c Device ll black 5 Global label fl magenta 2 a x Local label ld magenta i 5 E W QO Z Input using the FB Selection window Ed You can easily input the function name of a Function or Function block by dragging it to the cursor position from 3 the Function Block Selection window zz In the example below drag the function LDP from the Function Block Selection window and drop it on the z e POU 01 PRG Pro
101. ssfully connected with the Q02 Q02HCPLU Transfer Setup Connection1 al CC IE Cont MET 10 H Board 1 i Ethernet NET II Board Board CC IE Cont NET 10 H Module Ethernet GOT CC IE Field CC IE Field Module Master Local Communication Module Head Module a PLC Mode QCPU Q mode nn Other Station Single Network No Specification Time Out Sec 30 Retry Times 0 CCIECont CCIE Field Ethernet NET 10 H CCIECont CCIE Field Ethernet NET 10 H Accessing Host Station CC Link C24 E CC Link C24 Connection Channel List Other Station z Co existence Network PLC Direct Coupled Setting Connection Test PLC Type Q02 Q02H Detail FF System Image Phone Line Connection C24 OK Cancel Bp Multiple CPU Setting 3333 i Not Specified 1 2 3 4 Z 3 3 1 Connecting the personal computer to the programmable controller 6 f 3 3 Writing a Project to the programmable controller Connection Test Click the button to execute a communication test with the programmable controller through the specified connection channel When communication with the programmable controller is finished normally the left screen appears and the PLC Type field screen the programmable controller CPU model name Click the button to close the screen lf communication with the programmable controller has failed the screen below appears Check the
102. stem Label TE Reflect to o execute the Reservation to Register Release for the system Reservation to Register System Label Th gG 5 8 5 2 6 Setting labels 5 2 7 Creating a program 5 2 Creating a Project Refer to the following section and manual for the program creation procedures 9235 Creating a program s GX Works2 Version 1 Operating Manual Structured Project B Creating the program block for the tea pouring operation Create the program block for the tea pouring operation shown in Section 5 1 2 Project LEE By 2 Ae hj Parameter p PLC Parameter Network Parameter Hin Remote Password i44 Intelligent Function Module Global Device Comment Global Label Globali Program Setting POU B Program 5 pouring d Local La 5 refilling W Program Local Label indicating W Program Local Label i FB FUN Structured Data Types ha Local Device Comment Device Memory Device Initial Value Double click it pouring PRG Program Structured Ladder FBD 1 Double click POU Program pouring Program on the Project view to display the pouring PRG Program Structured Ladder FBD screen operation shown in Section 5 1 2 Refer to the following section and manual for the program creation procedures Ls 3 2 6 Creating a program lt GXWorks2 Version 1 Operating Manu
103. t value display between decimal and hexadecimal You can switch the current value display between decimal and hexadecimal using the following operations Operation to switch the current value display to decimal Select Online Monitor Change Value Format Decimal Operation to switch the current value display to hexadecimal Select Online Monitor Change Value Format Hexadecimal 5 4 1 Monitoring a program NOI OVERVIEW CREATED PROGRAM AND SYSTEM Q CONFIGURATION e a oa 5 C zl O ge Q o ul 5 amp 2 z p KO i ae x Lr Ow FBD LANGUAGE PROGRAM IN ST Oa LANGUAGE CREATING or Os 25 og Zn Ww tx vO o2 9 d Oo oO aa i GX Works2 o CREATING TWO OR MORE PROGRAM BLOCKS Test operation Forcing a contact ON OFF Double click a monitored device or label while pressing the key to force a device in the programmable controller ON OFF Changing the current value of a word device Double click a monitored word device to display the Modify Value screen where you can change the current value Modify Value Device Label Buffer Memory DevicejLabel current value to the input numeric value Counter value monitoring Data Type Wward 5igned Value Settable Range 32765 to 32767 Execution Result lt lt Execution Result Device Label Counter value mani Word Signed Reflect to Input Column Delete c 5 16 5 4
104. ta O p e rati O n S C re e n j ie Read C Write C Verify Delete fi PLC Module i Intelligent Function Module Execution Target Data No Yes Title uuj Module Data Parameter Program Select All Cancel All Selections Module Name Data Name Title Project Name Target Detail Last Change TargetMemory Size gr i E 2E L GX Works2 Structured Project v 2010 11 25 12 57 00 2986 Bytes IT py ll e zem p PLC Network Remote Password Switc v 2010 11 25 12 56 56 564 Bytes 3B p y comment O Detail 2007 03 08 14 06 22 27434 Bytes a ous f Device Data Necessary Setting Mo Setting Already Set Setif it is needed Mo Setting Already Set Acquire Symbolic Information Project Name Writing Size Free Volume Use Volume OBytes 79 872 34 816Bytes Refresh Related Functions lt lt Execute Close Es FG G s UH Remote Set Clock PLC User Data Write Title Format PLC Clear PLC Memory Arrange PLC Operation Memory Memory 3 Printing 3 7 Printing You can print programs and parameters created using GX Works2 in a printer The print function consists of Batch print and print This section explains print For details of printing refer to the following manual s GX Works2 Version 1 Operating Manual Common 3 7 1 Setting the printer NOI OVERVIEW o reek A LLI c T AnD The printer which prints is set up C 20 P
105. the Connection Destination view right click it and then select the menu item Add New Data The Add New Data screen will appear 2 Set Data Name and uncheck Set as Default Connection Click the button to display the newly created connection destination in All Connections on the Connection Destination view Settings e Data Name Connection2 e Set as Default Connection Unchecked 3 Setthe connection destination Double click Connection2 in All Connections to display the Transfer Setup screen s 3 3 1 Step3 in the Setting the Transfer Setup 3 24 3 3 1 Connecting the personal computer to the programmable controller 3 3 Writing a Project to the programmable controller For selecting the newly created connection destination check Set as Default Connection while creating the data or set the newly created connection destination as the default connection destination as described below Then the newly created connection destination will be selected as the connection destination for communication with the programmable controller CPU for Read from PLC Write to PLC etc Connection Destination D a iS bh Ie Current Connection deg Connectionl All Connections dag Connection4 conne CF Add Mew Data Set as Default Connection S39 Copy Delete Rename Sort Gip Property f 33 53 55 2 Current Connection Default Connection All Connectio
106. troller transfers K20 to DO which is defined with the LABEL VAR1 4 1 2 Created program fi POU 01 PRG Program ST Y10 LDPCTRUE X0 OR 10 AND NOT TSO OUT T Y 10 TCO 10 MOVPE 10 VARI MOVP X 20 VARA L2 4 1 1 Operations of program 4 2 Creating a Project 4 2 Creating a Project Create a project using ST program NOI OVERVIEW 4 2 1 Starting GX Works2 Refer to the following section for the GX Works2 startup procedure gt 3 2 1 Starting GX Works2 CREATED PROGRAM AND SYSTEM Q CONFIGURATION 4 2 2 Screen configuration in GX Works2 Refer to the following section for the GX Works2 screen configuration lt s 3 2 2 Screen configuration in GX Works2 CREATING PROGRAMIN STRUCTURED LADDER aN FBD LANGUAGE 4 2 3 Creating a new project Refer to the following section for the new project creation procedure s 3 2 3 Creating a new project PROGRAM IN ST C1 BEAN el Nel CREATING 4 2 4 Setting parameters Refer to the following section for the parameter setting procedure s 3 2 4 Setting parameters S gt F FO OF Za T cr c o Oz 9 MC O O mr en Refer to the following manuals for the details on parameter setting GX Works2 Version 1 Operating Manual Common CPU Manual s CPU Programming manual 4 2 5 Setting labels Refer to the following section for the global label setting procedures 3 3 2 5 Sett
107. troller turns ON Y12 Y11 Water refill output xU turns ON OFF 5 times X Os 28 FO oc Z TT X x 1289 oP 9 ME Oo oO i co Water refill ouput SE T The programmable controller EM ENG turns ON Y12 0007 5 5 WG oil 2E Replacement indicator lamp Counter contact e When X2 turns ON the programmable controller turns OFF Y 12 X2 Tea leaf check button The programmable controller turns OFF Y12 turns ON Replacement indicator lamp i reno o Te i eck buttor To the next page Counter canta RST lk EN ENG B cus cil 2 4 1 Monitoring a program 5 17 i GX Works2 o CREATING TWO OR MORE PROGRAM BLOCKS V Online Debug Diagnostics Tool Window Help Read from PLC 2M write to PLC Verify with PLC 6 Select Online Monitor Stop Monitoring All Windows to reset the monitor status on all monitored screens etting refilling PRG refilling PRG Prograr Remote Operation S Redundant Operation You can also click amp Stop Monitoring All Windows Password Keyword K to reset each monitored screens Soft Security Key Management PLC Memory Operation gt tea f Set the programmable controller CPU to STOP Export to ROM Format iroa Materi eun Douala Set the RUN STOP switch on the programmable e f controller CPU to STOP Set Clock You can switch the programma
108. tructions Details Details pud descriptions of devices and parameters Learning details of Using SFC specifications m language functions and Details Details instructions of SFC Learning the fundamentals for creating a structured program Details Learning the descriptions of Using devices Structured parameters and Ladder FBD error codes or ST Learning the types language and details of sequence instructions Learning the types and details of application instructions A 14 How to read this manual Chapter heading Index on the right of the page number clarifies the chapter of currently opened page Section title Clarifies the section of currently 3 2 Creating a Project Opened page 3 2 4 Setting parameters Set parameters Ww 1 Double click Parameter PLC Parameter g Project on the Project view to display the Q Parameter DP aa is Obi A Setting screen x Parameter f p Double click it amp Network Par amp ieter Hin Remote Password 23 Intelligent Function Module 8 Global Device Comment amp Global Label Program Setting POU a Program 2 8 POU 01 W Program h Local Label g FS FUN BS Structured Data Types C Local Device Comment Device Memory Device Initial Value 2 Click the button to determine the settings and close the screen The parameters remain unchanged from the initial settin
109. ual for the program creation procedures lt gt 3 2 6 Creating a program s GX Works2 Version 1 Operating Manual Structured Project Upper_LS_of E 2E Fs Specify global labels 5 10 5 2 7 Creating a program 5 2 Creating a Project B Creating the program block for the warning indicating operation Lu Create the program block for the warning indicating operation shown in Section 5 1 2 gt LLI 2 1 Double click POU Program indicating E et Program on the Project view to display the 2 oe Nnn indicating PRG Program Structured Ladder Rud FBD screen Hin Remote Password Intelligent Function Module 2 Global Device Comment e Global Label Globali Program Setting POU a Program 9 pouring i Program Local Label 9 refilling fi Program Local Label 5 indicatin nli SEED Double click it Local La di FB FUN Structured Data Types ha Local Device Comment Device Memory Device Initial value CREATED PROGRAM AND SYSTEM Q CONFIGURATION zy LLI za oa 5 C i O Q o ul 5 amp 2 z p KO i ae x Lr Ow FBD LANGUAGE 2 Create the program block for the warning indicating operation shown in Section 5 1 2 Refer to the following section and manual for the program creation procedures s 3 2 6 Creating a program gt GX Works2 Version 1 Operating Manual Structured Project
110. uctured programs Sold separately MELSEC Q L Structured Programming Manual Special Instructions Explains the specifications and functions of special instructions such as module dedicated instruction PID control instruction and built in I O function dedicated instruction that can be used in structured programs Sold separately FXCPU Structured Programming Manual Device amp Common Explains the devices and parameters provided in GX Works2 for structured programming Sold separately FXCPU Structured Programming Manual Basic amp Applied Instruction Explains the sequence instructions provided in GX Works2 for structured programming Sold separately FXCPU Structured Programming Manual Application Functions Explains the application functions provided in GX Works2 for structured programming Sold separately Manual number Manual code SH 080779ENG 13JU63 SH 080780ENG 13JU64 SH 080984ENG 13JU72 SH 080781ENG 13JU65 SH 080921ENG 13JU69 SH 080787ENG 13JZ22 Manual number Manual code SH 080782ENG 13JWO06 SH 080783ENG 13JWO07 SH 080784ENG 13JWO08 SH 080785ENG 13JWO09 JY997D26001 09R925 JY997D34701 09R926 JY997D34801 09R927 A 9 A 10 3 Operation of iQ Works Manual number Manual name Manual code Let s start iQ Works Version 2 Explains fundamental operation methods such as managing the system using MELSOFT Navigator and using system label
111. ultiple CPU Setting Timer Limit Setting 5 Low Speed 100 ms ims 1000ms Common Pointer No P 2048 After 0 4095 High Speed 19 9 ms D 1ms 100ms Points Occupied by Empty Slot 16 Points RUN PAUSE Contacts RUN X X0 X1FFF System Interrupt Setting Interrupt Counter Start No C 0 768 PAUSE X XO X1FFF Fixed Scan Interval I28 100 0 ms D 5ms 1000ms z 129 40 0 ms D 5ms 1000ms Remote Reset I30 20 0 ms 0 5ms 1000ms Allow I3 100 ms 0 5ms 1000ms High Speed Interrupt Setting 4 No Symbol Example 1 Menunameonamenubar gt name on a menu bar Project 3 lt lt gt gt Tabnameina screen name ina screen PLC System Lu B GENERIC TERMS AND ABBREVIATIONS IN THIS MANUAL This manual uses the generic terms and abbreviations listed in the following table to discuss the software packages and programmable controller CPUs Corresponding module model names are also listed if needed Generic terms and Abbreviations GX Works2 Existing application GX Developer GX Simulator iQ Works Personal computer Q series L series FX series Basic model QCPU High Performance model QCPU Universal model QCPU QCPU Q mode LCPU FXCPU CPU module SFC Description Generic product name for SWnDNC GXW2 E model n version Generic product name for SWnD5C GPPW E SWnD5C GPPW EA SWnD5C GPPW EV and SWnD5C GPPW EV
112. urchaser or End User e Aircraft or Aerospace Medical applications Train equipment transport equipment such as Elevator and Escalator Incineration and Fuel devices Vehicles Manned transportation Equipment for Recreation and Amusement and Safety devices handling of Nuclear or Hazardous Materials or Chemicals Mining and Drilling and or other applications where there is a significant risk of injury to the public or property Notwithstanding the above restrictions Mitsubishi may in its sole discretion authorize use of the PRODUCT in one or more of the Prohibited Applications provided that the usage of the PRODUCT is limited only for the specific applications agreed to by Mitsubishi and provided further that no special quality assurance or fail safe redundant or other safety features which exceed the general specifications of the PRODUCTS are required For details please contact the Mitsubishi representative in your region REVISIONS Print date Jul 2008 Jan 2009 Jul 2009 Oct 2009 Jan 2010 Apr 2010 Manual number SH NA 080788ENG A SH NA 080788ENG B SH NA 080788ENG C SH NA 080788ENG D SH NA 080788ENG E SH NA 080788ENG F The manual number is written at the bottom left of the back cover Revision First edition Model Addition QOOUJ QOOU Q01U Q10UDH Q10UDEH Q20UDH Q20UDEH FXCPU Addition MANUALS Section 1 1 Section 3 6 Correction GENERIC TERMS AND ABBREVIATIONS IN
113. w button Print Window T J Click the button to start printing Printer Name Properties Status Ready Type ee tie Wheres cts sees Comment Print range All Number of copies Feo e wef C Copies Cancel 3 46 3 7 5 Printing a PLC Parameter 3 8 Saving a Project 3 8 Saving a Project You can save a project a When saving a newly created project use the menu item Save as r gt O Project Edit FindiReplace Compile wiew 1 Select Project Save As to display the Z New CtrEEN Save As screen E Open Ctr o rz Close 5 O Save Ctri 5 T n q 5 5t B23 lt ou Compress Unpack k 0 S O O oO 2 Set the Save Location Workspace Name Project Name Title etc MEE After the setting click the button to save the Documents project program Refer to the following manual for the details GX Works2 Version 1 Operating Manual Save in 3 Sample egetrE3 STRUCTURED LADDER CREATING PROGRAM IN FBD LANGUAGE Common Settings E e Save in Specify the save destination u ss Aiken File name Projectt folder z e z Cancel _ ema Oo EG File name Specify the file name o2 Ss e Title Specify the title Save as a Workspace Format Project MELSOFT Navigator supports this format You Can save a project without 5 specifying a title S gt
114. word screen Intelligent Function Module Global Device Comment Global Label Global Program Setting 8 POU B Program 8 POU 01 i Program Local Label i FB FUN Structured Data Types ha Local Device Comment Device Memory Device Initial Value NOI OVERVIEW CREATED PROGRAM AND SYSTEM CONFIGURATION 2 Click the Print Window Preview button PLC Name PLC System PLC File PLCRAS Boot File Program SFC Device 10 Assignment Multiple CPU Setting STRUCTURED LADDER CREATING PROGRAM IN FBD LANGUAGE PROGRAM IN ST CREATING Q1 LANGUAGE Acknowledge XY Assignment Default Cancel 3 After checking the contents click the prn Click button to print PLC Parameter button to print PLC Parameter F Priv iw Prov Click the des button to close the Print Window Preview screen gt F AO og Zn Lu T co Oz 9 MC O O eal en PLC Parameter 12 21 2008 PLC System Timer Limit Setting Low Speed 100 ms High Speed RUN PAUSE Contacts RUN PAUSE x Latch Data Backup Operation Valid Contact Device Name 3 7 4 Previewing a PLC Parameter 3 45 ic GX Works2 3 CREATING PROGRAM IN STRUCTURED LADDER FBD LANGUAGE 3 7 5 Printing a PLC Parameter 1 Display a PLC Parameter For the display procedure refer to the following 3 7 4 Previewing a PLC Parameter 2 Click the _ Frnt windo
115. y using this manual CREATED PROGRAM AND SYSTEM Q KANAN zy za oa ot O Q o ul 5 amp 2 z p KO i a Of Lr Ow FBD LANGUAGE 2 1 System Configuration lle 2 2 2 2 Overview of Program Creation 2 2 PROGRAM IN ST CREATING Q1 LANGUAGE S gt F FO OF Za LLI To c O OZ 9 MC QO O 2 en Er GX Works2 2 CREATED PROGRAM AND SYSTEM CONFIGURATION 2 1 System Configuration This manual uses GX Works2 and the Q Series programmable controller for explanation GX Works2 2 2 Overview of Program Creation This manual explains the following program creation procedures using the simple example program shown in the table below e Creating a new project e Setting parameters e Setting labels e Creating a program inputting contacts and application instructions converting ladder blocks and compiling the program e Writing to the programmable controller e Monitoring ladder etc e Preview Printing Table 2 1 Overview of created program amp POU_01 PRG Program Structured Ladder FBD Chapter 3 Structured Ladder Chapter 5 2 2 Overview of Program Creation Table 2 1 Overview of created program POU_01 PRG Program Structured Ladder FBD ING OVERVIEW E Z FBD 1 Chapter3 eme ree QO LLI Y m V E gt O lt U D LLI va e Oto Z zo S POU 01 PRG Program ST

Download Pdf Manuals

image

Related Search

Related Contents

製品カタログ - Press  User Manual      Whitehaus Collection WHND10-5-BSS Installation Guide  vCam-5 User Manual - WCT Products, Inc.  NEC Wiring Requirements  L`ENTREPRISE CONSCIENTE  File  Industrial Computing Solutions Industrial Panel PC User Manual  

Copyright © All rights reserved.
Failed to retrieve file