Home
GX Works2 Beginner`s Manual (Simple Project)
Contents
1. 8 Read from PLC MMe ae AER Wu FA wrtetorc T AoE to reset the monitor status of the PRG MAIN gt Verify with PLC WW i lobal Label ing Gl Remote Operation S x Soo deeb Si scree n gt Redundant Operation O Password Keyword gt Soft Security Key Management You can click amp Stop Monitoring to reset the 2 PLC Memory Operation Delete PLC Data monitor status of the PRG MAIN screen PLC User Data gt ow Export to ROM Format 5 a Program Memory Batch Download _ vB Latch Data Backup e PLC Module Change Q T gt D Set Clock gt O Register Cancel Display Module Menu L 9 LL wW O Z Monitor Mode F3 rz oO Watch gt E Monitor Write Mode Shift F3 O lt O Local Device Batch Read 5ave CSV A Start Monitoring All Windows we Stop Monitoring All Windows 3 e Start Monitoring E Stop Monitoring Alt F3 F Change Value PRR Change Value Format Hexadecimal m Device Buffer Memory Batch lt O Program List Interrupt Program List S X Monitor Condition Setting X L Monitor Stop Condition Setting lt L O Q wee LU Q Entry Ladder Monitor ag ad L Delete All Entry Ladder A Change Instance Function Block Bes SFC All Block Batch Monitoring TON SFC Auto Scrol Vv Set the programmable controller CPU to STOP Set the RUN STOP switch on the programmable controller CPU to STOP You can
2. Monitor Status Monitoring f Connection Channel List Serial Port PLC Module Connection USB System Image TET __Model Name Operation Status Switch 202 H RUN RUN i The function menu is extended from the PLC image Eror Information Eror information Continuation Error Information fw PLC Status Information Serial Communication Erro Current Error Change the window size and position after error jump 7 PLC Status No Current Error Abbreviation Current Error Detail _ Year Month Day _Time N C EtrorJump lt 1 0 14 GEE m7 8 T ErorHep J E 9 Eror History PLC No 1 Occurrence Order Display Descending v 5 atus No Error Message Abbreviation _ Error Message Detail Year Month Day Time No Error E 1 0 Clear History 2 ex a 1 7 Status Icon Legend 9 Major Eror Moderate Error A User Specified 1 2 15 G 6 No Description o gt 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 1 Connection Channel List CPU information of 2 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 Histo
3. Manual of the Network being used predom het vinna Penan scone n taspmee atot Ma Section title 3 2 4 Setting parameters 3 7 Clarifies the section of currently opened page Since the above page was created for explanation purpose it differs from the actual page A 14 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 E MELSOFT Series GX Works2 Untitled Project PRG Write MAIN 1 Step Project Edit Find Replace Compile View Online Debug Diagnostics Tool Window Help GX DEA IRD i 286 FS ae e Ee e E me Re E Q Parameter Setting PLC Name PLC System PLC File PLC RAS Boot File Program SFC Device 1 0 Assignment Multiple CPU Setting Timer Limit Setting wga 100 ms 1ms 1000ms Common Pointer No P 2048 After 0 4095 High Speed 10 0 ms 0 1ms 100ms LO Points Occupied by Empty Slot 16 w Points RUN PAUSE Contacts x X0 X1 FFF System Interrupt Setting Interrupt Counter Start No C 0 768 PAUSE Xx X0 X1FFF Fixed Scan Interval 128 100 0 ms 0 5ms 1000ms E 129 40 0 ms 0 5ms
4. Point SFC diagram Zoom screen layout By setting Options the SFC diagram and Zoom screen can be displayed together vertically or horizontally Select Tool Options to display the Options screen On the Options screen select Program Editor SFC SFC 1 Arrange Windows for MELSAP3 Arrange and set the following Settings e Tile SFC and Zoom vertically Check it e Arrange Select Tile Horizontally or Tile Vertically Change the position or size of the window to change over the SFC diagram Zoom screen layout A PRG Write 000 Block f x PRG Write 000 Block Step No 0 0 Step T PRG Write 000 Block Step No 0 0 Vv To the next page 4 6 4 2 6 Creating a program for QCPU LCPU Symbol STEP fo Step Attribute i Blo a Comment Standby status Cancel Symbol TR r 0 Step Attribute j 0 Comment Symbol STEP f Step Attribute I Blac fo Comment Center lamp Cancel Bloci 0 Comment Cancel To the next page 4 2 Created Program Creating the SFC Diagram step 0 Put the cursor in the position row number 1 column number 1 on the screen and double click it to display the Enter SFC Symbol screen After setting the items click the button to move the cursor to the next row Settings e Symbol STEP 0 e Step Attribute e Comment Standby status Creating the SFC Diagram Series transition 0
5. MITSUBISHI V T ELECTRIC Engineering Software GX Works2 Beginner s Manual Simple 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 A N WARNING and A 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 wu SS SS SS Note that the UN 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 AN 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 controller to
6. Network Parameter Hin Remote Password m Intelligent Function Module Global Device Comment Global Label cum Double click it Program Setyng 8 POU B Program MAIN aa Program Local Label ip FB_Pool 6 Structured Data Types E3 Local Device Comment Device Memory Device Initial Value s Global Label Setting Global JAR 2 Select the Class from the list box on the IE Class Label Name BE Global Label Setting screen i gt heen oOo Settings a VAP GLOBAL CONSTANT _ Class VAR GLOBAL 4 o execute the Reservation to Register Release for the system abel reflection to the systern label database is required lease execute Reflect to System Label Database To execute Online Program Change execute Online Program Change and save 5 Directly input the Label Name on the Global fs Global Label Setting Global1 ol x iz ee Label Setting screen a VAR_GLOBAL bani sd me o Settings 2 ie 7 e Label Name VAR1 4 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 Change and save To the next page 3 8 3 2 5 Setting labels 3 2 Creating a Project Restrictions Characters available for the label name You can enter up to 32 characters as the label name However note that the followi
7. 00 cee es 3 46 KN OVERVIEW CREATED PROGRAM AND SYSTEM S CONFIGURATION PROGRAM OF CREATING A AND B Ri O LL ep LL lt O Os Ze FEO i O X Y O A era GX Works2 3 CREATING A PROGRAM OF LADDER 3 1 Created Program This section explains the operations of the program to be created and ladder programs 3 1 1 Operations of program 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 3 2 3 1 1 Operations of program 3 2 Creating a Project 3 2 Creating a Project Create a project using ladder programs NJ OVERVIEW 3 2 1 Starting GX Works2 7 Select the software package menu to be started Administrator Internet Internet Explorer f x E mail Outlook Express Set Program Access and Defaults W Windows Catalog D windows Update CREATED PROGRAM AND SYSTEM CONFIGURATION gt GF GX Works2 GX Works2 Help K fi MELSOFT Application gt fm GX Works2 All Programs PROGRAM OF CREATING A LADDER A Log Off g Shut Down 2 The selected software package is started O LL ep LL lt O o2
8. 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 3 3 1 Connecting the personal computer to the programmable J controller Connect the personal computer and the programmable controller with a cable and set the connection channel CREATED PROGRAM AND SYSTEM CONFIGURATION E Connecting the personal computer to the programmable controller For cautions on connection refer to the manual of the programmable controller CPU Refer to the following manual for the details on setting when using another channel or using the FXKCPU for connection PROGRAM OF CREATING A LADDER Notebook personal computer programmable controller QO2HCPU USB cable HM Setting the Transfer Setup O LL ep LL lt O Os T FEO iO X Y On Set the channel to connect the personal computer to the programmable controller CPU QO2HCPU with a USB cable Refer to the following manual for the details on setting using another channel L gt GX Works2 Version 1 Operating Manual Common 1 Click Connection Destination in the view selection area on the Navigation window to i display the Connection Destination view Click it 2 Double click Connection1 in the Current Connection on the Connection Destination view to display the Tran
9. 2 Click the Frnt window button re al 3 Click the button to start printing Printer Name X Properties Status Ready Type Where Comment Print range Copies All Number of copies KY crea 3 44 3 7 5 Printing a PLC Parameter 3 8 Saving a Project Saving a Project You can save a project When saving a newly created project use the menu item Save as 1 Select Project Save As to display the Save As screen NJ OVERVIEW Project Edit Find Replace Compile View New Ctrl Hhy z a awl Open Ctr O O sE Close Oo WW F TE S Save Ctrl 5 BO oe Lu Q 5 Save Os eas Compress Unpack b Vv 2 Set Save Location Workspace Name lt 0 Project Name Title etc Fi After the setting click the button to save the A Documerts project program Refer to the following manual for the details L gt GX Works2 Version 1 Operating Manual T Common lt 5 Settings zz e Save in Specify the save destination lt My Network Fle name Projeen amp folder 6 a __ Caneel e File name Specify the file name e Title Specify the title You can save a project without Save as a Workspace Format Project MELSOFT Navigator supports this format specifying title Restrictions Input within 128 characters to Title Make sure that the total characters of Save Folder P
10. 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 4 4 Monitoring Operations S gt Monitor status display example 2 3 Active step NO OVERVIEW ig L to Po CREATED PROGRAM AND SYSTEM Q CONFIGURATION Inactive step E Blue Active step Inactive step CREATING A PROGRAM OF aOc NEO ES OME N ADDER D 5 Select Online Monitor gt Stop Monitoring Read from PLC mE me S oh S H wien TIF to reset the PRG 000 Block screen Verify with PLC CREATING A xh ph PRG Monitor Executing Remote Operation S Redundant Operatio g 000 Blo z You can click s amp Stop Monitoring to reset the Soft Security Key Management Pic Henery Sper monitor status of the PRG MAIN screen Delete PLC Data PLC User Data b Export to ROM Format weno 6 Set the programmable controller CPU to STOP ee oe g Set the RUN STOP switch on the programmable eana DA controller CPU to STOP using remote operation Eo You can switch the programmable controller CPU rr status RUN and STOP using remote operation mero For t
11. Directly input an application instruction and operand on the Enter Symbol screen and click the OK Et Hep button to display the Application Instruction Settings MOVP K10 VAR1 1 The label VAR1 is set in Section 3 2 5 Specify the device DO when not using labels an Global Label Setting Globali 2 2 Sateen 10 Click s Open Contact on the Ladder tool bar to display the Enter Symbol screen Directly input a device on the Enter Symbol screen and click the __ button to display the Open Contact Settings e X2 AE St 17 Click 42 Application Instruction on the Ladder toolbar to display the Enter Symbol screen Directly input an application instruction and operand on the Enter Symbol screen and click theo button to display the Application Instruction Settings e MOVP Space K20 Space VAR1 2 2 The label VAR1 is set in Section 3 2 5 Specify the device DO when not using labels 3 14 3 2 6 Creating a program 3 2 Creating a Project Point Make sure to ladder conversion and compile the created or edited program to make it a sequence program executable in the programmable controller CPU Only ladder conversion is required and compilation is not required when using the FXCPU or not using labels Refer to the following sections for ladder conversion and compile 3 2 7 Converting ladder blocks 3 2 8 Compiling a program if the following operation is performed after comp
12. 1 Operating Manual Simple Project Set a device Open Contact Enter Symbol x Sal x OK Ext Help Close Contact Enter Symbol x Salf zll OK Exit Help Rising Pulse RT g Seta device Salf xil OK Exit Help Enter Symbol fx SOl ll OK Exit Help Set a device Open Branch Set a device Coil Set a device Enter Symbol x SJ j OK Exit Help alin Application Instruction TET Input an application instruction Vertical Line Set the number of vertical lines S Global Label Setting Globalt x cs Local Label Setting MAIN PRG 3 Click Close Contact on the Ladder tool bar to display the Enter Symbol screen Directly input a device on the Enter Symbol screen and click the button to display the Close Contact Settings e TO Enter Symbol x Sal fT OK Exit Help To the next page 3 12 3 2 6 Creating a program Gy Local Label Setting MAIN PRG js PR Global Label Setting Global1 Enter Symbol x Salf vifo Ok Exit Help m Local Label Setting MAIN PRG Wi PRG Write MAIN 1 5 x Global Label Setting Globali B Local Label Setting MAIN PRG x Global Label Setting Global1 Enter Symbol x SJE J TOK10 OK Exit Help 1 4 xi amp Global Label Setting Globali Enter Symbol x alf SE OK Exit He
13. 33 792Bytes Refresh Related Functions lt lt Execute Close 2G r Remote Set Clock PLC User Data Write Title Format PLC Clear PLC Memory Arrange PLC Operation Memory Memory 3 7 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 GX Works2 Version 1 Operating Manual Common 3 7 1 Setting the printer NO OVERVIEW The printer which prints is set up CREATED PROGRAM AND SYSTEM CONFIGURATION ee 1 Select Project Printer Setup to display the LJ ew oe Printer Setup screen P Open Ctr O Close Save Ctrl S Save 4s Compress Unpack gt Delete Verify PROGRAM OF CREATING A AND D i nt Project Revision gt Change PLC Type Change Project Type Object b Intelligent Function Module gt Open Other Data gt Export to GX Developer Format File Library gt O LL C9 LL lt O o2 25 lt W O X X Oa Security gt GH Print J Ctrl P Print Preview B Print Window Print Window Preview X The Latest File Start GX Developer Z Exit Q Vv Printer i vee Prpeton _ After the setting click the button to close Staus Ready the Printer Setup screen Type Where Comment 2 Select the Printer Pape
14. B Program ims en M a 000 Block Starting ladder gt Added B Local D i A Device Memory Creating the SFC Block F PRG 000 8 Parameter k E Program Setting A POL i Program CE EE lg a B Local Dew A Device Memo CA Sy 8 Eee 2 Ah Global Device Comment Select MAIN on the Project view screen right click it and then select the menu item Add New Data The New Data screen will appear Register Program Delete Rename Open SFC Blocklist Open Uncompiled Data Property Vv To the next page 4 2 7 Creating a program for FXCPU 4 15 uo GX Works2 4 CREATING A PROGRAM OF SFC Data Type Program v Data Name Block1 Program Language cne Block Information Setting Data Name Blocki Title Fountain control Block No 1 Block Type sFc Block v Project CP 5 aA BA Parameter a Global Device Comment Program Setting a POU B Program amp MAIN 000 6 DOCK C4 001 Blocki 3 Local Device Comme A Device Memory Parameter Global Device Comment Program Setting POU 2 000 Block Starting ladder 001 Block1 Fountain ae Dou ble click it B Local Device Comment To the next page A Device Memory 4 16 4 2 7 Creating a program for FXCPU Creating the SFC Block Set Data Type and Language Leave Data Name in the initial setting Block1 After set
15. Cancel Display Module Menu Monitor k Watch r Local Device Batch Read Save CS ETE x 2 Setthe Target module and Target project on Connection Channel List ee the Online Data Operation screen After the setting click the button 2396 Bytes NA SSS 2010 11 24 12 31 07 2196 Bytes 2010 11 24 12 31 03 564 Bytes i Seay O Deal 2010 11 24 12 31 07 a 2 A Necessary Setting No Setting Alrd Writing Size 6 144Bytes jamm Related Functions lt lt z cs us 38 k z ake H Remote Set Clock PLC User Data Write Title Format PLC Clear PLC Memory Arrange PLC 5 m Operation Memory Memory C ick it 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 Vv To the next page 3 24 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 d
16. Color and Font Put the cursor in the zoom block such as step and Docking Window i serial transition and then perform the following ae ee IN ee procedure to display the zoom ep transition commen r a lt a In this case put the cursor in the step 0 Text Size i Select View Open Zoom Start Destination SFC Row Setting Open SFC Blocklist B lock i E Perform the following to return to the SFC screen E aceon lida Select View Back to Zoom SFC Block a ne Create the operation output of the step 0 standby Back to Start SEC Block Ctrl R status and convert the ladder ears For operation output creation and ladder conversion refer to the following gt 3 2 6 Creating a program gt 3 2 7 Converting ladder blocks Vy To the next page 4 2 6 Creating a program for QCPU LCPU 4 11 Er GX Works2 4 CREATING A PROGRAM OF SFC PRG Write 000 Block Step No 0 Standby status 2 Step Standiy_indicatian View Online Debug Diagnostics Tool windo 17 Creating the zoom Transition condition of cane series transition 0 Color and Font Display the zoom bola Nad For the display method refer to the following Program Display Ctrl Alt F8 i wo SFC Step Transition Comment Ctrl F5 lt Step1 6 In the 4 2 6 Zoom For operation output creation and ladder conversion a refer to the following SFC Row Setting ETE L gt 3 2 6 Creating a program PERAE L gt 3 2 7 Conver
17. E saa annoaecaissnettoussas oan eee caaionewiea eaceeauesotemancee A 8 GENERIC TERMS AND ABBREVIATIONS IN THIS MANUALL cc ccccccecccseeeeeeeeeseeeeeeeesseesanees A 16 1 OVERVIEW 1 1to1 6 1 1 Simple Project and Structured Project 1 2 1 2 Program Creation Procedure 1 4 2 CREATED PROGRAM AND SYSTEM CONFIGURATION 2 1to2 2 2 1 System Configuration 2 2 2 2 Overview of Program Creation 2 2 3 CREATING A PROGRAM OF LADDER 3 1to 3 46 3 1 Created Program 3 2 31 1 Operations of program ceuessedcezcucessseatceiesdccsacsneecacesseassicedceanhe coaneceaee Mace nsensoiavdecin eekeacdecueediatseetnetn 3 2 3 1 2 Dace 8 0110 8 2 4 Pe EA E A E E EEE E E E E E EE ere 3 2 3 2 Creating a Project 3 3 3 2 1 Saning OX WOKS A acs ciste cet geese isa ra tat tae oed oae aa 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 ANUS cece ceca des ctesa 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 DOi aieri Ee E EE E e E a Ee ea 3 11 3 2 1 Converning ladder DIOCKS ssrin e aE Ea noe paced EATE 3 16 3 2 8 MMII aA progi INN seth aseie ne gees nnd cate aE A NERA i e EE Eaa Riia nen ELERNA ESERE RA 3 17 3 3 Writin
18. Poi Element in this order Simple Types Structured Data Types After completing the setting click the button Function Blocks Orray Element ARRAY Element To the next page 3 2 5 Setting labels 3 9 ea GX Works2 3 CREATING A PROGRAM OF LADDER NEEN CREE Beles 5 Directly input the Device on the Global Label ae a Setti E ae E o A ere Settings e Device DO C System label is reserved to be registered C System label is reserved to be released o execute the Reservation to Register Release for the system Reservation to Regis abel reflection to the system label database is required _e_ _ _ lease execute Reflect to System Label Database To execute Online Program Change execute Online Program Change and save j 4s Global Label Setting Global1 ox 6 Set the 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 C System label is reserved to be registered _ System label is reserved to be released o execute the Reservation to Register Release for the system Reservation to Register Sy abel reflection to the system label database is required _ _ ReanwxXeenen 1 lease execute Reflect to System Label Database po see aan th IS manua l To execute Onli
19. Put the cursor in the position row number 2 column number 1 on the screen and double click it to display the Enter SFC Symbol screen After setting the items click the button to move the cursor to the next row Settings e Symbol TR O e Comment blank Creating the SFC Diagram step 1 For the creation method refer to the following Put the cursor in the position row number 4 column number 1 f Step2 in the 4 2 6 Settings e Symbol STEP 1 e Step Attribute e Comment Center lamp Creating the SFC Diagram Series transition 1 For the creation method refer to the following Put the cursor in the position row number 5 column number 1 3 Step3 in the 4 2 6 Settings e Symbol TR 1 e Comment blank 4 2 6 Creating a program for QOPU LCPU NJ OVERVIEW CREATED PROGRAM AND SYSTEM Q CONFIGURATION CREATING A PROGRAM OF aS LADDER L N TE O 02 a ae MEG X X On ea GX Works2 4 CREATING A PROGRAM OF SFC 6 Creating the SFC Diagram step 2 For the creation method refer to the following step 2 Step attribute I Put the cursor in the position row number 7 column 2 Comment Center Fountain Cancel number 1 L gt Step2 in the 4 2 6 Settings e Symbol STEP 2 e Step Attribute e Comment Center fountain Creating the SFC Diagram Series transition 2 For the creation method refer to t
20. THIS MANUAL Section 1 Section 2 2 Section 3 2 1 Section 3 2 2 Section 3 2 5 Section 3 2 6 Section 3 2 7 Section 3 2 8 Section 3 3 1 Section 3 3 2 Section 3 4 1 Section 3 4 2 Section 4 1 2 Section 4 2 6 Section 4 4 1 Model Addition QOOJ Q00 Q01 Addition MANUALS Section 1 1 Section 2 2 Section 4 2 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 Correction SAFETY PRECAUTIONS Section 1 2 Section 3 2 3 Section 3 2 5 Section 3 7 1 Section 3 7 2 Section 3 7 3 Section 3 8 Section 3 9 Section 4 2 5 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 8 Section 3 3 2 Section 3 4 1 Section 3 4 2 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 8 Section 3 3 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 Print date Manual number Revision Sep 2010 Jan 2011 Jul 2011 Jan 2012 May 2012 Feb 2013 May 2013 Dec 2013 Jun 2014 SH NA 080787ENG G adition Section 4 2 7 Correction GEN
21. Write 000 Block Transition No 5 3 Step Contrucus cps atan 4 14 4 2 6 Creating a program for QCPU LCPU 4 2 Created Program 4 2 7 Create the SFC program for FXKCPU shown in Section 4 1 2 You can select the following modes when creating a program e Overwrite mode or Insert mode e Write mode or Read mode Refer to the following manual for details of the Overwrite mode Insert mode Write mode and Read mode Creating a program for FXCPU NJ OVERVIEW L gt GX Works2 Version 1 Operating Manual Simple Project rz OQ O When you select SFC as the Language for creating a new project the Block Information Setting screen appears a0 5 TE f wW QO Z Block Information Setting 1 Creating a ladder block S S Set Title and Block Type 3 og i as After setting click the button to me fran hae close the Block Information Setting screen BlockNo 0 and add 000 Block Starting ladder u or Feder Bock E ladder block on the Project view screen z Adder DIOC ha Z SFC Block and Ladder Block can be E aa selected as the Block Type ree When the FXCPU is used it is necessary to alae create a ladder for turning ON the SFC 4 program using a ladder block Settings e Title Starting ladder e Block Type Ladder Block O LL C9 LL lt O oe T lt O MEG ro On V7 CP Gp 2 ath BA Parameter Global Device Comment Program Setting POU
22. Z3 H lt W O xX On Double click the GX Works2 icon My Network Places Internet Explorer 3 2 1 Starting GX Works2 3 3 Er GX Works2 3 CREATING A PROGRAM OF LADDER 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 GX Works2 Version 1 Operating Manual Common Title bar Bie SE MELSOFT Series GX Works Untitled Project Menu bar e Project Edt Find Replace Compile Toolbar gt a ax Navigation Window i f Local Label Setting MAIN PRG window pet a Displays the list of a Po i eee to function blocks available 3 to program creation ain Remote Password Global Label Setting Global1 Intelligent Function Module Ras Data Type Constant 1 Word Signed D0 li D Online View Debug Diagnostics Tool Window Help eh a Se el aq ee AN 5 su Function Block selection Class Label Name Global Device Comment Global Label gt S Globali mz View contents display area aa f PRG Write MAIN 15 Step Work window Si Program a Displays the contents of D Used for programming the currently selected
23. click l Enter a monitored word device while pressing the shift_ key 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 t button to change the lae current value to the input numeric value VARI Data Type Word Signed B ye HE Settable Range 32700 to 3270r Execution Resulk lt lt Execution Result DevicefLabel Word Signed Reflect to Input Column Deletefic 5 Turn ON inputs X0 X1 and X2 in the programmable controller and check the following operations You can turn ON inputs X0 X1 and X2 using the test operation above e When XO turns ON the programmable controller turns ON Y10 and then turns OFF Y10 1 second later XO turns ON Itturns OFF 1 second later f A The programmable controller turns ON Y10 e When X1 turns ON the programmable controller transfers K10 to VAR1 device DO a turns ON The programmable controller transfers K10 to vany e When X2 turns ON the programmable controller transfers K20 to VAR1 device DO X2 turns ON The programmable controller transfers K20 to VAR1 12 MOVP K20 Vv To the next page 3 30 3 4 1 Monitoring a program 3 4 Monitoring Operations V7 Online Debug Diagnostics Tool Window Help 6 Select Online Monitor Stop Monitoring
24. e Module Module Head Module sho PLC Mode QCPU Q mode Click it E Connection Channel List Bit No Specification Other Station Other Station 5 7 Single Network Co existence Network PLC Direct Coupled Setting Connection Test Time Out Sec 30 Retry Times 0 LE cometon PLC Type Detail ation CCIECont CCIE Field Ethernet CC Link C24 NET 10 H System Image CE EER j i Phone Line Connection C24 NO OVERVIEW CREATED PROGRAM AND SYSTEM CONFIGURATION CCIECont CCIE Field Ethernet CC Link C24 NET 10 H Accessing Host Station Multiple CPU Setting JII Not Specified 1 2 3 4 PROGRAM OF CREATING A AND D i nt When communication with the programmable controller is finished normally the left screen appears and the PLC Type field displays the programmable controller CPU model name MELSOFT Application J Successfully connected with the Go2 Q02HCPL Click the button to close the screen If communication with the programmable controller has failed the screen below appears Check the connection destination connection cable etc E MELSOFT Application O LL ep LL lt O Os Ze FEO iO X Y O A S Cannot communicate with the specified CPU or station The Following are possible causes J Communication time out Cable trouble PLC power are OFF or reset status USB trouble Please rest
25. 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 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 USE FOR THE
26. i Reference 1 1 oo EE toolbar to start monitoring C Buffer Memory 0 tt 7 Address zi IbEC 7 Display Format M 2 M ida 82 82 4 ASC g 16 Details Open Save 6 Set the 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 33 Er GX Works2 3 CREATING A PROGRAM OF LADDER perica Puffer Horo Batet Monts Monitering J Click B Stop Monitoring on the Ladder Device fs Yoarics amet fo o TIC Set Value Reference Program Reference t b t t 1 t A C Buffer Memory Module Start a HEX Address o DEC T OO a r O S O p m O n ori n g n zarse EEN 6 owt coe sve ovr dao ome Monitored values remain even after GX Works2 stops monitoring Display Format Modify Value vice 8 Click FA on the screen to close the Device amp Device Buffer Memory Batch Monitor 1 Monitoring EEK Buffer Memory Batch Monitor screen Device Device Name DO TIC Set Value Reference Program Reference Buffer Memory Module Start l 7 HEX Address oec X 0 n Display format Modify Value 2 AN ia 22 22e ASC g 16 Details Open Save Device a 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 s
27. or 32 and click the button to enter the dummy coil Then TRAN will be entered automatically 22 Creating the zoom step10 series transition 1 step11 series transition 2 step12 series transition 3 step13 series transition 4 series transition 5 For the zoom display and creation methods refer to the following Step20 in the 4 2 7 Step21 in the 4 2 7 Point in the Step21 t PRG Write 001 Block1 Step No 10 Center lamp 4 Step To the next page 4 2 7 Creating a program for FXCPU 4 23 NO OVERVIEW CREATED PROGRAM AND SYSTEM Q CONFIGURATION CREATING A PROGRAM OF zw LADDER O L 7p Le ae OPS 2 Kae MES X X On Er GX Works2 4 CREATING A PROGRAM OF SFC PRG Write 001 Block1 Transition No 1 1 Step PRG Write 001 Block1 Step No 11 Center fountain 4 Step PRG Write 001 Block1 Transition No 1 Step PRG Write 001 Block1 Step No 12 Loop line lamp 4 Step PRG Write 001 Block1 Transition No 3 1 Step PRG Write 001 Block1 Step No 13 Loop line fountain 4 Step To the next page 4 24 4 2 7 Creating a program for FXCPU 4 2 Created Program PRG Write 001 Block1 Transition No 4 2 Step NJ OVERVIEW CREATED PROGRAM AND SYSTEM Q CONFIGURATION 23 When the FXCPU is used it is necessary to create a ladder for turning ON the SFC program using a ladder block Double click 000 Block Starting ladder and cre
28. 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 Structured 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 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 language 1 1 Simple Project and Structured Proje Text language e ST Structured Text This text language allows you to describe controls by syntax including alternative sequences ct offered by conditional sentences and repetition offered by repetition sentences in
29. switch the programmable controller status between RUN and STOP using remote operation For the remote operation refer to the following Point in the step 4 O LL ep LL lt O Os Ze FEO i O X Y O A Switch the programmable controller CPU to the Write mode when editing the ladders Refer to the following manual for details of the Overwrite mode Insert mode Write mode and Read mode gt 3 2 6 Creating a program 3 4 1 Monitoring a program 3 31 era GX Works2 3 CREATING A PROGRAM OF LADDER 3 4 2 Batch monitoring of device values a ECE Select Online gt Monitor Device Buffer a p Memory Batch to display the Device Buffer area 7 Memory Batch Monitor screen Or click HA Device Buffer Memory Batch Monitor eee to display the Device Buffer Memory Batch Monitor nate Di Export to ROM Format Program Memory Batch Download Latch Data Backup gt PLC Module Change gt Set Clock Register Cancel Display Module Menu Monitor Mode F3 Watch gt if Monitor Write Mode Shift F3 Local Device Batch Read Save CSV A Start Monitoring All windows fa Stop Monitoring All Windows Start Monitoring Stop Monitoring Alt F3 Change Value Format Decimal Change Yalue Format Hexadecimal ME Device Buffer Memory Batch N Program List Interrupt Program List Monitor Condition Se
30. the Enter SFC Symbol screen After setting the items click the button to move the cursor to the next row Settings e Symbol D 1 12 Creating the SFC Diagram Series transition 4 For the creation method refer to the following Put the cursor in the position row number 15 column number 1 gt Step3 in the 4 2 6 Settings e Symbol TR 4 e Comment blank 13 Creating the SFC Diagram Series transition 5 For the creation method refer to the following Put the cursor in the position row number 15 column number 2 Step3 in the 4 2 6 Settings e Symbol TR 5 e Comment blank 4 2 6 Creating a program for QCPU LCPU 4 9 NO OVERVIEW CREATED PROGRAM AND SYSTEM Q CONFIGURATION CREATING A PROGRAM OF aS LADDER L N TE O oP a ae MEG X X On era GX Works2 4 CREATING A PROGRAM OF SFC 14 Creating the SFC Diagram Jump to the Continuous operation Put the cursor in the position row number 16 column number 1 on the screen and double click it to display the Enter SFC Symbol screen After setting Symbol click the button to display the jump destination step number Settings e Symbol JUMP 1 Symbol ump 1 Step Attribute fi Bloct 0 Comment Cancel 15 Creating the SFC Diagram jump to the Cycle operation Put the cursor in the position row number 16 column number 2 on the screen and double click it to di
31. to the following 3 8 Saving a Project 4 9 Exiting GX Works2 Refer to the following section for the project ending procedure L gt 3 9 Exiting GX Works2 4 9 Exiting GX Works2 MAIANSAO IN MEMO NOILVYNDISNOO ICY WALSAS ANY WWdOud dJLvJH9 ERARIS 4S 40 NYN9OHd JO WYH9O d V NILVJHO V NILVJ HO 4 31 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 080787ENG P 1506 KWIX MODEL GXW2 HOW O SP E MODEL CODE 13JZ22 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
32. view a parameter setting monitoring etc Local Device Comment g Structured Data Types E Device Memory Device Initial Value A Output window 1 Information gt Word device VAR range 0 point used Di spl ay S the compile View selection area s A A AITO resu It error info rm ation a faaet 4 Information Timer YAR range 0 point used 7 3 z Allows selection of the pe E Counter VAR range O point used and warning information view to be displayed Rebuild All Completed Error 0 Warning 0 Check Warning 0 English Simple Q02 Q02H Host o Statu S ba r 3 4 3 2 2 Screen configuration in GX Works2 3 2 Creating a Project 3 2 3 Creating a new project At first create a project LW S Se a E T Perform either procedure below to display the r X New Project screen O Ee open Ctro e Select Project New 2 Close ER save a e Click Ci New F k Save Os 2 E A WU Compress Unpack H Q 7 Delete lt A m ie apenas Veriry O lt O 2 Select the Series Module Type Project Type and Language from the list boxes for the new project to be created Check Use Label when using labels in the program New Project Series QCPU Q mode Module Type Q0Z Q0ZH PROGRAM OF CREATING A AND D i nt Project Type l Simple Project to be created i as After the setting click the button angu g Lad
33. 000 Block aAA PRG Write 000 Block Step No 0 0 Step CREATING A PROGRAM OF faN LADDER O L 7p Le ae OPS Zs Kae MEG X X On 6 Creating the SFC Diagram step 0 Put the cursor in the position row number 1 column number 1 on the screen and double cece CO click it to display the Enter SFC Symbol screen ov B Bose After setting the items click the button to move the cursor to the next row Settings e Symbol STEP O e Comment Standby status Creating the SFC Diagram Series transition 0 Put the cursor in the position row number 2 column number 1 on the screen and double Oe ee click it to display the Enter SFC Symbol screen E After setting the items click the button to move the cursor to the next row Settings e Symbol TR O To the next page 4 2 7 Creating a program for FXCPU 4 17 era GX Works2 4 CREATING A PROGRAM OF SFC 8 Creating the SFC Diagram step 10 For the creation method refer to the following Put the cursor in the position row number 4 Symbol ster z fio step attrinte Lox column number 1 _ Eo Eira Step6 in the 4 2 7 Settings e Symbol STEP 10 e Comment Center lamp Restrictions When using the FXCPU set steps of the SFC program as follows e States SO to S9 are called initial steps states and used only as head step numbers of SFC blocks Accordingly you can create up to 10 SFC blocks starting fro
34. 1000ms Remote Reset aa 20 0 ms 0 5ms 1000ms Allow T31 10 0 ms 0 Sms 1000ms High Speed Interrupt Setting No_ Symbol Example 1 Menunameonamenubar gt name on a menu bar Project ee 4 E Button on a screen High Speed Interrupt Setting button 5 a ae Item name in a screen Timer Limit Setting i E A 15 A 16 E 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 EVA 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
35. 12 e Comment Loop line lamp 1 3 Creating the SFC Diagram Series transition 3 For the creation method refer to the following Put the cursor in the position row number 11 column number 1 C Step7 in the 4 2 7 Settings e Symbol TR 3 14 Creating the SFC Diagram step 13 For the creation method refer to the following Put the cursor in the position row number 13 column number 1 3 Step6 in the 4 2 7 Settings e Symbol STEP 13 e Comment Loop line fountain 15 Creating the SFC Diagram Selective branch Put the cursor in the position row number 14 column number 1 on the screen and double click it to display the Enter SFC Symbol screen After setting the items click the button to move the cursor to the next row Settings e Symbol D 1 16 Creating the SFC Diagram Series transition 4 For the creation method refer to the following Put the cursor in the position row number 15 column number 1 L Step7 in the 4 2 7 Settings e Symbol TR 4 4 2 7 Creating a program for FXCPU 4 19 NJ OVERVIEW CREATED PROGRAM AND SYSTEM Q CONFIGURATION CREATING A PROGRAM OF aS LADDER O L 7p Le O OP F Kae MEG X X On wiper GX Works2 4 CREATING A PROGRAM OF SFC 17 Creating the SFC Diagram Series transition 5 For the creation method refer to the following Put the cursor in the position row number 15 column number
36. 2 Step7 in the 4 2 7 Settings e Symbol TR 5 Enter SFC Symbol Block fo Comment i Cancel 18 Creating the SFC Diagram Jump to the Continuous operation Put the cursor in the position row number 16 column number 1 on the screen and double click it Symbol UMP z 10 Stepattrbute 3 zl to display the Enter SFC Symbol screen Bock fo comment cel After setting Symbol click the button to display the jump destination step number Settings e Symbol JUMP 1 e Step Attribute 19 Creating the SFC Diagram jump to the Cycle operation 17 Enter SFC Symbol Put the cursor in the position row number 16 j symbol ume gt 0 stepattrbute J z column number 2 on the screen and double click it n Bok O comment f Lea to display the Enter SFC Symbol screen After setting Symbol click the button to display the jump destination step number Settings e Symbol JUMP O e Step Attribute Vy To the next page 4 20 4 2 7 Creating a program for FXCPU 4 2 Created Program Vv Point The step specified as the jump destination will change into 70 el 70 7 70 0 10 je 710 7 i 71 NO OVERVIEW AND SYSTEM Q CONFIGURATION Perform the following procedure to display comments set on the Enter SFC Symbol screen Select View gt SFC Step Transition Comment View Online Debug Diagnostics Tool Windo Too
37. ERIC TERMS AND ABBREVIATIONS IN THIS MANUAL Section 3 2 2 Section 3 2 3 Section 3 2 6 Section 3 3 1 Section 3 3 2 Section 3 5 Section 3 6 Section 4 1 2 Section 4 2 3 Section 4 2 5 Section 4 2 6 Section 4 2 8 SH NA 080787ENG H C r orrection 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 8 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 3 Section 3 7 4 Section 3 8 Section 4 2 6 Section 4 2 7 Section 4 4 1 Section 4 7 SH NA 080787ENG I Canedo 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 1 2 Section 4 2 6 Section 4 2 7 Section 4 4 1 SH NA 080787ENG J r Correction MANUALS GENERIC TERMS AND ABBREVIATIONS IN THIS MANUAL Section 3 2 3 Section 3 2 6 Section 3 3 1 Section 3 4 1 Section 3 4 2 Section 3 8 Section 4 2 6 Section 4 2 7 Section 4 2 8 Section 4 4 1 SH NA 080787ENG K Correction MANUALS GENERIC TERMS AND ABBREVIATIONS IN THIS MANUAL Section 3 2 1 Section 3 2 2 Section 3 2 3 Section 3 2 5 Section 3 2 6 Section 3 4 1 Section 3 4 2 Section 4 2 6 Section 4 2 7 Section 4 4 1 SH NA 080787ENG L Correction GENERIC TERMS AND ABBREVIATIONS IN THIS MANUAL Section 3 2 6 Section 3 2 8 Section 3 3 2 Section 3 4 1 Section 3 4 2 Section 3 5 Section 4 2 6 Section 4 2 7 Section 4 4 1 S
38. 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 080787ENG A SH NA 080787ENG B SH NA 080787ENG C SH NA 080787ENG D SH NA 080787ENG E SH NA 080787ENG F The manual number is written at the bottom left of the back cover Revision First edition Model Addition QOOUJ Q00U Q01U Q10UDH Q10UDEH Q20UDH Q20UDEH FXCPU Addition MANUALS Section 1 1 Section 3 6 Section 4 1 Correction GENERIC TERMS AND ABBREVIATIONS IN
39. F status 4b gt ee ee ee ee GX Works2 adopts this display method only for the SET RST PLS PLF SFT SFTP and MC instructions and contact type comparison instructions As to monitoring of the RST instruction GX Works2 displays the ON OFF status of a reset device Current value display GX Works2 displays the monitored current value as follows mMovPp_ k10 VARI k10 Ti Current value of VAR1 Current value of TO 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 gt Change Value Format Decimal Operation to switch the current value display to hexadecimal Select Online Monitor Change Value Format Hexadecimal Refer to the next page for the test operation 3 4 1 Monitoring a program 3 29 NO OVERVIEW CREATED PROGRAM AND SYSTEM S CONFIGURATION PROGRAM OF CREATING A LADDER O LL 09 LL lt O Os T FEO LO X Y O A era GX Works2 3 CREATING A PROGRAM OF LADDER Test operation Forcing a contact ON OFF Double click Enter a monitored contact while pressing the shift_ key to force a device in the programmable controller ON OFF Changing the current value of a word device Double
40. FIGURATION CREATING A PROGRAM OF LADDER O LL ep LL lt O Os Ze FEO i O X Y O A era GX Works2 1 OVERVIEW 1 1 Simple Project and Structured Project E 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 language Text language e 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 M Structured Project In a Structured Project you can create programs by structured program By dividing controls into small
41. H NA 080787ENG M Model Addition QO4UDPV QO6UDPV Q13UDPV Q26UDPV LO2S P LO6 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 3 1 SH NA 080787ENG N C orrection Section 3 2 3 Section 3 8 Section 3 9 SH NA 080787ENG O Front cover correction Jun 2015 SH NA 080787ENG P Correction Section 3 4 2 Japanese Manual Version SH 080733 R 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 CONDITIONS OF USE FOR THE PRODUCT wessrceccecetacsrdeericatened sonctiedqsxisviacenacsatdotwevattalsculacctastacuacteceeatt A 2 REVON e E E E E E ts daueedueyasesaieanidsesseumenesss A 3 INTROD Ns setactee oases nein EE E E E E A 6 CONTENT are E E E E E E E A 6 MANUAL S rein A
42. Memory Not Cleared r Signal Flow Hold x Execute Close Monitor status display example oan Displays the ON status Displays the current values 12 16 To the next page 3 4 1 Monitoring a program 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 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 0 300rns ter status ERR status RUN STOP status Connection status Local Device nok Executed Refer to the following manual for the details on Monitor status LC GX Works2 Version 1 Operating Manual Common Monitor status display ON OFF status display GX Works2 displays the ON OFF status as follows during monitoring OF
43. Menu we Start Monitoring Bal Stop Monitoring Alt F3 Change Value Format Decimal Change Yalue Format Hexadecimal a 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 To the next page 3 4 1 Monitoring a program S33 2 Er GX Works2 3 CREATING A PROGRAM OF LADDER 7 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 remote operation C gt gt 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 Remote Operation x List information f Connection Channel List j Displays the connection Connection Interface USB PlCModule target information Target PLC currently set NetworkNo Pf Station No Host PLC Type 02 Q02H Programmable controller Status Displays the programmable controller CPU status C Latch Clear RESET Remove Memory Card Operation during RUN Device
44. Mitsubishi programmable controller MELSEC F series Generic term for Q00J Q00 Q01 Generic term for Q02 Q02H QO6H Q12H and Q25H Generic term for QOOUJ Q00U Q01U Q02U Q03UD QO03UDE QO3UDV Q04UDH QO4UDEH Q04UDV Q04UDPV QO6UDH QO6UDEH QO6UDV QO6UDPV 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 Process CPU Redundant CPU and Universal model QCPU Generic term for LO2S LO2S P L02 LO2 P LO6 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 aN MELSOFT 1 OVERVIEW This manual explains the procedures to actually create a program Simple Project using GX Works2 and operate the programmable controller using the created program If this is your first time creating a Simple Project using GX Works2 you are recommended to read this manual first and then use GX Works2 Refer to the following manual for Structured Projects L gt GX Works2 Beginner s Manual Structured Project 1 1 Simple Project and Structured Project 1 2 1 2 Program Creation Procedure 020 cee eee 1 4 NK OVERVIEW CREATED PROGRAM AND SYSTEM Q CON
45. OU Program MAIN RER Project Program on the Project view to display the Wfsfe Aaaah oas PRG MAIN screen Parameter p PLC Parameter Network Parameter Hin Remote Password lt 4 Intelligent Function Module Global Device Comment Global Label amp Globali Program Setting POU B Program a MAIN PNB Program Double click it I Local Laat i FB_Pool i Structured Data Types 3 Local Device Comment ay Device Memory 4 Device Initial Yalue O LL ep LL lt O Os Ze FEO i O X Y O A Local Label Setting MAIN PRG 4 x amp Global Label Setting Globali 2 Click 3 Rising Pulse on the Ladder toolbar to display the Enter Symbol screen Directly input a device on the Enter Symbol screen and click the button to display the Rising Enter Symbol El P xo OK Exit Help Pulse JL Settings To the next page e XO 3 2 6 Creating a program 3 11 Er GX Works2 3 CREATING A PROGRAM OF LADDER Click an icon on the Ladder toolbar to open the Enter Symbol screen for inputting a device or instruction Set a device or instruction and click the button to display the corresponding ladder symbol or vertical line in the cursor position Ladder tool bar lael aiet et i ai oe ATE ALE MTR Le ddt ddt hbi idt it aa es Refer to the following manual for the details on the toolbar L gt GX Works2 Version
46. 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 e 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 Purchaser or
47. Parameter in the image of printing 1 Display PLC parameters Double click Parameter PLC Parameter on the Project view to display the Q Parameter Setting screen CP 3 Ap 2 ath 3 Parameter P Se A enemas ter Double click it Hin Remote Password 24 Intelligent Function Module Global Device Comment 8 Global Label Globali Program Setting POU B Program MAIN ae Program ES Local Label E FB_Pool Structured Data Types B Local Device Comment Device Memory Device Initial value NO OVERVIEW CREATED PROGRAM AND SYSTEM CONFIGURATION Eg 2 CI ick the Print Window Preview button ice 1 0 Assignment Multiple CPU Setting PROGRAM OF CREATING A AND D i nt O LL C9 LL lt O o2 lt W O xX Oo Acknowledge XY Assignment Default 3 After checking the contents click the prn button to print PLC Parameter Click the __ amp se button to close the Print Window Preview screen Click button to print PLC Parameter Next Page arameter 12 17 2009 Timer Limit Setting PAUSE Latch Data Backup Operation Valid Contact Device Name 3 7 4 Previewing a PLC Parameter 3 43 era GX Works2 3 CREATING A PROGRAM OF LADDER 3 7 5 Printing a PLC Parameter Display a PLC Parameter For the display procedure refer to the following f 3 7 4 Previewing a PLC Parameter
48. Rebuild All as described in the step 1 4 When Rebuild All is completed the number of program steps is displayed at the window title on the PRG Write MAIN screen 3 2 8 Compiling a program Se 17 NO OVERVIEW CREATED PROGRAM AND SYSTEM CONFIGURATION PROGRAM OF CREATING A AND D i nt O LL ep LL lt O Os Ze FEO i O X Y O A wiper GX Works2 3 CREATING A PROGRAM OF LADDER Point When you convert a ladder block GX Works2 automatically compiles the program at the time of conversion if labels are not used If labels are used make sure to compile the created or edited sequence program after conversion so that the created or edited sequence program will be an executable sequence program Refer to the following manual for the details on Build Rebuild All GX Works2 Version 1 Operating Manual Simple Project Compile status checking method You can check the compile status on the Project view Project are ENE 2 he Parameter PLC Parameter Network Parameter Hin Remote Password Intelligent Function Module Global Device Comment Global Label BL Globalt Program Setting POU Program a MAIN Program a Local Label fm FB_Poo Structured Data Types Local Device Comment Device Memory Device Initial value Each non compiled portion is displayed in red 3 18 3 2 8 Compiling a program
49. Saee 1 o 2A the Modify Value screen o 9 9 9 9 9 9 9 9 9 9 9 o jejejejejejejejejejojo m 0 it 0 0 0 0 0 i 0 0 it 0 i 3 Change the current value Modify Value For the change procedure refer to the following Device Label ba L Point in the 3 4 1 Data Type Word Signed Value Device Label Buffer Memory Settable Range 32 r00 to Aror Execution Result lt lt Execution Result Device Label Word Signed Reflect to Input Column Delete 3 4 2 Batch monitoring of device values 3 35 NJ OVERVIEW AND SYSTEM SS CONFIGURATION PROGRAM OF CREATING A AND D i nt O LL C9 LL lt O o2 z lt W O X X Oa wiper GX Works2 3 CREATING A PROGRAM OF LADDER 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 K gt GX Works2 Version 1 Operating Manual Common A Select Diagnostics PLC Diagnostics to Ethernet Diagnostics h display the PLC Diagnostics screen CC IE Control Diagnostics CC IE Field Diagnostics MELSECNET Diagnostics CC Link Diagnostics Sensor Device Monitor System Monitor Online Module Change Vv PLC Diagnostics
50. System label is reserved to be released Pease eam nelieo ieee 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 Change and save aye er ae Not Reflectec UES Sse Total 0 O LL C9 LL lt O oe T lt O MEG ro On 4 2 5 Setting labels for QOPU LCPU 4 5 wiper GX Works2 4 CREATING A PROGRAM OF SFC 4 2 6 Creating a program for QCPU LCPU Create the SFC program for QCPU LCPU shown in Section 4 1 2 You can select the following modes when creating a program e Overwrite mode or Insert mode e Write mode or Read mode Refer to the following manual for details of the Overwrite mode Insert mode Write mode and Read mode L gt GX Works2 Version 1 Operating Manual Simple Project 1 Double click POU Program MAIN 000 Block Program on the Project view to display the SFC screen for PRG 000 Block Project CP Ey i the 3h Parameter p PLC Parameter Network Parameter Hin Remote Password m Intelligent Function Module Global Device Comment Global Label Globali Program Setting POU B Program Se MAIN 000 Block i FB_Pool ES Structured Data Types A Local Device Comment Device Memory Device Initial Value Double click it
51. _ 1 Select Compile Build to display the Execution Confirmation for Build screen You can press the F4 key instead to display the Execution Confirmation for Build screen 2 Set the execution method of build oe 2 In this example GX Works2 will convert the A Please akei of the following Sae selected prog ram After setting the execution method click the Confirm Build Method Convert the selected program Just converts the program in the active window button to execute conversion Does not compile Execute compile after conversion Settin gs Compiles the entire project The compile process may take several minutes to complete e Select Convert the selected program j c FB Local Label Setting MAIN PRG ku PRG Write MAIN IT Step x 3 Build converts the unconverted ladder block and changes its background color as shown on the left 3 16 3 2 7 Converting ladder blocks 3 2 Creating a Project 3 2 8 Compiling a program There are following two types of compiling The compiling target is different between the two types Select Rebuild All for this example The Rebuild All procedure is described below Refer to the following manual for compiling gt GX Works2 Version 1 Operating Manual Simple Project Table 3 2 Compiling type and target program Target program to be compiled Converts non compiled programs into sequence program Build Does not comp
52. _ Writing Completed When processing ends close this window automatically Close To the next page 3 3 2 Writing a project to the programmable controller 3 25 Er GX Works2 3 CREATING A PROGRAM OF LADDER Online Data Operation m Connection Channel List Serial Port PLC Module Connection USB System Image C Read Write Verify Delete fi PLC Module a Intelligent Function Module Execution Target Data No Yes Title Edit Data Parameter Program Select All Cancel All Selections Gem Size a 2396 Bytes 2010 11 24 12 31 07 2196 Bytes 2010 11 24 12 31 03 564 Bytes O Deal 2010 11 24 12 31 07 se eel ae 3 Necessary Setting No Setting Already Set Setifitisneeded No Setting Already Set Writing Size 6 144Bytes Related Functions lt lt Remote Set Clock Operation Free Volume Use Volume 77 824 36 864Bytes Refresh Execute Close PLC User Data Write Title Format PLC Clear PLC Memory Arrange PLC Memory Memory 3 3 2 Writing a project to the programmable controller 9 Click the s button to close the Online Data Operation screen 3 4 Monitoring Operations Swe Monitoring Operations Execute Monitor to check the operations GX Works2 is able to simulate the programmable controller operations in offline mode Refer to the following manual for the simulation function GX Works2 Version 1 Operating Manual C
53. a Hig Remote eon a Intelligent Function Module Global Device Comment hia Global Label fie Program Setting POU B Program MAIN db Program I Local Label ij FB_Pool Structured Data Types Local Device Comment 2 Device Memory la Device Initial Value Q Parameter Setting Click the End button after finishing the setting 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 GX Works2 Version 1 Operating Manual Common Manual of the programmable controller being used Manual of the Network being used 3 2 4 Setting parameters 3 7 NJ OVERVIEW CREATED PROGRAM AND SYSTEM CONFIGURATION PROGRAM OF CREATING A AND D i nt O LL ep LL lt O Os T FEO LO X Y O A wiper GX Works2 3 CREATING A PROGRAM OF LADDER 3 2 9 Setting labels Set global labels When not using labels proceed to Section 3 2 6 ENavigation 1 Double click Global Label Global1 on the Project Project view to display the Global Label Setting CP a 8 Gp 2 Bho screen 3h Parameter p PLC Parameter
54. art or check USB driver installation amp communication error dialog is being displayed with other MELSOFT products Please close the error dialog lt E5 01808502 gt 8 Click the button to finish Transfer j is Setup and close the screen Al P z Serial CC IE Cont Lil Ethernet CC IE Field Q Series NETII PLC USB NET 10 H Board Boar Bus Board Board CC IE Cont CC Link Ethernet C24 Module Module Master Local Communication Module Head Module ho PLC Mode QcPU Q mode je Connection Channel List Transfer Setup Connection1 Board USB T CC IE Field CCIE Field No Specification Other Station Other Station p i Single Network Co existence Network PLC Direct Coupled Setting Connection Test Time Out Sec 30 Retry Times 0 cometon PLC Type Q02 Q02H Detail sa E E E E w CC IE Cont CC IE Field Ethernet CC Link C24 NET 10 H nr System Image f gt Phone Line Connection C24 CCIECont CCIEField Ethernet CC Link C24 NET 10 H Accessing Host Station Multiple CPU Setting j j J J Target PLC TEE Not Specified 1 2 3 4 3 3 1 Connecting the personal computer to the programmable controller 3 21 Er GX Works2 3 CREATING A PROGRAM OF LADDER Daning O You can set two or more connection destinations and change them over if there are two or more connection destinations 1 Select Connection1 in the Current Connection Destination Connection on
55. ate a necessary circuit In this example the initial state SO is set to ON using the special auxiliary relay M8002 that is actuated instantaneously when the programmable controller mode is changed from STOP to RUN CREATING A PROGRAM OF aS LADDER a PRG Write 000 Block 3 Step O LL 7p LL O OP a Kae MEG X X On 4 2 7 Creating a program for FXCPU 4 25 era GX Works2 4 CREATING A PROGRAM OF SFC 4 2 8 Compiling a program for QCPU LCPU or converting an SFC diagram for FXCPU E Compiling a program QCPU LCPU For the program compiling procedure refer to the following 3 2 8 Compiling a program GX Works2 Version 1 Operating Manual Simple Project M Convert an SFC diagram FXCPU select View Back to Zoom SFC Block to return to the SFC screen and convert an SFC diagram e Select Compile Build to execute Compile View Online Debug Diagno conversion sy Online Program Change Shift F4 Rebuild All ShiFt Alt F4 Convert Block Ctrl Alt F4 4 276 4 2 8 Compiling a program for QCPU LCPU or converting an SFC diagram for FXCPU 4 3 Writing a Project to the programmable controller 4 3 Writing a Project to the programmable controller For writing a project to the programmable controller CPU refer to the following L7 3 3 Writing a Project to the programmable controller NJ OVERVIEW 4 4 Monitoring Operations Execute Monitor to check
56. ath 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 A PROGRAM OF LADDER 3 9 Exiting GX Works2 End the project a 1 Select Project Exit Q to exit GX Works2 A New Ctrl N Open Ctrl O Close Save Ctrl S Save 4s 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 8 Print J Ctrl P Print Preview B Print Window Print Window Preview Printer Setup The Latest File Start GX Developer Z A 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 gt A Do you want to sawe the project e ce rN MELSOFT w This chapter explains how to create a program of SFC with a Simple Project through a simple program example 4 4 1 4 2 4 3 4 4 4 5 4 6 4 7 4 8 4 9 CREATING A PROGRAM OF SFC Created Program 2 2 264 siete tea dees ee nanenane 4 2 Created Program 0 0 ees 4 4 Writing a Project to the programmable controller 4 27 Monitoring Operations 0 0 00 eee 4 27 Diagnosing the programmable controller 4 30 Reading a P
57. ation Setting screen appears Refer to the following for the setting procedure 4 2 7 Creating a program for FXCPU 4 2 4 Setting parameters For the Parameter setting procedure refer to the following gt 3 2 4 Setting parameters Refer to the following manuals for the details on Setting parameters gt GX Works2 Version 1 Operating Manual Common CPU manual CPU programming manual 4 4 4 2 1 Starting GX Works2 4 2 Created Program 4 2 5 Setting labels for QOPU LCPU For the Global Label setting procedure refer to the following gt 3 2 5 Setting labels For details of the Global Label and Local Label setting procedures refer to the following manual NJ OVERVIEW GX Works2 Version 1 Operating Manual Simple Project Restrictions The FXCPU does not support the Label in SFC language Directly input a device CREATED PROGRAM AND SYSTEM Q CONFIGURATION E Setting on the Global Label Global Label Setting Global _ Class Label Hame Data Type Constant VAR_GLOBAL Start button Bit VAR_GLOBAL Continuous operation Bi O Pyy y VAR GLOBAL Standby_indication et O O CREATING A PROGRAM OF aS LADDER WAR_GLOBAL Center lamp BE VAR_GLOBAL Center_fountain Bt VAR_GLOBAL Loop ine lamp Bit VAR_GLOBAL Leopadneatoumtan o o e o O O a The system label is already re C System label is reserved to be registered
58. der o Settings L x ca e Series QCPU Q mode e Module Type Q02 Q02H e Project Type Simple Project e Language Ladder O LL ep LL lt O Os z FEO iO X Y O A Point When using labels in Simple project check Use Label on the New Project screen 3 GX Works2 creates a new project 3 2 3 Creating a new project 3 5 wiper GX Works2 3 CREATING A PROGRAM OF LADDER Point Opening 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 gt GX Works2 Version 1 Operating Manual Common 7 Perform either operation below e Select Project Open e Click Open 2 The Open Project screen appears Look in Sample e m a ea HiProject1 Oxy HiProject2 gxw Enter the folder where the project is saved Specify the existing project to be opened The selected project is displayed in File name My Documents My Computer Project gW s Places Open a Workspace Format Project MELSOFT Navigator supports this format 3 Click the button to open the selected project 3 2 3 Creating a new project 3 2 4 Setting parameters Set parameters Project PP Sy Ge 2 Ath g Parameter ay pe Double click it A Network Par
59. dow Preview Ladder screen 3 Printing Print Window Preview Ladder 4 Click the button to determine the miosau setting and display the Print Window Preview V Device comment Row 4 Column fe X Number of characters to be printed 32 characters S C re e n T Statement Note In this example the Print Window Preview Ladder I Contact Print Positi Right TF the number of display connection is 21 screen remains In the initial setting ALLEE E Right 7J contacts are printed under the ladder program Print Range Whole Range ng C NJ OVERVIEW i a me For details of the setting on the Print Window O Preview Ladder screen refer to the following Os Specified Print Range A Ww Print Range Whole Range Start nd Step manual a b p L gt GX Works2 Version 1 Operating Manual Baz Common OZO 5 After checking the contents click the button to print the program Click the _ s button to close the Print Window Preview screen PROGRAM OF CREATING A AND D i nt Program 6 25 2009 Library Name Data Name MAIN x0 T 0 Y10 X v10 K10 To x H move Kio ARI O LL 09 LL lt O o2 Z3 lt W O xX Oo x2 r R rr 0 VARI 18 _ AYNWNYN L 3 7 2 Previewing a program 3 41 ea GX Works2 3 CREATING A PROGRAM OF LADDER 3 7 3 Printing a program 1 Display a program For the display procedure refer to the
60. e Br Module CC IE Field CC IE Field Master Local Communication Module Head Module a i fn Bi Ni No Specification Other Station Single Network Other Station Co existence Network Time Out Sec 30 Retry Times 0 E CCIE Cont CCIEField Ethernet CC Link C24 NET 10 H CCIE Cont CCIE Field Ethernet CC Link C24 NET 10 H Accessing Host Station r Multiple CPU Setting 00 lot Specified Sb 2a a TA PLC Mode QCPU Q noa Connection Channel List PLC Direct Coupled Setting Connection Test PLC Type Detail alsi System Image f gt Phone Line Connection C24 EE To the next page 3 20 3 Double click Serial USB in PC side I F to display the PC side I F Serial setting screen 4 Set the PC side I F After the setting click the button to complete the setting and close the screen Settings e Select USB 5 Click PLC Module in PLC side I F to select the interface to be used 3 3 1 Connecting the personal computer to the programmable controller 3 3 Writing a Project to the programmable controller Tener Setup Connection m 6 Click the Connection Test button to execute i da Tm 7 z TO ga SO W r ce WO a communication test with the programmable T controller through the specified connection CC IE Cont CC Link Ethernet GOT CC IE Field CC IE Field h Module NET 10 H Module Module Master Local Communication C a n n
61. each programming language For details of instructions used in each programming language refer to the section 4 section 5 on the next page GX Works2 GX Works2 Version 1 GX Works2 Beginner s Manual Operating Manual Purpose Installation Project Project Project Project Instructions Function Module lt T Details Outline e Details Outline piae EE E Details Outline a ens _ a Details Outline BS es Details Outline Details Outline _ 1 MELSAP3 and FX series SFC only A 11 4 Details of instructions in each programming language for QCPU Q mode LCPU MELSEC MELSEC Q L F Manual for Structured MELSEC QI L Structured Q L MELSEC Q L QnA Programming Manual Programming Programming Manual Manual Common Special Application rnanan PID Control Fundamentals Instructions Instructions Functions rnanan Instructions module to Purpose be used Learning details of programmable All controller CPU languages error codes special relays and special registers Learning the types and details of common instructions Learning the types and details of instructions for intelligent function modules Learning the types and details of instructions for network modules Pee ene Details Learning the types and details of instructions for the PID control function ma pa DAEIR Learning details of specifications functions and instructions of SFC MELSAP3 Lear
62. ececeueeeeeceueeessceeeeeessueseessansesessansaas 4 29 Diagnosing the programmable controller 4 30 Reading a Project from programmable controller 4 30 Printing 4 30 Saving a Project 4 30 Exiting GX Works2 4 30 4 9 E MANUALS Related manuals are separately issued according to the purpose of their functions for 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 and the operating 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 methods 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 method
63. ect TEs Yes to all No Read from PLC 3 The left screen is displayed during reading When reading is finished Read from PLC Completed appears Click the button to close the tn areal Read from PLC screen Titi it 100 100 hl Parameter Upload Completed Boot File Upload Completed Remote Password Upload Completed Symbolic Information Upload Completed Read from PLC Completed Reading Com pleted When processing ends the window is automatically close Close FA 4 Click the ce button to close the Connection Channel List Serial Port PLC Module Connection USB System Image O n n e D ata O p e rati O n S C re e n i ie Read Write C verify Delete fi PLC Module a Intelligent Function Module Execution Target Data No Yes Title iad Module Data Parameter Program Select All Cancel All Selections Module Name Data Name Title Project Name Target Detail Last Change Target Memory Size 5 eis GX Works2 Simple Project v 2010 11 24 14 08 06 2410 Bytes alis Ml W p PLC Network Remote Password Switc v an E Ep COMMENT O Detail 2007 03 08 14 06 22 27434 Bytes ee 2010 11 24 14 07 52 564 Bytes Fs Device Data Necessary Setting No Setting Already Set Setif it is needed Mo Setting Already Set Acquire Symbolic Information Project Name Writing Size Free Volume Use Volume OBytes 80 896
64. following L gt 3 7 2 Previewing a program PRG Write MAIN 15 Step Project Edit Compile Ctrl M Find Replace View Open Ctrl o Close Save Ctrl 5 Save s Compress Unpack Delete werify Project Revision Change PLC Type Change Project Type Object Intelligent Function Module Open Other Data Export to Gx Developer Format File Library Security ee Print Jh Print Preview Bi Print Window Ctrl F Print Window Preview k Printer Setup The Latest File Start GY Developer Exit Print Window Ladder Additional Information V Device comment Row Column f8 v Statement Note Number of characters to be printed 32 characters IV Contact Right gt i IF the number of display connection is 21 ig contacts are printed under the ladder program Whole Range se Print Position Print Range Coil Specified Print Range Print Range Whole Range v Print Window Preview 3 42 3 7 3 Printing a program Select Project Print Window to display the Print Window Ladder screen Click the button to determine the setting and start printing In this example the Print Window Ladder screen remains in the initial setting For details of the setting on the Print Window Ladder screen refer to the following manual gt GX Works2 Version 1 Operating Manual Common 3 Printing 3 7 4 Previewing a PLC Parameter You can display PLC
65. fountain Y013 Loop line lamp Y017 Loop line fountain 4 2 4 1 1 Operations of program 4 1 Created Program 4 1 2 Created Program E For QCPU LCPU NJ OVERVIEW f PRG Write 000 Block 73 Step af PRG Write 000 Block Step No 0 Standby status 1 Step 2 a ll E 3 0 Standby _incdicatan uu AND SYSTEM Q CONFIGURATION CREATING A PROGRAM OF E For FXCPU O LL 7p LL ae OP a H O W O X X On fi PRG Write 001 Block1 Fount fa fG PRG Write 001 Block1 Step No 0 Standby status 1 Step 3 4 Al o oo Yo10 Ooo a mA x 4 1 2 Created Program 4 3 era GX Works2 4 CREATING A PROGRAM OF SFC 4 2 Created Program Create a project using SFC programs 4 2 1 Starting GX Works2 For the GX Works2 starting procedure refer to the following 3 2 1 Starting GX Works2 4 2 2 Screen configuration in GX Works2 For the GX Works2 screen configuration refer to the following 3 3 2 2 Screen configuration in GX Works2 4 2 3 Creating a new project For the new project creating procedure refer to the following select SFC as the programming language gt 3 2 3 Creating a new project Point Perform the following when using the FXCPU Uncheck Use Label The FXCPU does not support the Label in SFC language If it is checked SFC is not selectable as the Language When you select SFC as the Language and create a new project the Block Inform
66. g a Project to the programmable controller 3 19 3 3 1 Connecting the personal computer to the programmable controller cccccecceceeeeeeeeeeeeees 3 19 3 3 2 Writing a project to the programmable controller cccccsscccceseceseseceseeseeseeseeseeseesseeeensaeess 3 24 3 4 Monitoring Operations 3 27 3 4 1 Monitoring a Progra csssactencoosasescsoumen insinu kaads iLi a ia ai iaei dadida d iiidid rdn dniio niidina 3 27 3 4 2 Batch monitoring f device ValUGS ssisisrrciriiiciridricsricsrti corani aeiaai dra ndie idade iada ir iain 3 32 3 5 3 6 3 7 3 8 3 9 4 1 4 2 4 3 4 4 4 5 4 6 4 1 4 8 Diagnosing the programmable controller 3 36 Reading a Project from programmable controller 3 37 Printing 3 39 3 7 1 Setting the printer vacceeswctytvnnedadandecaed lt henncosesdehesusndeceueaded asus becieeesuseeduaadnasandeesddacsudeescenerdesesceusseeieeease 3 39 3 7 2 Previewing POON AM caureatnravineantatsuvnctetninmariontcsuninanuntisaay boat elonteliebenieeaidaiwiueediscednnrarantatadtatoawanat 3 40 Serge Faning a Proglasio E i 3 42 3 7 4 Previewing a PLC Parameter socs sszcsiacavicccsatcevessebaccceesanncsenteleceaastasavasaeseacs ead uaenciaccesaenioneehaceteds 3 43 3 7 5 Pining a PLC Parametef rien cet cc cn ce cernecaqennerceucndtcctanneteo atatemteasnnteecicecem RINE E EA nAi 3 44 Saving a Project 3 45 Exiting GX Works2 3 46 4 CREATING A PROGRAM OF SFC 4 1to4 31 Created Program 4 2 4 1 1 Operation
67. gram 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 Program Operation overview Reference language Ladder Chapter 3 You can create the Inline ST Box that displays ST language programs in the Ladder Editor and edit and monitor ST language programs Refer to the following manual for the details GX Works2 Version 1 Operating Manual Simple Project F PRG Write 000 Block 73 Step _ fc lt T PRG Write 000 Block Step No 0 Standby status 1 Step SFC Chapter 4 ST Refer to the following manual for the details GX Works2 Beginner s Manual Structured Project rN MELSOFT w 3 CREATING A PROGRAM OF LADDER This chapter explains how to create a program of Ladder with a Simple Project through a simple program example 3 1 3 2 3 3 3 4 3 5 3 6 3 7 3 8 3 9 Created Program 2 25264 siesbeteedees ee eveceese scenes 3 2 Creating a Project 0 0 ccs 3 3 Writing a Project to the programmable controller 3 19 Monitoring Operations 0 0 00 cee eee 3 27 Diagnosing the programmable controller 3 36 Reading a Project from programmable controller 3 37 PRINUNG 52 6205 ne ode eee oe a ae 3 39 Saving a Project coacu nce ekn couse nananana anann 3 45 Exiting GX Works2
68. he following Put the cursor in the position row number 8 column number 1 f Step3 in the 4 2 6 Settings e Symbol TR 2 e Comment blank 8 Creating the SFC Diagram step 3 For the creation method refer to the following symbol STEP 3 stepattrbute i z Put the cursor in the position row number 10 Bock 0 Comment J Loop ine lamp Cancel column number 1 KL Step2 in the 4 2 6 Settings e Symbol STEP 3 e Step Attribute e Comment Loop line lamp 9 Creating the SFC Diagram Series transition 3 For the creation method refer to the following Put the cursor in the position row number 11 column number 1 fs Step3 in the 4 2 6 Settings e Symbol TR 3 e Comment blank To the next page 4 8 4 2 6 Creating a program for QCPU LCPU STEP 4 Step Attribute 1 j Comment Loop line Fountain Cancel Enter SFC Symbol Symbol TR 0 Comment Symbol TR BAe sep atriu ET E BI 0 t Cancel To the next page 4 2 Created Program 10 Creating the SFC Diagram step 4 For the creation method refer to the following Put the cursor in the position row number 13 column number 1 C Step2 in the 4 2 6 Settings e Symbol STEP 4 e Step Attribute e Comment Loop line fountain 171 Creating the SFC Diagram Selective branch Put the cursor in the position row number 14 column number 1 on the screen and double click it to display
69. he remote operation refer to the following ae Point in the step4 zae Switch the programmable controller CPU to the Ea Write mode when editing the SFC programs Refer to the following manual for details of the Overwrite mode Insert mode Write mode and Read mode gt 3 2 6 Creating a program 4 4 2 Batch monitoring of device values For the Batch monitoring of device values procedure refer to the following gt 3 4 2 Batch monitoring of device values 4 4 2 Batch monitoring of device values 4 329 era GX Works2 4 CREATING A PROGRAM OF SFC 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 gt 3 6 Reading a Project from programmable controller 4 7 Printing For the Printing a project procedure refer to the following 3 7 Printing There are following differences in the case of SFC programs e Previewing a program The Print Window Preview Ladder screen is not displayed e Printing a program The Print Window screen is displayed SFC Block 6 25 2009 Data Name 000 Block 1 1 4 8 Saving a Project For the Saving a Project procedure refer
70. he types language and details of ee sequence Details instructions Learning the types and details of application instructions ee Details A 13 How to read this manual Chapter heading Index on the right of the page number clarifies the chapter of currently opened page Section title e 3 2 Creating a Project Clarifies the section of currently opened page l 3 2 4 Setting parameters Set parameters z pae 1 Double click Parameter PLC Parameter E Project on the Project view to display the Q Parameter I CP ss Se 2 Ah Setting screen Double click it morn lt Ba f G ert FE Sobal Device Comment DoJ 8 Global Label 2 9 Ge Program Setting my a Z ay 528 L Program ih MAIN 3 a Program 5 Local Label l amp FB_Pool 63 Structured Data Types Local Device Comment lt ro l Device Memory oz Device Initial Yalue Z S a l 588 arg J ya 4 z w 2 Click the button to determine the settings and close the screen g l ome The parameters remain unchanged from the initial lt setting in the example in this manual 23 l Refer to the following manuals for the details on lt 9 Reference location parameter setting aie gt GX Works2 Version 1 Operating Manual lt gt leads to the reference Common location and reteraneasmanuals Click the End L3 Manual of the programmable controller button after being used finishing the setting
71. hecking operations Monitor the sequence program execution status and device contents and check 3 4 operations AA Check for errors in the programmable controller 3 5 Vv 9 Printing Print the program and parameters 10 Exiting GX Works2 Save the project 3 8 Exiting GX Works2 3 9 NO OVERVIEW CREATED PROGRAM AND SYSTEM Q CONFIGURATION CREATING A PROGRAM OF LADDER O LL ep LL lt O o2 Z3 H lt W O xX On era GX Works2 1 OVERVIEW MEMO rN MELSOFT w Ne OVERVIEW 2 CREATED PROGRAM AND SYSTEM CONFIGURATION This chapter explains the system configuration and gives an overview of the program created by using this manual CREATED PROGRAM Z O Oe pe gt O Nit anes ZO lt L O OO CREATING A PROGRAM OF LADDER 2 1 System Configuration 0 0 cee 2 2 2 2 Overview of Program Creation 0 00 eee ees 2 2 O LL ep LL lt O Os Ze FEO i O X Y O A ea 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 USB cable 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 pro
72. ilation devices are displayed instead of labels Select View Device Display Device Display to check the menu item Note that the menu item is unchecked when you select View Device Display Device Display while the menu item is checked NO OVERVIEW CREATED PROGRAM AND SYSTEM S CONFIGURATION Devices are displayed instead of labels a move K10 MOVP K20 PROGRAM OF CREATING A AND D i nt Displaying labels and devices at the same time Devices can be displayed at the same time in the label display mode by adding the corresponding option Select Tool gt Options to display the Options screen Select Program Editor Ladder Ladder Diagram on the Options screen and check Display labels and devices In the example below X1 and DO are displayed as labels lt Label display gt O LL 09 LL lt O Os T FEO LO X Y O A 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 starting from V when you enter V You can select a displayed label instead of entering the label completely 3 2 6 Creating a program 3 15 era GX Works2 3 CREATING A PROGRAM OF LADDER 3 2 7 Converting ladder blocks Local Label Setting MAIN PRG u PRG Write MAIN 1 5tep gt ER Global Label Setting Gbal
73. ile already compiled programs Converts all programs into sequence program REDULG AN Compiles already compiled programs also 1 Select Compile Rebuild All to execute Online Debug Diagne Rebuild All You can click j Rebuild All to execute Rebuild All MELSOFT Series GX Works2 2 The screen shown on the left appears ie 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 0 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 V Check for duplicated coils perform consistency pair check and other ladder checks after Rebuild All is complete re you sure you want to Rebuild All 3 When finishing Rebuild All GX Works2 Ne Trest Data Wane orere displays the result on the Output window 1 Information Word device VAR range 0 point used 2 Information Bit device VAR range 0 point used 3 Infermation Pointer VAR range 0 point used lf an error occurs check the contents eliminate the 4 Information Timer VAR range 0 point used 5 Information Counter VAR range 0 point used cause of error and then execute Build or
74. ions on the Connection Destination view right click it and then select the menu item Set as Default Connection CREATED PROGRAM AND SYSTEM S CONFIGURATION Ee Connection CP Add New Data Set as Default Connection X gai copy LL Delete O Rename 2 ee Sort gt E o E ia hl WU Og Cy Property rere Oo 2S 2 The connection destination set as the i RATATAT default connection destination is lt 5 displayed in Current Connection on a2 i OO n i ax Current Connection the Connection Destination VIEW roe Oa ag ConnectionZ Default Connection All Connections Connection Connections 3 3 1 Connecting the personal computer to the programmable controller 3 23 era GX Works2 3 CREATING A PROGRAM OF LADDER 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 LFL liam e Toot window 1 Select Online Write to PLC to display the BB tess tromnc Online Data Operation screen Verify with PLC R EE You can click 28 Write to PLC to display the Online ana Data Operation screen Password Keyword r 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
75. isplayed only in the FX3U and FX3UC Series version 3 00 or later e In the case of Simple project with labels 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 Vv MELSOFT Application 3 The left screen is displayed Do you want to execute writing the program oe Click the button to 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 auto assign setting to 0 s 7 After executing a Rebuild All when labels are reassigned to new devices values From the previous program will remain in the previously assigned wri te th e p ro e ct p ro g ra m a devices When writing to the CPU after a Rebuild All operation clear the device ranges set in Device Label Auto Assign setting to 0 Tt 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 CPU 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 error occurs while the program is being
76. lbar e 70 x Statusbar Siain Color and Font CREATING A PROGRAM OF Docking Window gt Program Display Ctrl Alt Fs gt Lan E Zoom Text Size b SFC Row Setting Open SFC Blocklist MELSAPS Display MELSAP L Instruction Format Display O LL U LL lt O oe T H lt O MEG ro On MELSAP L Start Conditions Format Display Open Zoom Start Destination Block Ctrl L Back to Start SEC Block Ctrl R Open Header 4 710 To the next page 4 2 7 Creating a program for FXCPU 4 21 ea GX Works2 4 CREATING A PROGRAM OF SFC View Online Debug Diagnostics Tool Windor Toolbar gt Statusbar Color and Font Docking Window Program Display Ctrl Alt F8 SFC Step Transition Comment Ctrl F5 al Zoom Text Size gt SFC Row Setting Open SFC Blocklist MELSAP3 Display MELSAP LfInstruction Format Display MELSAP L Start Conditions Format Display Open Zoom Start Destination Block bh Ctrl L Back to Start SEC Block Open Header PRG Write 001 Block1 Step No 0 Standby status 1 Step 20 Creating the zoom operation output of the step 0 Put the cursor in the zoom block Such as step and serial transition and then perform the following procedure to display the zoom In this case put the cursor in the step 0 Select View Open Zoom Start Destination Block Perform the following to return t
77. lp To the next page 3 2 Creating a Project Click 2 Open Branch on the Ladder tool bar to display the Enter Symbol screen Directly input a device on the Enter Symbol screen and click the button to display the Open Branch Settings e Y10 Click f Coil on the Ladder toolbar to display the Enter Symbol screen Directly input a device on the Enter Symbol screen and click the button to display the Coil Settings e Y10 Click sa Vertical Line on the Ladder toolbar to display the Enter Vertical Line screen Click the button to display the Vertical Line Click f Coil on the Ladder toolbar to display the Enter Symbol screen Directly input a device and set value on the Enter Symbol screen and click the button to display the Coil Settings TO Space K10 Click Ts Open Contact on the Ladder tool bar to display the Enter Symbol screen Directly input a device on the Enter Symbol screen and click the button to display the Open Contact Settings e X1 3 2 6 Creating a program NO OVERVIEW CREATED PROGRAM AND SYSTEM CONFIGURATION PROGRAM OF CREATING A AND D i a O LL ep LL lt O Os z FEO iO X Y O A Er GX Works2 3 CREATING A PROGRAM OF LADDER Local Label Setting MAIN PRG h Global Label Setting Globali 9 Click Application Instruction on the Ladder toolbar to display the Enter Symbol screen
78. m SO to S9 when using the FXCPU e States S10 and later can be used as general step numbers However note that the maximum number of steps in 1 block is 512 e Each step state number can be used only once throughout all blocks 9 Creating the SFC Diagram Series transition 1 For the creation method refer to the following Put the cursor in the position row number 5 column E number 1 LC Step7 in the 4 2 7 Settings e Symbol TR 1 10 Creating the SFC Diagram step 11 For the creation method refer to the following Put the cursor in the position row number 7 column see Efu stepenu E A e number 1 Ussi Comment Center fountain Cancel Ea Step6 in the 4 2 7 Settings e Symbol STEP 11 e Comment Center fountain 11 Creating the SFC Diagram Series transition 2 For the creation method refer to the following al cme E Put the cursor in the position row number 8 column E number 1 2 Step7 in the 4 2 7 Settings e Symbol TR 2 To the next page 4 18 4 2 7 Creating a program for FXCPU J Comment Loop line lamp Symbol STEP x 13 Sa dgrsithies E Comment Loop line Fountain Cancel To the next page 4 2 Created Program 1 2 Creating the SFC Diagram step 12 For the creation method refer to the following Put the cursor in the position row number 10 column number 1 Step6 in the 4 2 7 Settings e Symbol STEP
79. meters 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 080788ENG 13JZ23 Manual number Manual code SH 080782ENG 13JW06 SH 080783ENG 13JW07 SH 080784ENG 13JW08 SH 080785ENG 13JW09 JY997D26001 09R925 JY997D34701 09R926 JY997D34801 09R927 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 labels 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 Simple
80. mory and check GX Works2 Simple Project in Target 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 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 Restrictions In the case of FXCPU e When labels are used 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 Point f Check the following when not using labels e Program program file e Parameter Er GX Works2 3 CREATING A PROGRAM OF LADDER lf a program or parameters already exist in the GX Works2 the following screen appears Click the or Yestoal button to overwrite the existing program or parameters When you click the Yes taal 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 4re you sure you want to overwrite the existing File Read symbolic information From PLE Do vou want to erase data in the proj
81. ne Program Change execute Online Program Change and save e Se ttin S e Constant When the label class is VAR_GLOBAL you cannot set or change the constant 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 Simple Project Refer to the following manual for the details on programming global labels and local labels lt 3 MELSEC Q L F Structured Programming Manual Fundamentals 3 10 3 2 5 Setting labels 3 2 Creating a Project 3 2 6 Creating a program Create the ladder program shown in Section 3 1 2 You can select the following modes when creating a program e Overwrite mode or Insert mode This section explains the creation procedure in the Overwrite mode Every time you click the key the mode is switched between Overwrite and Insert Select either mode as needed e Write mode or Read mode Select the Write mode when editing the ladders For selecting the Write mode select Edit Ladder Edit Mode Write Mode from the menu bar Or click Ez Write Mode Refer to the following manual for details of the Overwrite mode Insert mode Write mode and NO OVERVIEW CREATED PROGRAM AND SYSTEM 9 CONFIGURATION Read mode GX Works2 Version 1 Operating Manual Simple Project u lt L POTNO A 1 Double click P
82. ng label name will cause a compile error e Label name which contains space e Label name whose first character is a number e Label name equivalent to a device name For other characters unavailable for the label name refer to the following manual K gt GX Works2 Version 1 Operating Manual Common NJ OVERVIEW all 4 Directly input the Date Type on the Global Class Data Type Label Setting screen VAR_GLOBAL Word Signed Settings e Date Type Word Signed CREATED PROGRAM AND SYSTEM CONFIGURATION System label is reserved to be registered Syster label is reserved to b o execute the Reservation to Register Release for the system Reserva abel reflection to the system label database is required Please execute Reflect ta System Label Database To execute Online Program Change execute Online Program Change and save aen RESENHA PROGRAM OF CREATING A AND D i nt Point You can click to display the Type Selection screen and then select the Types on this screen O LL ep LL lt O Os T FEO Li O X Y O A Data Type Selection x Setti ngs Libraries Data Type 1 Libraries ALL 2 Type Class Simple Types Word Unsigned Bit Stringl 16 bit Double Word Unsigned Bit String 32 bit ee 3 pee Word Signed 4 Array Element Not checked 1 Set Libraries Type Class Types and Array m Type Class
83. ning the fundamentals for creating a structured program me Details Learning the types and details of common instructions Learning the types and details of Using instructions for ieee ee eee Details Tet Structured intelligent function Ladder modules FBD or ST Learning the types language land details of instructions for network modules Learning the types and details of instructions for the SEEEN PID control function eS Details a Learning the types and details of application functions Details a HHA Pe l Details A 12 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 Basic amp FXo FXos FX1s FX1N FX3s amener PS bear PRE SEU Bama P ATE pes teu Functions Common instruction FXu FX2c FX2Nc FX3ec FX3uc Pe jn ee Details Details Details Pee A je Dele 5 A Details Details Details Learning the types and details of basic application instructions descriptions of devices and parameters Learning details of Using SFC specifications language functions and Using ladder language instructions of SFC Learning the fundamentals for creating a structured program Details Learning the descriptions of lt a Using devices Structured parameters and Ladder FBD error codes or ST Learning t
84. o the SFC screen Select View Back to Zoom SFC Block Create the operation output of the step 0 standby status and convert the ladder For operation output creation and ladder conversion refer to the following gt 3 2 6 Creating a program 3 2 7 Converting ladder blocks Point The step _ whose operation output is created will change into _ 1 ffe 20 2 0 3 4 710 gt F 7 at eye eee Vv To the next page 1 1 Me 0 91 70 3 4 0 710 5 71 h 7 a a 72 4 2 7 Creating a program for FXCPU 4 2 Created Program View Online Debug Diagnostics Tool Windo 21 Creating the Zoom Transition condition of Ib i igi B series transition 0 Statusbar Color and Font Display the ZOOM ee ee For the display method refer to the following Program Display Ctrl Alt F8 SFC Step Transition Comment Ctrl F5 e Step20 In the 4 2 1 E Zoom For operation output creation and ladder conversion lee refer to the following SFC Row Setting RS ae 3 2 6 Creating a program a 3 2 7 Converting ladder blocks MELSAP LtInstruction Format Display MELSAP L Start Conditions Format Display Open Zoom Start Destination Block Ctrl L Back to Start SEC Block Open Header PRG Write 001 Block1 Transition No 0 1 Step Point In the transition condition the coil instruction accepts only one dummy coil TRAN Click
85. ojojojojojojo D ojojo ojo ojojojojojojojojojo o E 9 9 9 9 9 9 9 9 9 9 Bic 00 00 oo 00 oo og oo 00 oo oo 00 oo S SJoJofololololojolojo 9 E 0 0 0 0 0 0 0 0 0 0 a 0 0 0 0 a 0 0 0 a 0 0 a 0 ojojojojojojlojojojojojo goa 000 ooo 000 000 ooo 000 000 000 000 000 ooo ojojojojojojojojojojo ojojojojojojojojojojo ojojojojojojojojojojo e a o o To the next page 3 34 3 4 2 Batch monitoring of device values 3 4 Monitoring Operations Vv 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 RI RISTO EIEN 1 Select a device whose current ee Name Do T C Set Value Reference Program Reference val u e is to be cha n g ed C BufferMemory Modulestat sss CHEM Address o e COwd Display format Modify Value 2 ojoje ojojojojojojojojojo amp Device Buffer Memory Batch Monitor 1 Monitoring DEK 2 C ck th e _Modify value b u tto n to Device Device Name DO gt T C Set Value Reference Program _ Reference d i S p ay th e M od ify Va u e scree n C Buffer Memory Modulestat ow e es fo e d aeiia 32 88 K asc s Details Open Save Do not display comments Or click med Modify Value to display
86. ommon NO OVERVIEW 3 4 1 Monitoring a program 1 Click Project in the view selection area on the Navigation window to display the Project view CREATED PROGRAM AND SYSTEM CONFIGURATION 2 Double click POU Program MAIN Program on the Project view to display the PRG MAIN screen PROGRAM OF AND D i nt CREATING A CP os Gey 2 iy 3h Parameter p PLC Parameter Network Parameter Hin Remote Password Intelligent Function Module Global Device Comment B Global Label Globalt Program Setting POU B Program te MAIN O LL ep LL lt O Os Ze FEO iO X Y O A a Double click it ig Local Liatiel i FB_Pool Structured Data Types G Local Device Comment Device Memory Device Initial value arine oun Donostes oel windon tep l 3 Select Online Monitor Monitor Mode 8 Read from PLC Eo to switch the PRG MAIN screen to the 7 e Global Label Setting Global1 k ao monitoring status Password Keyword gt ae em You can also click amp Monitor Mode to switch the ee PRG MAIN screen to the monitoring status Program Memory Batch Download C Hodde change 4 Set the programmable controller CPU to RUN Set Clock Set the RUN STOP switch on the programmable ee es controller CPU to RUN Local Device Batch Read Save CSV Register Cancel Display Module
87. 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 CONOR i Structured aaa Project Project Function Project Block Learning all functions of GX Works2 Learning the project types and available O e languages in GX Works2 oo Learning the basic operations and EEEE operating procedures when creating a simple project for the first time Learning the basic operations and operating procedures when creating a structured project for the first time Learning the operations of available functions regardless of project type Details Details Outline 1 fim ttt a u Learning the operations and operating procedures when creating function blocks FB in Simple project Details Learning data setting methods for intelligent function module Learning the functions and operation methods for programming A 10 3 Operations in
88. r size Orientation etc Print Setup Paper Orientation Size B4 v Portrait Source Automatically Select v C Landscape Network Cancel 3 7 1 Setting the printer 3 39 era GX Works2 3 CREATING A PROGRAM OF LADDER 3 7 2 Previewing a program You can display a program in the image of printing Click it CP i Fp MERE Parameter Intelligent Function Module Global Device Comment 8 Global Label Program Setting POU B Program MAIN l Double click it Local Laat E FB_Pool Structured Data Types Local Device Comment Device Memory Device Initial Value PRG Write MAIN 15 Step TO 1 Click Project in the view selection area on the Navigation window to display the Project view 2 Display a program Double click POU Program MAIN Program on the Project view to display the PRG MAIN screen Project Edit Find Replace Compile View 3 Select Project Ezd Print Window Preview to Ctrl Ctrl O 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 1 Print Ctrl P Print Preview B Print Window Printer Setup N The Latest File Start GX Developer Z Exit Q To the next page 3 40 3 7 2 Previewing a program display the Print Win
89. rd Multi point Format 8 Points After the setting click the button to close the Display Format screen Refer to the following manual for the details on Display Format 1 gt GX Works2 Version 1 Operating Manual Common N oO J ow a m m m m Lul m m m iul lololola elel ejem ejo O haw O ia o Ga oco Gan o o CREATED PROGRAM AND SYSTEM CONFIGURATION PROGRAM OF CREATING A LADDER 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 pen button on the Device Buffer Memory Batch 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 Ra 22 22E O LL ep LL lt O Os T FEO LO X Y O A E 5 Click Fa Start Monitoring on the Ladder Device Name D0 v T C Set Value Reference Program
90. ring a program Ac DT Er GX Works2 4 CREATING A PROGRAM OF SFC 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 CPU used Refer to the following manual for the details on remote operation C gt gt 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 information Displays the connection target information currently set Programmable controller Status Displays the programmable controller CPU status Vv To the next page Connection Channel List Remote Operation x Connection InterFace use lt gt PLC Module Target PLC Network No p Station No Host PLC Type 02 Q02H QO2HCPU MODE RUN ERR USER BAT BOOT 4 4 1 Monitoring a program Specify Execution Target Currently Specified Station Y peration RUN STOP PAUSE Latch Clear RESET C Remove Memory Card Operation during RUN Device Memory Not Cleared Me Signal Flow Hold Specify Execution Target Allows you to set the target station for remote operation Select Currently Specified Station for this example Operation
91. roject from programmable controller 4 30 PRMNUNG 52 6205 nee oe e eee ee 4 30 Saving a Project coacw sce ekn couse eee wesevseeaeeeeasee 4 30 Exiting GX Works2 0 0 ccc ee 4 30 KN OVERVIEW CREATED PROGRAM AND SYSTEM CONFIGURATION OO CREATING A PROGRAM OF aOc Aa ROE OME SS ADDER CREATING A era GX Works2 4 CREATING A PROGRAM OF SFC 4 1 Created Program This section explains the operations of the program to be created and SFC programs 4 1 1 Operations of program This program controls fountain cycle operation continuous operation Cycle operation when X1 is OFF When the start button X0 is pressed the program will make progress in the sequence Standby status SO Center lamp S1 Center fountain S2 Loop line lamp S3 Loop line fountain S4 Standby status SO Each output is switched by the timer at every 2 seconds Continuous operation when X1 is ON When the start button X0 is pressed the program will make progress in the sequence Standby status SO Center lamp S1 Center fountain S2 Loop line lamp S3 Loop line fountain S4 Center lamp S1 and then repeat this sequence Each output is switched by the timer at every 2 seconds Mode selection Sav OQ x ON LEN 4p Start Standby XO YOTO Programmable controller output assignment Y010 Standby indication Y011 Center lamp Y012 Center
92. ry 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 a Seung Or moran at the time of Error Jump 5 Current Error Displays the current CPU error information 6 Error History Displays the error history 7 Error Jump Jumps to the ladder step number which contains the error corresponding to the currently selected error number 8 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 Programmable controller CPU information 15 Stop Monitor Starts or stops monitoring 16 Create CSV File Saves the error information to a CSV file 2 Click the cse button to close the PLC Diagnostics screen 14 Displays the programmable controller CPU status 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 Sec
93. s of Di OGG AM acd seca n sncte nc ce eee sacteeenteceteneeeceesectantecentencatoteacaeanadaat tacboreaeeaceumieatet 4 2 4 1 2 Ceed Progra sse ee een te eee en nen een eee eee ert reer eee 4 3 Created Program 4 4 4 2 1 STA UI OA WOKS Z rede rb cena cere seasotaceatcd EO 4 4 4 2 2 Screen configuration in GX Works2 3 ceicscciniess dncnncucenccanacdeeecinsaadaceacu denctbcesiosecedsdixeatacddentnoensdacixm 4 4 4 2 3 Creating a new PLOjet cccccssseccccssececceeseccecceuceeccauecececeeeeeesuueeessaueeeeessuseeessausesssasseeess 4 4 4 2 4 Setting parameters rs scicoeerdciceareetacccenisebeiaacoteadverbtsatviveddexebeiledsxeoacadecisboyisataesdiaciediessidetedeaaeen 4 4 4 2 5 Setting labels for QCPU LCPU vss cics ccc ce cctscevrsnoscstussenteadennanagaieobaceadechecaeeannetaaentiacttenarsosaeusns 4 5 4 2 6 Creating a program for QGPUIL CPU a icisincnccic0 cecteustesdninncaencobeeeanasisseennsdnencv deoimntiawesnenatOedanzte 4 6 4 2 1 Creating a program 10r alae eerste cancncesndcnceseacancscencuteteudctestancaciecstecassngescasnnesacpossneeeeese 4 15 4 2 8 Compiling a program for QCPU LCPU or converting an SFC diagram for FXCPU 4 26 Writing a Project to the programmable controller 4 2 Monitoring Operations 4 27 4 4 1 Monitoring a program 5 cree sre a creer ner esrnernanes ene naeienes cumnewenmecentmcobransiuacabebaeie qe esncoeanstiemecenbansehauceucaceetnas 4 27 4 4 2 Batch monitoring Of device VAlUCS cccccccccssseeeccesseceecseese
94. s 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 Structured Project Explains fundamental operation methods such as creating editing and monitoring programs in Structured 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 methods 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 structured 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 para
95. sfer Setup screen Connection Destination Pi eas a Current Connection Double click it Vv To the next page 3 3 1 Connecting the personal computer to the programmable controller 3 19 era GX Works2 3 CREATING A PROGRAM OF LADDER Transfer Setup Conecti K in A A C side Iji i p a qi a i ni Serial CCIE Cont CC Link Ethernet CCIE Field Q Series NET ID PLC USB TH10 H Board Board Board Bus Board Board Baad USB 2 CC IE Cont CC Link Ethernet 24 GOT CC IE Field CCIE Field PLC Module NET 10 H Module Module Master Local Communication Module Head Module al gt PLC Mode QCPU Q mode oa Em No Specification Other Station Other Station Single Network Co existence Network Retry Times 0 Time Out Sec l 30 CCIE Cont CCIEField Ethernet CC Link C24 NET 10 H C24 CCIECont CCIE Field Ethernet CC Link NET 10 H Accessing Host Station Multiple CPU Setting _ Target System _ e em lot Specified L ye A PC side I F Serial Setting p5 232C LSB Transfer Setup Connection1 Connection Channel List PLC Direct Coupled Setting Connection Test PLC Type Detail System Image de Eea Phone Line Connection C24 miei Serial CCIE Cont CC Link Ethernet CCIE Field Q Series NET II USB Board Board Bus Board NET 10 H Board Board USB PLC CC IE Cont CC Link Modul
96. splay the Enter SFC Symbol screen After setting Symbol click the button to display the jump destination step number Settings e Symbol JUMP 0 17 Enter SFC Symbol x Symbol JUMP fo Step Attribute z Bloc fo Comment Cancel Vv To the next page 4 10 4 2 6 Creating a program for QCPU LCPU 4 2 Created Program Point The step specified as the jump destination will change into 10 e 0 r 0 oS 7 a 71 7 r NO OVERVIEW CREATED PROGRAM AND SYSTEM Q CONFIGURATION Perform the following procedure to display comments set on the Enter SFC Symbol screen Select View SFC Step Transition Comment view Online Debug Diagnostics Tool windo Toolbar gt Statusbar u Color and Font x O p a Docking Window gt e f 0 2 Standby Z rX Program Display Ctrl Alt F8 H LU T sie lt 00 SFC Step Transition Comment Ctrl F5 wW O O Zoom R re lt ene on 4 Text Size gt SFC Row Setting 4 Open SFC Blocklist 2 Al MELSAPS Display MELSAP L Instruction Format Display a MELSAP L Start Conditions Format Display LL Open Zoom Start Destination Block Ctrl L Back to Start SEC Block Ctrl R Open Header a ad A lt Z H lt M x O 4 a 7 emer amp D a ispecies Tool wd 16 Creating the zoom operation output of the step Toolbar b 0 iv Statusbar
97. tatus between RUN and STOP using remote operation For the remote operation refer to the following Point in the 3 4 1 ojo ojojoj o o o jo jo jo jo o jo jojojojojo ojojojojojojejojojojo e ojojojojojojojojojojojom ojojojojojojojojojojojoS ojojojojojojojejojojojo m ojojojojojojojojojojojo ojojojojojojejojojojojo s ojo jojojojojojojojojojor ojojojojojojojojojojojo o o ojo o slololololololololos amp S o ol ol olol olololalo o e ojojojojojojojejojojojon ojojojojojojejojojojojo9 ojojojojojojojojojojojom ojo o o 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 screen title Number Device Device Name Reference Device Buffer Memory Batch Monitor 2 r Device Device Name T C Set Value Reference Program Device Buffer Memory Batch Monitor 1 Monitoring r Device Device Name DO z T C Set Value Reference Program Reference C Buffer Memory Module Start 7 HEX Address z bec Display Format Modify Value 2 Iw mial 32 32 Pa ASC g Details Open Save 1 C 2l Do not display comments olw ob t e O19 ojojojojo O19 aye ojo ajo ojojo ojojojojojojojojo
98. the Connection Lat Destination view right click it and then select the menu item Add New Data The Add New Data screen will appear Current Connection iv pe FConnectiont PY All Connections gt Mig Connectio Delete Rename 2 Set Data Name and uncheck Set as jh Sh Uae Default Connection Data Name Click the button to display the Connection2 newly created connection destination in Set as Default Connection All Connections on the Connection oe Destination view Settings e Data Name Connection2 e Set as Default Connection Unchecked 3 Set the connection destination Double click Connection2 in All Connections to display the Transfer Setup screen 3 3 1 Step3 in the Setting the Transfer Setup Newly created connection destination 3 22 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 NO OVERVIEW 1 Select Connection2 in the All Connection Destination Connect
99. the operations GX Works2 is able to simulate the programmable controller operation in offline mode Refer to the following manual for the simulation function 13 GX Works2 Version 1 Operating Manual Common CREATED PROGRAM AND SYSTEM Q CONFIGURATION 4 4 1 Monitoring a program 1 Click Project in the view selection area on the Navigation window to display the Project view CREATING A PROGRAM OF aS LADDER O LL 09 2 Double click POU gt Program gt MAIN gt lt 0 000 Block Program on the Project view T a screen to display the SFC screen for PRG nis Btn Function Module 000 Block fis DE daba When using the FX CPU double click 001 e Block1 Fountain control B Program Sd MAIN 8 000 Block E FB_Pool Structured Data Types A Local Device Comment a Device Memory FS Device Initial Value 3 Select Online Monitor Monitor Mode to switch the PRG 000 Block screen to the monitoring status Heer X K PRG Write 000 Block Ti You can also click gh Monitor Mode to switch the PRG 000 Block screen to the monitoring status GX Monitor Mode F3 Monitor Write Mode R Shift F3 eee 4 Set the programmable controller CPU to RUN z Set the RUN STOP switch on the programmable controller CPU to RUN To the next page 4 4 1 Monito
100. the same way as high level languages such as the C language Accordingly you can briefly create programs easy to look at 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 NK OVERVIEW CREATED PROGRAM AND SYSTEM Q CONFIGURATION CREATING A PROGRAM OF LADDER O L op Le O lt o O or A CREATING A Er GX Works2 1 OVERVIEW 1 2 Program Creation Procedure The figure below shows how to create a program with a Simple Project and execute it in a programmable controller CPU 71 Opening a project Start GX Works2 3 2 1 Create a new Simple Project Or open an existing Simple Project 3 2 3 Vv 2 Setting parameters Set the parameters 3 2 4 3 Setting labels Define global labels 3 2 5 Define local labels 4 Editing the program Edit the program in each program part Vv 5 Conversion and compiling Convert ladder blocks 3 2 7 Compile the program 3 2 8 Vv To the next page 1 2 Program Creation Procedure Vv 6 Connecting the programmable controller CPU Connect the personal computer to the programmable controller CPU 3 3 1 Set the connection destination Writing to the programmable controller Write the parameters to the programmable controller CPU T Write the program to the programmable controller CPU Bi 8 C
101. ting click the button to close the New Data screen and display the Block Information Setting screen Settings e Data Type Program e Language SFC Creating the SFC Block Set Title and Block Type After setting click the button to close the Block Information Setting screen and add 001 Block1 Fountain control SFC block on the Project view screen When using the FXCPU create an SFC program in this block Set to ON the initial step of this block using the ladder block created in 000 Block Settings e Title Fountain control e Block Type SFC Block Creating the SFC Diagram Double click POU Program MAIN 001 Block1 Fountain control on the Project view to display the SFC screen for PRG 001 Block Fountain control 4 2 Created Program Point SFC diagram Zoom screen layout By setting Options the SFC diagram and Zoom screen can be displayed together vertically or horizontally Select Tool Options to display the Options screen On the Options screen select Program Editor SFC SFC 1 Arrange Windows for MELSAP3 Arrange and set the following N93 OVERVIEW Settings e Tile SFC and Zoom vertically Check it e Arrange Select Tile Horizontally or Tile Vertically Change the position or size of the window to change over the SFC diagram Zoom screen layout CREATED PROGRAM AND SYSTEM Q CONFIGURATION M PRG Write
102. ting ladder blocks MELSAP L Instruction Format Display MELSAP L Start Conditions Format Display Back to Start SEC Block Open Header PRG Write 000 Block Transition No 0 2 Step To the next page A 12 4 2 6 Creating a program for QCPU LCPU 4 2 Created Program Point In the transition condition the coil instruction accepts only one dummy coil TRAN Click ies or tl and click the button to enter the dummy coil Then TRAN will be entered automatically NO OVERVIEW 18 Creating the zoom step1 series transition 1 step2 series transition 2 step3 series transition 3 step4 series transition 4 series transition 5 For the zoom display and creation methods refer to the following CF Step16 in the 4 2 6 L gt Step17 in the 4 2 6 L gt Point in the Step17 CREATED PROGRAM AND SYSTEM Q CONFIGURATION CREATING A PROGRAM OF zw LADDER T PRG Write 000 Block Step No 1 Center lamp 6 Step O LL 7p LL O OP a Kae MEG X X On T PRG Write 000 Block Step No 2 Center fountain 6 Step To the next page 4 2 6 Creating a program for QOPU LCPU 4 13 Er GX Works2 4 CREATING A PROGRAM OF SFC PRG Write 000 Block Step No 3 Loop line lamp 6 Step SEE PRG Write 000 Block Transition No 3 1 Step PRG Write 000 Block Step No 4 Loop line fountain 6 Step PRG Write 000 Block Transition No 4 3 Step PRG
103. tion 3 3 1 Online Debug Diagnostics Tool Window 1 Select Online pi Read from PLC NO OVERVIEW to display the Online Data Operation E write to PLC K screen z E Verify with PLC You can click Read fromPLC to Remote Operation display the Online Data Operation A 5 screen qo 528 3 Online Data Operation 2 Set the Target module and Target Connection Channel List Serial Port PLC Module Connection UISB project on the Online Data yap Operation screen After the setting click the Title Project Name CE EEE ari emor ize button to read the project prog ram p 1408 05 from the programmable controller PROGRAM OF CREATING A LADDER 2010 11 24 14 07 52 564 Bytes Detail 2007 03 08 14 06 22 27434 Bytes 2 O Earn ee Necessary Setting No SettM M Already Set Setif it is needed Mo Setting Already Set Acquire Symbolic Information Project Name Writing Size Free Volume Use Volum i R N 80 896 33 752Bytes Refresh Setting of the project erem t _ Related Functions lt lt TE E EEE Remote Set Clock PLC User Data Write Title Format PLC Clear PLC Memory Arrange PLC Operation Memor Memory Setting of the target module e Target module Select lt lt PLC Module gt gt O LL ep LL lt O Os Ze FEO iO X Y O A Setting of the project e Symbolic Information Select Program Memory Device Memory in Target Me
104. tting Monitor Stop Condition Setting Entry Ladder Monitor Delete All Entry Ladder Change Instance Function Block 2 Seta device to be monitored Select DO in this example Setting of Device e Device Select Device Name e Device Name DO 3 Click the petals button to display the Display Format screen Restrictions Set a device name to be monitored Label Name is not available Vv To the next page 3 32 3 4 2 Batch monitoring of device values 3 4 Monitoring Operations 4 Set the Display Format of the device to be Display Format Monitor Format m Display ae No of Points i m O n ito re d rice 16bit Integer Points of word device that display in 1 line S Bit Device Bit and Word Format n a e eedwog C 22t Integer A se Setting on the Display Format screen i C Real Number 32Bit E ere e Monitor Format Bit and Word O f R J r j Word Device Word Multi point Format C Word Multipoint C asci 2 G BPoints f 10 Points Display 16 bit Integer 2 Display Examples Va u e D E C a 7 e Bit Order O F os o Ga oco St amp o M4 Jo oR o ee 0 Ei om olo lo oS Syl os ge ojojo P o ofololo P jojojojo oco oO Di oc moco Oo ofo Oo E o Golo o Bolo e o Eile Ey Eile ao so J e Switch No of Points Bit Device Bit and Word Format 16 Points Word Device Wo
105. written NJ OVERVIEW AND SYSTEM CONFIGURATION No 2g O Point If a program or parameters already exist in the programmable controller the following screen appears Click the or _Yestoal_ button to overwrite the existing program or parameters When you click the vestaal button GX Works2 overwrite the existing program or parameters without displaying the overwrites confirmation screen for other data PROGRAM OF CREATING A ANDID i a When parameters already exist When a program already exists MELSOFT Application x MELSOFT Application O LL 09 LL lt O Os Ze FEO iO X Y O A Parameter already exists Program MAIN already exists Are you sure you want bo overwrite the existing File Bre 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 vestot no vestoat m 4 The left screen is displayed during writing When writing is finished Write to PLC Completed appears Click the button to close the A Ot Write to PLC Boot File Write Completed Remote Password Write Completed Program MAIN Write Completed Clear of the device value in the range of device label automatic assign setting Completed Symbolic Information Write Completed write to PLC Completed
Download Pdf Manuals
Related Search
Related Contents
Panasonic DVD-K325 Operating Instructions Manual Ultron boomer shift Manuale Cucine IT Peerless ALU006009-AW Istruzioni di installazione, uso e manutenzione TT2260 Voleibol - Comite Olimpico Guatemalteco 取扱説明書についてお詫びと訂正 Scheduling Hull Block Construction Samsung SGH-L170 User Manual Copyright © All rights reserved.
Failed to retrieve file