Home
Structured Text(ST) Programming Guide Book
Contents
1. Unset project Global variables Program 3 MAIN Device comment Parameter Bl Device memory Bl Device init Structure IQ02 H Host station Entering the characters Strain o o 2818 Enter IF IF f entered in lower case a control syntax is converted automatically into upper case 3 SI PROGRAMMING MELSOFT Entering a label To enter a label a label name may be entered directly or the label selection function be used To use the label selection function labels must have been entered in advance Here the input method using the label selection function will be explained Edit Find Replace Convert View Onlin 1 Click Edit Select label in the Undo Ctrl 2 menu Redo Etrit Gut Cobre Copy Paste Etrit Auto device Global variable setting Select Function Shift F 11 Select label All select 2 Select the label to be entered 2 Select Initialization a Commen 3 Click the button Total of number af d Defective good DINT Total of number of Initialization BOOL The process is initia Inspection BOOL Inspection flag Yield REAL Yield omen MAIN 25Row 3 2 x 4 The label is inserted IF Initialization 4 Label name Initializat
2. 3 5 Enter a device 3 5 Enter a label name 3 5 Setting the local variables 3 5 8 12 Index 1 IM Monitor Monitoring the Sequence Program 5 1 8 17 O Online earigessu adu 5 4 P Pasting the FB Te uz 2 a 8 14 Performing read from PLC 4 2 Performing write to PLC 4 1 8 16 Program Entering a 3 12 Entering a function 3 11 Entering a label 3 10 Entering the 1 3 9 Function 3 12 Function selection function 3 11 7 1 Inputting the input ladder section and output ladder section 8 15 Inputting the program in ladder format 8 14 What should be noted during input 3 8 Project Creating new 8 1 Creating a new ST project 3 1 SAV 6 aS uuu 6 1 8 19 S Enter a comment into the label 8 7 Enter the device type 8 7 Enter the label
3. 8 6 Select the Input Output 8 6 Setting the FB variables 8 6 W What is a function block FB What is a function block 8 1 What is the ST language 1 1 Index 1 Index 2 Index 2 Structured Text ST ST GUIDE E m SH NA 080368E A 0302 MEE MITSUBISHI ELECTRIC CORPORATION HEAD OFFICE 1 8 12 OFFICE TOWER Z 14F HARUMI CHUO KU 104 6212 APAN NAGOYA WORKS 1 14 YADA MINAMI 5 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
4. gt T Passwordseup If the check button is not chosen only c F Program MAIN p Related functions the actual program is written s Device comment COMMENT Teese 2 Click Param Prog Parameter PLC Network Remote password Keyword setup Remote operation Clear PLC memory Format PLC memory Arrange PLC memory Create title 3 Click the button Total free space Free space volume volume Bytes MEI series GX Dev 3 Write to PLC is completed Reset the PLC CPU and put it in a RUN status If an error occurs choose Diagnostics PLC diagnostics in the menu of GX Developer and confirm the error definition 8 ST PROGRAMMING APPLICATION PASTING FB TO LADDER PROGRAM MELSOFT Monitoring the sequence program Monitor and confirm the sequence program The monitor start stop operation is as follows When starting monitor Online Monitor Monitor mode When stopping monitor Online Monitor Stop monitor When resuming monitor Online Monitor Start monitor Monitor display EE MAIN 183 Step D Edit mode Initialization 100 he proc ess 1 nitializ ed Defective Total of number of defec tive goo 148 Inspection eft Inspecti Comment display D K1 on flag Inspection Inspecti on flag CALCULA
5. Hafn nn the mean To use labels variables used as labels must be clarified This is he 006 called defining the labels If a program that uses undefined labels is converted compiled error occurs sequence program cannot be created There are two different labels global variables and local variables The global variables can be used in the whole project The local variables can be used in only the program where the labels have been defined Here the local variables used in the program example that will be entered later will be actually defined Displaying the Local variables setting screen The operation method to define local variables will be explained For the global variables refer to the GX Developer Operating Manual 8 1 Double click Program the lt lt Project gt gt tab El Unset project Global variables Device cammen Parameter ZA EN Device memory EY Device init v V 1 Double click Project Structure 2 Double click MAIN Unset project H Global variables 1 Program Device comment 81 18 Parameter SE Device memory ZLI Device init 2 Double click Project Structure tb To next page 3 SI PROGRAMMING MELSOFT Jb From previous page project il Global variables Program m Hm
6. aime mT MT ee eT MT ETT nT rrr E D 3 8 Gonver ng compiling 9 T u 3 14 4 READAWRITE FROM TO PLC CPU 4 1 to 4 2 5 1 Monitoring the 5 1 D2 DEVICE TOS yu ciue aim Ano wayuq obruta ayka puq ub at ied och dud od 5 2 rc 5 4 6 SAVING THE PROGRAM INTO THE PERSONAL COMPUTER 6 1 to 6 2 8 ST PROGRAMMING APPLICATION PASTING FB TO LADDER PROGRAM 8 1108 20 sm G Iuno AM 8 1 lt ua 8 1 ANEN F Borren E 8 2 Defining FB 5 u Qm ui a a A 8 5 Greaundgamrbn SF TAN aa a AER 8 9 8 2 Pasting the FB to Main Program E equo di edm dtum 8 11 Dein te lO Cal eate su aS a 8 11 AMan PROGRAM apas 8 13
7. 5 3 Online Change When the PLC CPU is in a RUN status part of the sequence program can be changed This is called online change Actually change part of the sequence program and perform online change ll Changing part of the program and performing online change Change the calculation expression of Yield and perform online change 1 Change part of the program Yield DINT TO REAL good DINT TO REAL good Defective Yield DINT REAL good DINT TO REAL good Defective 100 0 Em ST Monitoring MAIN 25Row 148Step Initialization is done Initialization THEN Initialization good 2 0 Defective 0 Yield D D good 2919230 Defective 1834337 Yield The normal operation is processed ELSE Is the inspection passing 7 IF Inspection THEN Inspection 1 good good 1 The number of non defective articl good 2919230 The inspection failing ELSE Defective Defective 1 The number of defective goods i Defective 18331337 END The yield is calculated Yield i DINT TO BEAL dgood DINT REAL good Defective l00 Q0l 0 614 good 2919230 Defective Changed x indicating the line to be online changed is displayed on the indicator bar of the target line 2 Execute online change Convert View Online Diagnostics Tools Window Help Click Convert Convert Compile Online change in the menu Convert Com
8. 4 Bange specification A F Lreate title Total free space Device comment L COMMENT Parameter MI PLC Metwork RHemote password Reset the PLC CPU and put it in a RUN status MELSOFT series GX If an error occurs choose Diagnostics PLC diagnostics in the menu of GX Developer and confirm the error definition 4 READ WRITE FROM TO PLC CPU MELSOFT Performing read from PLC The operation method for read from PLC will be explained Display the Read from PLC dialog and read the program and parameters from the PLC CPU Online Diagnostics Transfer setup 1 Click Online Read from PLC in the menu Read from PLC Write to PLC MeriPy with l Write to PLC Flash ROM Delete PLC data Read from 2 Click Param Prog in the File selection gt gt tab 3 Click the Execute button File sele cm ur Comman Lacal Cancel all selections data Close Related functions Label program ST FB Structure D37U1 07 13 18 EH Parameter Transfer setu D PLE Network Remote password D2 1222514 Es Device memory Kemord setup Device data Remote operation Clear PLC memory gt Format PLC memory Arrange PLC memory _ view Bange speciication ZA fa 22767 Create tithe Total
9. F 5 inspection 80 inspection flag After input is complete click the button The registration of the local variables is completed Click the button MELSOFT series GX Devel x When registration is made gt displayed on the title bar disappears E igi x E Local variable seing E dit Insert IER dd Display global variables Show assigned device Show assigned device device jail Label Constat Devcetpe Comment 4 1 initialization BOOL The process is initialized 2 Defective _5 m inspection 8 ST PROGRAMMING APPLICATION PASTING FB TO LADDER PROGRAM Creating main program Display the main program edit screen and input the following program List 4 List 4 Initialization 99 Defective Inspection Initialization Inspection 100 c T good Inspection Defective CALCULAT FE1 good D GOOD YIELD Yield Defective D DEFECTIVE IN lll Displaying the edit screen Double click Body in the lt lt Project gt gt tab to display the edit screen LD Edit mode MAIN 35 Step c l st sample H Global variables ee Program MAIN Header Body Device comment 4 Parameter E Device memory El Device init L 0 Project Fe Structure Jb To next page 6 ST PROGRAMMING APPLIC
10. Structured Text ST MITSUBISHI Mitsubishi Programmable Logic Controller e SAFETY PRECAUTIONS e Always read these instructions before using this equipment Before using this product please read this manual and the relevant manuals introduced in this manual carefully and pay full attention to safety to handle the product correctly The instructions given in this manual are concerned with this product For the safety instructions of the programmable controller system please read the CPU module user s manual In this manual the safety instructions are ranked as DANGER and CAUTION Indicates that incorrect handling may cause hazardous conditions D DANGER resulting in death or severe injury Indicates that incorrect handling may cause hazardous conditions resulting in medium or slight personal injury or physical damage N CAUTION lt lt lt lt lt lt N
11. _ Label Constant Devietyp Comment Initialization i Sa 2 Enter a device type Enter it directly or make selection from the list box E Local variable setting MAIN E D x Edit operation Register Insert Add Display global variables Close Delete __ Label Constat Comment 1 initialization 3 Enter comment into the label Enter it within 64 characters The comment can be displayed in the tool tip format of the label information For the label information refer to CHAPTER 7 INTRODUCTION TO USEFUL FUNCTIONS FOR ST PROGRAM EDITING or Developer Operating Manual Structured Text E Local variable setting MAIN E I x Edit operation Insert Add Display global variables Delete A Label Constat L initialization MI Register Close Jb To next page 3 5 3 5 3 SI PROGRAMMING MELSOFT Jb From previous page 4 When entering labels continuously click the or button under Edit operation to add a line The buttons under Edit operation have the following functions button Inserts a blank line into the current cell position button Inserts a blank line into the place one line below the current cell position button Deletes one line in the current cell position E Local variable sett
12. Feb 2003 SH NA OBO368E A Fistprining 2 2 Japanese Manual Version SH 080365 A 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 2003 MITSUBISHI ELECTRIC CORPORATION INTRODUCTION Thank you for choosing the Mitsubishi MELSOFT series Integrated FA software Read this manual and make sure you understand the functions and performance of MELSEC series sequencer thoroughly in advance to ensure correct use Please make this manual available to the end user CONTENTS SAFETY PRECAUTIONS es or ob Sa a DSC Gss 1 REMISSION THER 2 CONTENTS 4 ON 5 OO 6 About the Generic Terms and Abbreviations Used in This Guidebook A 7 2 ST PROGRAM CREATION PROCEDURE 2 1 to 2 2 3 ST PROGRAMMING 3 1 to 3 16 Creating a new ST 3 1 DENNING e 3 3
13. 0 Yield 0 0 List 2 ST MAIN 25Row 1 The normal operation is processed ELSE Is the inspection passing IF Inspection THEN qood good 1 The nunber of non defective articles is added The inspection is failing ELSE Defective Defective 1 The number of defective goods is added END IF The yield is calculated Yield DINT TO DINT_TO_REAL qood Defective END IF This completes program input Display of label information The label information can be displayed in the tool tip format Operation Place the mouse pointer in the label position Display Label name gt Label type gt Label comment gt Device x The device is displayed after convert compile is performed EE ST MAIN 25Row 1435 Initialization is done IF Initialization THEN good D Defective D Yield D D The normal operation processed ELSE ls the inspection passing Label information is displayed IF Inspection THEN good good 1 The number of fon defective articles qood gt LOCAL Total of number of quality items Dlzz8584 The 1nse Lu T ELSE Defective Defective l The number of defective goods is adc Change of display color Control syntax comment and label character string colors ST edit screen backgro
14. 100 000 good 100 Defective Reflected x that indicates the online change target line disappears On the monitor screen confirm that the present value of Yield has changed 5 5 5 5 6 SAVING IHE PROGRAM INTO PERSONAL COMPUTER MELSOFT In Chapter 6 the completed project is saved with a name Saving the project Save the created project with a name Project Edit Find Replace Convert View 1 Click Project Save as in the New project Open project Close project Save menu 2 Input as follows Drive Path CAMELSEC Project name SAMPLE ST itle work check 3 Click the button Gs IEC Developer 5 00 5 Cancel Project name ST work check Title The program created this time was saved as described below Drive Path CAMELSEC Project name SAMPLE_ST Title work check a This completes a series of operations from the creation of UN the new ST project to the input and online debugging of the program to the storage of the project Fully understand the operations performed until now and to Chapter 8 d 6 SAVING THE PROGRAM INTO THE PERSONAL COMPUTER MEMO INTRODUCTION TO USEFUL FUNCTIONS FOR T PROGRAM EDITING This chapter introduces useful functions for editing ST programs For more information r
15. displayed in the tool tip format IF Inspection THEN qood qood ls ELSE Defective Defective 1 END_IF Function argument type is displayed TisldisDINT 5 2 REAL DINT REAL DINT 51 j 4 Inserted ST MAIN 25Row 5 Refer to the function argument type displayed in the tool tip format and enter the argument to complete the entry IF Initialization THEN good 0 Defective 0 Yield 0 0 ELSE IF Inspection THEN qood good 1 ELSE Defective Defective 1 END Yield DINT REAL dgood Defective END_IF 5 Complete Entering a comment Comments do not affect the program behavior at all When program processings are described as comments they give the at a glance pictures of the processings First enter a comment on Line 1 of the program Le 3 5 x Enter a comment by enclosing it with IF Initialization THEN that represents the beginning of aT the comment and that represents zd an end IF Inspection THEN good HE qood T is ELSE Defective Defective 1 END_IF 3 SI PROGRAMMING MELSOFT I pos previous page d 2 5 x Refer to the example given on the left IF Initialization THEN and enter comments good 0 Defective
16. free space 7 File register If an error occurs choose Diagnostics PLC diagnostics in the menu of GX Developer and confirm the error definition 5 DEBUGGING PROGRAM MELSOFT Chapter 5 explains the online debugging operation of the sequence program written to the PLC CPU using the monitor function and device test function 27 Monitoring the sequence program 27 Changing the bit device value and conducting a device test s Changing part of the sequence program and writing it to the PLC CPU in RUN status 5 1 Monitoring the Sequence Program This section explains the operation method to monitor the sequence program II Displaying the monitor screen Online Diagnostics Tools Window Help 1 Click Online Monitor Start monitor the menu Read from write fo PLC verify with PLC Write ta PLC Flash ROM k Delete PLC data Ghange PLE date attributes PLC user data k H 28031 Im et Oe eh T ear 4 aril Debug k Monitor Write modet Trace k Stark monitor windows Remote operation Alk 6 Stop monitor Al windows Stark monitor Password setup k Stop monitor E FS lt sT Monitoring MAIN 25Row 143Step Clear memnrv Initialization is done Initialization THEN qood
17. ind Bu ae Device comment Parameter SE Device memory ER Device init 3 Double click Header 3 Double click Structure Project i MELSOFT series GX Developer Unset project Local variable setting MAIN B x T Project Edit Find Replace Convert View Online Diagnostics Tools Window Help 8 x S x ase ee zl ele 191 CM PIE EUM 4 The Local variables setting screen is displayed Unset project Register Edit insert Display global variables Hz Global variables Program Close Delete Show assigned device 3 MAIN Constant 1 zl Device comment Parameter Device memory Bl Device init Structure Host station Q02 H 3 SI PROGRAMMING MELSOFT Setting the local variables Header 1 Enter a label name Enter a label name within 16 characters The character strings that cannot be used as a label name are reserved words and actual devices Enter other labels For the reserved words refer to the GX Developer Operating Manual Local variable setting MAIN of x Edit operation Register Insert Add Display global variables Close Delete Show as sig ned device __
18. yield is calculated amp H Header The vield is calculated Body The yield is calculated Project FB Structure Header The yield is calculated Q02 H Host station row 1 insert NUM 8 ST PROGRAMMING APPLICATION PASTING FB TO LADDER PROGRAM MELSOFT W inputting the program Input the FB program body as in the method of inputting the main program described in Chapter 3 Input the program in List 3 EE FB ST CALCULAT The yield is calculated 1Row eo Ste YIELD OUT DINT 0000 IN DINT REAL GOOD IN DEFECTIVE IN Converting compiling the FB Click Convert Convert Compile in the menu to perform convert compile Compile processing is completed MELSOFT series GX Develc x Click the button p u Compile Completed At normal completion of convert compile the number of steps is displayed on the title bar FB ST CALCULAT The yield is calculated 1Row 15 Step B YIELD OUT DINT REAL GOOD IN DINT REAL GOOD IN DEFECTIVE 8 ST PROGRAMMING APPLICATION PASTING FB TO LADDER PROGRAM 9 2 Pasting the to Main Program Create a main program ladder using the FB created in Section 8 1 Defining the local variables Define the labels used in the main program Displaying the Local variables setting screen 1 Double click Header Unset project Global variables Eri Prog
19. 0 Defective 0 Yield 0 0 The normal operati ST edit screen Is the inspect IF Inspection THEN Initialization 0 qood 0 Defective 0 Yield 0 000 Monitor screen Inspection 0 qood good 1 The number of non defective art qood The inspection is failing ELSE Defective Defective l The number of defective good Defective 0 END yield calculated Yield DINT TO REAL dgood DINT REAL dood Defective Yield 0 000 good 0 Defective 0 END_IF The labels displayed on the ST edit screen are displayed on the same lines of the monitor screen 5 DEBUGGING PROGRAM MELSOFT 5 2 Device Test The value of the label bit device word device in the PLC CPU can be changed directly Here the bit device value is changed to confirm the program behavior Confirming the program behavior The operation to change the bit device value will be explained Online Diagnostics Tools Window Help 1 Click Online E Debug Device Transfer setup test the menu Read From PLC Write to Verify with PLC Write to PLC Flash ROM k Delete PLC data Change PLE data attributes PLE user data k Monitor k Device test Forced input output registrakian cancellatian Forcibly turn ON the label Inspection that represents the bit device Te Device test Bit device x 2 Input Ins
20. 1141 ar Eg 2 les fes Global variable gt Ian added ss e 24 POR Fr p zal i lt 3 Unset project FT Function Br Header The se is amp Body The yield is calculated Project FB Structure Body yield is calculated Q02 H Host station 8 ST PROGRAMMING APPLICATION PASTING FB TO LADDER PROGRAM Defining FB variables The labels used in the FB are called FB variables FB labels W Displaying the FB variable FB labels setting screen Here the operation method to define FB variables FB labels will be explained zl Unset project 1 Double click Header in the lt lt FB gt gt 1 58 Function Block tab CALCULAT The yield is calculated Header The yield is calculated 188 Body The yield calculated Froject FB structure i MELSOFT series GX Devel Unset project FB variable setting CALCULAT The yield is calcule _ Dj x 1 I Project EEEE E View Online Diagnostics Tools Window Help e x 2 The FB riable FB labels setting 4 lla gr G I fe e Global variable gt x x screen IS displayed E mgl sits etas AALA Bel Dem a sele pel gn xl Edit operation I 2 Unset project Register Add 5 8 Function Block C
21. 3JF68 QCPU Q mode QnACPU Programming Manual Common Instructions Explains the methods of using the sequence instructions basic instructions and application instructions 13JF58 Option SH 080039 Each Operating Manual is contained in the CD ROM together with the software package as a set The Programming Manual is available separately in printed form as an option Please place an order with the manual number model code in the above table How to Use This Manual This Guidebook This guidebook is a commentary written for those who will use the GX Developer Version 8 software package hereafter abbreviated to GX Developer to create structured text hereafter abbreviated to ST programs for the first time Chapter 1 introduces the overview of the ST language and the features of the ST language in the MELSEC Q series Chapter 2 to Chapter 6 introduce a series of basic operation methods such as the methods of creating debugging and saving programs in ST language through sample programs Chapter 7 introduces useful functions available from GX Developer Chapter 8 introduces the method of creating a program which uses an ST written function block FB in a ladder program from the main program created in ladder form as an application program Chapters 4 5 and 8 use the PLC CPU for explanation Programming Manual Use the QCPU Q mode Programming Manual Structured Text to perform structured text S
22. ALCULAT The yield is calculated Close Delete Header The yield is calculated Body The yield is calculated Fed sro cro 4101 7 aral 5 mi Input Output Label Constant Device type Project FB Structure Ready QO2 H Host station 8 ST PROGRAMMING APPLICATION PASTING FB TO LADDER PROGRAM Setting the FB variables FB labels 1 Select the Input Output type Select the label type There are the following four types VAR INPUT Variable input from FB outside OUTPUT Variable output to FB outside VAR IN Variable having the input and output functions Blank Variable used in FB inside FB variable setting CALCULAT The yield is calculated a E _ n x Register Insert Add Close Delete Sener Label Constat Device ype VAR INPUT gt C C O Edit operation VAR INPUT OUTPUT VAR IN OUT 2 Enter the label name Enter the label name within 16 characters imi FB variable setting CALCULAT The yield is calculated B n x Register Close Delete 1 x Imput Output Tevet 3 4 INPUT GOOD IN dGOOD Nn Y Jb To next page 8 ST PROGRAMMING APPLICATION PASTING FB TO LADDER PROGRAM MELSOFT tb From previo
23. ATION PASTING FB TO LADDER PROGRAM previous page inputting the program in ladder format Refer to the following diagram and input the program MELSOFT 0 im LD Edit mode MAIN 35 Step Unset project Initialization DMOY good Program Global variables 5 8 MAIN DMOV Defective Header 28 Body 8 Device comment d uw Parameter 8 Device RST Inspection E Device init Initialization Inspection Kl good Inspection D K1 Defective 0 END Project FB Structure El Pasting the FB Switch to the lt lt FB gt gt tab and drag and drop the FB program to the target place 4 Initialization good st sample 2 58 Function Block mov KO Defective The yield is calculated Header The yield is calculated ER D amp Body The yield is calculated ST Inspection nitialisation Inspection good inspection D Defective Project FB Structure vl The FB is inserted into the main program X m LO Edit mode MAIN 35 Step m x c l Unset project Initialization ES 21 58 Function Block DMOV good 22 CALCULAT The yield is calculated Header The yield is calculated DMOY 28 Body The yield is calculated Yiel
24. Comment data to be referred to comment by program does not exist message may be displayed The comment of label wil overwrite on device comment All right ST MAIN 25Row 1438tep E At normal completion of convert InitializatNn is done gt A compile the number of steps is displayed on the title bar IF Initialization THEN qood 0 Defective 0 Yield 0 0 The normal operation is processed ELSE Is the inspection passing IF Inspection THEN qood good 1 The number of non defective articles is added 7 The inspection is failing ELSE Defective Defective 1 The number of defective goods is added END IF The yield is calculated Yield DINT_TO_REAL good DINT_TO_REAL good Defective END_IF 3 SI PROGRAMMING MELSOFT 2 When error occurs The Compile error Detail dialog is displayed Now actually see the debugging operation at occurrence of a compile error 1 Change the program so that a error will occur Change Line 3 inList2 Initialization ig done RYOUHIN 0 RYOUHIN 0 0 IF Initialization THEN good D Defective norma pur Ts tha inonanti an wes 4 2 Perform convert compile Convert View Online Diagnostics Tools Window Help Click Convert Convert Compile in Convert Compile the menu Convert Compile All programs being edited A Convert Compi
25. P RONNE mnamanmi EEN se 8 16 d 219 8 16 Monitoring the sequence uu u L iu v v un d vun adus 8 17 Confirming the program behavior Vase rotes quot fusi utes eio cau rt 8 18 A 4 About Manuals The following manuals are also related to this product In necessary order them by quoting the details in the tables below Helated Manuals Manual Name Manual Number Model Code GX Developer Version8 Operating Manual Startup SH 080372E Explains the system configuration installation method and startup method of GX Developer 13JU40 Option GX Developer Version8 Operating Manual Explains the program creation method printout method monitoring method debugging method etc SH 080373E using GX Developer 13JU41 Option GX Developer Version8 Operating Manual Structured Text SH 080367E Explains the operation methods for creating structured text programs 13JU37 GX Developer Version8 Operating Manual Function Block SH 080376E Explains the program creation method printout method etc using GX Developer 13JU44 QCPU Q mode Programming Manual Structured Text SH 080366E Explains the programming methods in structured text language 1
26. Structure Application instruction Q02 H Adding a new FB ll Adding an FB The operation method to add a new ST written FB will be explained 1 Right click Function Block in the lt lt gt gt tab to display the menu Host station es Unset project E Funckian Bla ICE Project Fg tb To next page 8 ST PROGRAMMING APPLICATION PASTING FB TO LADDER PROGRAM tb From previous page Unset project NeW 2 Click New Delete Rename Ghange program Eype sort Sort data name ascending Sort data name descending Project 4 Set the New dialog 3 Enter as follows Data type Function Block ss Program type ST Function Block gt am Data name CALCULAT Title The yield is calculated Frogram type C Ladder ROME IS MELSAP L 4 Click the button ST Data CALCU LAT Title The yield is calculated MELSOFT series GX Devel x 5 Click the button AN Create new data CALCULAT OK tb To next page 8 ST PROGRAMMING APPLICATION PASTING FB TO LADDER PROGRAM MELSOFT tb From previous page i MELSOFT series GX Developer Unset project FB ST CALCULAT The yield is calculated 1R ated 1Ro 0 x Project Edit Find Replace Convert View Online Diagnostics Tools Window lel x 6 A new data name CALCU LAT IS 841
27. T programming with GX Developer It is suitable for the users who have the knowledge and programming experience of PLC ladder programs and for the users who have the knowledge and programming experience of high level languages such as the C language Operating Manual The GX Developer Version 8 Operating Manual Structured Text is a commentary that gives in depth explanation of the operation methods for creating structured text programs using GX Developer Refer to the manual when information on operations details is necessary When information on other than structured text programming is necessary Refer to the GX Developer Version 8 Operating Manual or GX Developer Version 8 Operating Manual Startup About the Generic Terms and Abbreviations Used in This Guidebook In this guidebook the following generic terms and abbreviations are used to represent the GX Developer software package and PLC CPU The package name is given when the target model name must be pointed out explicitly Generic Terms and Abbreviations Description target unit Stands for structured text Stands for function block Generic product name for model names SWnD5C GPPW SWnD5C GPPW A GX Developer SWnD5C GPPW V and SWnD5C GPPW VA n means Version 8 or later Generic term for QOO J CPU Q01CPU Q02 H CPU QO6HCPU Q12HCPU CPU Q mod Q25HCPU Q12PHCPU Q25PHCPU The following explains the symbols and information used in thi
28. TIFEB1 D cGOOD IN Number o good Total of number of quali YIELD OUT RY Yield The yiel Yield d is cal y items culated ty items D DEFECTIVE IN Number o f defect ive good K1 Defective Total of number of defec tiwe goo ini x good Total of number of quali ty items END comments set the Local variables setting screen displayed by choosing View Comment in the menu 8 ST PROGRAMMING APPLICATION PASTING FB TO LADDER PROGRAM MELSOFT Confirming the program behavior Change the value of the bit device in the PLC CPU and confirm the program behavior Conducting a device test Refer to Section 5 2 and change the value of the bit device Choose Online Debug Device test in the menu to display the Device test dialog 1 Input Inspection into the bit device Device test Bit device 1 Input Inspection Device 2 Click the FORCE ON button Hide history j FORCE OFF Toggle force cowe zl C Buffer memory Module startl O Address HEX Setting value DEC 16 bitinteger Set Program Label reference program MAIN Execution history Setting condition Inspection Force ON 77 3 Check that the program is running im LD Monitor mode Monitoring MAIN 183 Ste
29. ange TC variable for PLC The comment of label will overwrite on device comment All righty When convert compile is completed the number of steps is displayed on the title bar EG LD Edit mode MAIN 183 Step loj x P Initializatior p 89 DMOY good DMO Defective EMOV Yield RST Inspection Initialization Inspection 100 WA n Kl good Inspection D K1 Defective CALCULAT FBl 115 good YIELD_OUT Ry Yield Defective D DEFECTIVE IN 8 ST PROGRAMMING APPLICATION PASTING FB TO LADDER PROGRAM ia cial 8 3 Online Write the sequence program to the PLC CPU and confirm the program behavior using the monitor function and device test function Writing to PLC CPU Performing write to PLC Refer to Chapter 4 and perform write to PLC Choose Online Write to PLC in the menu to display the Write to PLC dialog EC E xi When performing write to PLC put the Connecting interface lt gt module PLC CPU In a STOP status PLC Connection NetworkNo i StationNo Host PLCtype 002 1 Choose the Label program ST FB structure check button in the lt lt File Target memory Program memory Device memory Title File selection Device data Program Common Local Cancel all selections Param Prog Select all NOE T Close selection gt gt Label program STFESS Program memory Device
30. can be changed without the PLC CPU being stopped gt Connection with other language programs Since other languages than the ST are also supported the language adequate for processing can be used to increase the efficiency of program development For example write sequence control in a ladder program and operation processing in ST language Multiple languages support widespread application under optimum control A wealth of functions available The MELSEC functions compatible with various common instructions for the MELSEC Q series and the IEC functions defined in 61131 3 are available for ST programs 1 OVERVIEW MELSOFT MEMO a 2 ST PROGRAM PROCEDURE The following flowchart indicates the basic procedure from ST program creation to online debugging In the following example programming was performed using only an ST program Creation of new project Refer to Chapter 3 for details Define the local variables used in an ST program Refer to Chapter 3 for details Definition of labels Create a program in ST language Refer to Chapter 3 for details Creation of ST program Write to PLC CPU After performing change compile into a sequence program write it to the PLC CPU Refer to Chapter 4 for details Online debugging Confirm the program behavior by conducting a device test Refer to Chapter 5 for details For details of each
31. ch a time use Select function Choosing Edit Select function displays the Select function dialog to allow the function name to be selected Also since the function argument type is displayed in the tool tip format when the function is inserted the argument can be input with reference to that argument type 5 Change of display color and font It is difficult to differentiate between the character strings on the edit screen since they have the same color or it is desired to change the character size At such times use Change display color or Font Choosing Tools Change display color in the menu displays the Change display color dialog to allow the comment control syntax character label and background colors to be selected Changing the display color improves readability Choosing Tools Font in the menu displays the Font dialog to allow the font type style and size to be selected Making easy to use setting improves operability INTRODUCTION TO USEFUL FUNCTIONS FOR ST PROGRAM EDITING cory MEMO 6 ST PROGRAMMING APPLICATION PASTING FB TO LADDER PROGRAM Chapters 1 to 7 explained the basic operation methods and functions for creating ST programs In Chapter 8 create a function block FB in ST language and paste it to a ladder program to create a program to be used The main items to be explained in this chapter are as follows 22 Adding a new FB Defining FB variab
32. d RST Inspection Initialization Inspection D K1 good Inspection CALCULAT FBl D GO0 0D IN YIELD_OUT R Jb To next page Defective Project FB Structure 8 ST PROGRAMMING APPLICATION PASTING FB TO LADDER PROGRAM oo previous page inputting the input ladder section and output ladder section Refer to the following diagram and input the input ladder section and output ladder section MELSOFT X F LD Edit mode MAIN 35 Step E nl x Unset project Initialization Function Block DMOV good CALCULAT The yield is Header The yield is Defective 28 Body The yield is EMOV Yield RST Inspection Initialization Inspection Input ladder section Output ladder section CALCULAT b 1 2 2 2 M R good PE YIELD_GUT RHYield D GDO0D IN gt Defective Project Structure eres 2 A DU Performing convert compile Click Convert Convert Compile in the menu to perform convert compile Convert compile is completed Click the button MELSOFT series GX Developer E AN Compile Completed Local label is re allocated Write the program to PLC or Compare with the program in PLC before execute RUN write function and ch
33. different Identify the faulty part from the error definition displayed in the Compile error Detail dialog and the program contents of the line where the error indication mark is displayed 4 READ WRITE FROM TO PLC CPU MELSOFT Chapter 4 explains the procedure to write the converted compiled sequence program to the PLC CPU and the procedure to read the sequence program from the PLC CPU ll Performing write to PLC The operation method for write to PLC will be explained Display the Write to PLC dialog and write the program and parameters to the PLC CPU Online Diagnostics Tools Window Help x When performing write to PLC put the PLC CPU ina STOP status Transfer setup Read From PLC Write ta PLC 1 Click Online Write to PLC in the with menu write to ROM b Delete PLC data 2 Select the Label program ST FB structure check button in the File selection gt gt tab When the check button is not selected only the actual program is written Teman ERE Parami rog Coss Label ST FB Struct Target Devi TE 7 Label pragram ructure rogram memo Device memory TEES 3 Click Param Prog Related functions Transfer setup 4 Click the button Keyword setup Remote operation Clear PLC memory Format PLC memory ROE TREE Arrange PLC memory
34. efer to the GX Developer Operating Manual Structured Text 1 Window division Every time it is desired to confirm the contents midway through editing of a large program it is troublesome to scroll the screen to see the program At such a time use Window division Choosing Window Divide into two in the menu displays the screen in vertically divided windows The divided windows can be scrolled edited individually 2 Bookmark When it is desired to jump to a specific line it is troublesome to search the program from the beginning At such a time use Bookmark Preset the bookmark by choosing Find Replace Bookmark setting release or Find Replace Find Set bookmark the menu By choosing Find Replace Bookmark list in the menu any line can be selected from the Bookmark list dialog to make a jump to that line 3 Display of label information It is desired to know the device assigned to the label At such a time use Label information When the mouse pointer is placed on the label Label name gt Label type gt Label comment gt Device is displayed in the tool tip format for at a glance confirmation of the contents Note Applicable to converted compiled programs Confirmation can also be made by activating Show assigned device on the Local variables setting screen 4 Select function It is desired to input the function whose name has been forgotten At su
35. ing MAIN U EIE Register Close Lusplasy global variables Show assigned device Gw L h Comment Initialization He nracess is initialized Gan in xni niai lt gt 5 After input is complete click the button Local variable setting MAIN I 1 1 Label Constat Devietyp Comment 4 initialization BOOL The process is initialized 2 Defective J DNT v Tetalof number of defective goods Ege gt y Total of number of quality items 4 __ REAL Viele inspection Inspection flag MELSOFT Series GX Developer x Click the button Check the redefine error of the label The time period far checking gets longer with increase in variables tb To next page 3 SI PROGRAMMING MELSOF T J pos previous page MELSOFT series GX Developer xl i Registration completed Registration is completed Click the button When registration is made gt displayed on the title bar disappears eS Local variable s E E dit E D x Insert Display global variables Delete _ Show assigned device _ Show assigned device device Po v The process is initialized Detective NT Total of number of defective goods PINT Total of number of quality items Yed 2 REAL Viele nspection Comme
36. ion is inserted 3 SI PROGRAMMING MELSOFT ll Entering a function Enter a function in upper case To enter a function may be entered directly or the function selection function be used Here the input method using the function selection function will be explained Edit FindiReplace Convert View Onlin 1 Click Edit 5 Select function in the Undo Chrl 2 menu Reda Gut r Er x Paste bry Auto device 3 Global variable setting Select Function ShiFE4 F 1 1 F11 Select label All select Ctrl 4 2 Select the label to be entered IF Initialization THEN good 0 Defective 0 Yield 0 0 3 Click the button ELSE IF Inspection THEN good good Ls Defective Defective 1 Look in All DBPLUS 3 M DGRY M DLIMIT MD DBPLUS M 5 MD DTEST DCML_M DI M DDABCD 5 MD DINC M DDABIN 5 MD DINT E DDEC M DINT TO DEC M DINT TO t DECO M DINT TO INT DEG E MD DINT TO INT H DINT TO REAL DINT TO REAL E DSER_M DZONE DINT TO STR DSFL M EI M DINT TO STR DSFR_M EMOD_ DSORT_M DSTR 5 3 SI PROGRAMMING MELSOFT Sciam previous page ST MAIN 3 ID x 4 The function name is inserted IF Initialization THEN qood 0 Defective 0 Yield 0 0 The function argument type is ELSE
37. iven in the section Relevant 8 ST PROGRAMMING APPLICATION PASTING FB TO LADDER PROGRAM INDEX Adding uy am 8 2 Alarm history display function 6 16 Alarm list display function System uuu ku u tet 6 19 S 6 18 C Convert compile Converting compiling the FB 8 10 Error indication mark 3 16 Performing convert compile 3 14 The compile error Detail 3 15 What is convert compile 3 14 D Device Test Confirming the program behavior 5 2 8 18 Displaying the FB definition screen 8 9 Inputting the program 8 10 Displaying the FB variable screen 8 5 Displaying the ST edit screen 3 9 E Editing BOOKITIA DK aidera ctp Dude cal t Qu e 7 1 Change of font 7 1 Change of display font 7 1 Display of label information 7 1 Select function 7 1 Window division 7 1 L Label What does defining the labels mean 3 3 Local variable Displaying the setting screen 3 3 8 11 Enter a comment into the label
38. le programs Convert Compile Online change 3 A compile error occurs and the dialog is bii diu Compile error Detail E Confirm the error step line and error jis a definition 4 Error Type mismatch for lt lt C8030 All programs Amp 4 Confirm the line which the error has occurred Compile error Detail 1 Select the error definition with the Programname MAIN P mouse muss NNI 2 Click the button _ Allprograms _ Allprograms tb To next page 3 SI PROGRAMMING J previous page 5 Track down the cause and correct the faulty part The error indication mark is displayed on the ST edit screen Confirm the error definition and program contents and correct the program mix Correct Line in List 2 ST MAIN 25Row Initialization is done F Initialization THEN qood 0 0 Defective 0 Yield 0 0 good 0 0 good 0 The normal operation is processed Click Convert Convert Compile in 1s added f the menu qood good 1 The number of non defective articles The inspection is failing ELSE Defective Defective l The number of defective goods is added The yield is calculated Yield DINT TO REAL dood DINT REAL dgood Defective END IF The error location and actually corrected part may be
39. les Creating an ST program 2 gt Creating an FB in ST language lt Using the ST written in a main program 8 1 Creating an FB x x lock FB An FB where often used processings are predefined as parts can be uncon used in the necessary area of each program Creating a new project Creating a new project The creation method of a new project to create a main program in ladder format will be explained Click Project New project in the menu to display the New project dialog 1 Enter as follows series QCPU mode type Q02 H Label setting Use label Program type Ladder PLC series QCPU OG FLC Program type Ladder C Do notluse label C 5 7 HELSAP L f Use label Select when using ST program FB and strugtures 2 Click the button iz the same as program data s name iz created ef CA MELSEC Project name Browse Title w To next page 8 ST PROGRAMMING APPLICATION PASTING FB TO LADDER PROGRAM From previous page Ini x Project Edit Find Replace Convert View Online Diagnostics Tools Window Help 81 LER alel ue mod 3 A new project is created 83 END EL Device memory Bl Device init
40. n Exit GX Developer Project Lx eee nens tb To next page Creates new project 3 SI PROGRAMMING From previous page Set the New project dialog 2 Enter as follows New Project a series QCPU PLC series Q02 H QCPU Gmode m Label setting Use label Program type ST Pus 3 Click the button Ladder SFC MELSAP L v ST DrivezP ath L SMELSEC Project name Browse Title i MELSOFT series GX Developer Unset project ST MAIN 1Row 05 Ioj Project Edit FindiReplace Convert View Online Diagnostics Tools Window Help m 8 x JE EE e 4 A new ST project is created The ST edit screen opens and an ST program can be entered Unset project Hs Global variables Program Device comment of Parameter EL Device memory Device init Structure row ico 1 Host station 002 Q02 H is set as the type There are the following PLC CPU types that are applicable to ST programs Q00CPU Q02CPU Q12PHCPU Q00JCPU QO2HCPU Q25PHCPU Q01CPU QO6HCPU Q12HCPU Q25HCPU 3 ST PROGRAMMING MELSOFT Defining the labels
41. nt y Inspection flag For details of the local variables refer to the GX Developer Operating Manual given in Relevant Manuals 3 ST PROGRAMMING MELSOFT Entering a program ing input A program can be input freely in text format using the ST edit screen sou 6 te um Note the following points during input Use a space key or key to enter a blank When the defined label control syntax or comment is input the character color changes If it does not change the possible cause is an input mistake or undefined label Now actually input a program in List 1 List 1 Initialization THEN good 0 Defective 0 Yield 0 0 IF Inspection THEN good good 1 ELSE Defective Defective 1 END IF Yield DINT REAL good DINT TO REAL good Defective END IF 3 SI PROGRAMMING MELSOFT ll Displaying the ST edit screen 1 Double click Body the lt lt Project gt gt tab Unset project H H Global variables 1 58 Program SE Device memory BL Device init Structure Project MELSOFT series GX Developer Unset project ST MAIN 1Row Step m Oj x T Project Edit Find Replace Convert View Online Diagnostics Tools Window Help 1 2 5 edit screen 15 displayed S AAL elel ael z ea 1 Global variables m lt Fal F7
42. operation refer to the GX Developer Operating Manual given in Relevant Manuals 2 ST PROGRAM CREATION PROCEDURE MELSOFT MEMO 3 SI PROGRAMMING MELSOFT Chapter 3 explains general basic operations from the input to convert compile of an ST program The following items will be explained in this chapter gt Creating a new ST project Defining the labels to be used in an ST program gt Creating an ST program lt Converting compiling the created ST program into an executable sequence program gt Correcting the program if a convert compile error occurs Creating a new ST project Creating a new ST project The operation method to create a new project will be explained proque 4 Click Project New project in the New project Ctrl N TA Open project Ctrl O close project Ctr 5 IERI x T 1 7 atoi 2167 coH0 FIO ars Z ge z z menu Delete project Verify ee Copy Save aS 2 I ic pS c5 3F8 aF J sF6 F8 F7 sF5 F5 F6 E Fe Fa c2 c8 c Edit Data Ghange PLC Eype Import file Export file Macro Function Block Printer setup Print Newest File Start new GX Developer sessio
43. ote that the ACAUTION level may lead to a serious consequence according to the circumstances Always follow the instructions of both levels because they are important to personal safety Please save this manual to make it accessible when required and always forward it to the end user Designing Precautions 4 DANGER e For data change program change and status control to be performed for the running programmable logic controller from a personal computer configure interlock circuits in the outside of the PLC system so that the whole system will always operate safely Also for online operations to be performed from the personal computer to the PLC CPU predetermine as a system the corrective actions for communication errors that will occur due to poor cable connection etc Startup Maintenance Precautions N CAUTION e Before performing online operations program change during PLC CPU RUN forced I O operation RUN STOP or similar operating condition change remote operation with the personal computer connected to the running PLC CPU read the manual carefully and ensure safety fully Note that program change during PLC CPU RUN online change may cause such problems as program corruption depending on the operation condition Use the equipment after fully understanding the precautions given in the GX Developer Operating Manual REVISIONS The manual number is given on the bottom left of the back cover Manual Number
44. p 3 E D x correctly Initialization Inspection 100 sa pn fla _ Also change the other label values and hitializ ed poc confirm the program behavior D Defective 0 Inspecti Total of El on flag number of defec tive goo CALCULAT FB1 115 good D GOOD IN YIELD_OUT R Yield 0 0 0 000 0 000 Total of Number o yiel Yield number qualit d is cal of quali y items culated ty iter Defective D DEFECTIVE IN 0 0 Total of Number o number f defect of defec ive good tive goo s 148 END 6 ST PROGRAMMING APPLICATION PASTING FB TO LADDER PROGRAM ll Saving the project Refer to Section 6 and save the created project with a name Click Project Save as in the menu to display the Save the project with a new name dialog E 1 Enter as follows Save the project with a new name D E x CAMELSEC CHEN E Project name SAMPLE FBST EL Title FB is used and E3DNaviPlus Easysocket calculated 2 Click the button Project name SAMPLE_FBST Cancel Title FB is used and calculated The program created this time was saved as described below Drive Path CMMELSEC Projectname SAMPLE_FBST Title FB is used and calculated This ends the explanation of a series of operation methods for program creation To further proceed to the next step it is recommended to T to the manuals g
45. pection into the bit device Close 3 Click the FORCE ON button 2 Enter Inspection Device Hide history FORCE ON FORCE OFF Toggle force Wie Device gt C Buffer memory Module startl O Hex Address HEX setting value 16 bitinteger gt Set Frogram reference program MAIN gt x Execution history setting condition Program name Find Inspection Force ON Eind next Re seting Clear 4L To next page 5 DEBUGGING PROGRAM T pos previous page Make confirmation on the monitor screen MELSOFT ST Monitoring MAIN 25Row 143Step Initialization is done Initialization l good 503493 Defective 1 Yield Initialization THEN good Of Detective Dr Yield 0 0 The normal operation processed ELSE the inspection passing 7 IF Inspection THEN Inspection 1 good value increases good good 1 The number of non defective a good 503493 gt The inspection failing ELSE Defective Defective l The number of defective go Defective 1 END IF The yield is calculated Yield DINT REAL gaood DINT REAL dgood Defective Yield 1 000 good 503495 Defective END IF Also change the other label values and confirm the program behavior 5 DEBUGGING PROGRAM MELSOFT
46. pile Convert Compile programs being edited Converti Compile prograrns Convert Compile Online change Shift F4 2L To next page 5 DEBUGGING PROGRAM SOFT J pos previous page 3 The confirmation message is displayed MELSOFT series GX Developer P Click the button N Caution PLC control has changed Make sure everything is safe execute again The write destination is the program in the program memor Don t write to the same program from a plurality of place at the same Ensure the PLC program and the program to be converted match OK Write destination program MAIN 4 Online change is completed Click the button MELSOFT series Developer E x RUM write processing has completed There are 500 RUN write maintenance steps remaining Em ST Monitoring MAIN 25Row 148Step Initialization is done Initialization THEN Initialization 0 qood 0 Defective Yield 0 qood 100 Defective The normal operation is processed ELSE Is the inspection passing IF Inspection THEN Inspection 1 qood qood 1 The number of non defective artic qood inspection failing ry ELSE Defective Defective 1 The number of defective goods Defective END_IF The yield is calculated Yield DINT TO REAL dqood DINT TO REAL dgood Defective 100 0 Yield
47. ram MAIN Fes EB Header SS i 1 Double click E Body oub Device comment amp ur Parameter isjx 2 Local variable setting screen is Project Edit Find Replace Convert View Online Diagnostics Tools Window ES a x z displayed 2 sla elel siel spp ied a s eel Bic i Xx X Edit ope n 5 8 Unset project Register oon Add Display global variables Delete Show assigned device E Global variables Close Device type Program MAIN Header Body Device comment 1 Parameter Device memory 18 Device init Constant Project re Structure gt Ready 902 H Host station NUM j 8 ST PROGRAMMING APPLICATION PASTING FB TO LADDER PROGRAM MELSOFT Setting the local variables headers Refer to Chapter 3 and make setting as follows E Local variable setting MAIN E n Register Insert Display global variables Close Delete dk a Label Consat Devcetpe Comment O oa re Initialization Ps The process is initialized how as Signed device 2 Defective pir X v Totalof number of defective goods 3 jo Total of number of quality items L4 REAL
48. rs FB variable setting CALCULAT The yield is calculated E n x 5 Edit operation Insert Add __ ipu Ouput Label Constat Device type Comment 1 VAR INPUT GOOD IN TT 77777 of quality items Edere y Number of defective goods 3 ouruT ED our 44 The yield is calculated For details refer to the GX Developer Operating Manual Function Block given in Relevant Manuals 8 ST PROGRAMMING APPLICATION PASTING FB TO LADDER PROGRAM Creating FB ST language The operation to input the program in List 3 will be explained Displaying the FB definition screen i 1 Double click Body E E8 Unset project 21 58 Function Block CALCULAT The yield is calculated BB Header The yield is calculated Body The yield is calculated Mi 1 Double click Project FB Structure MELSOFT series GX Developer Unset project FB ST CALCULAT The yield is calculated 1Rov a es n 2 F B d n ition screen IS d IS played Project Edit Find Replace Convert View Online Diagnostics Tools Window x gt Global variable 21 oleja gt fol z ii al BI A 2 11 a 20 gt ue m x HONEIEEZTECECEE 5 8 Unset project 2 88 Function Block ci CALCULAT The
49. s guidebook Symbo Gives the section related knowledge and useful int information J Project ___ _ leon of toolbar lt lt gt gt Tab name of dialog box Select file gt gt Command button of dialog box Button 1 OVERVIEW MELSOFT stipulates the logic description system open controllers The ST language supports operators control syntaxes and functions to permit the following descriptions MA 0 language The ST language is defined in the International Standard IEC61131 3 that f Control syntaxes such as conditional sentence dependent selective branch and repetitive sentence based repetition Expressions using operators lt gt etc Call of user defined function blocks FB Call of functions MELSEC functions IEC functions Description of comments A ihe features following introduces the main features of ST programs the MELSEC Q j ale series Design efficiency improved by defining processings as parts With often used processings defined as parts in the form of function blocks FB in ST language they can be used in necessary areas of each program This not only enhances the efficiency of program development but also reduces program mistakes improving program quality Program change during system operation online change Part of a running program
50. und color etc can be changed Operation Choose Tools Change display color in the menu Setting of auto indent Indentation at the time when the key is pressed and the Tab width at the time when the key is pressed can be set Operation Choose Tools ST editor settings in the menu For details refer to the GX Developer Operating Manual Structured Text 3 13 3 13 3 SI PROGRAMMING MELSOFT Converting compiling the ST program or compile Changing the program created on the ST edit screen into a sequence N conve program that can be executed by the PLC CPU is called convert compile Performing convert compile The convert compile operation method will be explained using the created program Convert View Online Diagnostics Tools Window Help 1 Click Convert Convert Compile in the menu Convert Compile All programs being edited Converti Compile All programs Online change 1 At normal completion The following message is displayed MELSOFT series GX Developer E Convert compile is completed Compile Completed Since the confirmation screen shown on the left is displayed click the No button Local label is re allocated Write the program to PLC or Compare with the program in PLC before execute RUN write function and change TC variable for PLC If the button is clicked the
51. us page 3 Enter the device type Enter it directly or make selection from the list box E FB variable setting CALCULAT The yield is calculated 2 x Register Insert Add Close Delete Lue fee pe Edit operation 1 INPUT IN PIT isu 4 Enter a comment into the label Set it within 64 characters FB variable setting CALCULAT The yield is calculated E n x E dit Register Insert A Close Comment _ouruput__ _ __Label_ _Constant_ ____Device type 1 VAR INPUT GOOD IN PINT Number of v N 4 lt gt 5 After input is complete click the button FB variable setting CALCULAT The yield is calculated Edit operation L Inpu Ouput Label Constant Devcetpe Comment 1 VAR INPUT GOOD I 7777 of quality items has y Number of defective goods x y The yield is calculated tb To next page 8 ST PROGRAMMING APPLICATION PASTING FB TO LADDER PROGRAM MELSOFT previous page MELSOFT Series Developer x Click the button Check the redefine error of the label The time period for checking gets longer with increase in variables Registration is completed Click the button When registration is made displayed on the title bar disappea
Download Pdf Manuals
Related Search
Related Contents
IAN 96229 - Lidl Service Website Reverb and Multi-Effects User Guide 仕様書 - 海上保安庁 WiController User Manual - Wisnetworks Technologies CO., LTD. Manual técnico USER MANUAL SkyLink ID-318 User's Manual Physique atomique et nucléaire processore per impianti solari termici Copyright © All rights reserved.
Failed to retrieve file