Home

Chapter 1. Introduction

image

Contents

1. Instance Program Mame Ok Cancel Help i Execution Control f Single Task Browse Program File Marne Brose Clgmwin2sOisourcelnonamed Enter the instance Program name in Instance Name text box Choose one between scan program Single and define task program Task in the Execution Condition option In case of task defined program you can enter the task name directly in the Task text box In other way you can select one of the tasks already defined in the Task List dialog box by clicking Browse button and click OK button Input the program name SRC in the Program File name text box If there is a program already created click Browse button and select file in the Task List dialog box Click OK button Then new program is added into the Project window 2 Delete Program Select a program to delete Select Project Delete Project Item 3 Edit Program Select Program in Project window Select Project Edit Project Item Edit data in the same way to add a program and click OK button 4 Change Program Order A program execution order is set as the order from up to down in the project tree list To change the order Select a program item at the list in project window Change order step by step using Project UP Program or Project Down Program Chapter 4 Edit a Project 4 4 9 Comment of Direct Variable Comment of Direct Variable allows you to expla
2. 2 Backward Find function os executed backward 4 Word Select an accordance degree in finding a word 1 Match Whole Word _ Find only an exact same word 2 Match Partial Word Find also a partial same word 5 8 10 Replace To replace a variable with a desired variable in the program on editing Select A Leh Replace Text to Find Mew Text kind Origin t hetriction f From Cursor Operand C Entire Scope Direction Word f Forward f hatch Whole Word C Backward C Match Partial Word Cancel Replace All Help In Text to find edit box of Replace dialog box enter the string that you want to find In New Text edit box enter the new string Select options in the same way as Find function and click OK button Click Replace All button to replace all string at once 900 You can replace the string only for a variable 5 8 11 Again If you executed Find Replace command before executedthe command again with condition that designated before Select Edit Again Ctrl F3 ti 9 59 GMWIN Manual 5 8 12 Go to This function allows you to find the desired line in the program Select Edit Goto 9 In Goto dialog box enter the line number that you want to find Click OK button 5 8 13 Print If you click a Preview button before printing a program the outline of content is printed on the screen Select Project Print IL Print Option Stel fil Anen ere Si
3. Analog Type Nata Innit Execution button __ A Data Output eee Channel ss Analog Type Kind of A D Input range D A Output range e Data Input Input box for Analog data of A D or digital data of D A e Execution button Converted to the inputted data e Data Output Display the converted data e Channel Currently selected channel 14 9 2 Simulation 9 A D D A Simulation retains the data such as base slot channel and data type among the data set in the initial function block AD INI DA INI for A D D A module Others are ignored 9 if you mount the A D or D A module on the slot which is not used in the program the base and slot are effective But the data type is all 0 i e DT 0 0 16 000 and all channels are supposed to be used After entering the data in data input position click execution button 14 9 3 Analog type of A D D A module AD Input 5V 10V 20mA 4 20mA D A Output 5V 10V 4 20mA 14 9 4 Change of Analog type and Display of converted data by channel Change of analog type is only available in Stop mode The selected channel is changed into the property of changed channel Change of channel is available in all modes and the converted data of the changed channel is displayed According to each channel of A D module the kind of analog can be set If a channel is changed the property of the channel is also changed Incase of D A module Only one type of
4. Init Array Comments A 3 8 Chapter 3 Getting Started Click OK button Then variable name ABC is assigned as IN1 of the function ADD kd c gmeain source robot src P SWITCH1 HOTORI L Double click the left button of the mouse on IN2 position Row 3 Column 1 Then Variables dialog box appears 4 Enter Constant 1 in the edit control of Name Yanables Mame 1 Direct Variable Comment Variables List Allocation Used Data Type Flag ADC LIMIT Sw MOTOR Cancel SuVITCH1 Help Description This variable has not been defined Click OK button Then Constant 1 is assigned as IN of the function ADD Ed c gqmeain source robot src a SWITCHL HOTORI L 3 9 GMWIN Manual 4 Double click the left button of the mouse on OUT position Row 2 Column 3 in the function ADD 4 Enter the variable name ABC_ADD in the edit control of Name in the Variables dialog box Vanables E Name ABC_ADD Direct Variable Comment Variables List Allocation Used Data Type Flag ABC WAR lt Auto gt SINT LIMITS WAR lt Auto gt BOOL MOTOR WAR lt Auto gt BOOL ance SWITCH WAR lt Auto gt BOOL Help Add Delete Edit This variable has not been defined Description Click OK button Variable Mame ABE ADD Variable Kind Cancel
5. 5 6 22 Move Copy Cell y for copy mouse and keyboard are used simultaneously Select in toolbox In LD program window move the mouse to the cell to move copy Drag to a desired position with clicking a left button of mouse In case of moving release the ldft button of the mouse In case of copy release a left button of mouse with pressing CTRL key 5 6 23 Pop Up Menu y 9 Click a right button of the mouse on an arbitrary position or desired position Selecta desired command in menu that is appeared in right side Pop Up Menu are various according to the position of the mouse You can select frequently used functions in Pop 960 9 23 GMWIN Manual Up Menu To Arrow mode Ctrl Undo Warable Edit Ctrl ett Ctrl op iH Baste Er peljete el Find Ltrl F Replace Ltrl H Again Ltrl F3 Goto Condense Ltrl E Variable comment Chrl hM Delete line Ctrl C Delete cell H Del Insert Line Ctrl L Insert cell Ltrl If you use a Pop up menu then you don t need to use each command through the pull down menu In the upper menu To Arrow Mode is the command that changes the input state of a current mouse into arrow mode to select or enter the data or elements of the program 5 6 24 Undo This command allows you to cancel previously edited action y Select Undo Ctrl Z gt oe Select Undo Ctrl Z 5 24 Chapter 5 Edit a Program 5 6 25 Print and Previe
6. A variable shich can be used in all resources within a project or all programs within a resource local variable It is the lowest network which connects a control device or instrumentation device and the standard which adapted three layers among seven layers of OSI Three layers consist of Physical layer which consists of H2 1Mbps electric H1 31 23Kbps electric Optical Wireless etc Data link layer which adapted Scheduled and Circulated token bus and Application layer which take the responsibility of the application role This standard additionally adapted User s layer It is a comparable concept with the Full Map which contained the entire concept and function of seven layers of OSI GLOFA Mnet consists of the lower two layers Physical layer Data Link layer one layer of application and user s layer for user and interface to meet the needs of the factory automatization including confidence quick response and real time control A communication method to send receive the data through GLOFA Mnet Fnet modules One of the restart modes It reconstructs all data and performed elements to the previous status and performs them A variable to define input output of the function function block Assembled data to use in the program blocks or the function blocks During the normal execution of the program If a user want to execute any program firstly after stopping the normal program a user can define the program as Inter
7. Available Input for Access path Example Resource Global Variable Use only Global variable name gt A Direct Variable excluding GM1 Use only Direct Variable gt 10 0 0 You can also select the Access Path by clicking Browse button s Path Global Variable Ll 4 l Hesource Global KROG RESO SWITCH lt Resource Global BOOL Select the Access Authority option button Choose one of the Read or Read Write Click OK button 2 Delete Access Variable Select an item to delete in Access Variable List box 4 Click Delete button 3 Edit Access Variable 4 Select an item to edit in Access Variable List box Click Edit button Enter in the same way to insert access variable and click OK button 4 8 Chapter 4 Edit a Project 4 4 5 Edit Resource Resource is a CPU for PLC So you can use maximum 4 resources in GM1 when you configure a multi CPU for others only one resource is available 1 View Resource Name You can see the Resource name defined by user at Resource item of the Project window You can edit a resource name in the Edit Basic Parameter Resource Mame Resource Mame RESO You can edit resource name in Basic Parameter dialog Hox 2 Add Resource only available for GM1 Select Configuration in Project window Select Project Add Project Item Resource Enter a resource name in the Resource Name text box Click OK button Now new resourc
8. Li c LD PROGRAM WELDING gt cil gmvin source robot src Hi IL PROGRAM INST1 gt Ciganin source robot src 5 SFE PROGRAM gt INSTZ Ccigmvin source robot src E LD PROGRAM INSTS with task HH INIT gt Ciganin source robotd src B COMMENTS for DIRECT VARIABLES 6 variables declared PARAMETERS 1 0 PARAMETERS E LINE PARAMETERS INCLUDED LIBRARIES Ec gurin lib communi 1 b E c quin libyremote3 1fb 2 c qmwin lib remote4 1fh 2lc qmwin lib special 1 b i BASIC PARAMETERS E Chapter 1 Introduction 5 Connecting GMWIN to PLC by Easy Network You can download and monitor programs not only in directly connected PLC but also in a local PLC connected by network 6 Various PLC Information It is available to monitor various PLC states and to use this function in the program mode 7 User Defined Libraries Besides standard functions and function blocks you can define a frequently used program as one of functions or function blocks for your convenience 1 3 GMWIN Manual 1 2 How to Connect GMWIN to PLC In connection GMWIN to PLC you must previously define two options Method of Connections and Depth of Connections in Connect Option There are four kinds of methods of connection using RS 232C MODEM Communication module GLOFA Fnet Mnet for PC and Network Ethernet and three kinds of depth of connections such as Local Remote 1 and remote 2 When using Wi
9. a Shut Down Windows9S 3 1 GMWIN Manual Then the initial window is shown as below GHWIN for Windows OR ES Project Help Step 1 Create a Project Click New Project r icon or select the dialog box by clicking Project New New Project Project File Mame a PLO Name lt Not Given Cancel Configuration Marne ql Help Base Type C GME C GMi C GM2 GM3 C GM4 C GMS C GME C GM Writer Comments E 4 Enter the information to the text boxes on New Project dialog box Project Fie Name Base Type LG Industrial Systems Welding Process in engine line Hew Project Project File Mame Engine Line PLO Marne lt Hlot Given Cancel Chapter 3 Getting Started Click OK button Step 2 Define a Program 4 Enter the information on the Define Program dialog box Define Program WELDING cigmwinsaoure elrabotsre Enter an instance program name in Instance Name text box 4 Enter robot src for Program File Name and click OK button Open New Program dialog box 4 Select kind of language to use for the new program Type Comments for the description of the program in Comments box GMWIN Manual Press Enter or OK button Hew Program Program File Mame robot sre Ok Language Cancel SFC f LO ff IL ee ST di Help Program Kind Program Block Er Rincon Block CO FUNCION PACIOnI PO cio
10. 7 9 7 10 7 11 By L o E E BO O E E E E A TEE E E E E E E E E E E 5 58 A AO E E A E E E a ndhctsueaecae neat eectees 5 59 A AO 5 59 O a 5 60 Ble COOP o PP Oo E OE CO See 5 60 Chapter 6 Compile a Program Mi oido toca 6 1 A o E E cesistoheasacamalieeea dict 6 1 Bild lis ii in 6 1 MESSAGE ANS 6 3 Memory REIS 1G Gs srna e a ENRE ip E EAEN 6 3 Chapter 7 Online CONNEC asirios 7 1 7 1 1 Connect Write Run Monitor ON cccccsssecsssssssssssssessssscsssssscsseesesscsesesaseceesesaceeesasaceesesaseesesaeeesevaseseesasasersasatens 7 1 TLA CON A A EA 7 1 DISCO AS 7 1 aio A sete car apesptactne ee asst pe ease at penaecise aa teane cee eae ob eee ie assess eerie econ 7 1 CN Od a CAEP nen eae oe ena oe a eee oe ee oe ee ee ee ee ee 7 2 Gnange PES Modena id n 7 4 Clear PLO Dalaran a cask each aot as Nacsa A anlar eneunee iar 7 4 FN Gg A ee ee eee ee eee ornare 7 4 TT MTC ON EE EE ETE late o E O ttradtai E A 7 4 TAO Te No AP o o ER deat T E T E EE N dutch O 7 5 Ela MEMO e A A eae ee eae 7 5 UM ENa Dle cess a 7 6 REC MIA ONAN A Oinazea e a a a e e EI 7 6 7 10A SystemIntormalion asesoras a E Rae etd acts ela ele as 7 6 TAQ 2 BROT WW so 0 LL OLOT AON MAUOM PO NEC EUR OE A catec aseedatenica net aaotetaossions 7 8 TAO Sede AIS OPV ce E A 7 9 TANO AE MONASI rieo engr ll lio 7 9 TAOS Mode Change HISO arras tance nastacangitacschamptecanentacadl naatecagitaridt ausdecaneiteradet A nal 7 10 110 0 VO Module Fault IMO Maton ri A A
11. 9 If you want to set the I O parameter of each slot select the slot number in the I O configuration set by clicking slot number button Then Base Slot I O Parameter dialog box is displayed as below slot 00 Parameter C Al Type Select Point Relay Output E GM1 Select an item at the Type Select and select the number of I O in the Point Click OK button Base Uslot 0 0 Parameter Type Select Relay Output a Lancel Help GM2 6 In case of GM1 the option of CPU select and Redundancy are added 4 19 GMWIN Manual Reference I O type used as default value 70 type DEF When power is on the input module in a selected slot is registered as default value at the I O refresh table DEF O When power is on the output module in a selected slot is registered as gt default value at the I O refresh table DEF 10 When power is on the input output module in a selected slot is registered as default value at the I O refresh table DEF SP When power is on the special module in a selected slot is registered as gt default value at the I O refresh table When power is on the module in a selected slot is registered as default value DEF_MODULE at the 1 0 refresh table DEF_EMPTY When power is on the selected slot is registered as empty slot at the I O refresh table 1 Base Setup Base select ke All reset Close Help d Base Selection C Local A C Red
12. GMWIN Manual The type of inputted variable is not matched with F FB It is the case that the type of inputted variable is not matched with the I O variable of F FB Cannot find such variable type It is the case that date type of the object does not match operator when you give an object as variable Power flow must be only one There are several power lines in one rung Jump s position error The jump should be next to the transition where is at end of the selected branch of SFC program TS JOB_OK NEXT S65 N SFC_END T 16 RESTART NEAT Label s not found There is no label name lt label name gt which is same to jump name Confirm that there is label name which is same to jump name A 18 Appendix A GMWIN Error Code Contact can t placed in this areal The contact should be where variable or integer must be Attach the variable or integer You must enter an integer It causes when you input real number value ex 9 43 in input window to input integer Interval task number over Maximum number N You should reduce number by deleting interval task in task definition of project window Task number for interval task in between 0 to 31 See also 4 4 7 task definition in GMWIN user guide 9 Wrong interval value is given It is the case that you give wrong interval time in case of selection the interval task See also 4 4 7 task definition in GMWIN user guide
13. High Speed Link 1 Link Set Network Type GLOFA Fret Slot O Self Station Ho O Class From rea To Area Size Local Send Ef 00m coh WO Locall Recelwell CH ODE ELMO 3 0 Remotel 0 Aeceves Diim AIN ARDIDA Locall Send L 100me AM Ww Locall Recelwell C 100m FARIT TEGAI Remote 0 Receive D 200me 2I4 0 0 0 0 WO0 1 0 tO 00 7 CM Es Oi ip Delete Copy Edit 2 Choose Between Entries at the Link Parameter Copy 3 Enter 10 in the Link Parameter Copy text box 4 Click OK button Link Parameter Copy Destination Target C Between Links f Link 1 O Link 2 C Link C Link 4 Between Entries 4 28 Chapter 4 Edit a Project 4 5 4 Set Redundancy Parameter This function is available only for GM1RED PLC Double click on the Parameter Redundancy Parameter in Project window or move a cursor on the Parameter Redundancy Parameter and choose Project Edit Project properties in pull down menu Redundancy Parameter Output Circuit Set Fault Mask 1 Base Set At Redundancy Parameter dialog box click the Base Set button for setting base Redundancy El Delete Copy Edit Double click on the item that you want to set or click Edit button to set the base 9 To delete entry items select the items and click Delete button To copy entry items select the items and click Copy button 4 29 GMWIN Manual You can co
14. Variable Kind Help Data Type f Elementary O FE Instance cto gt CO Array 0 po 1 OF Bco gt Initial Value Init Array Memory Allocation Auto C Assign AT Comments A 2 2 K Click OK button Then the variable name ABC_ADD is assigned as OUT in the function ADD 3 10 Chapter 3 Getting Started kd c gmein source robot src Step 4 Compile a Program Select Compile Make in the pull down menu 9 Build the project file for the execution by running compiler GMWIN Manual Step 5 Download a Program 9 Be sure to connect the cable between PC and PLC before downloading the program 4 Select Online Connect Write Run Monitor On Write to PLE Resourced Total Data Frames 158 Perceitage ofFrames Sent 0 Then the execution file is downloaded to PLC After downloading the program PLC must be Run mode to enable monitoring 9 In order to turn SWITCH On forcibly double click the left button of the mouse on the position of the contact Then Force Variable dialog box appears Force Variable Yar lable Name SWITCH Lance value Help i Enter the value of the contact as 1 in the edit control of Value and click OK button To turn LIMIT_SW1 On forcibly execute the same order as the above 6 4 c gmwain source robot src lt WELDING gt A SWITCH1 HoOTOR1
15. ol in toolbox Select variables to monitor in the Register Variable dialog box Select Toolbox Select F5 in menu Select variables to monitor in the Register Variable dialog box 8 12 Chapter 8 Monitoring Register Variable kind C Configuration Global variable Resource Global Variable C System Flag iC Direct WYariable Ex Sox 0 0 0 of S6k10 1 0 56 00 1 8 Resource reso Instance Variables System Flags 1 Configuration for the Global Variable Register only GM1 To register the global variable register Select the Configuration option Select variables to monitoring in the Variable Flag list box Click Register 2 Select the Global Variable Resource Registering the global variable resource Select the Resource option Select Variables to monitoring in the Variable Flag list box Click Register 3 Select the Program Instance Variable Register a stated variable in the designated program Select the Instance option Select Instance in the Instance list Select Variables to monitoring in the Variable Flag list box Click Register 4 Register the Direct Variable Select the Direct Variable option 9 Input the direct variable address Example QWO 0 1 Click Register 5 Registering the System Flag Select the Flag option Input the system flag name Select Flags to monitoring in the Variable Flag list box Click Register All reg
16. Chapter 9 Debugging 9 2 SFC Debugging 9 2 1 Break Run In SFC you can execute a Break Run function for only Step 1 Set a Break Point Move the cursor to the Step that you want to assign as Break Point Select the Debug Add Remove break Point Ctrl F5 in menu hac gmwint source trabots sre INS T gt N ACT_ATART L Ti 41 N ACTA Te 42 Select the Debug Go Ctrl F9 in menu Then ACTION1 is executed after Trans1 condition is satisfied at the moment Step2 set as Break Point is in active 2 Run to cursor position Move the cursor to the step that you want to set as Break Point Select the Debug Go to Cursor Ctrl F2 in menu At the moment Step that cursor is placed on is in active PLC is stopped immediately 9 2 2 Step Run lt executes a program by one step S1 S2 S3 Select the Debug Step Over Ctrl F8 in menu A coWomwinttsourcettrabots sre lt INS Te si nlactataaT 5 Ti A Te A2 Ta TRAN Step S3 connected with Step S2 on break is executed when SEL1 transition condition is satisfied At the moment Step 9 5 GMWIN Manual S3 is activated PLC is stopped immediately If you execute Step Run here ACTIONS connected with Step S3 is executed when TRANS3 condition is satisfied Stop it with the next connected step is activated When you select Step Run if the next step es a parallel branch then you should select the branch to execute Step Run Select
17. Save All Close Local Variables In Out Variables Action List Transition List Toolbox T Cut Copy Paste Delete Find Replace Again Goto Condense Variable comment Delete line Delete cell lt RET gt gt gt Insert cell lt SCAL gt To Arrow mode Insert Line Select Arrav Subscript C 1 Shft F1 Shft F2 Shft F3 Shft F4 Shft F5 Shft F6 Shft F7 Shft F8 Shft F9 Ctrl A Complie C Complie Mke Build All Messages Memory Reference Appendix C Structure of GMWIN Menu Online O Connect Write Run Monitor On Connect Disconnect Read Write Monitor Mode Change Data Clear Reset Flash Memory Link Enable PLC Info I O info I O Forcing Link Info Comm info Mnet Parameter Mnet info I O Skip Fault Mask Initialize Special Modules Start Online Edit Write for Online Edit Cencel Online Edit Window W Cascade Tile Horizontally Tile Vertically Arrange Icons Close All Monitor Off Variable Monitor I O Monitor Time Chart Monitor Link Parameter Monitor System Info Error Warning Info AC Fail History Error History Mode Change History I O Module Fault info Window H Contents How to Use Help About GMWIN Run Stop Pause Debug Master Change Input Output Enable I O Forcing C 1 Flash Memory Type Falsh Memory Write Debug D Debug Eng Go Step Over Ste
18. Variable in the menu You can add edit or delete the I O variable in the same way Refer to the section 10 3 2 Create I O Variable for Edit I O variable 5 6 Edit LD LD program creates a PLC program with a graphic symbol like coil or connects which is used in relay logic diagram In the below picture Rung Comment is the comment for the appropriate rung Rung is a unit of continuous line which is connected vertically l e in the below picture a rung is from Row 1 to Row 4 and Row 5 is also a rung Rung Comment COMMENT This Pu START Sul TCH FUNN ING IN TIMER_ INF UT T End of Main En A ma _ERROR Contact Function Block ea for the LD progr Function ing comprehension EMERGENCY r a a DATA Coil Call Subroutine N DISORDER _ PRorc EXD This line is the end of program body DISORDER DISORDER PROC l Pp Subroutine Left Power Connecting Line Right Power END in Row 7 express the end of the main program Error management which is continued in the next column is one type of sub program and calls this subroutine in Row 1 9 GMWIN Manual It is shows Tools and those names in the Toolbox Toolbox for ladder program A EYE AREY AMET Sy Pal O 0 6 6 FH Pek er gt lt 0 f Call subroutine E Jump Vertical line Block Contact Horizontal line Coil The shape and pl ala of each element is as below Commen
19. Welcome to the Setup program This program will install on your computer ltiz strongly recommended that you esit all Windows programs before running this Setup program Click Cancel to quit Setup and then close any programe you have running Click Next to continue with the Setup program WARNING This program i protected by copyright law and Intemational treaties Unauthorized reproduction or distribution of this program or any portion of it may result in severe civil and criminal penalties and Will be prosecuted to the maximum extent possible under law Cancel 4 Click the Next button to continue the installation Choose Destination Location Setup will install GMIN in the following directory To install to this directory click Next To install to a different directory click Browse and select another directory ou can choose not to install GRIN by clicking Cancel to exit Setup Destination Directory CAGMMA AA Browse Cancel 4 Select Destination Directory If you want to change the installing directory click the Browse button You may cancel the installation by clicking the Cancel button in dialog box at anytime 2 3 GMWIN Manual 9 If you click the Browse button in the dialog box Choose Directory dialog box appears Choose Directory Source Temp Choose the destination path in the dialog box or enter the path name in the text box and click OK button 9 Ifth
20. select Array Number Mame DATA Array Num jo mE concer mp Select the array range in the Select Array Number dialog box 8 3 I O Monitoring It monitors I O modules mounted on the PLC system First assign the base to monitor and the I O cards mounted on the base are displayed And click ue button in toolbox then the PLC system starts monitoring Start Stop Monitoring button in toolbox is toggled each other Selected base number is displayed at the left upper corner and at the bottom of each slot the value of monitoring data is displayed as decimal scale or hexadecimal by the display type to monitor If you click the each contact in the I O module with mouse each contact are toggled into On or Off Toolbox for I O Monitoring This toolbox appears after selecting I O monitor in Online Monitor menu Select a San To monitor the program initially Select the Online Monitor Monitor on in menu Online Monitor I O Monitor in menu To monitor the program in monitoring mode Select Online Monitor l O Monitor in menu To start I O Monitoring in monitoring mode y 9 Call the Select Base dialog box by clicking button in toolbox 8 10 Chapter 8 Monitoring Selection of Base cane mon Enter the base number to monitor in the Select Base dialog box and click OK button Click sen in toolbox Call the Select Base dialog box by selecting Toolbox Select Base F2 in menu Ent
21. 4 15 GMWIN Manual Basic Parameter PLC type GM7 4 16 Chapter 4 Edit a Project Enter the PLC name in the Configuration PLC Name text box You can form PLC name with maximum 8 characters of alphabets and numbers And it becomes a configuration name Applied PLC Ver shows you available PLC version in the GMWIN Version Setup the permission of the remote access in Remote Access Right check box Default permission Set Hot Restart option If the Hot Restart option is checked hot restart will be operated Then you must set the hot restart time and you can set it from 1 second to 23 hour 59 minute 59 second with second scale Set Cold Restart or Warm Restart by clicking option radio box in Restart Mode Choose one mode of scan synchronization and scan synchronization in the GM1 Multi CPU system by clicking option radio button in the Multi CPU Running Mode available for only GM1 Type the resource name in the text box of Set Resource CPU Properties Resource name is formed with 8 characters of alphabet and digit Set the watchdog time in the text box of Watchdog Timer Duration Maximum time is 65535 ms with 1 ms scale GM7 Max 5000ms In GM7 you can set Software On Off Delay Time and Pulse Catch Input l0 0 x in Input property box Please refer the GM7 user s manual for details 1 Refer to the PLC User Manual about Remote Access Authority Restart and M area 2 In
22. 44 90 Demo Prosa td 4 11 449 COMME DA e aces 4 13 E 4 15 AO EOI BASIC AM laa 4 15 RS A N EER 4 17 45 3 Set the High Speed Link Parameter ccoo coi aid 4 21 4 5 4 Set REGUNGANCY PArAaMe tel PORRO PRPOPUCOOOO U O N05 E P P ae 4 29 4 5 5 Set Communication PArAMETEL cssssescssssereesscsetesssressesssssecscsessrersesecscsesesrersesesasecseenersesasasseaeeretsesecaeaeesenersess 4 36 Chapter 5 Edit a Program O E AAA nn Re en Ce nee tee ee ee 5 1 5 2 A A o e en ee ee ere 5 2 53 DIVA ROA A A A ee 5 3 Tae POER OPE OPE IPRP ARO PEPE a ro E O on Ie 5 3 S9 Ela aa Dl tada 5 4 56 Edi aneattesBeer axles cles tlt ceeddaneetle O E 5 7 5 0 1 Greate a Contacta 5 9 A A O cates 5 9 A A e E E COCO E o 5 9 504 Create a FUNCION BIOGK rara 5 10 BOS FS UMM sitet case ar cetera e ete aa a a naga aera Roa eA 5 11 GVEA and LA Ol LORCA A EC Ri o ee 5 12 A a ee ee eee 5 13 50 90 SUDOUMNE Callar Se conc erence stcet da aeaene die dedi onda ct dee dara tcposnte 5 14 SO ENG Or WAIN Progra ansionaan n A O E N 5 14 SNe MOATE TE o oE EE EE EE E E E E E E EAE E E E E E 5 15 A q In 5 16 56 12 toba 5 17 A ooo ea ee een cee 5 19 5 6 14 IG VS AC NG get OO li OO II AA 5 20 A A IA 5 20 5 7 5 8 Table of Contents O A 5 21 561 7 V ail 80109 9 a soken oen ENE EA EEEE AE AE EEEE EE A O Ar Eeee eE eS 5 22 5610 Delte ROW O 5 22 50 19 Delete Cell arree A 5 22 A o E En E EEE O E epee 5 23 EAEE CUE PA OMA E o O O O ce ncaa EE 5 23 50 2
23. Enter key Select The End of Program Body in Label or Rung Comment dialog box Label or Rung Comment C Label C Rung Comment In the end of main program like below picture END is displayed in column 0 of the appropriate row and This line is the end of main program is displayed from column 1 SENSOR_A BUN ING l Bam E e END A line is the end of program body EFRR OPR_L AHM DISORDER DISORDER P PROC TF D ssi crt Program logic under the end sign of the main program is regarded as subroutine area 5 14 Chapter 5 Edit a Program 5 6 10 Variable Input Select in toolbox In LD program window move the mouse on a desired contact coil or I O position of Function block and double click the left button oe In LD program window move the cursor a desired contact coil or I O position of Function block and double click the left button Calla variable dialogue box by pressing Enter key Local Yariablez Close ABC VAR lt Auto gt SINT ABC ADD VAR lt Auto gt SINT i LIMIT SWITCH1 VAR lt Auto gt BOOL Were VaR lt Auto gt BOOL MOTOR VAR lt Auto gt BOOL Cisnes SWITCH VAR lt Auto gt BOOL Edit Help dad Browse Global Variables BSE Ont Vanenles Description Mame gt LIMIT SVWITCHS Variable Kind VAR Data Type BOL Allocation Auto Initial Value Detfault Comments You can add delete or edit a var
24. If Variable is I O variable the following dialog box appears Force Variable Variable 9600 31 OK Kind Force io If Data Force Internal Memory If you want change the I O value select Force I O and to set up 1 select Data and Flag In this case Forced I O is available under the setting of forced I O enable Refer to 7 12 Forced I O Setup and 7 13 Enable I O Forcing Ifyou want change the internal value select Force Internal Memory and to set up 1 select Data 4 Monitor Array Variable When a program monitoring starts array variable basically monitors the first elements of array lf array variable name is ARR this variable displayed as ARR 0 and monitors the first element of array Move the cursor on the array variable that you want to monitor Select the Toolbox Select Array Subscript Monitoring Array Variables 9 In Monitoring Array Variables dialog box enter the index of element that you want to monitor Click OK button You can also monitor an array variable with hot key without using Monitoring Array Variables dialog box Move the cursor to the array variable Increase the element index with pressing Ctrl f or decrease with pressing Ctrl J 8 3 Chapter 8 Monitoring 8 1 2 Monitor SFC It allows you to know about the flow of SFC program with display of an active step and action If you select the SFC Auto Scroll in Option menu SFC window automatically scrol
25. It is Memory allocation error to write input output information from PLC to the computer Insufficient memory The memory is not enough you should shut down other application and restart of expand the memory Memory Allocation Error It is the case that it cannot be continued to running the tasking due to a lacking of memory You should shut down other program that is being used and try again Insufficient memory It is the case that it cannot use memory because main memory is not enough of other program except GMWIN is using a large memory Shut down applications and try again or expand a memory Insufficient memory The memory allocation has an error due to a lacking of memory in a using computer Exoand memory by shutting down programs that is not using now and try again Insufficient memory Use after expand the memory It causes when system memory is not enough Try again after shutting down other applications Too many characters in the instruction It is the case that the characters of inputted command are too long The maximum command character has 17 characters Cannot open down load information file Make project and write it to PLC Select COMFILE MAKE in menu to make executive file and select ONLINE CONNECT WRITE RUN MONITOR START in meny Variables to be monitored are too many Use user selction variables It is the case that there are so many bundles of selected program instance variables that it cannot monitor You sho
26. O Flag QOOO000000000000000000000000000000000000000000000000000000000000 Data OOOO OO0000000000000000000000000000000000000000000000000000000000 slot 1 Flag QOOO000000000000000000000000000000000000000000000000000000000000 Data ODOC OO0000000000000000000000000000000000000000000000000000000000 slot 2 Flag QOO0000000000000000000000000000000000000000000000000000000000000 Data ODOOOO0000000000000000000000000000000000000000000000000000000000 Glot 3 Flag 1111 0000000000000000000000000000000000000000000000000000000000000 Data 1111 0000000000000 000000000000000000000000000000000000000000000000 slot 4 Flag QOOO000000000000000000000000000000000000000000000000000000000000 Data OO00D0000000000000000000000000000000000000000000000000000000000000 Glot 5 Flag QOOO000000000000000000000000000000000000000000000000000000000000 Data OO00D0000000000000000000000000000000000000000000000000000000000000 slot 6 Flag DD000000000000000000000000000000000000000000000000000000000000000 Data OO00D000000000000000000000000000000000000000000000000000000000000 slot 7 Flag QOOO000000000000000000000000000000000000000000000000000000000000 Data OO0D0D0000000000000000000000000000000000000000000000000000000000000 point num ME e AS e EA gt bi 012345678901 2345678901 2345675901 2345678901 2345678901 234567890123 Forced Output setup is same as the Forced input setup Select Online I O Forcing Output in the pull down menu Select a base and slot in dialog box Se
27. Option folder in Option dialog box of Project menu Make Option Monitor Debug Option Auto Save Directory Set Password Monitor Option Monitor Display Type C Decimal C Binary SFC Wonitor SFC Auto Scroll Debug Option LO Debug Unit Select Point C Line Select the Debug Step Over Ctrl F8 in menu 9 2 Chapter 9 Debugging When you run Step Over by Point unit for the program in 9 1 1 Break Run the result is as below Bac Womwint source robot sre lt INs TU all TCH I ow LIMIT_sW ADO MOVE Row 1 EN END EN END 0 ll 0 0 Row ABC INT OUT ABC ADO DATATO IHT OUT DAT zi0 l IH ADO HOVE EN END EN END ll 0 0 INT OUT ABC ADO DATATO IHI OUT DAT zi0 9 3 Lle GMWIN Manual 9 1 3 Step Into In case of Break is executed on the User Define Function Function Block you can debug a User Define Function Function Block using Step Into function Add the Break point for debugging on the User Defined Function Function Block Gi 3 cargos ourcerrobotl sre lt IMo TU L HIDDEN 1 is User Define Function on the above figure Select the Debug Step Into Ctrl F7 in menu If the source program of User Defined Function Function Block exists you can monitor debug it by Step into function 9 1 4 Step Out To return to the program block from the User defined Function Function Block after debugging Select Debug Step Out in menu 9 4
28. Project double click a mouse on the appropriate program item in Project window list Then a selected program is created on the window screen You can not open the same program more than two in Edit or Debug mode In case of monitor mode if you can not see a long program at the same time please open the same program more than two and monitor a different part in each program 5 2 Chapter 5 Edit a Program 5 3 Save a program To save a program as file By Select Program Save in the menu In case of save an existing file there is no message for saving Ifyou save a new file or select Program Save as in the menu the following dialog box appears Save As Ei Ea Save Itt E DOUCE a ex aa robot sre File name robot Il src save as hype Program Files SRC Cancel 2 Click OK button after entering the desired file name Ifyou want save all programs on the active window select Save All in Menu 5 4 Program Properties You can change the kind or comments of program on editing Select Program Properties in Menu Then the dialog box appears as similar as the case of creating a program But you cannot change the already registered language Program Properties Program Mame robot sre K Language LO Cancel Help ddil Program Kind C Function FINO Block dame RETA Wata Impe BOoL Comments Control of Welding Robots and Lines Click OK button af
29. S and R in read only flag keyword or output of function function block Cannot write value to this flag You cannot change the value because this flag is read only This flag is not used with given PLC type Confirm it can be used or not because available flag is different in PLC CPU mode or GM1 5 A 15 GMWIN Manual END can t be placed in this line It causes when you input END again in line that you already inputted it You can input end in empty line Cannot assign break point at this element In SFC You can declare break point only in step Library file already exists The additional library file has already existed in library F FB name you want to insert is already exists is the library The additional library file has already existed in library 9 This interrupt input number is already used in another task It is the case that external contact input number is duplicated This task number is already used It is the case that there is same variable name that was declared before Variable already exists It the case that there is same accesses variable name which was declared before Access variable lt access variable name gt already exists It is the case that there is same accesses variable name which was declared before Instance name is already defined It is case that there is same task name that was declared before This Task name is already defined It is the case that there is
30. Save as in the pull down menu Save As Save Im J Source 38 def0000 pri engine_lne_of_car pri aa test pr test pr File name Save Save as type Project Files FRAJ a Cancel 3 23 GMWIN Manual Select a drive and folder to save the file 4 Enter a file name in the File Name text box Input a PRJ extension for Project File and a SRC extension for Program File Click Save button 3 7 Close a File lt Method 1 gt Click a mouse on the Adjustment Menu Box on the right upper corner of the active window lt Method 2 gt To close a Project 4 Select Project Close in the pull down menu To close a Program Select Program Close in the pull down menu lf the file was not saved then following dialog box appears GHWIN for Windows 7 This will end your GRASA for windows session Cancel Close Program an ed Program window cc groelr sources robot sre is about to be closed Save file before closing To save a file 4 Click Yes button Not to save a file 4 Click No button 4 Click Cancel button to cancel 3 24 Chapter 4 Edit a Project Chapter4 Edit a Project Project is a basic element of GLOFA PLC Basically one project can be created for each PLC system Project consists of Configuration part Parameter part and Included Library files Configuration part is software part such as Global variables Access variables Resource contents and etc
31. String Function System Function TimelDiate Function Type Funcion Fun Comment Po cams mo 9 92 Chapter 5 Edita Program Select the function in Function List dialog box Enter the variable as many as you want in edit box of Function List dialog box Click OK button If you want to use the already declared variables as the variable click Variable list button of Function dialog box and select the variable in the list box of Variables dialog box Function method 1 Move the cursor in the display region which you want to insert a function Enter the function and variable in Command edit box _ of Press an Enter key 9 93 GMWIN Manual method 2 Move the cursor in the display region which you want to insert a function Select Toolbox Function Select the function that you want to insert in Fnction List dialog box Enter the variables for the function in Function dialog box Press OK button case of extensible function refer to GMWIN commands for the detail information the number of input for the variable is not designated 5 8 3 Function Block Input y To insert the Function Block Click E in toolbox Function Block List FA Groups FA Select communi Iih rermote 1f remoted 1fh special 1Th Standard FA FB Comment lt Ho cams mo After selecting a function block to use in Function Block List dialog bo
32. Variable in Variable List Change Memory Allocation for Variable Example AT l0 2 0 gt l0 2 1 13 5 Non available Items for Online Edit You cannot edit the following items 4 Change of Variable Property Example Standard Variable gt Variable with Initial Value Local Variable VAR gt Global Variable VAR_EXTERNAL BYTE gt WORD Initial Value declared as Initial Value can be changed Edit Add or Delete Global Variable Add or Delete Program Block Add or Edit User Defined Function Function Block Available for Function or Function Block for already used in the Project Edit many rungs at the same time lt No of edited Rung No of Label included in edited Rung gt must be within 256 numbers 1 When complete the online edit to close a program you must execute a disconnection If you execute a disconnection Upload program is transmitted to PLC as below Write ta PLC Resource Upload program Total Data Frames 67 Percentage of Frames Sent 9 2 To online edit an uploaded program you must complete Make Refer to the section 12 3 Read from PLC Upload 13 3 Chapter 14 Simulator Function Chapter 14 Simulator Function GMWIN allows you to simulate the program logically you ve created without PLC or I O system 14 1 Applied PLC and Specification for PC 14 1 1 Applied PLC GLOFA GM1 GM2 GM3 GM4 GM5 14 1 2 Specification for PC O S Window 95 Memory 16M bytes o
33. ae eee ee nee eee een ee rrr 9 5 A ee One A ne ee One Ae ee 9 6 2 A PACHUCA G tesserae aie irate acts abacitor Se ceased caste YE arden tale itor ctenbaaee en cembdanerteueintss 9 6 930 UE IDEDUGGING riada 9 7 A titi cea easac tahiti a a a a a a a a 9 7 a ai AU agr A o PO o A 9 7 9 3 RES DMO anoe E devil euuenceta rs centiedtatehe de caccerees 9 7 O ON sect casters colt eae ee ade a a Sia 9 7 935 Wate CUON AP oo o er aiaa 9 7 94 Vew MIO GE OM A ata terade cha e a e bec ud POE Madar 9 8 95 SET a Break GOMCION ro 9 9 96 e Break SCAM eorr weet tinea tanayaadtanmiencion vende era taamnuante nda nae ueoeaoare 9 10 IE TOMO WV fe 115610 ral clits aura realest A O hanaeanivest 9 10 9 67 Enable Task TUMOVOT acaecido 9 11 Chapter 10 Library 101s 0 80 Ul 6 21 GY gc ene nee cee eet re ee ee ee eee 10 1 10 27 000 aer 10 2 10 3 Greate User Delined A e NN 10 6 10 3 1 Create User defined Function aida dd cis 10 6 10 3 2 Create a User Defined Function BIOCK ccsssssssssssssesssssesssrerssersesesseseserersesesasenserereesaeasasieerersesesasnensens 10 15 1033 LID Mana cara 10 23 Chapter 11 Option Ta COMO ass 11 1 11 1 1 Connetion with a series COMU CM ataca 11 1 UA a a aa R 11 2 11 1 3 Connetion with GLOFA Fret for PC s ciosccssisescceceseucssiscekneeastclcsaigdecetndsivsclcssiadetvadadehclcaaisdutdedendedsndvecnsabedhanedasesdss 11 3 11 1 4 Connetion with GLOFA Mnet for PC iatosiasiaa a aa 11 3 Ekkor Conmet
34. allows you to view the current result in the program that is under break Select the Toolbox Watch Current Result in menu 9 7 GMWIN Manual Wate h Current Result ORD AI A 9 4 View Break Point You can view and delete the break points in the Break Point List Condition dialog box GMWIN saves the break point by Project unit That is when you reload a project the break points of the project are same as you set previously If you delete a break point in the Break Point List Condition dialog box the break point set in the program is deleted Select the Debug Break Point List Condition in menu Select the Break Points Tab Break p oint Lis t Conditions robots sre boxing src You can view and delete the entire break points Moreover you can set the number of break count Click OK button 9 8 Chapter 9 Debugging 1 Delete a Break Point Select the break point to delete in dialog box Click Delete button 2 Delete the entire Break Point Click Delete All button 3 Edit the number of Break After executing the breaks as many as you set the number of break count the PLC is stopped Select the break point to edit the number of break count in dialog box Click Edit button Edit Break Count source Mame robota sre Line Number 1 Cancel Humber oftimes to stop Enter the number of Break count that want to break and click OK button 9 5 Set a Break
35. analog for all channels is available You can t setup the type of analog by channel 14 9 5 Analog Input of A D module and Display of converted data Input Unit Voltage mV Current uA Input value for the input data window in A D module is analog data The value can t exceed the range of the current analog type If the value exceeds the maximum upper limit the data will be the maximum upper limit Example Let s say Analog type is 5V DT 0 If inputted analog value is 6 000 the data is regarded as 5 000 The converted digital data is displayed as 0 14 3 GMWIN Manual 14 9 6 Digital Input of D A module and Display of converted data Input Range It is up to Data type DT of D A module DT 0 0 16000 DI 1 8000 8000 Input value for the input data window in D A module is digital data The value can t exceed the range of the current digital type If the value exceeds the maximum upper limit the data will be the maximum upper limit Example Let s say Analog type is 5V DT 0 If inputted digital value is 17 000 the data is regarded as 16 000 and the converted analog data is displayed as 5 000 A D Simulation Step 1 Add A D module Stop Mode 2 Change of Analog type Stop Mode Executes whenever it is necessary 3 Run Executes whenever it is necessary 4 Select Channel Display analog type and converted data 5 Enter the analog value consider the input range 6 Click exec
36. button Include Library Current Included Libraries Clg mwintibicormuni 4to cla mwiniibimkstdlib 4tu cagmwinlibispecial 4th E Delete DK Cancel Help Libraries supplied by manufacturer and User define libraries are appeared in the library list as the above dialog box If you select a desired library and click Add button then added libraries appear Current Included Libraries 1 communi 3fb Function blocks for the communication in GM3 Cnet Fnet Mnet 2 mkstdlib 3fu functions for MASTER K series 3 remote3 3fb Function blocks for special modules in GM3 for REMOTE communication 10 4 Chapter 10 Library Ifyou finish to add the libraries added libraries appear on Project window ac Homwintsourcetengine line pri PARAMETERS al E BASIC PARAMETERS E 1 0 PARAMETERS E LINK PARAMETERS INCLUDED LIBRARIES c tomwintlibnke cain Bjc Hgmwintlibtimkstdlib 4fu Bc Homuwintlibtts pecial 4fh When you add a library If the item that selected in Library List is a standard library the following error message appears Select Library ES Standard libraries are already loaded To delete the inserted library 9 In Current Included Libraries list box select a desired library and click Delete button Include Library Current Included Libraries eigmwinlibicormmuni 4th clgmwinvibimkstdlib 4fu Clgrnwvinlibispecial 4fh Add Delete cancer C
37. case of GM1 it is available for resource 0 3 3 In case of GM1 it has Multi CPU Running setting mode 4 In case of GM5 it has RS 422 speed setting mode 5 In case of GM6 it has computer network setting mode 6 In case of GM7 it has input property setting mode 7 In case of GM6 and GM7 they do not support hot restart function 4 5 2 Set I O Parameter To set the I O Parameter Double click on the Parameters I O Parameters in Project window or move a cursor to Parameters I O Parameters and select Project Edit Project Item GMWIN Manual 0140 Parameter Base select 0 z All reset O Configuration DEF_EMPTY DEF_EMPTY GM1 010 Parameter Base Select O All reset IO Configuration set DEF_MODULE See GM2 GM6 In case of GM1 CPU configuration item see above figure is added I O type is set as DEF_EMPTY In case of GM7 it has no I O parameter setting 4 18 Chapter 4 Edit a Project Select the base number to set in the Base Select and the setting content of base you choose is displayed in the I O configuration set 9 If you click All Reset in the Base Select then O parameters in all bases are changed into default value 9 If you click the Reset in the I O configuration set then I O parameter in the selected base slot is changed into default value Base setting range with PLC type PLC type Range Base 0 31 TE GM3
38. correct integer again Select a base number It is the case that base number to monitor is not inputted You should input the base number Invalid base number It is the case that there is no base number to select Confirm the base number and input again Variable lt variable name gt not found Make project and write it to PLC It is the case that you cannot monitor by program to be changed Select COMFILE MAKE in menu to make executive file and select ONLINE CONNECT WRITE RUN MONITOR START in menu Variable lt variable name gt type is not BOOL If you declare action or transition as variable it should be BOOL type A 6 Appendix A GMWIN Error Code Variable lt variable name gt already exists It is the case that there is same variable name that was declared before Invalid value You should input value of proper variable type See also data type Select a variable which is the object of break It is the case that variable to execute variable break is not declared in variable break dialog box Variable name is too long It is the case that variable name is too long The maximum size of general variable is 18 characters except special variable This variable name exists already in a different attribute It causes when variable name in block is already used in window that you want to add during block paste You should change variable name of variable in block The variable name can t be a
39. desired item with Arrow key Select each registered item with Space key 9 If you finish the selection Press Shift F8 key 4 22 Chapter 4 Edit a Project 1 Set Link Information Click Edit button at the Link Set area in the High Speed Link Set then High Speed1Link Set dialog box appears which allows you to setup the information for the link setting High SpeedlLink Set Network Type C GLOFA Mnet C GLOFA Enet C GLOFA Fdnet Network C GLOFA Fdnet Cable C GLOFA Onet Slot Mum D E Selbstat Mum jo Select a network type in Network Type option radio button Select the slot number of the link module in Slot Num List box Select the self station number to save the High Link Parameter in the Self Stat Num text box 2 Set Entry List Click Edit button at Entry List box after selecting registered list number then High Speed Link Item Edit dialog box appears which allow you to setup the information of the entry link list High SpeedtLink Otem Edit Block Mo Cancel Help 4 23 GMWIN Manual Select whether Station Type is local or remote in Station Type option radio button Set the station number in the Station No text box Select whether it is data to send or receive in Mode option radio button Set the block number in the Block No text box Select the send period in the Send Period list box A 20ms B 50ms C 100ms D 200ms E 500ms F
40. displayed 9 If you save a new file or save by selecting Project Save As a dialog box will be displayed as below Save As Save jni defQ000 pri engine_lne_of_car pri m test pri test pry Save as type Project Files FRAJ Cancel Enter the file name that you want to save and click Save button 4 3 GMWIN Manual 4 4 Edit Configuration To edit configuration double click on the each list of tree list or select Project Edit Project Item 4 4 1 Edit a Project PS PROJECT PLC Type GH3 Select Project in the lists of Project window or double click Project in the Project window Select Project Edit Project Item in the pull down menu Edit the project with the same way used in section 4 1 Click OK button If you change PLC type you must reload library besides standard library selectively Refer to detail comment in 10 2 load Library 4 4 2 Edit Configuration Item F CONFIGURATION PLC Configuration Name UNNAMED The Configuration Item in Project window shows the name of configuration that you selected Configuration name can be edited in Basic Parameters refer to the section 4 5 1 Configuration PLEI Name Configurationi FLE Mame UNNAMED You can edit configuration name in Basic Parameter dialog box 4 4 Chapter 4 Edit a Project 4 4 3 Edit a Configuration Global Variable f CONFIGURATION PLCE Configurati
41. glock dae RET Wata wpe Bc OL e Comments Welding robot controll Step 3 Editing a Program 1 Input a contact and output coil 4 Click the left button of the mouse on the position of Row 0 and Column 1 in the LD window after selecting TH icon in the toolbox Click the mouse on the right side of contact of 3 6 4 c omwin source robot sre 3 4 Chapter 3 Getting Started 4 Select a the toolbox and click the left button on the location of Row 1 and Column 1 kd c gmwinisource robot src 2 Insert a Function Select de in the toolbox using a mouse 4 Click the left button of mouse on the position of Row 1 and Column 2 Function List Fun Groups Arithmetic Function Bit Function Comparision Functio String Function System Function TimellDate Function Type Function ACO TO DINT Arr Ti IMIT Fun Comment Add value cam Ho 3 5 GMWIN Manual Select Arithmetic Function ADD in Fun Select box and click OK button ma Ea Humber of Inputs Wasimum number of variable OK inputs is 8 Cancel How many variable inputs do you F wants E Help Enter 2 for the number of inputs Click OK button kJ c gmwMin source robot src Bom INL OUT Bom Y IHz Ecm 4 3 Variable Input Select K in the toolbox and double click the left button of mouse on the location 7 F of Row
42. is the massage whether you change previous file or not when it is loaded from other library that object file that has same name one that is loaded before You cannot load F FB named lt F FB name gt in lt library filename gt because it is a standard F FB which is already loaded After changing the name of user definition function function block insert it to the library again 9 Insertion is not possible because Fun FB too close It is the case that you try to delete cell between function function block It causes when capacity to write input output variable is not enough after deleting cell There s not enough space for Fun FB It is the case that function function block cannot be inserted because free space is insufficient in the position in which function function block is inserted When you insert function function block you should it in the blank that has 3 lines at least for input output variable space String constants cannot be used in Function It is the case that you use string integer in function Cannot declare or call nay Function Block in Function It is the case that you declare call function block in function Functions can t be changed to other elements It is the case that you select function as command to replace in dialog box You cannot use REPLACE command for the function Function cannot have VAR OUTPUT variable Function cannot have VAR_OUTPUT variable Cannot assign an initial value
43. not match Confirm library modified date Cannot open selected library file Confirm there is selected library file in the library directory that is selected in option This object file is not a LGIS GMWIN object file The version of selected object file does not match with GMWIN Compile source file to GMWIN again Label cant be placed on a rung comment area You cannot designate label in comment Variable break may not be performed because the program instance which contains that variable is disabled by Task Enabling It is the case that program instance to which declared variable belongs is prohibited by task executive condition when you declare variable break A 9 GMWIN Manual The selected block is too large Deletion of block is possible only It causes that selected block is too large to copy Though you cannot copy it you can delete selected block Short circuit error It is short circuit oT AAT MOTOR ON STOP You should delete short circuit oT ART a TOP MOTOR_ON HA HA Scan Watchdog Error On execution it is the cases that scan time of program exceeds the scan delay watch time that is designated by parameter Modify parameter or program by confirming scan delay watch time that is designated by parameter then re download and execute it again Wrong number of scan is given It is the case that frequency of scan is designated incorrectly when you designate scan break You should designate frequ
44. open which item because program file name of this item does not defined when you open the window by double click the program item in project Give program file name Abnormal Program RAM Reboot the PLC FB lt FB name gt not found in a library IT is the case that function block which is used in program is not in library file Resister relevant function block to library file and insert this library to project Condense rate for printing is out of range Check condense range It causes when compression proportion is out of range Flay array index is out of range You have not to use it over defined array number in case of using flag element that is defined as array There needs no operand It is the case that function for example ABS that does not need object in IL You should delete the object Operand is not assigned Variable or integer is not at contact or coll A 28 Appendix A GMWIN Error Code You should attach variable or integer value at used contact or coil START MOTOR _ON Too many characters in the operand The case characters if inputted object is too many You should input the object below 16 characters 9 Wrong data type of operand It is the case that data type of the object does not match the operator or data type of Current Result in IL Wrong operand string found It is the case that the string that is inputted as the object does not match the word form Cannot find the fun
45. port 3 Hard disk 20 Mb Hard disk space 4 Resolution for Graphic Card Minimum 800 x 600 pixels or above 5 Floppy disk One floppy disk driver 6 Mouse A windows 3 1 95 compatible mouse 7 Printer A windows 3 1 95 compatible printer 8 Operating System Windows 95 98 2 1 GMWIN Manual 2 2 GMWIN Installation Installation program for GMWIN is compressed in floppy diskettes So if you just copy all the programs in each floppy diskettes onto your hard disk you cannot run GMWIN To install GMWIN in your computer Use installation program SETUP EXE in disk 1 2 2 1 Installing Program To install GMWIN for Windows you must run an installation program SETUP EXE in disk 1 on Windows 95 98 Confirm that disk 1 is inserted into your floppy disk driver Click on the File menu in Program Manager Run EE Type the name of a program folder or document and Windows will open it for you Oper Jar setup EME Cancel Browse Select the Run command and run the setup exe in disk 1 Click OK button Then the setup wizard will guide you to install the program Version 3 3 Copyright 1997 1999 LGIS Lo Ltd 2 2 Chapter 2 Installation through the application setup process Please wait eal Setup is preparing the Install Wizard which will guide you 6975 The above dialog box of welcoming message appears in your screen Welcome Ea
46. red Move the mouse to the step S4 where branch ends and click a left button 9 31 GMWIN Manual c igmwMin source robot3 src Selective branch and new transition T5 are created se Move the cursor to the step where branch starts with key Select Toolbox Branch F3 Move the cursor to the step where branch ends with key Select Toolbox Branch F3 2 To expand a selective branch y maj Select in toolbox Move the mouse to the start position of a selective branch and click a left button c gmwinssourceroboti amc Selective branch and new transition T6 are created 9 32 Chapter 5 Edit a Program A c Agmwink source vxobot3 _ src S1 1 SE TZ TS T3 TF ad b Move the cursor to the start position of a selective branch where you want to insert a branch with key Select Toolbox Branch F3 E ll 99 5 7 4 Create a Label CE Label Select Mes in toolbox E Move the mouse to the step is marked with ABC and click a left button 4 c omwini source robot src Input a label name in Lable dialog box and click OK button Maximum size of a label name is 10 characters 9 33 GMWIN Manual Create a label c gmwin source robot3 src Label is only inserted in the front of Step oe Move a cursor to the step with key Select Toolbox Label F5 Input a label name in Label dialog box and click O
47. same task name that was defined before Same data type as previous result expected You should use same data type object that is same to current result that is previous operating result according to operator model in IL 1 0 contact Error It is the case that one of module that is composes of duality is error replace module of wrong slot and executes again Appendix A GMWIN Error Code FB instance string cannot exceed 8 characters The instance name cannot exceed eight characters Because general variable that includes instance name and input output variable name is used in program Wrong instance name is given It is the case that you input wrong instance name You should input correct instance name for the identifier See also3 1 1 Identifier command manual Wrong instance name is given You should input correct instance name for the identifier See also3 1 1 Identifier command manual Multiple use for interrupt number N Confirm tasks which are declared as number N are over two Do not duplicate it Abnormal Interrupt Controller Connect power again This keyword is READ_ONLY It is the case that you cannot use read only flag as object of ST command Temporary variables can t be made It failed to create temporary variable on LD compile Temporary variable is created in TEMP directory So it causes when capacity of TEMP directory is insufficient or disk has an error If capacity is not enoug
48. that expression of time date which begins with D T DT is wrong Can t open the serial port Confirm there is other program which is using serial port or not and if there is no then restart GMWIN Abnormal Serial I O chip Reboot the PLC Cannot open programs because of lack of system resource Close rarely used windows and try to open again It is the case that it cannot open program file due to lacking of resource Close other application or close program window that is not necessary in GMWIN and execute again System Self diagnose is Information Abnormal CPU Reboot the PLC Down load file is not same as one of PLC nWrite it to PLC Select COMFILE MAKE in menu to make executive file and Select ONLINE CONNECT WRITE RUN MONITOR START in menu Cannot expand source file It is the case that program source file is damaged Abnormal Access path It is the cases that download are failed because error happens on program download You should download again Access path name error in a access variable lt Access variable name gt It the case that it cannot be found that global variable or direct variable in access path that is declared as lt access variable name gt See also access variable editing Access variable memory error It is the case that memory is insufficient Save all files which is working execute again after closing other application Wrong access variable name is given It is the case that you input wrong a
49. the action or transition that selected a program type before Select Language Selecta desired language type in Language option button of Select Language dialog box Call the screen of making a program by clicking OK button and create a program When you edit a transition the execution condition must be outputted as TRANS variable 5 44 Chapter 5 Edit a Program kjc gqmeinisource robot3 src Action ACOO0T oWITCHL oWITCHe MOTOR i h A 0 0 4Ix0 0 1 M101 MOTORL M100 MOTOR SWITCH LAMP 1 Action and transition programs are not saved by individually They are also saved when SFC Program as saved So if you saved SFC program in window then action and transition are also saved 5 7 10 Arrange Number This is function for putting the number added to Step and Transition in order Step or Transition number is added in inserted order and they have no other meaning It is arranged automatically when you compile or save the program Select Edit Arrange Number Edit AN Do you want to arange step and transion numbers Cancel 9 45 GMWIN Manual Click OK button and the numbers are given in order EA c gmwinisource obot3_src ol r oF E se N AcCoOoOL 55 oll T R T11 THoOOOL 54 q Ta r S E E N A COOOlL 53 SS y Te THoOoOOL 54 Ta Before arrangement After arrangement 5 7 11 Action Transition List Select Progra
50. used after declaring symbolic variable with a same name for VAR__EXTERNAL when a user creates each program block Features if data that represents the declared variable SINT INT DINT USINT UNET ULINT REAL LREAL TIME DATE TIME__OF__DAY STRING BOOL BYTE WORD DWORD LWORD DATE__AND__TIME A variable to use without the declaration of the name dato type 1 Q and M area 1 0 02 MD1234 etc A network technology is applied the upper network for observation and control of system And to send receive data using TCP IP Transmission Control Protocol Internet Protocol as the upper protocol and selecting CSMA CD Carrier sense Multiple Access with Collision Detection as the media access formula An auxiliary memory module to be used in GLOFA PLC B 1 GMWIN Manual Forced I O setup Function Function Block G Global variable GLOFA Fnet GLOFA Mnet H High Speed link Hot Restart I Input Output Variable Instance Interrupt L Library Library Manager Local Connect Local Variable M Make Mnet A method to have a constant value without a card of the execution of program by taking the special value in 1 0 forcibly Program organization unit to output operating results for the input without storing the results into the internal area Arithmetic operation Comparison etc Program organization unit to store the operating results into the internal area Timer Counter etc
51. you want to set an initial value type it in the Initial Value text box Enter the comment in the Comments text box Click OK button f Assign AT _ 2 Delete Configuration of Global Variable 4 Select item to delete in the Global Variable List box 4 Click Delete button 3 Edit Configuration of Global Variable 4 Select item to edit in the Global Variable List box Click Edit button Enter the data in the same way to insert 4 6 Chapter 4 Edit a Project 4 4 4 Edit Access Variable An access variable is used to protect the data besides declared as access variable when other PLC i e other configuration read or write to it s own PLC it allows you to constrain read write access authority Select Access Variable at the list in Project window Select menu Project Edit Project item or double click Access Variable in the Project window _ Al RESO M0 READ_ONMC RES0 SENMSER1 READ_ONMC 1 Insert Access Variable Click the Add button A d dE dit 4 Variables as Type the Variable Name in the Access Variable Name text box The name is available only Capital Letter Select or enter the Access Path in the Access Path text box 4 7 GMWIN Manual For example In GM1 onfiguration Global Variable A VALVE1 esource Global Variable Resource Name Global Variable name gt RES1 a irect Variable Resource Name Direct Variable gt RES1 10 0 0 In GM2 GM7
52. 0 and Column ies q Wanables Marne Switch ant Variable Comment Variables List Allocation Data Type Flag Cancel Help Description This variable has not been defined 3 6 Chapter 3 Getting Started Enter SWITCH 1 in the Name edit control Click OK button Add Edit Variables Variable Name SWITCH Variable Kind Cancel Variable Kind Help Data Type Memory Allocation f Elementary f Auto E fr Assign AT e yor Boo y po Initial Value SS Comments _E_e e Click OK button cAgmwinksourceA4 robot src SWITCH1 SWITCH1 L IMIT_3W1 TT Rom 1 EN ENO 3 GMWIN Manual Double click the left button of mouse on the left of IN1 position row 2 column 1 in the function ADD 4 Enter the variable name ABC on the Name edit control in Variables dialog box Vanables 3 Marne ABC Direct Variable Comment Variables List Allocation Used Data Type Flag LIMIT_ 57 lt Auto gt AUto Auto gt Cancel Help Delete Description This variable has not been defined Click OK button Then Add Edit Variables dialog box appears Add Edit Variables x Variable Mame AB Variable Kind Cancel Variable Kind VAR Help Memory Allocation Data Type i Elementary f Auto O FE instance O Array 0 Y OF B00L C Assign tAT
53. 0 6 Chapter 10 Library If you click Yes button In Out Variables List dialog box appears Editing Function Function Block CE o Ca 9 Ifyou click No button In Out Variables window for the selected language appears In Out Variables 2 Create Input Variable Differently from editing a Program Block select Program In Qut Variables to create variables In Out Variables 10 7 GMWIN Manual Adda variable in I O variable input text box of In Out Variables dialog box In ut Variables VAR _INMAR_IM_ OUT SAR Add VAR_INPUT Add VAR_IN_OUT Aud VaR DOT gt Edit Delete rp denotes YVAR_IM OUT 3 sen VAR_IN_OUT is distinguished from VAR_IN by mark Differently from VAR_IN VAR _ IN_OUT means that you can change the value of parameter taken from the side that call function function block in that function function block 10 8 Chapter 10 Library 1 Add an Input Output Variable Click Add VAR_INPUT Add VAR_OUTPUT or Add VAR_IN_OUT button Add Edit In Out Variables Variable Mame INPUTI OK variable Kind VAR_INPLIT Cancel di Data Type Help f Elementary caray Ue E Bco z 1 denotes an array whose number of elementis not determined Althea Wee Comments Adda desired input output variable name in Variable Name input text box Maximum size of name is 8 characters Select a variabl
54. 14 7 Simulation OF I O Mocedades did 14 2 149 POWer IMM AO Nes cee cet a ta te trae acetate A AA 14 2 A A 14 3 A np ne E E ee ee ee eee ee er 14 3 MO SIMI AY Ol lites AE S A A A AN S 14 3 14 9 3 Analog type t A D DIA Moon ria tb 14 3 14 9 4 Change of Analog type and Display of converted data by Channel ccccsssessscsssescssssssesssseseseessssersesaserereetes 14 3 14 9 5 Analog Input of A D module and Display of converted data ceccsssssssssssssssssscssssssssssseeesessseeesavasereesasesersases 14 3 14 9 6 Digital Input of D A module and Display of converted data cceccsssssesssessssssescssscesesssseeessessseeessseseesesasesesases 14 4 Table of Contents 14 10 Fonction Dy Onine ICI eiii 14 4 MONG MOO A A A A AE 14 4 14 102 Forced VO SUD santo 14 4 MTI Di o o 14 4 TATA o ee ee ee er ern rere 14 4 1451057 Mode CRNE tatu dci Docs cei acticutasvaces feted didas 14 4 AI 6 60 6 06 s 14 5 BAZ SHOP NaO a ses saca pcs euasicgs E uns onaGaeteavan A 14 5 Appendix A Error Code Appendix B GLOSSARY Appendix C Structure of GMWIN Menu Chapter 1 Introduction Chapter 1 Introduction 1 1 Characteristics of GMWIN GMWIN is a programming and debugging tool for the full range of GLOFA PLC GMWIN software has the following features 1 Comfortable Interface It is possible to compile and debug several programs at the same time and maximizes user s other convenience 2 Supporting Various Languag
55. 1S G 5S H 10S Set the send receive area in the Area option radio box Each area is selected by option button and address is fixed in each text box Set the data size to communicate in the Size text box by word size 3 Delete Entry List Click Delete button or Del key after selecting the entry list number to delete at entry list box in High Speed Link dialog box P Are you sure Cancel You can delete the selected item by clicking OK button otherwise click Cancel button 4 24 Chapter 4 Edit a Project 4 Copy Entry List To copy the list within Entry List each other in High Speed Link dialog box 1 Press Ctrl C to copy after selecting the item to copy using a cursor or mouse High Speed Link 1 0 Local Send C 100rne MD 4 1 Local Recenvel Cii Oms 20 W 0 3 0 4 2 Remote 0 Aeceves D 200me 2IW0 0 0 AMA 2 2 Press Ctrl V to paste after moving a cursor to the location you want High Speed Link Locall Send L 100me Mw Locall Recelwell C 1 00m ELMO 3 0 Remote 0 Receive D 200me 2IW0 0 0 20 WO0 1 0 Locall Send EN 00m Local Recelwel C 100rne 20 W 0 3 0 Remotel 0 Recelves D D0rnz 2lWO 0 0 LWO0 1 0 4 25 GMWIN Manual Click Copy button after selecting the entry item number at the entry list box in the High Speed Link dialog box Link Parameter Copy Destination Link 2 C Link C Link 4 Between Link
56. 2 MOVE GO elit 5 23 A yes MENU eae eee eee ee eee ee eee eee eee eee 5 23 02 INO Ossa 5 24 O 20 OA PIEVIEW di do 5 25 A e ccmtdeetaiacesdcustse ahah auncecaueetcoeal ewacetensnecatin E OERE 5 27 1 Ie Cheadle a Step Transition Sl aa eee 5 28 572 Greate al paralel Blanc rines liliana 5 29 5 7 3 Create a Selective Brand ia ed ldid 5 31 A A ate E Se conc retro O 5 33 Bich Os A O uace ai temstcesenutetantcateesenraneousede 5 34 DUO Glo alo al CHOON arado 5 36 Oat Fos GANS a FAIA SII dnd dotar me 5 40 5 7 0 A NS 5 41 5 19 20 MN ACION MANSION TO 5 44 FATO Arange NUMDE 0 CREA O Geaeceelee 5 45 SS AA a 5 46 EA cd 5 47 o e o o ee eee ee 5 48 A A EAE ee 5 48 A e seasoned aces at etuseteectliod wade a aa 5 48 A 5 48 DT GONAENSE EI A A AD 5 48 Pato Ne NA A e E E pe o UE act beat E EE E E EAT 5 49 A er A eee ae eee ee ene re 5 49 A dered nescence a adele eet alors 5 51 B02 wil VIG TON MOU bs i coareeeacta E 5 52 0 FUNCION BIOCKINDU weasacte date cahes bath aaiete hated a a a a a r 5 54 nn sacle tera tet aise lace idee E S OAE S beatae clea deca SENEE OEA EE EAA 5 56 5 8 5 Comment INPUT erario R O 5 56 5 8 6 Change an Inset Overwrite Mode of Program cceccssssessssssssersssscsssssssesessssecessesassceesesaseesesasacersesaseeesavsereesasen 5 57 A CLOT AGF FO Ola lI isonet UU nn Po P oo O EN 5 57 oo AA A en ee 5 57 Table of Contents 6 1 6 2 6 3 6 4 6 5 7 1 7 2 7 3 7 4 1d 7 6 7 1 7 8
57. 2C Cable 1 9 GMWIN Manual 2 Remote 1 Connection From the Project Menu choose Option 4 Select Connect Option in Option 4 Select Remote 1 in Depth of Connection GLOFA Fnet 4 Select Network Type and Slot in Depth of Connection 4 Select Station No only available in GLOFA Fnet Fdnet and Mnet or IP address GLOFA Enet decimal or hexadecimal numbers are all available for Station No Click OK button Chapter 1 Introduction 3 Remote 2 Connection 4 From the Project Menu choose Option Select Connect Option in Option 4 Select Remote 2 in Depth of Connection Setup Remote 1 Box Select Network Type in Depth of Connection Select Slot and Station No Decimal and hexadecimal numbers are all available for the Station No Setup Remote 2 Box Select Network Type in Depth of Connection 4 Select Slot and Station No Decimal and hexadecimal numbers are all available for the Station No Click OK button GMWIN Manual Local Connection remote 1connection and remote 2 connection are as below RS 232C Mnet GLIL MUEA Fnet GLIL FUEA Chapter 2 Installation Chapter 2 Installation 2 1 System Requirements for GMWIN Hardware and Software requirements for GMWIN are as below 1 Personal computer and its memory capacity Personal computer 80386 80486 CPU or above A minimum of 4 MB memory including extended memory 2 Serial Port 1 or more serial
58. 6 5 Memory Reference It allows you to see the global variable and direct variable at the program in project 6 2 Chapter 6 Program Compile Select Compile Memory Reference in the pull down menu Cross Refernce Select Area M l Area M Output Position W W0 Area SM Area Open List Create List When you open the existed list select Open List When you create a new list select Create List after selecting Select Area and Output Position a Cross Reference robotl erce 6 3 Chapter 7 Online Chapter 7 Online To connect GMWIN to PLC you must setup a connection option Refer to Chapter1 1 2 How to Connect GMWIN to PLC for detail description After setting the option for connection you must set a PLC key on REM Remote Stop mode to connect with GMWIN If you connect GMWIN to PLC in proper order you can do the following functions reading from PLC writing to PLC monitoring debugging change a PLC mode erase PLC data area set the use of link parameter PLC information I O information Forced I O setup Enable Forced I O Set a PLC password etc 7 1 Connect 7 1 1 Connect Write Run Monitor On It is a macro command that executes a program at one time To execute the communication with PLC automatically select this menu This function can download the project created in GMWIN to PLC make PLC Run and monitor the project at one time Prior to perform this menu conf
59. A Fnettfor PE C GLOFA Mnettor PE C Ethernet Depth of connection f Local C Remote 1 C Remote 2 11 1 1 Connection with a Series Communication Click RS232 C button in the Method of Connection list box Click OK button after selecting the appropriate communication port GMWIN Manual 11 1 2 Connection with Phone Select Modem button in the Method of Connection list box Option 0417 550 6377 Select Communication Port it has a modem in Communication Port list box Select BPS which is supported by User s modem in BPS list box Enter the phone number of opposite station in Phone No box and click OK button Chapter 11 Option 11 1 3 Connection with GLOFA Fnet for PC Select GLOFA Fnet for PC Make Option Monitor Debug Option Auto Save Directory Set Connect Option Method of Connection C RS 232C C Modern Por address Jox200 ie Darah WU ie secrete et Memory Address foxconn C GLOFA Mnetfor PC Ethernet Depth of Connection Setting of Remote 1 Network Type i station Ma GLOFA Fret Remote 1 C Remote 2 Cancel He Select an appropriate port address in Port Address list box Select an appropriate memory address in Memory Address list box and click OK button 11 1 4 Connection with GLOFA Mnet for PC Select GLOFA Mnet for PC Select an appropriate port address in Port Address list box Select an appropriate memory address in Memory Add
60. B output variable type isn t an array The type of the FB output variable must be array Confirm output variable type of FB and input again A kind of FB is not matched The inputted instance name is the string that is declared as different kind of FB instance This variable is not a FB output It must be output variable of FB Confirm FB and input again Abnormal Gate Array Reboot the PLC Can t use a GLOFA F net or GLOFAM net After confirming the communication module for PC is fitted in PC if it is then you should confirm that the declaration of port and base address is correct of not and connect again This data type is not supported for GM3 GM5 Data type for example REAL LREAL LINT applies only for GM1 2 therefore GM3 5 are not used There is no I O cared in that base Select a base number again You cannot monitor because I O module is not in selected base O Module Read Write Error On operating it is the case that the data of I O module is not accessed normally Therefore replace the module of wrong slot and execute again Abnormal I O parameter It is the case that the download does not success because of error on downloading the program Download again Can t Monitors according to the order of I O parameter Can t monitors because of the present I O is not matched with I O parameter in project window Itis not an IL operator It is not IL operator that is used in GMWIN A 31 GMWIN Man
61. Branch Branch Number OK Cancel Help dl Select a branch number select among the 1 2 and 3 in the above figure in the Branch Select dialog box and Click OK button 9 2 3 Step Into When Step is under break condition if you select Step Into a break occurs at the first line of connected action 9 2 4 Action Debugging It allows you to debug the program by Zoom function for the action program It is the same as IL LD debugging 9 6 Chapter 9 Debugging 9 3 IL Debugging Ed cmomwint source boxing src lt AESUINS T3 gt Hu Instruction Input Variable D A IH 4H 8 MOTORS DATAL DATA DATAS oWITCHS LAMPS 9 3 1 Break Run To execute a program break you can use 2 ways as below 1 Set a Break Point Move the cursor to the line that you want to set as a break Select the Debug Add Remove Break POint Ctrl F5 in menu Select the Debug Go Ctrl F9 in menu 2 Run to Cursor Position Move the cursor to the line that you want to set as a break Select the Debug Run to Cursor Ctrl F2 in menu 9 3 2 Step Run It runs a program by one step Select the Debug Step Over Ctrl F8 in menu 9 3 3 Step Into It debugs a program in the Function or Function Block Select the Debug Step Into Ctrl F7 in menu 9 3 4 Step Out It returns from Function or Function Block to original program Select the Debug Step Out in menu 9 3 5 Watch Current Result It
62. Condition In Break Condition dialog box you can set the break condition which is the condition to break by the state of assigned variable or number of the scan times Select the Debug Break Point List Condition in menu Select the Break Condition Tab Breakpoint List Conditions Breakpoints Break Condition Scan Break W Enable Scan Break Humber of Scans to Break E VWariable Break e Enable Variable Break when f Read Variable Marne Browse te rite RESOINSTO DATA OUT gt INT C Read or vite Value Break W Enable Value Break Value to Break onl 9 9 GMWIN Manual 9 5 1 Break Scan It stops the program after PLC runs as many as assigned number of scan times Select the Enable Scan Break option check box Enter the number at Number of Scan to Break input box 9 5 2 Break Variable If you read a variable or write an arbitrary value to assigned variable PLC is stopped Select the Enable Variable Break option check box Select Browse button Selecta variable in Register Variable dialog box click OK button Register Variable kind DK m Commoureton Global variable Cancel C Resource Global Variable ddi Help Direct Variable Exp 0 0 0 Resource Variable List Resourcen Instance finsTo Choose one option in Variable option radio box Read stops when it reads the variable Write stops when it writes an arb
63. Continue anyway Click Yes button 7 7 PLC Reset 7 7 1 Reset Select Online Reset in menu Reset Overall Reset Select Reset in menu Sh wily Reset PLC gt Continue anyway Click Yes button 7 4 Chapter 7 Online 7 7 2 Over All Reset Select Online Reset in menu Select Overall Reset in menu Gh wih 2 ok Cancel Click Yes button 7 8 Flash Memory This function is used for confirming a flash memory type mounted on CPU module or transferring a program in data RAM of PLC to flash memory Select Online Flash Memory Flash Memory Type in menu FI ash Memory ST Ee ial TASSE Select Online Flash Memory Flash Memory Write in menu ee A E Pein Dina on Select item s to be written into the flash memory and press OK button 7 5 GMWIN Manual The GM6 CPU series has built in flash memory The GM7 series has built in flash memory also an external memory module is avaiable When write into the external memory module select Write to external Flash memory GM7 Click Yes button In the state that flash memory is mounted on CPU module if you execute Online Write menu the following dialog box appears when GMWIN finishes writing a program Gh wih There is a flash memory in PLC IF you switch to run mode execution program in PLO is changed to a program in flash memory Write execution program to
64. Flassh Memory A variable name to be used in a local station during the communication between PLC s Function Block A block having a program to performed actually in SFC language If a user declares only the variable name and type in the declaration of the symbolic variable the memory area is allocated automatically by GMWIN lt User defined memory allocation An aggregate that consists of data objects with identical attributes Refer to User defined memory allocation A variable to be allocated as the automatic memory lt User defined variable Direct variable To divide control flow in SFC language There are parallel branch and selective branch The position at Which a user wants to stop when debugging a program element A unit of LD component element such as contact coil function and function block in LD language One of restart modes Erase all data to 0 except the variable that is declared for the initial value Serial port in PC to connect GMWIN and GLOFA GM To translate PLC program which user creates into the machine language equivalent or an intermediate form which a user can execute in PLC An language element corresponding to one PLC system as software model in GMWIN A variable that can be used in common between resources between CPUs in the multi CPU system It includes the symbolic variable that is declared as the configuration global It has one memory area on the coordinator module It is
65. Given value string is wrong or over ranged It is the cases that string of given variable value are wrong of out of range on selecting variable value break 9 A variable of same name as given function name is already defined It is the case that there is same variable name among the variables which is declared already when you try to modify function name to another in program property dialog box 9 Warning time constant unit under 10 ms will be ignored On definition of interval task time value of below 10ms unit is negligible Warning Included library file library filename s not for GM So that F FBs in that library will not be shown and used It is the case that you change PLC type for project or insert library that is not matched in proper type A 19 GMWIN Manual Warning Included library file library filename s not for PLC so that F FBs in that library will not be shown and used It is the case that the object file s version to be insert is not matched to library 9 Duplicated label Found You cannot declare label repeatedly Abnormal Extended Power It causes when PLC operation is abnormal because power module of the increasing base has an error You cannot delete this item You cannot delete the item besides program and resource over two in project item There is no selected string You should input the name in name text box 9 The margin given is too large It causes when blank is too large in p
66. K button 5 7 5 Create a Jump 7 Select in toolbox a S Move the mouse to a desired position is marked with ABC for jump and click a left button 9 34 Chapter 5 Edita Program c omwin source robot3 src Maximum size of the jump name is 10 characters Available position for Jump Transition at the end of the selective branch Transition at the last end of SFC program 9 35 GMWIN Manual E c igmwMin source robot3_ src as a Move a cursor to a desired position is marked with ABC Select Toolbox Jump F6 Enter the jump name in Jump dialog box and click OK button for jump with key 5 7 6 Create an Action To connect an action to a step Select in toolbox Move the mouse to a step and click a left button Move the cursor to the step with key 9 36 Chapter 5 Edit a Program Mame Comment f Program C Variable List Gualifler Whe N Non stored Cancel Help Select Toolbox Action Transition F4 Select whether you setup an action as a program or as a Boolean variable output in Kind radio button of Action dialog box If you setup an action as a variable output the designated variable is outputted as 1 when the action is in active 1 In case of setting up an action as a program Enter the variable name in the Name edit box maximum size is 16 characters When you want to connect an a
67. L Eom kx a The output coil MOTOR gets On Off according to the condition of the input SWITCH1 Variable ABC_ADD is increased by 1 according to the result of variable ABC Chapter 3 Getting Started 3 2 Configuration of Screen GHW IN for Windows engine line pr Mi E Project Program Edit Toolbox Compie Online Debug Window Help ejeje ole a 9 0 Liu al el lr olaa 1 c gmwin source nonan Tal O xj Command 4 c gmwinksource engine line prj mm PROJECT gt PLC Type GMT LG Industrial CONFIGURATION FPLC gt Configuration Name UNNAMED ACCESS VARIABLES gt O variables declared RESOURCE CFU O gt Name RESO a RESOURCE GLOBALS gt O variables declared a TASEK DEFINITIONS gt l tasks defined mfi LD PROGRAM gt WELDING gt Cf qmiin source robot src E COMMENTS for DTRECT VaRTARLES gt Aovrariahles declared ooo E Writer Systems 3 2 1 The Menu Bar Hot Keys Menu Bar Ale Online Debug Window Help a ESE a L L t Ba Tool Bar Too LL Curia tr i O Project Mabel Edit ey let New cles Open nave Save As Save All Close Properties Local Variables Init ana blEs To access the pull down menus click on a menu using a mouse or key If menu item has the hot key Ctrl X Ctrl C you can select the menu directly by pressing hot keys 3 13 GMWIN
68. M3 the type is 3FU Library is divided according to a use of file as below Library Type oo Comment Empe Standard Library It is the files that collect basic functions function blocks Stdlib fu You can call it on the active program Stdlib fo Exclusive Library It is the files that collect the function blocks used in special fb special communication module for A D D A Link etc To communi fb add this libraries select Project Insert Library menu MK Standard Library It is the files that supplied by manufacturer for the user mkstdlib fu using other LGPLC To add this libraries select Project for MASTER K Insert Library menu E 7 is a library that user make personally It is added aii Project Insert Library menu Extensible Library It is the files that supplied by manufacturer for the user APP fb using other LGPLC APP fu 10 1 GMWIN Manual 10 2 Load a Library 1 Load of Standard Library On the dialog box is appeared when you select Project Option Directory in the menu if you execute GMWIN program in the designated directory standard library is loaded automatically 4 Select option item in Project menu Mt hel ihn at Al Voi erg heli ipa Option 10 2 Chapter 10 Library 4 Select folders in Option dialog box Option Make Option Monitor Debug Option Auto Save Directory Set Connect Option Standart Library Esgrrwinvib Search source Fi
69. MOD0102 MOD0203 MOD0506 MOD1516 Refer to GM7 Manual 8 3 Modbus Protocol Communication for more details 4 39 GMWIN Manual 3 User Defined Communication 4 Set the Protocol as User Defined and select Master or Slave Click the desired number in the Frame List then the Frame Information Set dialog box appears User Defined 0 Mot defined 1 Mot defined 2 Mot defined 3 Mot defined 4 Mot defined 5 Not defined 6 Not defined Not defined a Mot defined 4 Mot defined 10 Mot defined 11 Mot defined 12 Not defined 13 Not defined 14 Hot defined 15 Not defined 4 40 Chapter 4 Edit a Project ENGI TARY send Segment 1 Type CONST 07wss0106 ASCH Input Size Byte sentwv200 Header Segment 5 Type MONE x Hex Input e Helio isc impor segment 2 Segment 6 Type CONST ASCII Input Type MONE kz C Hex Input e Henao Esc mot Segment 3 Segment 7 Type ARRAY W Send by ASCH Converting MONE z sembaoo Size 2 Byte Type e Hei E ASG apt Segment 4 Segment 6 Type NONE e a Type MOME e Hei isc mot EE Byte ACC Setting te Aes Input Tailer fEoTEce Set Tx or Rx in the Tx Rx box Enter the Header Segment and Tail in each box m Header TARY Segment 1 Type Ele Byte Segment 2 Type SILE Byte segment 3 ASN ipl Sizes edit
70. Manual 1 Project ew pen pen From PLC ave ave as lose Add Project Item dit Project Item Delete Project Item p Program Ctrl U Down Program Ctrl W Edit M Region rint rinter Setup options ibrary Manager nsert Library tart Simulation xit 2 Program Items ew Ctrl N pen Ctrl O ave Ctrl S ave as Close roperties ocal Variables In Out Variables Create a new project Open an existing project Up load and open a project in PLC Save a project Not program Save a program as another name Close a project Add new items Program or Resource Resource can be added only in GM1 to a project Edit an item in a project Delete items Program Resource in a project Exchange a program order with the upper item in the project window Exchange a program order with the lower item in the project window Edit M area Print all or part of the contents in the active window Select the printer and Setup the options of the printer Setup options in GMWIN Connect Option Monitor Debug Option Create or edit library files nsert a library file into the project Start or stop the simulation Quit the application Make a new program Open an existing program Save a program Save a program as another name Close a program Change program properties Show and edit local variable Show and edit Input Output variables for Function or Function block In SFC Program Menu more menus are added as belo
71. OSlot pecial Module Info 7 12 Chapter 7 Online 7 12 Forced I O Setup This is a function that sets up forced input output of refresh area in PLC It is different from Forced writing of variable in program In the following PLC system how to setup Forced Input of the part marke fwith __ is as below ee ma Select Online 1 0 Forcing Input in the pull down menu O Forcing Set Input Base Select Slot Select Eo 1 Views 2 Cancel lO Forceina Set All Reset Flag Data Flag Data Flag Data Flag Data Dl PAG AT 16 a2y 7 32 8 Pas Set Help fe i NN Y A ES 18 T 45 Aad Cea o sof r 40 _ Reset EE i en i fee an Ps ra twat af f 36 S E E _S IN soy 153 n e ntunhses fg 54 FP 44 gH 237 23397 VT 3a sof sf 455 rf 8 247 p 24 407 J 40 sat m 456 a o s za i EA i E a oe e 107 10 267 26 427 42 af p 58 T f 11 TTF Hre saf fp 58 IT F 12 287 fF 28 447 44 BOY 60 er eBo Elf T 5i 147 m e J 30 467 46 B27 p 62 a ee i fe 477 4 B37 63 Input Base Select 1 Slot Select 2 in dialog box Setup the forced data and flag 0 2 in I O forcing set of dialog box Click Close button 7 13 GMWIN Manual If you click View button in dialog box you can see the content of forced I O setup 010 Forceing point num e Js J danos T ze e 012345678901 2345678901 2945678901 2345678901 2345678901 2345678901 25 Slot
72. OTOR ON J END HH START OWT TEH o TOP Use circuit that is good for logic Logic branch is to deep The operating branch exceeds 16 levels in the operation that uses the contact PARAR JE Jl O Diverging point of branch You must modify the operating branch not to exceed 16 levels in the operation that uses the contact Right bracket is expected It is the case that number of left bracket is too many There exist contacts on the right lt causes when there is other command at up or right of position when you insert coil The coil can be inserted when it is empty that the right area of the position where you want to inset the coil Object file open error Confirm object file in declared directory on option Cannot write to object file It is the case that there is no the file in the path when you make new object file other program is using it and the disk capacity is insufficient There needs no operand It is the case that you input operand to command that does not need operand You should delete the operand Operand Syntax Error It is reserved word that is used in GMWIN or not a grammatical word A 13 GMWIN Manual Needed a full input of operand It is the case that the input of operand is more needed You should input more operands An operand name is omitted It causes when you input nothing in variable text box of variable dialog box This move operatio
73. Parameter part is a hardware part such as basic parameters I O parameters link parameters and etc And Library files can be added or deleted in Included Library Files part PROJECT PLC Type GHZ Writer CONFIGURATION PLC Configuration Name UNNAMED 3 ACCESS VARIABLES 6 variables declared RESOURCE CPU 8 Hame RESO B RESOURCE GLOBALS 6 variables declared B TASK DEFINITIONS 2 tasks defined Dp LD PROGRAM TEST1 Cciigmwin38isourceinoname 63 src ZI IL PROGRAH TESTS ci4gmwin3B8isourcextestkA sre 5 SFC PROGRAM TEST4 Clk gmwvins source testS src El COMMENTS for DIRECT VARIABLES 6 variables declared PARAMETERS E BASIC PARAMETERS E 170 PARAMETERS B LINK PARAMETERS INCLUDED LIBRARIES E c qmvin3e lib communi 3fb EZ cz gmwin36 lib remotes 3fb E c qmvin3ge lib remote4s 3fb EN r p fem opa Configuration Configuration Global Vara Access Variable Resource Global Variable Task Definition Program Definition Direct Variable Comment Parameter Defined content for the hardware in PLC system Basic Parameter Definition of basic hardware parameter I O Parameter Described content on input output module High Speed Link Parameter Described content on high speed link parameters Communication Parameter Described content on communication for GM7 only Included library files File list for currently used libraries Redundancy Parameter Described content on input output cir
74. R_IM_OUT VAR_OUT BOOL lt Add YAR INPUT MOTOR BOOL SWITCH BOOL MOTOR2 BOOL Add VAR_IN_OUT denotes YVAR_IK OWT 3 Close Help 10 16 Chapter 10 Library 9 To insert input output variable use Add VAR_IN or _OUT button When you insert input output variable the first input output variable must be Boolean type If it is not a Booean type an error message appears Edit Input Dutput Yarables E x The first output variable of Function Block should be BOOL typed 3 Create a Function Block Program You can create a program with the same way of other program kd c gmwinisources assembly_fb_src Function Block ASSEMBLY_FB SWIT CHL ADT gt Eom z _EN ENO SWIT CHE DTD Eom 1 izg EH ENO E _IN1 OUT E ee Le e Rom t Al IN1 OUT l 1 INz Rom 3 t 1 _Inz Eom 4 GT GT Eom 5 EN ENO EH ENO Eom E L E IHl nwt MOTOR ALl IH1 OUT MoT ORs Rom T LIMIT _INZ LIMIT1I IKZ 10 17 GMWIN Manual 4 Compile a Function Block Program 9 If you finish creating a program make an execution file by selecting Compile Compile Ea in menu The object file is created after compiling a program lt has the extension of OB The execution code is changed according to a compiling on the project screen of PLC If you create an object file on GM1 it is applicable to GM1 only 10 18 Chapter 10 Library 5 Function Block Program Wizard 9 If the co
75. Slave Click the Entry List button then Private 1 dialog box appears 4 37 GMWIN Manual 0 The above dialog box allows you to set the information of each registered List You can use the Delete Edit Copy and etc button or Del key to delete the multi selected items and Ctrl V Ctrl C key to Copy and Edit Click the desired number in the Entry List then the Entry List Set dialog box appears 4 38 Chapter 4 Edit a Project Private q Item O Edit Mode Station Ma E Send Sizetvvord C Receive Area From ON C Sh O Boy o To ly CON conca too Select the Send button in Mode when you want Data writing to the Slave station and select the Receive button if you want Data reading from the Slave station 4 Set the Slave Number Opposite station in the Station No box 4 Set the data size in the Size Word box in word Max 60 words are available 0 Set Tx Rx area in the Area box Select each area by option button and designate the address in each input box 1 If you select MWO Enter 0 in the input box after selecting Y MWY 2 lf you select Y QWO 1 0 Enter 0 1 0 in the input box after selecting QW 2 Modbus Communication Modbus E Master ae Sea Transmission Mode fasci C Slave 4 Set the Protocol with Modbus and select Master or Slave 4 Select ASCII in the Transmission Mode box 1 Modbus communication use the function block
76. T x Press Enter key method 2 Move the cursor in the display region which you want to insert a label Select Toolbox Label Enter the label name in Label dialog box Click OK button 5 8 5 Comment Input Comment is created in Comment edit box in IL program screen You can insert a line comment and variable comment separately by the comment display of toolbox You can edit directly the comment in Comment edit box Move the cursor in the display region which you want to insert a comment Make a comment maximum size 24 characters in Comment edit box 5 56 Chapter 5 Edit a Program Select Toolbox Variable Comment Line Comment Enter the comment in Comment edit box 5 8 6 Change an Inseet Overwrite Mode of Program To change into Insert Mode CE Click in toolbox i Select Toolbox Insert To change into Overwrite Mode Click in toolbox Select Toolbox Overwrite 5 8 7 Delete a Program y Move the cursor in the display region which you want to delete Click in toolbox Move the cursor in the display region which you want to delete Select Toolbox Delete 5 8 8 Edit a Block Before editing a block you must setup the range to be applied as a block Namely if you want to copy or delete a continuous program you must designate a desired range as a block before selecting Edit Block Function y Move the mouse to the row of the displ
77. TRANS Cannot print s It is the case that you cannot print selected file lt causes when printer has a problem lt Program name gt lt direct variable name gt is not in M area Set M area of basic parameters to large size Because selected variable as lt direct variable name gt exceeds declared M area You should declare the variable again ex MW20000 MW20 make it large with selecting the project option in menu ex 4K Byte 8K Byte Program lt program name gt Variable lt variable name gt is not declared or type mismatched in Global Variables Declare the variable lt variable name gt which is declared by VAR_EXTERN in lt program name gt or if it is declared already then confirm that the type is same See also configuration global variable edit in case of GM And multi resource or resource global variable edit 9 Cannot give duration of task which is under 10 ms If you give the task operating interval that is smaller than 10ms on the definition of interval task then it is negligible Therefore you should give time interval which is over 10ms A 33 Appendix B GMWIN Glossary Appendix B GMWIN Glossary Access Variable Action Allocation Array Automatic memory allocation Automatic Variable B Branch Break point C Cell Cold Restart Communication Port Compile Configuration Configuration Global Variable D Data type Direct Variable E Ethernet F
78. Table of Contents Chapter 1 Introduction TAs Characteristics 0f GMWIN css A A 1 1 12 HOW NO Connec GMWIN O e 1 4 LA o A 1 4 1 22 Depth ol OMS OU Ol 1 eriin aana O 1 9 Chapter 2 Installation 2 1 System Requirement for GMWIN ccccscccsssscssssssssscssssssssesecseeessssessssesesseseseesesassesevacsesasseseseesaseesaseesasaesesanesaseesasenes 2 1 22 AMINO AN GROIN rt A A A ad 2 2 A A one 2 2 Chapter 3 Getting Started A FPO A aa Racsoicueest O G 3 1 A A 3 13 A a A nn dis e e at edna A nooner has 3 13 A ON 3 19 32 0 Ne A O A 3 20 A raegtatc ey se anspor EAE EE anaes te E EE AEEA 3 20 POE E o eta cuinamnedgrecumenaadeatans 3 21 3 4 Files being Create din GM WIN coco ia 3 21 ro 6 o PP een ee eee eee ere eee eee 3 22 A O A atin tiet nie dgaautnng totes 3 23 301 OAV ai NOW laa 3 23 9 0 2 Savea Fl WOW sa 3 23 9 0 9 oa Ve as ano MO MM a ia ia TA 3 23 O A e O e OO e o ES UE E E EET 3 24 Chapter 4 Edit a Project A I ROC en ee Pe ee 4 2 42 Open PO tt tent eles Da 4 3 BO SAVE a FOE lonen aes eee O ee 4 3 a 4 4 AA TSCM cet NO e incase Ei E A 4 4 Table of Contents AA dil CONU aon NEM A ne OE Ue A 4 4 4 4 3 Edit a Configuration Global Variable c cccscccssssessssssssssssssssssssssssescssssescscecsseseesevasseeesesaecesaseceesasaeeeeesasasersasaten 4 5 AAA TQM AGCOSS VAIO airada 4 7 A A 5 EdUCROSOUC ES 4 9 4 4 6 Edit Resource Global Variable arcos 4 9 AA DEMEN ASK COPE Ue O A DI II ET 4 9
79. abotl src WITCH MOTORS L oy _ LIMIT sl ADD MOYE Row EN END EN END Row 2 ABL IH OUT ABC ADO OATAl 1N1 OUT 04T42 Row 3 INE Row 4 e cll LAMP Row E E 3 HIDE Row E F EN END e 13 2 Write for Online Edit To write the edited program to PLC Select Online Write for Online Edit in the pull down menu Ka c Womwintsourcetrabotl sre lt INS TO SW TCH MOTOR L Row 0 LIMIT_S ADD HOWE Row 1 EH EMO EN EMO 0 i ll 0 Row z ABC INT OUT ABL_ADD DATAlCO INI OUT DAT zi0 Row 3 Ie Row 4 lle elle LAMP Row E E 3 H UE1 Row E A EM ENDO Ifan error is occurred in this step the program can t be downloaded to PLC So edit the program again after selecting Online Write for Online Edit in the pull down menu 13 3 Cancel Online Edit To cancel the online editing and return to the previous program Select Online Cancel Online Edit in the pull down menu 13 2 Chapter 13 Online Edit 13 4 Available Items for Online Edit You can edit the following items 90 90 Edit Add or Delete for Contacts and Variables Edit for the directly used data in Program Add initial Variable Retain Variable Initial Value and Retain Variable are applicable in Mode change from Stop to Run mode Add or Delete Rung Edit Parameter Only Basic Parameter and High Speed Link Parameter including Link Enable Not available for I O Parameter Add Jump or Label Delete
80. aking project Make project Cancel Click Yes button to monitor and online edit 12 3 GMWIN Manual Make All You can monitor and online edit after making project 12 4 Chapter 13 Online Edit Chapter 13 Online Edit In Run Mode You can edit a program without changing the PLC Mode to Stop Mode 13 1 Start Online Edit To edit a program in Run mode the program to edit must be identified with the program in the PLC Select the program kg comgmwintsourcetrabotl sre lt INS TO SWITCH MOTORI L LIMIT SW ADD MOVE EN ENO ENH ENO gt Row O Row 0 ll 0 ll Row 2 ABL INT OUT ABL_ADD DATATO INI OUT DAT zi0 Row a 4 1H2 Row d IM 3114 LAMP Row 5 i eli oS SWE HIDE Roy 6 EN END i BE Select Online Start Online Edit in menu At this moment If PLC Mode is Monitoring Mode only the program for online editing is changed to Edit Mode if there is the Upload program in PLC the following message appears If you click Yes button the Upload program is downloaded to PLC after the online editing But the PLC must have an enough memory space select a window for online editing There exists an upload program in the PLC moman n Upload program might be erased if you execute online editing Do you want to continue Cancel EFFETTI re mT 13 1 GMWIN Manual Edit the program Bac Womwintsourcemtr
81. allows you to change the display type of monitoring variable Select the Project Option Monitor Debug Option in menu Select the desired display type in the Monitor Display Type click OK buton Example If you select the Default in Monitor Display Type The value of variable monitoring is displayed as hexa type like 16 Ka cHomwintsource robot src lt INSTO gt 10 1 0 ml Ln ITW ADD MOVE Row Mie EN EN EN EN Roy 16 004d 1E 004e 16RDDb5 1500 Row z ABC INT OUT ABC ADDO DATAlCO INT OUT DATAzi GMWIN Manual 1 SFC Auto Scroll Option If you check the SFC Auto Scroll it scrolls automatically with monitoring position 2 Debug Option When you debug LD you can select the Point or Line in Debug Option menu 11 6 Make Option It allows you to select compile type to select output file and to set the size of M area in Make option Select the Project Option Make Option in menu Make Option Monitor Debug Option Auto Save Directory Set Password Compile Type Select Part Compile T Retain Sh Area Size Sel Sh Area Size 2 KByte Setting retain of Mi Area Output File Select If Lip load Program Content Include Comme C Except Commer hi Area clearing set at Stop M Area clearing set at Stop Sho fut fo from Sto fly fo to Compile Type Select Option Compile Type Select allows you to set the method of compile for the sou
82. amp time Delay H If the R qualifier However acts before the lapse of setting time the action is not executed After Step is in active an action is executed after the lapse of setting time until R qualifier acts DS Delayed amp stored But if the step is in passive or the R qualifier acts before the lapse of setting time the action is not executed After Step is in active an action is executed SL stored amp time Limited as long as setting time and when the setting time elapses or R qualifier acts the action is stopped 5 39 1 Scan GMWIN Manual 5 7 7 Create a Transition To connect Name to Transition Select LE in toolbox Move the mouse to a transition and call a transition dialog box by clicking a left button Move the cursor to a transition with key Select Toolbox Action Transition F4 Transition kind Mame f Program Comment C Variable List carce Hen Select whether you setup an executive condition as a program or as a Boolean variable in kind button of Transition dialog box 1 In case of setting up Transition as a program Enter he transition name in the Name edit box maximum size is 16 characters When you want to connect the already declared transition select the transition in list box Enter the comment for the transition in the Comment edit box maximum size is 40 characters 2 In case of setting up Transit
83. and again with the condition that designated before Select Edit Again Ctrl F3 5 6 15 Go to Select Edit Go to Go to Line 9 In Goto line dialog box enter the row number that you want to find Click OK button Chapter 5 Edit a Program 5 6 16 zoom In Out This command allows you to adjust the size of LD Program element Calla dialog box by selecting Edit Condense Select a desired screen size in Condense Level dialog box 100 80 70 50 25 12 Example In case that compression rate is 100 kJ c gmwinisource robot sre LIMIT Sul a TCHS HOTOR1 Row O LIMIT SWI TCH1 ADD Row 1 EN ENG Row 2 ABC IN 1 OUT ABC ADD LIII SWI aie TCHS 0 TORAL Row O LIII SWI ICH1 ADD In case that compression rate is 25 12 LD program is not displayed as 3D type 5 21 GMWIN Manual 5 6 17 Variable Comment LD program supports the function that indicates the comment of each variable Select Edit Variable comment Ctrl M in the pull down menu If there is a check mark at the left side of Edit Variable comment Ctrl M a current window is in the state that shows a variable comment and if there is not the window is in the state that does not show the comment Example In case that express a variable comment 4 c gmwinisource robot sre oWITCHL MOTORI l e Por Cooli slices 5 6 18 Delete Row h 4 4 Select R in toolbox In LD program wind
84. and global variable name in task definition Task memory error It is the case that memory is not enough Shut down other application after saving all files that is executing and restart Wrong task number is given You should give proper task number according to kind of task See also 4 4 7 task definition in GMWIN user guide Wrong task name is given It is case that you input wrong task name You should input correct task name for the identifier See also 3 1 1 Identifier command manual Task Conflict Error It causes when same task is demanded to execute repeatedly on use program operation Communication Internal Error Disconnect the connection of PLC and GMWIN and connect again Composition of Communication Module Error It is occurred when installed Communication Module more than 4 units or 8 units included Computer Communication Module Communication Error Communication error is occurred for bring a data from PLC 9 Transition lt transition name gt is used You can t delete this transition If you want to delete this transition you should not use it in SFC program 9 Transition lt transition name gt has no program You should make executive condition program in transition Invalid transition name It is the case that you input wrong transition name You should input correct transition name for the identifier See also 3 1 1 Identifier command manual S C Module Interface Error It is the
85. at asia ear awe 7 11 IO OIM E aout aes E 7 12 o A 7 13 7 12 7 13 7 14 7 15 7 16 7 17 7 18 7 19 7 20 Table of Contents Enabler CONG tric Shc o A o O ca te eects PNG Galea tale ecaan gael 7 14 A O RO o E E E A 7 15 e teense scare tenance ean caren 7 16 MGCP ara A eo ee et el ea 7 16 Mier Moma NO PPP ooo e A Oro UU or Eo Santbentst 7 17 IO dad dedito 7 17 BUM VNR dada 7 18 niitiallize Special MOG WSS ancini E E ENN 7 19 Chapter 8 Monitoring eM A e EU OO EE E A 8 1 ARO A A e AN lO E E E AE EAEN E EEA A 8 1 OL MODEST 8 4 Okos MOMOL OT 8 4 0 2 MONO de VANDI sessies a a a a iE 8 5 eA E Eo EE WAU e E E E AE EA A E S E E E A E trade 8 6 82 20 MONON a A a 8 8 8 2 3 Set the VieW Type Of MONO si AE ES 8 8 OD O F A PU o e UE e 8 8 825 Forced Vanable QUID nt aii didn dect 8 9 9 2 0 IMONINON AMA V MA oasis 8 10 8 95 MWO MONON emepnieemrert eyes epri ee E e oo 8 10 A ited teetanenei gata nt diac ieset 8 12 Fle e0 AV AIO AO E OO O 8 12 AA A 8 14 8 4 3 Set the View Type Of MONO ei iaa 8 15 BAA AP A 8 15 8 4 5 Forced Vanable CUTE alii drid dd did dot 8 15 BO MONON ai LINK Para nd A a 8 16 Chapter 9 Debugging 9 1 LIDIA A A ae eae 9 1 AAA Seto e Y y CAPA An o A A 9 1 JUEZ SODA tddi dt ee lada eee ee eee 9 2 Table of Contents ESO Renee ieee A eee A oe ee eee ee 9 4 Eo 03011 AM ne OOO A 9 4 92 SFG Debug cerr 9 5 A A a nates Segacat ballet tates 9 5 AS nr eee ee eee eres eee nee
86. automatic control of a machine with PLC SFC Sequential Function Chart is the most optimal structural programming method 5 27 GMWIN Manual SFC Toolbox Step Transition Action Selective or transition Parallel branch Label abel Jump Delete Zoom EJ Indicates the unit of a sequence control with connecting to action Indicates the condition for executing from an active step to next step E The executing flow is determined by executive condition Branch m Parallel Branch Used to control several sequences simultaneously Label The position where an executive flow start by jump Used to change an executive flow MATOS Indicates an executing content in the specified step Select the element to insert and click the left button of the mouse on a desired position 5 7 1 Create a Step Transition Step Transition or Transition Step is created in pairs by current position y 9 Initial screen of SFC program is as below A c Vgmwainisource robot3 src Select El in toolbox Move the muse to the position marked Ld then symbol appears in the screen E Click the left button of mouse on the position marked Ld 5 28 Chapter 5 Edit a Program A c omwinisource robot src Move the cursor with key to the position that you want to creates step transition Select Toolbox Step F2 5 7 2 Create a Parallel Branch 1 To create a parallel branch for
87. ay range to select Drag the mouse to the last row of the range to select with clicking the left button Move the cursor to the row of the display range to select With pressing Shift key move he cursor with arrow key to the last row of the range to select 1 Cut After selecting a block Select Edit Cut Ctrl X EN 5 57 GMWIN Manual 2 Copy After selecting a block Select Edit Copy Ctrl C Ba 3 Paste After copying or cutting Move the cursor in the display region which you want to paste Select Edit Paste Ctrl V a 4 Delete After selecting a block Select Edit Delete Delete EN 5 8 9 Find To find an instruction or variable in the program on editing Select Edit Find L Find Text to Find kind Origin e Instruction f From Cursor C Operand C Entire Scope Word Direction f Forward amp Watch Whole Word C Backward C Match Partial Word In Text to Find edit box of Find dialog box enter the string that you want to find Select the following option and click OK button 1 Kind Select the string type to find 2 Origin Select the range where Find functions executed 1 From cursor Find from the current cursor position 2 Entire scope Find through the whole program 3 Direction Select the direction that Find function is executed 1 Forward Find function is executed forward 5 58 Chapter 5 Edit a Program
88. bee used already This object file is not compiled for PLC Load source file and compile again 9 This object file is compiled as a Program Block The selected file is program block Select function function block source program again This element can t be deleted You cannot SFC element that is incorrect for SFC composition This element can t be inserted at this position It causes when you insert SFC element in position that is incorrect for SFC composition Break points cannot be set here You cannot declare break point at the position Cannot declare break point on contacts coils and first column of function function block and END 9 Input contacts cannot be placed here It causes when you cannot insert input in selected position 9 Insertion of empty cell is not possible at this location It causes when row that you try to insert cell is full It is the case that you cannot insert cell any more This transition name already exists You should add it as another name because it has been used already This file is not a GMWIN source file It is the case that selected file is not GMWIN source file or damaged source file 9 This project was not made an execution file Make project and write it to PLC Select COMFILE MAKE in menu to make executive file and select ONLINE CONNECT WRITE RUN MONITOR START in menu This Flag Keyword is READ_ONLY Cannot Store It is the case that you use command like ST
89. box Click OK button 8 2 Monitor a Variable You can monitor a variable declared in a program global variable Q M area system flag and etc Yarlabl Monitor Start Stop top View Detail Display Forced Allocation orce Select Variable Data Display Form To monitor the program the program initially To call the Select Variable dialog box select Online Monitor Monitor On in menu Select Online Monitor Variable Monitor in menu To monitor the program To call the Select Variable dialog box select Online Monitor Variable Monitor in menu If GMWIN is not connected to PLC select Connect in menu before selecting the above menu Inthe Register Variable dialog box select the variable that you want to monitor Refer to the following section for selecting variable 8 5 Chapter 8 Monitoring 8 2 1 Register Variable To select the variable declared in program global variable Q M area system flag and etc at the same time Click in toolbox Select a variable to monitor in accordance with the Register Variable dialog box Select the Toolbox Select F5 in menu Select a variable to monitor in accordance with the Register Variable dialog box Register Variable Kind Close e Comtat Habal veriekle T Resource Global Variable Register C System Flag Direct Variable Ex 10 0 0 or SOt0 7 0 9 C080 1 8 Resource Resour
90. box SFC toolbox IL toolbox LD toolbox You can create or edit a program using the toolboxes for each language You can also execute the same function as the toolboxes by clicking Toolbox in the pull down menu You can change the position of the toolbox or the property by selecting Toolbox Toolbox Type in the pull down menu 3 2 4 The Status Bar Creates a new pue Fide yt 7 p gy 4 Description Mode PLC Mode Cursor position Status of GMWIN 1 Description Mode Describes the function of the command or menu 2 PLC Mode Shows PLC type PLC operating mode Monitoring mode and more 3 Cursor Position Shows the location of the cursor in the screen as Row Column 4 Status of GMWIN Shows the status of GMWIN Edit mode Monitor mode and Debug mode 3 20 Chapter 3 Getting Started 3 3 How to use a Dialog Box Edit control OK Cancel Help button Option and List Box are in dialog box so you can define a required value or input Edit control x Control Menu Box TaskName TASK OK button Task Number 0 Cancel Cancel button Condition Help Define Task f Single Priority Option C Interval 2 y List Box i Interrupt Edit control Enter a required name or letter Option Radio Button It is used to select only one in the same group Click a mouse on a desired item List Box Select one in the list List is appeared by clicking a mouse on arrow in list box and you can select a list by clicki
91. case that data of special communication module do not access normally on operating so replace module of wrong slot and execute again Cannot save file lt file name gt to the disk It is the case that other program is using on saving project file or there is insufficient capacity to save shut down other program or englarge save capacity of disk Can t print s It is the case that there is no printer or file to print does not exists A 23 GMWIN Manual Cannot open file S When you open make the file it is the case that it does not exists in the path or other program is using it or disk capacity is insufficient Cannot find function lt function name gt This function is not in selected library Can t find FB lt function block name gt in the included libraries It is the case that it is not in library life that function function block which is used in the program Resister this function function block in library file and insert this library to project Line insertion is impossible in case the I Os of FUN FB have some contacts If you try to insert line in the line that function function block exists than you should insert the cell without changing the function function block However in case that contact is connected to input output of function function block you cannot insert line FB Function block name is not existed in inserted libraries It is the case that it is not inserted that library file which
92. ccess variable name You should input a proper identifier See also 3 1 1 Identifier command manual Cannot define access variables any more The maximum size of access variable which can be declared is 128 in case of GM1 3 64 in case of GM4 5 GMWIN Manual Action lt action name gt is used in SFC program You can t delete this action If you want to delete this action you should not use it in SFC program Action name used in transition You should designate it to different name Invalid action name It is the case that you input wrong action name You should input a proper identifier See also 3 1 1 Identifier command manual 9 You cannot use TRANS variable in action program It is the case that you select TRANS variable in variable dialog box of action program You cannot use TRANS variable in action program 9 Wrong initial value for an array element found It is the case that you give wrong string when you give initial array value or integer value is out of range Blanking is error It is the case that you do not designate blank with integer value on print Invalid margin You should input number in left blank Blanking is error Confirm maximum range of blank input again Junk connection error The power line does not connect START MOTOR ON Connect power line START MOTOR_ON Logic error You make circuit that is not good for logic Appendix A GMWIN Error Code A GOOD M
93. ced Instance mero variables System Flags Select PRE Help Registered Wariables 1 Register Configuration Global Variable only available in GM1 To register configuration global variable Select the Configuration Global Variable in option button Select the variables to monitor in the Variables System Flags list box Click Register button 2 Register Resource Global Variable To register resource variable Select the Resource Global Variable in option button Select the variables to monitor in the Variables System Flags list box Click Register button 3 Register Instance Variable To register the variable declared in the designated program Select the Instance Variable in option button Select the instance in the Instance list Select the variables to monitor in the Variables System Flags list box Click Register button 8 6 Chapter 8 Monitoring 4 Register Direct Variable Select the Direct Variable in option button Enter the address of direct variable in the input text box Click Register button 5 Register System Flag Select the System Flag in option button Select the flag to monitor in the Variables System Flags list box Click Register button Registered Variable will be displayed in Registered Variable list box 6 All Select It allows you to monitor one program or the entire global variable Click Select Button and Select Variabl
94. click OK button Copy Entry Cancel Help To edit the entry item select the item and click Edit button Then Input Circuit Set dialog box appears Enter the data and click OK button Input Circuit Set Redundancy Base Input Fos lA E p p Cancel Help Tranter Base Input Pos Sha p p p Time Monitor Set 200 Msec i 4 32 Chapter 4 Edit a Project 3 Output Circuit Set Click the output circuit setting button in Redundancy Parameter dialog box Output Circuit Set Output Circuit Set Output Feedback Feedback Time Master Control Master Contorl Monitor 0 E 3 4 5 G Y 8 gt Delete Be Edit Double click on the item to set or click on Edit button in the Output Circuit Set dialog box Then Output Circuit Set dialog box appears It allows you to set the selected item Output Circuit Set Output Word Pos ZONA om jo jo Feedback Input Word Pos lw jo jo jo Feedback Time o Msec Master Control Master Control Monitor Master Control Monitor A Als Jo Jo Jo W Master Control A ZOK jo jo jo E 40 jo fo fo B Elx fo fa fo Cancel Help Position of Output Word Indicates the position and channel of redundancy output module At this time the designated base must be the base set as Redundancy I O in the Base Setting dialog box Location of Feedback Input Word When setting redundancy output as O F type it indicates the position an
95. ction function block Confirm that library is in the library that is designated in option Hot Restart Backup Error On operating the program it causes when hot restart time is exceeded at the stoppage of electric current is restored or the restart is operated by parameter because it is impossible to operate the hot restart operating Because operating data which is needed in hot restart operating was not done backup Wrong line number is designated It is the case that you input wrong line number in FIND You should input it within last line number A 29 GMWIN Manual One of ANY_NUM data type expected The object foe example SINT INT DINT REAL etc which has a general concept of number has to given for the operator for example ADD SUB MUL DIV etc which has a general concept of the number Especially it causes when you give the object for example WORD type to ADD Variable used as an array index should be INT type It causes when the variable type of the ARRAY index is not INT You should use INT variable type in ARRAY index Not ARRAY type variable You cannot select array number because present selected variable type is not ARRAY type Variable used as an array index is not defined It is the case that INT variable B which express array element such as A B is not declared in declaration part You should declare B as INT variable in declaration part 9 Boolean array variables should be a
96. cuit and fault mask for GMR only 4 1 GMWIN Manual You can use the tree list to see briefly or detail tree list by clicking a mouse or pressing the right left arrow key Opened folder If you click this folder it changes into closed folder and lower branch is disappeared Folder that can be opened If you click this folder it changes into opened folder and lower branch is appeared Unable to open folder it describes an item This folder means each item 4 1 Create a Project Select Project New Project E Hew Project Ok Project File Mame PLO Name z ot Given Cancel Configuration Marne Help dl Base Type C GMR Gmi GM2 GM3 C GM4 C GM5 C GMG C GMZ Writer Comments e Enter the Project File Name Select Base Type option radio button Input the writer name in the Writer text box Input the comment in the Comments text box Click OK button Then Define Program dialog box appears Refer to the section 5 1 for more information of Define Program dialog box 4 2 Chapter 4 Edit a Project 4 2 Open a Project Select Project Open im Open Look ir 3 Source Fig File name Jengine_line_of_car Files of type Project Files FAJ Cancel Select a desired project and click Open button 4 3 Save a Project Select Project Save a If you save already existing project file no message will be
97. d channel of feedback input module At this time the designated base must be the base set as Redundancy Translate I O in the Base Setting dialog box 4 33 GMWIN Manual Feedback Time When setting redundancy output as O F type it indicates the time interval for admitting temporary disagreement of a output value and feedback input Master control When setting redundancy output as O F type it indicates the position and the number of the output to cut off the power and contact number And the designated base must be the base set as Redundancy Transfer I O in the Base Setting dialog box Observation of Master control When setting redundancy output as O F type it indicates the position of the input that observe output to cut off the power and contact number And the designated base must be the base set as Redundancy Transfer I O in the Base Setting dialog box To delete the entry item select the item and click Delete button To copy the entry item select the item and click Copy button Then Copy Entry dialog box appears Enter the position to copy and click OK button Copy Entry CN from o ho Cancel Help Position 9 To edit the entry item select the item and click Edit button Then Output Circuit Setting dialog box appears Enter the desired value and click OK button Output Circuit Set Output Word Pos ZONA m p p Feedback Input ford Pos Na jo o o Feedback Time 200 Msec Master Contr
98. d on compiling because over two types for same variable name are needed There is nothing to compile It is the case that there is no content to compile because of nothing in program content Coil cant be placed in this area The coil is in the position which the variable or the integer or the integer connects to MOTOR ON Cannot Store from to different size of array LD ST command is effective for only Arrays having the same element number Maybe out of memory from clipboard routines It causes when memory cannot be taken because memory is not enough in the system on dealing with clipboard Keyword cannot be used as an identifier The reserved word variable name etc cannot use as identifier See Also 3 3 3 reserved variable and 3 4 reserved word in command manual Invalid time value You should designate time value if you select the action qualifier among D L SD SL and DS confirm that time value is A 22 Appendix A GMWIN Error Code imputed correctly or not See also 3 1 2 3 1 proceeding time in command manual Task lt task name gt not bound It is the case that used task name is not defined in program definition Confirm task name of task and program definition in project 9 Bool type variable of task task name Not found It is the case that the used variable is not declared as the global variable in case that you select the single task executive condition Confirm ruse variable name
99. d the array which contained an unfixed number of elements to the parameter it may be possible access a wrong position when you execute a program So please use with care It is warning when designated an input parameter of array at the ANY_ARRAY which was stated as VAR_IN_OUT the value is changeable because of the memory position is out of a range of array it was designated as input is accessed under the internal code of function 9 Invalid position or other range error It causes when you insert command in wrong position lt is the case that command cannot be inserted in selected position It happens when you double click mouse in the position in which variable cannot be inserted Invalid IP address Confirm IP address of PLC which you want to connect connect again There is no response Connect the power of PLC again Search string not found It is the case that selected string at find change is not used in IL Appendix A GMWIN Error Code This is Rung Comment area It causes when you insert the command to the area of rung comment Command cannot be inserted in the rung comment area Cannot select this variable type The data break for this variable type cannot by declared in present PLC model 9 This string is a keyword It is the case that inputted string is been using for reserved character Cannot add this action name because it has been used already You should add it as different name because it has
100. ddress and Memory Address Remote Connection See GLOFA Fnet Mnet user s manual for detail comment information 4 Select Station No 4 Select Online Connection in menu and click OK button 4 Choose Connect from the Online Menu Port Address and Memory Address must be identified with the ones set in the communication board mounted on PC 1 7 GMWIN Manual 4 Connection using Network Network connection is only available for Remote connection To use this connection Enet Ethernet module and the network system must be installed From the Project Menu choose Option Select Connect Option in Option Option 4 Select Ethernet in Method of Connection Remote Connection See GLOFA Fnet Mnet user s manual for more detail information 4 Setup IP address Click OK button Choose Connect from the Online Menu 1 8 Chapter 1 Introduction 1 2 2 Depth of Connection 1 Local Connection From the Project Menu choose Option 4 Select Connect Option in Option Select Local in Depth of Connection Make Option MonitorDebug Option Auto Save Directory Set Connect Option Method of Connection RS 2352C amen Communication Port coma y C GLOFA Fnet for PE C GLOFA Mnetfor PC i Ethernet Depth of Connection e Local f Remote 1 f Remote 2 Cancel Help nc Click OK button Choose Connect from the Online Menu Local Connection for GMWIN and E Fe A F TOA RS 23
101. e 8 tasks including Interval Interrupt and Single Variable name for single duration time for interval and input position of interrupt card for interrupt are represented as a number 4 10 Chapter 4 Edit a Project a In case of Single Boolean in the Resource Global Variable A VALVE1 etc Boolean in the Direct Variable 1X0 0 0 QX0 1 1 MX10 etc b In case of Interval A constant for the duration time T 10S T 1H10M10S10MS etc c In case of Interrupt Interrupt Number GM1 3 0 15 GM4 7 0 7 0 1 2 15 Select priority in the Priority list box You can select priority number from 0 to 7 and smaller number has higher priority Click OK button 2 Delete Task Select an item to delete in the Define Task list box Click Delete button 3 Edit Task Select an item to edit in the Define Task list box Click Edit button Enter in the same way to add a task and click OK button 4 4 8 Define a Program The defined program in this process is the real program to be executed in PLC There are 2 kinds of program one is scan program and the other is task defined program When several scan programs exist they execute the program in the defined order And the program defined as task is executed according to the condition of the task 1 Add a Program Select Project Add Project Item Program in the pull down menu And the dialog box appears as below 4 11 GMWIN Manual Detine Program
102. e dialog box appears Register Variable Kind Close Picotto Global Variable C Resource Global Variable Register Instance Variable C System Flag Direct Variable Ex 1 0 0 0 or 960 1 0 26 0 1 8 Resource Resourcen Instance Variables System Flags Select Help PRE Registered Yariables 1 Select Configuration Global Variable To monitor only configuration global variable Select the Configuration Global Variable in option menu and click OK button 2 Select Resource Global Variable To monitor only resource global variable Select the Resource Global Variable in option menu and click OK button 3 Select Instance Variable To monitor only program instant variable Select the Instance Variable in option menu and click OK button 8 7 Chapter 8 Monitoring 8 2 2 Start Monitoring y Click sor in toolbox Select Toolbox Start F2 in menu a User Selection Variable Monitor i SWITCHA 8 2 3 Set the View Type of Monitoring It allows you to monitor the detail information of variable selectively y Click vio in toolbox Inthe View dialog box select the information that you want to displayed and click OK button Select Toolbox View F3 in pull down menu Inthe View dialog box select the information that you want to displayed and click OK button 8 2 4 Data Display Form To display type of variable s value as deci
103. e entered path name does not exist the dialog box appears as below If you would like to create the path click Yes button 9 If you finish selecting installation path click the Next button Files in the floppy disk will be copied onto your hard disk 2 4 Chapter 2 Installation When copy is completed the setup wizard asks whether you read ReadMe txt file or not The icon for GMWIN will be registered at the Start Up Program Click OK button to finish the installation Information a 2 5 Chapter 3 Getting Started Chapter 3 Getting Started GMWIN is a programming tool that compiles a program makes an execution file transfers a file to PLC monitors and debugs PLC data GMWIN uses the multiple document interface MDI method so that it is possible to compile and debug several programs at the same time 3 1 Create a Program Click stat button Click Programs GMWIN A ccessollez ACD Systems Adobe Acrobat 4 0 KGL_WE Application Microsoft Office Tools i Online Services Snaglt StartUp WinRAR Tr F F F0 Ee F F F F E Internet Explorer ra l Microsoft Access EHS New Office Document i Microsoft Excel 5 Open Office Document Microsoft PowerPoint iy Microsoft Word E Windowe Update pe MS DOS Prompt e Dutlook Express Windows Explorer Programs Favorites Documents x Settings Find Help Run Log Uff Jseokoh
104. e is added to the Project Window and Define Program dialog box appears as like creating a new project 3 Delete Resource only available for GM1 Select Resource to delete Select Project Delete Project Item 4 4 6 Edit Resource Global Variable Resource Global Variable can be used for the all programs in the resource The process for editing is same as Global Variable 4 4 7 Define Task Task defines the executive condition of a program lts types are single Interval interrupt and etc Select Define Task in Project window 4 Select Project Edit Project Item 4 9 GMWIN Manual Tasks a System Error _H_INIT 100 O Hot Restart INIT 100 O ColdiWarm Restart Add Delete Edita Description HEE Help Task Mame _ERR_SY5 System Error Task This task is a reserved task and priority is O 1 Add Task Click the Add button Define Task Task Name OK Task Number 0 Cancel Help dd Condition tf Single Ale Priority i Interval C Interrupt Type the task name in the Task Name text box Enter following number for the executive condition in the Task Number text box Executive Condition Task Number Interrupt 32 47 GM4 5 32 39 48 63 In case of interrupt interrupt number and the designated task number is fixed automatically The task number of GM6 and GM7 is setup automatically under the priority order GM6 and GM7 can hav
105. e type in Data Type list box lf you need a comment about input output variable enter the comment in Comment window and click OK button If you fix an array number as 1 it means that the array number of input variable is fixed when call the function function block 2 Edit an Input Output Variable Select the item that you want to edit in In Out Variables list Click Edit button Edit the content that you want to correct in dialog box and click OK button 3 Delete an Input Output variable Select the item that you want to delete in In out Variables list Click Delete button 4 Change the order of Input Output variable Select the item that you want to change the order in In Out variables list Move the position of list by clicking Upward or Downward button as many as you want to move 10 9 GMWIN Manual 3 Create a Function Program You can create a program with the same way of other program But to return the result of function s calculation an appropriate command to a name of function that was designated when created program is existed in Program i e If a name of function is ADD_MUL in the outputted dialog box when select Program Program Properties in the menu the following command must be in the function program is creating ka ctomwintsourcetthidel src Function HIDE Miel ES Row O aD Row j an al Row 2 INPUT INI OUT HIDE Row 3 INPUT INZ 4 C
106. ency of scan between 1 to 65535 Stack area short It is a case of the function holds an internal variable too much Limit is 256 bytes Stack overflow error It causes when stack of the program is out of range while program is executing Modify the program re download then execute it again STRING variables should be allocated at the address of multiple of 4 If you assign user define memory with the declaration of string variable you should assign it to address of 4 multiple Invalid string size The maximum size of string variable is 30 characters Invalid string size The maximum size of string variable is 30 characters string constant cannot exceed 16 letters The maximum size of string variable is 30 characters but when you use integer on program you can use integer below 16 characters String size overflow The string is fixed at maximum 30 characters maximum 32 byte on memory STRING variables should be addressed at multiple of 4 when directly assigned You should give a direct address to address of 4 multiple because each string needs 32 byte memory Appendix A GMWIN Error Code STRING initial value should start and end with apostrophe The string integer should begin end with quotation mark Slot ID Error Reboot the PLC Wrong exponent expression It the case that incorrect expression of exponential function is found in real number expression Wrong time literal expression It is the case
107. ently active Pal and creates an object file Select Compile Compile in the pull down menu If an error occurs the error message is displayed in Compile dialog box and object file is not created Click OK button in Compile dialog box Only compiling a program cannot make an execution file 6 3 Build All It creates PLC execution file after compiling all programs in the project Select Compile Build All in the pull down menu If an error occurs the error message is displayed in Build All dialog box and execution file is not created Click OK button in Build All dialog box 6 1 GMWIN Manual Make All Output File COG AAT AOE Utd ef O00 BMO Lines compiled Status Link success Program 280 bytes Data 36 bytes 6 4 Message It shows an error or warning message in the process of Compiling Make and Build All If you double click the message it helps you to move directly to the occurred place of error warning When an error or warning occurs in the process of Compile Make and Build All message window appears automatically and it shows the type and occurred place of error warning by list Message IC CO OO 1 Column i Input of FFB is not assigned f If you double click the each list item the cursor moves to the occurred place of error warning If you select Compile Message in menu you can repeatedly see the previous message after closing the message window
108. er 4fb Not defined as a FB instance It is the case that object of CAL C N command is not declared as function block instance 0 The first input variable of Function Block should be BOOL typed First input variable of function block must be BOOL type because of power line in LD 9 The fist output variable of Function Block should be BOOL typed Fist output variable of function block must be BOOL type because of power line in LD A 24 Appendix A GMWIN Error Code Cannot assign a value to an output variable of function block You should give variable that will take the operating result to the output of function block 9 The appropriate F FB library does not exist Base type may not match the FB library It is the case that wrong function name is given in program property dialog box or in case of making new program 9 Wrong function name is given It is the case that wrong function name is given in program property dialog box or in case of making new program 9 There is no function function block library It causes when it is not inserted in project that library that includes using function function block Contacts cannot be placed in Fun FB area It causes when you try to insert contact in function function block area Adjacent line in Fun FB area Other command cannot be inserted in function function block 9 You should use operand that is proper to data type of function function block input parameter You should in
109. er the base number to monitor in the Select Base dialog box and click OK button Select Toolbox Start Stop F3 in menu 3 O Configuration Manitor 0 gt dd Ln E o FRA 466646066044 ao To stop the I O monitoring y Click Ser in toolbox Select Toolbox Start Stop F3 in menu 8 11 Chapter 8 Monitoring 8 4 Monitor a Time Chart It allows you to monitor ON OFF status by time chart for anything that declared as Boolean type out of declared variables in the program global variables Q M area and system flag If a variable to monitor is not Boolean type you can monitor the variable in Variable Monitor menu Toolbox for Time Chart Monitoring Time E i Monitoring Start Stop View Type Forced Output a Select Variable Set Time Interval Vine To monitor the program by time chart initially Select Online monitor Monitor on in menu Online Start monitor Time Chart Monitor To monitor the program by time chart in monitoring mode Select Online Start monitor Time Chart Monitor in menu If GMWIN is not connected to PLC setup the connect option in project menu and select connect in online menu before selecting the above menu Selecta variable in the Select Variable dialog box 8 4 1 Select a Variable It is selected when you monitor the variable declared in a program global variable Q M area system flag and etc at the same time To monitor a variable time chart y Click
110. es It supports various languages like LD SFC IL So you can select and use applicable language to a system 10N START 4 S1 N ACTLINIT a i CAEN Row 0 Input Variable _T200MS _ ROL M1 60 Row 1 IP i EN T T3 10 0 0 TA 10 1 Row 2 0W0 3 0 IN OUT 0W0 3 0 N ACT_1 S4 N ACT_2 T2 ACT1_OK Ts ACT2_ollF Row 3 1 N a BBB Row 4 SWI TCH4 LAMPI Row 5 ot gt S2 N ACTS 4 SWITCHES LAMP2 3 Row 6 os Ti ACTS_OK LD SFC IL 3 Using Variables by Symbol You can create a program using symbols for easy understanding and memory address is also assigned automatically It supports various data types So you can create high leveled programs 1 1 GMWIN Manual Add Edit Variabl Variable Mame SWITCH 4 Variable Kind Variable Kind Help Data Type Memory Allocation f Elementary f Auto Co FB Instance C Assign ATi C Array 0 Initial Value Ini Aay Comments A 4 PLC System using Project Unit It is very easy to create and test a program because you can include several programs in one PLC system A c kgmwinisource enginelines prj PROJECT gt PLC Type GM1 Writer Tom Smith CONFIGURATION PLC gt Configuration Name UNNAMED CONFIGURATION GLOBALS 3 variables declared B ACCESS VARIABLES 2 variables declared RESOURCE CFU O Name RESO B RESOURCE GLOBALS 0 variables declared B TASK DEFINITIONS 3 tasks defined
111. f Output file Temporary file is the same as input method of source file 11 3 Auto Save This function is to set the time interval for Auto saving Automatically saved file is saved with ASV file in the current directory The file is automatically deleted when the program window is closed Therefore if a program cannot be saved by Program Error before program is not saved you can recover some program by loading auto saved file Chapter 11 Option Select the Project Option Auto Save in menu Enter the time interval for auto saving 1 to 60 minutes is available and if you enter 0 auto save function is disabled Click OK button 9 GMWIN Manual 11 4 Set a Password This function is to set a password in PLC Select the Project Option Password in menu It is available only in Online mode Select the Password Tab and enter the old password new password and confirm the password Click OK button To cancel the password setting Click Delete button 9 Chapter 11 Option 11 5 Monitor Debug Option To set the whole options for monitoring Select the Project Option Monitor Debug Option in menu Make Option Monitor Debug Option Auto Save Directory Set Password Monitor Option Monitor Display Type f Default C Decimal C Binary SFC Monitor SFC Auto Scroll Debug Option LO Debug Unit Select Point Line Cancel Help In monitoring mode it
112. flash memory Click Yes button and you can write the current program to memory module directly 7 9 Setup Link Enable This allows you to designate the block for the link parameter use Select Online Setup Link Enable in menu Set Link Enable HS Link 2 TT H S Link 3 H S Link 4 coa o Click OK button after selecting the HS Link 7 10 PLC Information It is the function that indicates various information for PLC system such as System info Error Warning info AC Fail history Error history Mode change history I O module fault info and Base unit info 7 10 1 System Information It is the function that indicates the constructive state of PLC system You can see system information scan time current time and error status You can also setup current time 7 6 Chapter 7 Online Select Online PLC Information System Info in the pull down menu PLE Information System PLO Type GMAB PLO Wear v1 3 PLO Mode RUM Restart Type WAR I Key Pos Pause Remote PLO State Normal Mem Pack Type GMIN Connection Local Mode Transfer Sre Mode changed by Chill Remote Access Right Yes Force VO Ont Run by Rom Permissit Scan Time hax 3 mE Wiin O ms ur 1 ms Current Time SUM 194991212 20 49 55 Set If you want to setup or edit current time Select Set button of current time in PLC Information dialog box DateTime
113. fo SSCinput te Henao Esc isnt e Aes input Segment 4 epa Aste nout Size Tailer Segment 5 Type z Heli E Stel nut Segment 6 Type e Aes aut AS net segment 7 Type 2st put e He input Segment 3 Type AS haut fe Aes haut Cancel Refer to the GM7 Manual 8 2 User Defined Protocol Communication for more details 4 41 Chapter 5 Edit a Program Chapter 5 Edit a Program This program is a unit to create an order language for the PLC system is run This chapter shows the methods create a program and save it to file edit each language and etc 5 1 Create a Program To create a new program Select Program New Program f 2 in the menu Hew Program Program File Marne Language C SFO LD CIL Program Kind f Program Block C Function Block C Function Bunciameirnctan Block Hame Betimi Mata Tipe Comments Enter Program File name Select a language in Language option button GLOFA PLC supports SFC LD and IL FBD and ST will be supported later Selecta program in Program Kind option button If you select Function Function Block to create a user defined function function block refer to the chapter 10 Library Select Program Block option in this chapter 9 You can select a Function option button in only case of LD or IL language You can not create a user defined functio
114. gram and the jump in the subroutine area can branch out to the label in subroutine only 1 Jump Select in Toolbox In LD program window click the left button after moving a mouse to the position that you want ES In LD program window move the cursor to the position that you want to insert a jump in Selecta jump Shft F8 of commands in Toolbox Jump is inserted in the last 31 column of LD program 2 Label CE Select in Toolbox In LD program window move the mouse to column 0 and double click the left button Select label in the Label Rung Comment The End of Program Body dialog box Input a label name in Add Label dialog box Maximum 16 characters 9 0 i In LD program window move the cursor to column 0 Press Enter key Select Label in the Label Rung Comment The End of Program Body dialog box Input a label name in Add Label dialog box When you designate a label in the jump command input a label name on the position of jump command Example EMERGENCY EUNN IC ST _ Bu OF Ecm 10 l o d STOP_BUTT EVEN ING_5 Pre On MoT OR re l i t 5 12 Chapter 5 Edit a Program 5 6 7 Rung Comment Select in Toolbox In LD program window move the mouse to column 0 of the first line in a desired rung and double click the left button But if you want to edit and already existing rung comment move the mouse to that comment and double Click the left button o
115. h then you should delete unnecessary file and if disk has an error then replace the disk Temporary file read seek error It is failed to create read temporary variable on LD compile Temporary variable is created in TEMP directory So it causes when capacity of TEMP directory is insufficient or disk has an error If capacity is mot enough then you should delete unnecessary file and if disk has an error then replace the disk Cannot Edit Delete In Out variables here It is possible input output variable to be modified deleted in input output variable dialog box Invalid line number You should input the input value which is proper to range You must not exceed the maximum input number It causes when you define number of input variable more than maximum number when you insert the function that is varied to number of input variable Cannot Store or STN S R to variables defined as VAR_INPUT You cannot use command ex ST S R etc that input the value in input variable Inputted value is not number The inputted number is not number There must be at least two input variables You should define over two numbers of input variable at least when you insert the function that is varied to number of input variable Because of the first variable in function should be EN The specified variable type is not allowed for this Fun FB It causes when inputted variable type is differ from input output variable type of function function block
116. has function block that is assigned in library insert list of present project In certain case some CPU has not this function block so please attend using function block Wrong function block name is given It is the case that wrong function block name is given in program property dialog box or in case of making new program 9 Function block instance name cannot exceed eight characters The function block instance name should be declared below eight characters 9 Not defined as a FB instance It causes when function block instance name has been using as other general variable Function block instance name cannot have initial value It is the case that you declare initial value with defining data type as function block instance 9 Cannot edit delete function block independently Function block output is the item that is added deleted automatically on declaration or deletion of function block So function block output cannot modify delete Function Block should have at least 1 BOOL variable at the input amp output parameter each and the first I O variable must be BOOL Function block has to have over one BOOL variable in input output for LD power line and first input output variable must be BOOL 9 Cannot add object of function block to the library of function Library does not match the form of program Extension of library in function block is nFB N is PLC type For example if library file name is USER and PLC is GM4 then us
117. hat there is only transition between branch You should insert step between branch Ta SEL Sd T4 WORK2_OF Cannot appoint the breakpoint The label or comment row cannot designate breakpoint Wrong number of scan break is defined It is the case that you input not integer but string in breaks frequency Input integer value Can t find the breaded source file It causes when there is no the source file in case of executing step over in the state of beginning of debugging Ifthe start of block is step or label the end should be transition Ti START_OK JE 12 sa N SELECT Abnormal Shutdown Error On executing the program it indicates there is an error of calculating of reserved data area in case of executing warm start by Starting to calculate program from the beginning when you reboot the PLC after program is paused by unusual shut down of power Input variable which is not used is found It is the case that you declared input variable but you did not use it Local variable which is not used is found It is the case that you declared local variable but you did not use it A 8 Appendix A GMWIN Error Code Output variable which is not used is found It is the case that you declared output variable but you did not use it There is no label to delete It is the case that you try to delete cell in first column that is being empty Can t find Function Block in the included libraries It
118. he Project Option Directory Set in menu Option a Make Option Monitor Debug Option Auto Save Directory set Connect Option Standart Library etarwintlib search source File Je gmwintsource Search Output File Je gmwintoutput Search Temp File Je gmwintternp Search onee teo Input a directory it contains Standard Library STDLIB FU STDLIB FB in Standard Library box or input a searched directory it contains Standard Library after searching with click Search button GMWIN Manual Browse for Folder ki ES Directory Select a Desktop E E AMA E eS 3 Floppy A ee o s C pa D H E Odd on Ayfe0l 1 LY Kgl we on Ayplckal Us SET Control Panel H E Network Neighborhood beeen Recycle Bin Cancel 9 Ifyou finish the setup of the directory click OK button if the directory that you select for the standard library does not exist the following error message box appears Directory Error corDirectory is not exist Do You create directory 7 Enter the directory to save source file in the Source File input text box and click OK button If the entered directory does not exist the following error massage box is displayed If you want to create the entered directory click OK button Otherwise click Cancel button Directory Error Xx cor gmwintsourcemyuserlDirectory is not exist Do You create directory The input method o
119. he return from a subroutine y To insert the operator Click in toolbox Operator List Operator ANDON ome eo Select the operator in Operator List dialog box Local Yariables Close LAMPI VAR Auto BOOL MT 00 VAR lt Auto gt BOOL MOTOR VAR lt Auto gt BOOL MOTOR VAR lt Auto gt BOOL SWITCH VAR lt Auto gt BOOL Delez Edit dd Help Browse Global Variables Description Mame LAMF1 Variable Kind VAR Data Type BOOL Allocation Auto gt Initial Value Default Comments 9 91 GMWIN Manual Enter the variable name in Name edit box of Variables dialog box Click OK button If you want to enter the already declared variable select the variable in list box of Variable dialog box method 1 Move the cursor in program region to the position in where you want to insert an operator Input an operator and object in Command edit box Press Enter key method 2 Move the cursor in the display region which you want to insert an operator Select Toolbox Operator Select an operator in Operator List dialog box Enter the variable name in Name edit box of ariables dialog box Press Enter key 5 8 2 Function Input y To insert the Function in IL Click oH in toolbox Function List Fun Groups Fun Select Arithmetic Function Bit Function Comparision Functio
120. hed in a comment input box A blank separates instruction from variable and in case of several variables they are separated by 5 Example ADD A B 2 Commaricl Y Comment 4Ix0 0 0 4Ix0 0 1 M101 MOTOR mM100 MOTOR SW ITCHL LAMP 1 9 49 GMWIN Manual Toolbox for IL pa Al ps o OF Were fa i JY 12 E 4 0 fla PIT fo roam aeva Row Comment Input Input a row comment at Variable C iabl x ariable Comment Input nput a variable comment Ins Insert Mode Change into insert mode Our Overwrite Mode Change into overwrite mode The below picture is the menu that is displayed with clicking the right button of the mouse in IL You can execute each command simply using this menu Onda Eres poy ie Etri FIE Pastel F ETI FS Delete i el FindiF ReplacelA seaehegatlal Riker Go Toll SHOW de leerme selecta ae catch eurent A esa 9 90 Chapter 5 Edit a Program 5 8 1 Operator Input END indicates the end of the main program and the program after END is a subroutine program If there is not END the whole program is the main program You can use SCAL SCALC SCALN for calling a subroutine and RET RETC RETN for return from a subroutine The name created in SCAL C N must not be in front of END If JMP C N is in front rear of END the appropriate label is in front rear of END Although RET C N is not in the rear of END the last is regarded as t
121. iable in Variables dialogue box In Variables dialogue box enter the variable name to be used and click OK button If you enter an already declared variable name then variable input is over here 9 If you enter a new variable name Add Edit Variables dialogue box which determines the variable properties appears 9 15 GMWIN Manual Add Edit Yanables Variable Harne LIMIT SvvITCHS Variable Kind Cancel Variable Kind Help Memor Allocation Data Type f Elementary BOOL C FBlnstance aD3ARD C Array 0 POE oo Initial Value Mia f Auto C Assign ATi Comments Refer to the 5 5 Edit a Variable for detail information about Add Edit Variables dialog box Press OK button 5 6 11 Edit a Block Before editing a block you must setup the range to be applied as a block Namely if you want to copy or delete a continuous program you must designate a range desired s a block before selecting a block editing command Select in toolbox In LD program window after moving a mouse to the start point of a block by pressing the left button drag the selected range to the last row of the range to select ES In LD program window move the cursor to the start point of a block With pressing Shift key move the cursor with arrow key to the last row of range to select When you setup a block if the end of block range is in a function or functi
122. ill appear Gh wihy To write to PLE PLE must be a stop mode Switch to stop mode cance Click YES button 1 2 Chapter 7 Online Write LOTUS ahah P Unload Praga Ns Select the memory area to write to PLC and click OK button Basic Parameter Write only a basic parameter from PLC I O Parameter Write only I O parameter from PLC HS Link Parameter Write only an express link parameter from PLC Communication Parameter Write only a Communication Parameter In only case of Communication it is activated Redundancy Parameter Write only a redundancy parameter from PLC Program Write only a program from PLC Parameter and Program Write a parameter and program from PLC Upload Program Write a program from PLC When you use a GM1 Multi CPU select a resource in Selection of Resource dialog box and click OK button Selection of Resource Resource S Resources 7 3 GMWIN Manual 7 5 Change PLC Mode To change PLC mode Run Mode Select Online Mode Change Run in menu Stop Mode Select Online Mode Change Stop in menu Pause Mode Select Online Mode Change Pause in menu Debug Mode Select Online Mode Change Debug in menu Master Change Select Online Mode Change Master Change in menu When you use GM1 Redundancy PLC this function changes a master CPU 7 6 Clean PLC Data Select Online Data Clear in menu lA Clear data s
123. in on Direct Variable and it is exactly same as content in the program comments windows Select Comments for Direct Variables at the list in Project window Select Project Edit Project item in the pull down menu Comments tor Direct Variables SENSOR SENSOR Add Edit Delete Close Help 1 Add Direct Variable Comment Click the Add button Edit Direct Variable Comment Direct Variable Marne 60 3 0 OK Cancel Comments LAMP 1 Help dd Type the Direct Variable name in the Direct Variable name text box l0 3 0 4 Enter the comment in the Comment text box LAMP1 4 13 GMWIN Manual Click OK button Comments tor Direct Variables SENSOR SENSOR LAMP 1 2 Delete Comment for Direct Variables Select an item to delete in the Comment for Direct Variables list box Click Delete button 3 Edit the Comment for Direct Variable Select an item to edit in the Comment of Direct Variable list box Click Edit button Enter data in the same way to add a comment and click OK button Chapter 4 Edit a Project 4 5 Edit a Parameter Type of parameter Basic Parameter I O Parameter and Link Parameter 4 5 1 Edit Basic Parameter To set Basic Parameter Double click on the Parameters Basic Parameters in Project window or move a cursor to Parameters Basic Parameters and Select Project Edit Project Item PLC type GM1
124. ion as a variable Enter he transition name in the Name edit box maximum size is 16 characters When you want to connect the already declared variable select the variable in list box Enter the comment for the transition in the Comment edit box maximum size is 40 characters Click OK button 9 40 Chapter 5 Edit a Program A c Agmwink source xrobot3 src 55 N ACOOD1 THOOOL 5 7 8 Delete 1 Delete a Step Transition y Select in toolbox Move the mouse to the step or transition that you want to delete 4 c 1gmwinisourcetrobot3 src N ACOOOL T3 Te THOOOL JOMP Click the left button of the mouse 5 41 GMWIN Manual kA cc gmwim isourceArobot3 src Move the cursor to a step or transition that you want to delete with key Select Edit Delete Although you delete a transition in SFC program a transition program is not deleted If you want to delete the program you must delete it in transition list select Program Transition List 2 Delete a Branch To delete the branch All elements must be deleted before deleting a branch Namely there must be only Step in case of parallel branch or Transition in case of selective branch in branch y Select in toolbox Move the mouse to Step in case of parallel branch is marked with Q or transition in case of selective branch in branch and click a left button Sa Move the cursor to a step o
125. ircuit Set dialog box or click Edit button the Input Circuit Set dialog box appears It allows you to set input circuit for the appropriate item Input Circuit Set i taa aaa 4 31 GMWIN Manual Triple redundancy input Triple redundancy input allows you to use that data as input value of the program after selecting identified 2 data of 3 data compared to the inputted data So you must have 2 input modules mounted on the same redundancy base slot and and 1 input module mounted on the transfer base To set the Input Circuit Item Position of Redundancy Base Input Indicates the position and channel of input module mounted on a redundancy base for the triple redundancy input There is only one item for fixing a position because input module of both Local A and B must be on the same base slot And the designated base must the base set as Redundancy I O in the Base Set dialog box Position of Transfer Base Input Indicates the position and channel of input module mounted on a transfer base for the triple redundancy input And the designated base must be set as Transfer I O in the Base Set dialog box Setting Time Observation It is time value for allowing temporary disagreement of input value by delay of the input module To delete the entry item select the item and click Delete button To copy the entry item select the item and click Copy button Then Copy Entry dialog box appears Enter the position to copy and
126. irm the switch in CPU module of the PLC is at REM Remote Stop mode 7 1 2 Connect Select Online Connection the pull down menu In case of redundancy select the CPU to connect Selection of Redundant CPU Redundant CPU came 7 2 Disconnect You can disconnect GMWIN with PLC Select Online Disconnect in the pull down menu 7 3 Read from PLC You can read PLC parameters in GMWIN after connecting with PLC Select Online Read in menu 7 1 GMWIN Manual CO KO Parameter C HS Link Parameter Redundancy parameter Cicommunication Perameter Basic Parameter Read only a basic parameter from PLC o 1 0 Parameter Read only I O parameter from PLC e HS Link Parameter Read only an express link parameter from PLC Redundancy Parameter Read only a Redundancy Parameter In only case of redundancy it is activated e Communication Parameter Read only a Communication Parameter In only case of Communication it is activated In Read dialog box select the memory area of parameter to read and click OK button Gh wilh Ci Parameter reading Completion 7 4 Write to PLC This function is used for writing a parameter and program of GMWIN to PLC after the connection with PLC In GM1 and Resource is more than two when you write parameter and program to PLC select the appropriate resource Select Online Write in the pull down menu Ifthe state of PLC is Run then following dialog box w
127. is debugged To execute debugging for the program element as a minimum unit of the language An execution control element for starting condition of the program Interval task Single task Interrupt task and Scan task Program containing the execution control element as Task To compile one program element from beginning to end lt Partial compile The condition to perform the next step in SFC language A program that is compressed to store the program which a user created in PLC You can call the upload program in PLC by using Open From PLC function in Project menu of GMWIN A method to designate memory area to be matched as the direct variable form when a user declares a variable on the declaration of a symbolic variable A debugging method to stop the execution when the value of specified variable meets the designated value of function to read write the variable is executed One of the restart mode It erases all data to 0 except variable that is declared for retention of the pervious value and the initial value Appendix C Structure of GMWIN Menu A Structure of GMWIN Menu is as follows Project New Open Open Form PLC save Save As Close Add Project item Resource Edit Project item Program Delete project item Up Program Down Program Edit M Region B Print Pinter Setup Option Library Manager Insert Library Start Simulation Exit Program New Open save Save As
128. is outputted to the selected parameter 9 In Array Initialization dialog box after selecting the item that you want to change double click the item or click Foo oOo Oooo Oo ja Edit button Change the Value to initialize in Array Initialization dialog box and click OK button Refer to section Chapter 13 Online Edit for details 7 19 Chapter 8 Monitoring Chapter 8 Monitoring 1 Program Monitoring 2 I O Monitoring 3 Variable Monitoring 4 Variable Monitoring 5 Link Parameter Monitoring 8 1 Monitor a Program To monitor the operation of PLC in Run mode Select Online Connect in the pull down menu Select Monitor Monitor On in menu If there is more than 2 defined instances in a program Select Instant dialog box appears Resource Instance IMNSTO RESO INSTA Help d Program File ciarmaimsourcelrobotl sre Select an instance in the list box of Select Instance dialog box and click OK button To monitor in GMWIN the program in the current window must be exactly same with a transferred program in PLC If you monitor the program edited after downloading to PLC monitored data of the program may be operated differently with the real one in the window So if you edit the program after downloading to PLC you must execute monitoring after creating an execution file again Compile Make menu You can not edit the program in the project while execute monitoring But you can edit the progra
129. is the case that you do not insert library file which function block is included to project though you declared instance of function block Insert library file Constant range over detected You should give constant value that is proper to range of data type of Current result when you want to give constant which is integer real number as the object Cannot create a new program file lt program filename gt It is the case that there is program file sheikh has already existed or insufficient disk area or other application is using it You can call subroutine Label which is after the END operator You should call the only label that locates after END when you use subroutine cal command END operator is needed when using subroutine call If you want to use a call subroutine command ex SCAL etc then you should distinguish main program and subroutine by using END This variable is not defined It is the case that used the object is not declared as variable Declare variable in variable declaration dialog box Variables selected are too many to monitor Delete selected variable by using delete key There is nothing to move in the selected cell It causes when it is empty that the cell which you try to move Selected library file is not a lt GM gt Library is PLC type The version of selected library file does not match with GMWIN Selected library file is not a LGIS GMWIN library file The version of selected library file does
130. istered variables appear in the Registered Variable list box 8 13 PE JinsTo Redgistered arilables Chapter 8 Monitoring 6 Select You can monitor one program or all global variables Click Select Then the Select Variable dialog box appears Kind w Conig raton Global Vanable f Resource Global Variable Resource Instance Select reso JimsTo cancer teo 1 Registering the Configuration Global Variable Select only when monitoring the configuration global variable Select the Configuration option and click OK button 2 Select the Resource Global Variable Select only when monitoring the resource global variable Select Resource and click OK button 3 Select the Program Instance Variable Select only when monitoring a stated variable in the designated program Select Instance and click OK button 8 4 2 Start Monitoring y Click sur in toolbox Select Toolbox Start F2 in menu 8 Program lt AESOINSTO variables time chart Of x Honitor Start Time 60 00 00 P LIHIT_S5W HOTORA 01 SWITCH Chapter 8 Monitoring 8 4 3 Set the View Type of Monitoring It allows you to monitor the detail information of variable selectively Click io in toolbox Select information to display in the check box Select Toolbox View F3 in menu Select information to display in the check box 8 4 4 Set Time Interval It sets the time interval
131. itrary value to variable Read Write stops when it reads a variable or writes an arbitrary value to variable Ifyou want to stop when reached to a specific value select the Enable Variable Break option check box and enter the value in the input text box 9 10 Chapter 9 Debugging 9 6 Enable Task Turnover In a program instance with a task if you run the program after debugging by one step the Task Enable allows you to choose either Enable or Disable of the task tumover Select the Debug Task Enable in the pull down menu Enable Task Enable Disable Task List Disable HS INTERVAL ng Enable Disable Enable All Disable All caca o Select a task to Enable Disable in the Enable Task box Click Enable Disable button When you want to set the entire lists as a enable disable click the Enable Disable All button Click OK button 906 9 11 Chapter 10 Library Chapte10 Library By saving Function or Function Blocks as the files that can be used in a program you can use them for your convenience Sometimes you can create a new library file defined by user 10 1 Type of Library File Library File consists of Function or Function Block Library File Extension Example Function Library stdlib 3fu standard function library for GM3 Function Block Library special 3fb standard function block library for GM3 In FU or FB indicates the type of appropriate PLC in In case of G
132. lbox In LD program window move the cursor to a desired position and click the left button oe Move the cursor to the position that you want to insert a function in Select a function block F9 of commands in Toolbox 5 10 Chapter 5 Edit a Program Function Block List FA Groups All communi Iih rermote 1f remoted 1th special 1th FA Comment Increase counter cams mo Selecta function block group in Function Block List dialog box Then only appropriate function blocks appear in the list Selecta desired function block in Function Block List dialog box and click OK button Insert a desired instance name of function block in Add Instance Name dialog box You can insert a function block between column 2 and column 30 in LD program 5 6 5 Return Select in Toolbox In LD program window move the mouse to a desired position and click the left button oe Move the cursor to the position that you want to insert Reurn in Select Return Shft F7 of commands in Toolbox Return is inserted in the last 318 column of LD program GMWIN Manual 5 6 6 Jump and Label In LD program Jump command allows you to go directly to the position that you want to branch out Destination is expressed as a label Position of label must be inserted on the column 0 In LD program having subroutine the label included in the main program must be inserted into jump on the main pro
133. le cigriwimsource Search Output File cigrawintoutput Search Temp File cigrawinttemp Search Or Cancel Help Eme par ornoa maara erary Input text Or Or ITY enu m yoo can t remember the path select Search button where the library is in Browse for Folder El ES Directory Select Desktop My Computer a 3 Floppy 4 eS C Ea MWh 29 Gmwin_disk H leb H I Microsoft Office 2000 ee Mu Dioruments Cancel 9 In case that the library is not in the selected director the error message appear as below 10 3 GMWIN Manual Library File Load ES Standart library i not exist at selected directory If there are no stdlib fu and stdlib fb is the type of PLC The type is stdlib 1fu for GM1 in the selected folder an error message that cannot open appears when open a project In this case enter the folder correctly in Project Option Directory Set menu Or copy the standard library to the selected folder 2 Load a Exclusive Extensible Library and the User defined Library You can load selectively exclusive extensible library and user defined library In the state that project file is opened call Include Library dialog box by selecting Project insert Library You can also call Include Library dialog box by double clicking after moving the mouse to a appropriate library item in library file list Adda desired library in Include Library dialog box and click OK
134. library which has function block into the current project If the library selected in the previous dialog box exists in project is update automatically In case of insert the function block into a new library file it is optional to insert in project Select Yes button and press Next button Then the Fun FB Wizard dialog box appears 10 21 GMWIN Manual Fun FB Wizard Click Finish button then a new User FB library appears on the project screen 9 cc amwinisourceengine_line prj OR ES E COMMENTS for DIRECT VARIABLES O variables declared PARAMETERS E BASIC PARAMETERS E 1 0 PARAMETERS E LINE PARAMETERS INCLUDED LIBRARIES Bl c gwini Libr ASSEMBLY 3fu B c qmwin Libi communi 3 b 2 c oqmwin lib special 3fb B c ymin Lib ASSEMBLYL 3fb 10 22 Chapter 10 Library 10 3 3 Library Manager In Library Manager you can create and edit library file that is not concerned with project UGE Toner tr el AE rt Library Manager 10 23 GMWIN Manual 1 Create a Library File 9 To call the Library Manager dialog box select Project Library Manager in menu Library Manager ae e l I Hnndate Rd Ele 9 To call the Make New Library File dialog box click New in the Library Manager dialog box 10 24 Chapter 10 Library Make New Library File Enter name of new library Library Type file e except extension ath Cancel E FB laSSEMBLY FA aan He
135. lick OK button Youcan confirm whether the library is deleted on project screen or not wa c Romwintsourcettengine_ling pri LE COMMENTS for DIRECT VARIABLES A variables dec 1 2 PARAMETERS E BASIC PARAMETERS E 1 0 PARAMETERS E LINK PARAMETERS INCLUDED LIBRARIES Ec Wamuintlibttcommuni 4fb Ec Homwinttli bts pecial 4fh GMWIN Manual 10 3 Create User Defined Library File Besides standard library or extensible library you can create and use a program which is for you convenience like as Function Function block 10 3 1 Create User Defined Function 1 Create a new Function Program Select Program New program in the pull down menu Program File Name HIDE AMEME Cancel Cf SFO f LO f IL f Feo JST Help Program Kind C Program Block C Function Block i Function Function Function Block Name HIDE Return Data Type IMT Comments ASSEMBLY LINE FUNTION Enter the name of function program to create with src in Program File name box In Language option radio button select language type to use in editing the function Select Function in Program kind option button In Function Function Block Name input text box enter the function name to use in another program In Return Data Type list box select the type of variable If there is an additional comment for the function enter the comments in Comments window Click OK button and the following message appear 90089899 1
136. llocated at the address of multiple of 8 When you declare an address in GLOFAPLC beginning position of BOOL array should be at the beginning of 8 bit unit Therefore if you declare user definition position at the position which is not 8 multiple such as MX7 then you will have an error massage BOOL type operand expected The object of BOOL type should be given in LD contact or BOOL output Cannot use this kind of Operators to CONSTANT variables It is the case that you use the command that can change the value of ST for variable that is declared as CONSTANT CPU Error On the composition of the multi CPU it is the case that other CPU error causes You should modify this CPU error and execute again CPU Combination Error Reboot the PLC The data of DATE AND TIME _ in indicatied in 1 100 second When you input the value of DATE AND TIME you cannot input the 1 1000 second unit END operator in duplicated You cannot use over one END command in one program or one action transition ENO can t be assigned to variable Variable or integer is connected at the ENO output of the function VARI 200 A 30 Appendix A GMWIN Error Code Only power line can be connected at the ENO output of the function Connect it at power line or nothing MOTOR _ON 9 Not defined as a FB instance It is the case that the inputted sting as the instance name is not the string that is declared as FB instance This F
137. llowed The case inputted variable name is not correct It is the case that you use special character etc that cannot be used Or insert blank in string Also it causes length of string is over 18 characters Wrong name is given It is the case that you input the incorrect variable name You should input a proper identifier See also 3 1 1 Identifier command manual Variable name Is incorrect It is the case that you input the incorrect variable name You should input a proper identifier See also 3 1 1 Identifier command manual The variable type is not ARRAY It causes when variable of different type is inputted to window in which array variable type is inputted Not defined as a BOOL variable It causes when you insert variable of different type at the position in which only BOOL variable can be inputted Variable type is not BOOL The time chart can monitor only variable of BOOL type Cannot jump to label lt label name gt across simultaneous branch See also SFC jump of command manual Branch number over8 ee SZ 310 S15 S16 lt lt KS i Delete the branch Branch end point cannot be located at block end It can be at the end of block that only step transition label and jumping A 7 GMWIN Manual Branch start point cannot be located at block start It can be at the beginning of block that only step transition labeled Step must be exist between branches As you can see it is the case t
138. lon WINEN ss A An 11 3 dd Comput r Link Mal sra ada 11 4 11 2 Set the Directory of GMWIN uu ccc sccesssssssssscssssssssesssscsesessesessssesessesessesesacsesaseesasseseseesasassesassesassesasausesansesassesaseees 11 5 11 3 11 4 11 5 11 6 Table of Contents AUO SAVE poni aE E A E E seamen natin 11 6 SeU mre E VV ME EE E E A dole A 11 8 er A Pu E EE N E E 11 9 AN 11 10 Chapter 12 Upload 12 1 12 2 12 3 Mare Upload dci 12 1 A A taaedunaten ane 12 2 Read tom PLE QU SOA Y PPORIPC OOOO O 050 0 0M PPPoE E E E 12 3 Chapter 13 Online Edit Boe Soa ONNE AM a o e tec afateneteratnaiatan Aide 13 1 12 WME Trnine Ed ud ia 13 2 Weds Cancel OMe a riici 13 2 13 4 Available Items for Online EG sesos lidia 13 3 13 5 Non available items for Online Edit cecssssssesssssssssscsssssssscsssssssecssscecesassceesesaseesesasecsesasecsesesaseseesevaseeeesasesersavatens 13 3 Chapter 14 Simulation 14 1 Applied PLC and Specigication for PC cccccccssssscsssscssssssssscsssssessssecsssesessesesscsessssesessesesausesesaeeesaseesasseeseesesaeeesaseees 14 1 TAN a API PG accra tate ature did 14 1 A R 14 1 A A 14 1 14 3 Available Program for Simulation ie cscssicduiscssansacdctecshcaducndesdcsudcaenennsicletddasaduantiiedctasdhandedeleddasctensesedeteddacsduecsuedoteddaeseastdedabes 14 1 144 Statt SMUAIN eorn AAA EN EE AAA 14 1 14 5 Buldan VO MOQUE o at toa 14 1 14 6 ACG FeMOV CMOGUI OMPEPC90 0O5 5 00 0 ZOEA E 14 2
139. lp Target FLE C OMRE C GMI GMS o GWA GMS C GME Directory of library file Library Directory cigmwinilik Enter a library file name less than 8 characters With library type option button you can select the type of library to create newly With objective PLC option button select a PLC to which the library is applied Select a directory in where the library file will be At this time it is important to input the same directory that fixed in Directory of Library file of option Click OK button and library manager dialog box appears 4404 Library Manager Library File Select File Name CAGNVWINILIBIASSEMBLY SFB Select A FUniPA Listi Add elete afi Fun FE Contents Comments lt No gt 10 25 GMWIN Manual 2 Select a Library File Click Select button in Library Manager dialog box Library File Selection lx BA St E El Look in Sib a ASSEMBLY 3FB aa COMMUNI Ab sa mkstdlib df la ASSEMBLY 3fu COMMUNI 5tb a mkstdlib Su a REMOTE la ASSEMBLY1 3fb ba COMMUNI 6fb a mkstdlib 6fu a REMOTE Comm Fib a COMMUNIA sa mketdlib Ffu sa REMOTE sa COMMUNITE sa MESTDLIB Tfu ss MESTDLIB Rfu REMOTE a COMMUN 3tb a mkstdlib Sfu a REMOTES1fb is REMOTE File name ASSEMBLY SFE Files of type Library File F Cancel ze After selecting the library file that you want to edit click Open butto
140. lready used action select the action in list box Enter the comment for the action in the Comment edit box maximum size is 40 characters 2 In case of setting up an action as a variable Enter the variable name in the Name edit box maximum size is 16 characters When you want to connect an already declared variable select the variable in list box Select a desired qualifier in Qualifier list box if the selected qualifier has a time value D L SD SL DS enter the time value in the Timeedit box Example T 10s click OK button 9 3 GMWIN Manual Chapter 5 Edit a Program 3 Kind and Function of Qualifier Symbol Function N Non stored Action is executed while Step is in active E R overriding Reset makes stopping the execution R overriding Reset El of action executed by qualifier S SD DS SL before After Step is in active an action is executed until S Set R qualifier acts L time Limited After Step is in active an action is executed as long as setting time Step Active Condition oi Passive Condition a fp a lar Setting Time A AE E Setting Time After Step is in active the execution of action ee D time Delayed oe Setting Time is delayed as long as setting time Action is executed at the only moment when Step P Pulse is in active After Step is in active an action is executed after the lapse of setting time until R qualifier acts SD stored
141. ls along the active step kA corgmwintsourcertrobots sre lt INS Te gt Ta TRAN To monitor an action and transition program J Move the mouse on the action or transition and double click the left button of the mouse oe Move the cursor on the action or transition and select the Toolbox Zoom in menu 8 1 3 Monitor IL It monitors only the program in a project It is impossible to edit the program during monitoring Monitoring data is shown at the position of program value You can see the monitoring data in a desired place by adjusting the column of display region During the monitoring you can see hide the comment by clicking Toolbox Comment Show Hide menu 1 Monitor a Variable The variable declared as an array is monitored with assigned as initial index 0 If you want to change the index move the cursor in a desired line Select Toolbox Select Array Index I in the pull down menu Assign the index of array element Click OK button or hit the Ctrl T Ctrl 8 4 Chapter 8 Monitoring Bac Momwintsourcettboxing sre AE SU lNS Ts gt Nu Instruction Input Variable Value IH 4 8 A MOTORS A DATAL 346 DATA a2 DATA 378 oWITCHS 1 LAMPS 2 Forced Variable Double click the line of variable that you want to write Force Variable Variable Mame Ok DATA Cancel Value Help E _ dl Enter the value of variable in the Force Variable dialog
142. m Action List or Transition List List c0002 Add COOOS Delete Replace Edit Help Attribute Language Used 1 Size bytes Comment Action list and the attribute of the selected action appears in Action List dialog box Language Language type of the action Used The number of being used in SFC program Size Program size of the action byte Comment Comment for the action 1 Add the action Click Add button in Action List dialog box 9 46 Chapter 5 Edit a Program Enter the action name and comment and click OK button 2 Replace the action name Click Replace button in Action List dialog box Enter the action anme and comment that you want to replace and click Ok button At this time the action on using in SFC program is also replaced in SFC program 3 Delete the action Click Delete button in Action List dialog box At this time you cannot delete the action on using in SFC program 4 Edit the action To edit an action program Click Edit button in Action List dialog box 5 7 12 Edit a Block Before editing a block you must setupthe range to be applied as a block Namely if you want to copy or delete a continuous program you must designate the desired content as a block before selecting edit a block function When you fix a block in SFC a correct program is only availble For example you must setup the block which starts from a step as a transition fo
143. m not contain the project 8 1 1 Monitor LD LD Monitoring basically has two functions One is that showing the variable status and the other is that setting or getting ON OFF the variable value by force 1 Monitor a Variable 1 Monitor a Contact or Coil variable You can see the ON OFF status of variable by the change of color ON Red OFF Black of the appropriate variable name because the variable of contact or coil is BOOL type in Ladder Diagram If the color of the variable name turns to be red the variable means On status and Off status for black one 2 Monitor I O Variable for the Function or Function Block I O variable for the Function or Function Block is displayed as a number or string on the line of the variable name 8 1 Chapter 8 Monitoring a a a 2 Forced Variable This function allows you to turn the variable of contact or coil ON OFF and set the variable for the function or function block as a desired value forcibly In LD Program move the mouse to the variable that you want to set and double click the left button of the mouse Then Force Variable dialog box appears In LD Program move the cursor to the variable that you want to set 9 Press Enter Force Variable LIMIT SY Input 0 Off in the Value box of Force Variable dialog box and click OK button a cgn EAS EM 5 8 2 Chapter 8 Monitoring 3 Forced Output I O Variables
144. mal hexadecimal or by the variable type y Click ve in toolbox 8 8 Chapter 8 Monitoring Select Toolbox Hex F6 in menu Data Display Form Kind of Form i Dependent Type Cancel Hex di Help Dec Select display type with Kind of Form option radio box Click OK button 8 2 5 Forced Variable Output To output the desired variable s value forcibly Force Click Foxe in toolbox Or Move the mouse on the variable to change a value and double click the left button of the mouse which calls the Force Variable dialog box Force Variable variable Mame OK Limrr_svw Cancel Value Help r dl Enter the variable s value in the Value input text box Click OK button Call the Force Variable dialog box Enter the variable s value in the Value input text box Click OK button If the type of a variable is a direct variable and Boolean type forced I O setting is available and you can prevent the value from being changed by program Although you output a variable s value forcibly it can be changed by program 8 9 Chapter 8 Monitoring 8 2 6 Monitor Array Variable Select array range to monitor the variable of array type Use Select menu in monitoring of variable selected by User To call the Select Array Number dialog box move the cursor to Array Type Variable and select Toolbox Array Number Select F7 in menu
145. mory There is no general concept about base and slot in the internal memory lf there is an initial value enter the value in the box of Initial Value Enter the comment in Comments box Click OK button 2 Delete a Variable Selecta variable to delete in the list box of Local Variables Click Delete button 3 Edit a Variable Selecta variable to edit in the list box of Local Variables Inthe list box of ADD Edit variable edit a variable with the same way as inserting a variable and click OK button 4 Browse Global Variable This function is used when you use a declared global variable in the program 9 Click Browse Global Variable button Select Global Variable Global Variable Data Type ROBOT MIN7O Config Global ROBOTS Sve Config Global SYSTEM _ MASAO Config Global 5 6 Chapter 5 Edit a Program Select a global variable to use in the program and click OK button A selected global will be declared as VAR_EXTERNAL automatically and be added in Local Variable List When you declare a variable if the program belongs to the project the variable declared as VAR_EXTERNAL is registered to VAR_GLOBAL automatically 5 Browse In Out variables This function is used when you want refer to the currently declared I O variable without closing the Local Variable dialog box Click Browse In Out Variable button Then Dialog box appears as same as when you select Program l O
146. mpiling is finished without an error and warning Fun FB Wizard dialog box appears automatically to insert the compiled function block into the library Fun FB Wizard 9 If you select Cancel button in the above box it stops inserting the compiled function block into a library and project If necessary you can make a User Defined Library for the compiled function block by selecting Project Library Manage 9 If the compiling is finished with warning the following message appears This message asks whether you continue the function program wizard after correcting the warning 9 The first dialog box of function program wizard shows various information 10 19 GMWIN Manual 9 Click Next button in the first dialog box of the function program wizard Fun FB Wizard ES Iri rrojaci l ASSEMBLY1 2er 9 In Library File Select of Fun FB Wizard dialog box the second dialog box enter new created library name in New input text box GM3_FB1 9 If you want to insert new created library into user defined library that exists already in project click In Project button and select a desired library file 9 If you want to insert the library into user defined library that does not exist in the project select a desired library file by clicking Made button 9 If you finish selecting a file click Next button 10 20 Chapter 10 Library Fun FB Wizard 9 In this Fun FB Wizard dialog box it is determined whether you insert the
147. n Then the entire function function block in selected library file appears automatically in Fun FB List If you select a desired Fun FB in the Fun FB list the content of selected Fun FB is appeared on the Fun FB Library Manager Library File Select Close File Mame CAGMWINILINASSEMBLY sth E Close o oHe Help FUniPB Listi ASSEMBLY FB assembly th sre 1999 12 16 14 20 10 FUnPB Contents Comments FA FOR ASSEMBLY LINE Contents 3 Add a Function Function Block Object File Enter Function Function Block File to add in Add Function Function Block dialog box and click OK button 10 26 Chapter 10 Library 4 Delete a Function Function Block Object File 9 In Fun FB List in Library of Library Manager dialog box select function function block that you want to delete and click Delete button 5 Update a Function Function Block Object File 9 In Fun FB List in Library of Library Manager dialog box select function function block that you want to update and click Update button 10 27 Chapter 11 Option Chapter 11 Option 11 1 Connect Option You should set the communication port COM1 4 to communicate with PLC Select the Project Option Connect Option in menu Default Connection is RS 232C interface Option Make Option Monitor Debug Option Auto Save Directory Set Connect Option Method of Connection le RS 252C Modern Communication Port com C GLOF
148. n by SFC Function Function Block name s only in active when Function Function Block option button is selected and Output Data Type is in active only when Function option button is selected Refer to 10 3 Making a library file defined by user for detail comment 9 1 GMWIN Manual Enter Comment in Comment box Click OK button if anew program is not existed in the project the following dialog box appears Program Insertion 2 Do pou want to add new program item in the project Click Yes button Then the Define Program dialog box appears Refer to 4 4 8 if you finished define a program it is inserted in the project as an item In case of GM1 and there are more than two resources you can select a resource it can introduce the definition of the program 5 2 Open a Program You can open a saved program here There are two ways to open an existing program One is selecting in the menu and the other is opening the designated program in the project directly 1 Open by selecting in the menu pE Select Program Open E in the menu Look in E Sowce e CE a robot sre B c En El File name robot sre Files of type Program Files SRC Cancel Ze Click OK button after selecting the desired program file A selected program is created on the window screen 2 Opening a program file included in Project If you want to open a program file included in
149. n is not possible It causes when you cannot insert the object to this position when you try to move the cell If you want to move cell then sufficient area needs in the position you cannot move it to the first column External Device Error It notifies that slight error of peripheral device happens by user program on operating External Device Fatal Error It notifies that fatal error of peripheral device happens by user program on operating Fix peripheral device and operate again Wrong interrupt input number is given The maximum size of external contact input number is 0 to 15 in case of GM1 2 0 to 7 in case of GM3 5 Interrupt task number over Maximum number N You should reduce number by deleting external contact task in task definition of project window Task number for Interrupt task is between 32 to 47 for GM1 3 32 to 39 for GM4 5 The task number which is assign to external contact task is 32 to 47 in case of GM1 3 32 to 39 in case of GM4 5 See also 4 4 7 task definition in GMWIN user guide Left bracket is expected It is the case that number of right bracket is too many 9 Left margin should be an integer between 0 to 30 mm It is the case that it is not integer value of 0 30 mm that left blank on print Memory allocation error It is failed to take necessary memory on LD compile You should take sufficient memory by shut down the window application program to execute except GMWIN 9 f you sen
150. n it Select Rung Comment in dialog box Label or Rung Comment 9 C Label C The End of Program Body Enter the contents of rung comment in Rung Comment dialog box Maximum 170 characters i In LD program window move the cursor to column 0 of the first line in desired rung But if you want to edit a created rung comment move a cursor to that comment Press Enter key Select Rung Comment in Label Rung Comment dialog box Input a rung comment into the Rung Comment dialog box 9 Rung Comment re Control of Robot and Convey Line cancer Hep Rung comment is displayed in all through on line as below COMMENT eae Control of Robot and Convey Line E JUT i Rom 13 l l gt 9 13 GMWIN Manual 5 6 8 Subroutine Call y Select in Toolbox In LD program window move the mouse to a desired position and click the left button oe In LD program window move the cursor to the position that you want to insert a subroutine name in Select Toolbox Subroutine Call lt SCAL gt Shft F9 in the menu Insert a subroutine name on the Subroutine Call 5 6 9 End of Main Program Select in Toolbox In LD program window move the cursor to column 0 of the row to designate as the end of main program Select The end of Program Body in Label or Rung Comment dialog box oe Move the cursor to column 0 of the row to designate as the end of main program O Press
151. name gt not found lt causes when there is no program file that is relevant to used program name in program definition Confirm that there is program name SRC in relevant directory A 27 GMWIN Manual Program Error It is the case that program to operate is abnormal Download again Program Abnormal It is the case of an abnormal is occurred in download a program Download again Program define number over Delete program definition You declare too many program definition of project You should reduce program definition by Selecting the project project item delete in menu Program Code Error It is the case that command that cannot be decoded is met on user program operating Download program again and execute again Program size over error Total M bytes Used N bytes It is the case that program size N bytes is used in project exceeds capable program size M bytes is used in project exceeds capable program size M bytes in present PLC Change PLC model to upper model or reduce program size Program file lt program file name gt has already opened It is the case that you declare filename which has already opened when you make new project or program 9 Program file lt program file name gt has already existed It is the case that you declare file name which has already existed when you make new project or program Program file name does not defined It is the case that you are not surd that you
152. nd Enter the new character in New Name edit box of Replace dialog box Select options in the same way as Find function and click OK button 96 5 7 15 Again If you executed Find Replace function before executes the function again with the condition that designated before Select Edit Again Ctrl F3 t 5 7 16 Goto Select Edit Goto In Go to Position dialog box enter the Y vertical X horizontal coordinates that you want to go 5 7 17 Condense Screen To adjust the screen size Select Edit Condense screen Select a desired screen size in Condense screen dialog box and click Ok button 9 48 Chapter 5 Edit a Program 5 7 18 Print If you click View Comment button to see the comments that you edited in the program Select Project Print in the pull down menu SFC Print condense OK 100 Cancel Action f 80 Previews Transition C 50 setup Variable 25 EEE Help Left margine o mm Mas 30mm Option e Print Action Transition Continuously Setup the conditions to print in SFC program To preview the program select Preview button Close Preview screen and click OK button to print 5 8 Edit IL IL is a language that consists of instructions whose elements are operators functions function block and label The input of an instruction and a variable is accomplished in edit control box for command and the input of a comment is accomplis
153. nd column 30 In case of vertical line you can insert it between column 2 and column 29 5 6 2 Create a Coil Selecta desired coil in Toolbox In LD program window move the mouse to a desired position and click the left button Selecta desired coil F6 F7 Shft F3 Shft F4 Shft F5 Shft F6 of commands in Toolbox Coil is inserted in the last 31s column of LD program automatically 5 6 3 Create a Function Select in Toolbox In LD program window move the mouse to a desired position and click the left button Move the cursor to the position that you want to a function in Select a function F8 of commands in Toolbox of the menu 9 9 GMWIN Manual Function List Fun Groups Arithmetic Function Bit Function Comparision Functio String Function System Function Time Date Function Type Funcion Fun Comment Add value Selecta function group in Function List dialog box Then only appropriate functions appear in the list Select a desired function in Function List dialog box and click OK button Ifthe selected function is an Extensible Function then the following dialog box appears automatically Humber of Inputs Maximum number of variable OK inputs is 8 How many variable inputs do you want Bo Enter the desired input number You can enter a function between column 2 and column 30 in LD program 5 6 4 Create a Function Block y Select in Too
154. ndows 3 x for operating system the connections using Communication module and Network are not supported Select Connect option in Project Option menu 1 2 1 Method of Connection 1 Connection using RS 232C To use RS 232C connection connect the RS 232C cable with the serial port in PC and serial port in PLC From the Project Menu choose Option Choose Connect Option tab in the Option dialog box Option El ES Make Option Monitor Debug Option Auto Save Directory Set Connect Option Method of Connection C Modem Communication Port Con GLOFA Fret for PC C GLOFA Mnetfor PC Ethernet Depth of Connection Local f Remote 1 C Remote 2 cocer o 4 Select RS 232C in Method of Connection 4 Select Communication Port 4 Select Depth of Connection and click OK button Local Connection 4 Select Local in Depth of Connection and click OK button 4 Choose Connect from the Online Menu 1 4 Chapter 1 Introduction Remote Connection See GLOFA Fnet Mnet user s manual for more details Open Network Type List and select a network type Type a station number in Station No Box 4 Select slot number 4 Click OK button 4 Choose Connect from the Online Menu The specification of ieee cable connection S connection aaa Fl ll lll al al wl i GMWIN 1BM PC DCD CD Led UE AA du 1 5 GMWIN Manual 2 Connection using Modem The long distance connection using m
155. ne rung under 40 rows Label lt label name gt position error The label should be in front of the step NEXT 32 N SELECT Too many characters in label The maximum size of label is 16 characters Same label name is used more than twice The same label name is used more than twice It is wrong that same label name exist 9 Label given cannot be longer than 16 characters It is the case that the label name is too long The label name specified can t be allowed It causes when input label name is wrong you use a special character that is not permitted and name exceeds maximum size Invalid label name If you input string that cannot be used confirm it is the string that is declared as variable or the reserved character and input again 9 In case of jumping to the label it is impossible to jump between the main program and subroutine program with a reference of END Label cannot be in the parenthesis The label cannot be in the parenthesis 9 Label must be placed at start line of rung The label is in the rung A 3 GMWIN Manual Line 11 HERE YARS Line 13 Line 14 Move the label to the beginning row of rung A HERE Line 12 WARS Line 13 Line 14 Cannot find the label It is the case that the using label is not selected in JMP C N SCAL C N command 9 Label name has been defined in duplicate Label name cannot be declared twice in the program Label is not a
156. ng OK button Click OK button to close a dialog box after entering a designated value Cancel button Click Cancel button or double click a mouse on adjustment menu box to cancel the setup and close the dialog box 3 4 Files being created in GMWIN lf a user create a PLC execution file through building a project and editing a program the following files are created lt Project Name gt PRJ Project file created by user lt Project Name gt BNO PLC execution file In GM1 files are created as many as resource lt Project Name gt BNO lt Project Name gt BNi i is resource number lt Project Name gt MON Information file for Monitoring lt Project Name gt CRO_ It is created when user builds a PLC execution file It is the text file that expresses the global or direct variable used in each program Cross Reference 3 21 GMWIN Manual lt Program Name gt SRC Program file created by user lt Program Name gt ASV Program created by user is saved as this name periodically To create this file you must setup the time value by setting up the time cycle in Option Auto Save in the pull down menu This file is deleted automatically by closing a program window normally lt Program Name gt OP It is created as object file when user compiles a program in case of Program Block lt Program Name gt OB It is created as object file when user compiles a program in case of Function Block lt Program Name g
157. nge to debugging mode program monitoring starts automatically Change to debugging mode is available only in Stop mode In case of disconnected with PLC Select Online Connect in menu Select Debug Debug Start in menu 9 Or select Online Mode Change Debug in menu In case of connected with PLC Select Debug Debug Start in menu or select Online Mode Change Debug in menu 9 1 LD Debugging 9 1 1 Break Run 1 Select Break Run Move the cursor to the position that you want to assign as break point Select the Debug Add Remove Break Point Ctrl F5 in the pull down menu 9 1 GMWIN Manual Bac Womwinttsourcetfrobotl sre lt IMs TU MOTOR ADO MOVE EM END EN ENO le a 0 0 0 INI OUT ABC_ADD ODATAICO INT OUT DATAzi0 Select the Debug Go Ctrl F9 in menu As the above figure a red square is displayed on the lower end of the left side of the position of assigned a break point and a blue square is displayed on the upper part of the left side of the position of break is on Then PLC program stops at the line set as break point row 5 in above figure 2 Run to cursor position Move the cursor to the position that you want to assign as break point Select the Debug Go to Cursor Ctrl F2 in menu 9 1 2 Step Run You can use two types of Step over in LD debugging One is step over by Point unit the other one is step over by Line unit It can be chosen at the Monitor Debug
158. odem is only available by Remote Connection To be connected with PLC the computer link board GL L CUEA must be mounted on the computer 4 From the Project Menu choose Option Select Connect Option in Option Option Select Modem in Method of Connection 4 Select Dial Up Modem or Dedicate Modem 4 Setup Communication Port COM1 COM4 BPS and Phone No Click OK button 1 6 Chapter 1 Introduction 3 Connection using Communication Module To use Communication module connection GLOFA Fnet for PC or GLOFA Mnet for PC Fnet Fieldbus or Mnet Mini MAP module for PLC and boards for PC After installing communication board for PC in PC you must setup the address to be used by communication module for PC with changing config sys file in Windows folder of PC See GLOFA Fnet Mnet user s manual for detail comment Example device c windows emm386 exe noems x d000 d4000 From the Project Menu choose Option Select Connect Option in Option Option El ES Make Option Monitor Debug Option Auto Save Directory Set Connect Option Method of Connection C RS 2320 Cno Port Address 0x200 E GLOFA Fret for PC Memory Address 0c 000 C GLOFA Mnetfor PC CO Ethernet Depth of Connection Setting af Remote 1 Metwork Type Station Mo 0 GLOFA Fret mF Remote 2 Cancel Help 4 Select GLOFA Fnet for PC or GLOFA Mnet for PC in Method of Connection Setup Port A
159. odule etc A symbol that represents the action to be performed in an operation LD ST AND OR CAL JUMP EQ etc To compile a modified part only when you modify a part of one program element which finished compiling before You can reduce a compile time lt Total compile The system that has the complete configuration element for the PLC operating and can control the target system by the user program Suppose that the power is supplied on the left power line and this power is transferred to the right by the logic in LD language A number to designate which task is executed firstly when several tasks to execute wait 0 is a highest priority A code to execute PLC which is reserved in the program area of the PLC Program block Function and Function block On the other hand it is called program organization unit Function and Function block or Program block It is the executive element of GMWIN that includes a program that is needed in PLC that composes one PLC system a system configuration parameter and communication The executive condition of the action in SFC language A method to connect to CPU module that user tries to download monitor or debug a program through GLOFA Fnet Mnet with connecting GMWIN to RS 232c port of other CPU module Original meaning is resources but indicate one CPU module in GLOFA PLC It has the saving area of a program and data A common variable among several programs in Resource I
160. of Mnet Mini MAP communication module in PLC Select Online Mnet Information in the pull down menu Setup Slot No and Station No in GLOFA Mnet dialog box 7 18 I O Skip To setup the I O Skip Select Online 1 0 Skip in the pull down menu Base kip set E M M m M m E E E Setup a base number to skip the I O in Base Skip Set dialog box Setup a slot number in Base Skip Set dialog box and click OK button GMWIN Manual 7 19 Fault Mask To setup Fault Mask Select Online Fault Mask in the pull down Base 1 ault Mask Set ED Ml Iv Iv y E m m m E Setup the base number to mask in Base Fault Mask dialog box in menu Setup a slot number in Base Fault Mask dialog box and click OK button 7 20 Initializes Special Modules It allows you to initialize a special module in PLC To initialize a special module Select Online Initializes Special Modules in the pull down E pecial Module 9 In Special Module dialog box select the slot number and base which has a special module to initialize Click OK button Ifyou setup the wrong number the error message box appears on the screen as below GMWIN gt 7 18 Chapter 7 Online After selecting the number correctly click OK button Select the parameter to initialize in Initial Values Set dialog box AD Initial Value Set Then Array Initialization dialog box appears and the designated value
161. of an answer frame after transmitting required frame in the GM7 is set as Master e Default value is 500ms Timeout in Master e You have to set it under the consideration of the maximum Mode period of Master PLC transmission and receiving Tx Rx e f you set the less value than the maximum period of Master PLC transmission and receiving If you set the Master it become the subject in the communication system and it allows Slave reading and writing the data in the selected device PLC Set it to read the Status of GM 7 basic unit is designated as Slave Read Status of Do no select it except monitoring the status of slave It can reduce communication Slave PLC speed You can set it in the dedicated protocol only ASC II or RTU Mode is selectable Mode You can set it in the Modbus Protocol only Note 1 In Modbus do not set the broadcast station number with 0 It is became one factor of a wrong operation In GM7 Broadcast is not supported Note 2 In Modbus set 7Bits in the ASC II box and set 8 Bits in the RTU mode Note 3 In Modbus please set the Stop Bit as 1 when you set the Parity Bit and set 2 if you not set the Parity Bit Communication Channel 1 Private Communication 4 Set the Protocol as Dedicated Line and select Master or Slave If you selected Master Entry List button appears Protocol and Mode Timeout in Master Mode S00 ns Dedicated f Master M Read Status of Slave PLC List C
162. of monitoring the status of a variable s value It determines the time interval of collecting the PLC variable s value If you set the 5 second you cannot monitor the variable s value that changes within the 5 second y Click Tin in toolbox Enter the time interval to monitor in the Time Chart Period dialog box Select Toolbox Time F6 in menu 9 Input the time interval to monitor in the Time Chart Period dialog box 8 4 5 Forced Variable Output To output the desired variable s value forcibly y Force Variable Variable Hame OK g Cancel Help dl Force Click Fone in toolbox Or move the mouse on the variable to change a value and double click the left button of the mouse Enter the variable s value in the Value input text box Click OK button Call the Force Variable dialog box Enter the variable s value in the Value input text box 8 15 Chapter 8 Monitoring Press Enter key A value is changeable by program under the forced variable output 8 5 Monitor a Link Parameter It allows you to monitor the status of link parameters which is set by the parameter items in Project window To monitor the link parameter initially Select the Online Monitor Monitor on in menu Online Monitor Link Parameter Monitor in menu To monitor the link parameter in monitoring mode Call the Select Link Parameter dialog box by selecting Online Monitor Link Paramete
163. of the project window Task number for Single task in between 48 to 63 See also 4 4 7 task definition in GMWIN user guide Too many input or output parameters declared The maximum size of input output parameter in 32 The given FB instance name refers to a different FB It causes when instance name of the function block has been used with another instance name of the function block You should give different names to each function block Cannot add resources any more The maximum number of resource is 4 case of GM1 Cannot add any break point If you want to add a break point delete another one The maximum number of break point is 32 A 1 GMWIN Manual No more In Out variable can be added The maximum number of input output variable is 32 each No more programs can be added The maximum number of the program item is 180 in case of GM1 4 90 in case of GM5 Data size over error All byte using N byte It is the case that the memory size N byte which is used in the project exceeds M byte which is permitted in PLC You should change your PLC version to the upper PLC version or reduce the declared variable in 32 each Data type and Direct variable type are mismatched It is the case that X B W D L which indicate the memory size do not match Data type if you select user define of memory allocation 9 Data type of current result is not determined yet Use LD command It is the case that you make prog
164. ol Master Control Monitor FP Master Control Monitor Ala Jo Jo Jo T Master Control A ZOX o o Jo B 40 jo fo fo B lx fo fo fo Cancel Help 4 34 Chapter 4 Edit a Project 4 Fault Mask Set Click the Fault Mask set button in the Redundancy Parameter dialog box Fault Mask Set Fault Mask Set Mur Error Mask El In Fault Mask Set dialog box if you double click on the item to set or click Edit button Fault Mask Set dialog box appears which helps to set the input circuit for the appropriate item Fault Mask Set Error Wask alld m jo Cancel The Position of module to be continued in case of disorder When a machine is out of order you can select the position of module to be continued at any base setting status To delete the entry items select the item and click Delete button To copy the entry items select the item and click Copy button Then Copy Entry dialog box appears Enter the position to copy and click OK button Copy Entry Cancel Help 9 To edit the entry items select the item and click Edit button Then Fault Mask Set dialog box appears Enter the desired value and click OK button Fault Mask Set Error Wask alld E jo Cancel 4 35 GMWIN Manual 4 5 5 Set Communication Parameter In GM7 select Communication Method Protocol and Transmission Mode Double click on the Parameter Redundancy Parameter in Project window o
165. ompile a Function Program 9 If you finish creating a program make an execution file by selecting Compile Compile in menu The object file is created after compiling a program It has the extension of OF The execution code is changed according to a compiling on the project screen of PLC If you create an object file on GM1 it is applicable to GM1 only 10 10 Chapter 10 Library 5 Function Wizard 9 If a compiling is finished without an error and warning Wizard dialog box appears automatically to insert the compiled function into the library Fun FB Wizard dialog box shows the various information for function function block 9 If you select Cancel button it stops inserting the compiled function into the library and project If necessary you can create a User Defined Library for the compiled function by selecting Project Library Manager Similarly you can also insert the compiled function into a project by selecting Project Insert Library in menu 9 If a compiling is finished with Warning messages then the following message appears Function Function Block Compile a IAE 9 Click the Next button in Fun FB Wizard dialog box 10 11 GMWIN Manual Fun FB Wizard a In an EA g ASSEMBLY SHeirCr 9 In Library File Select enter a new created library name in New input text box 9 If you want to insert a new created library form the user defined library that exists already in the project click In Project bu
166. on Name UNNAMED E CONFIGURATION GLOBALS 8 variables declared Configuration Global Variable can be used commonly for all programs in several resources So it can be used only in GM1 that several resources can exist in Select Configuration Globals in the Project window list Select Project Edit Project Item or double click the Configuration Globals in the Project window Global Variables Ea Allocation Data Type Close SENSER VAR_GLOBAL Auto gt BOOL SvVITCH1 VYAR_GLOBAL 2 10 0 0 BOOL Delete Edit Help lt Description Mame SWITCH Data Type BOOL Variable Kind VAR_GLOBAL Allocation l0 0 0 Initial alue Default Comments Description item in the above dialog box shows the content of the selected global variable in detail 4 5 GMWIN Manual 1 Add a Configuration Global variable Click the Add button in the above dialog box Enter the Variable name in the Add Edit Global Variables text box Add Edit Global Variables a Variable name Cancel Variable Kind VAR_GLOBAL Help Memory Allocation Data Type f Elementary Auto O FE Instance Array iy TOE B00L Initial Value Imi Atan O Select Variable type in the Variable Kind list box Select Data Type for Variable at list box or option radio button Select Memory Allocation for Variable by option radio button in Memory Allocation 9 If
167. on block the function or function block is automatically included in the block 5 16 Chapter 5 Edit a Program 1 Cut After selecting a block Select Edit Copy Ctrl X 2 Copy After selecting a block Select Edit Copy Ctrl C Ba 3 Paste After copying or cutting a block In LD program window move the cursor to the position that you want to paste on Select Edit Paste Ctrl V eh 4 Delete After selecting a block Select Edit delete Delete ij 5 6 12 Find This command allows you to find a variable name position of contact and etc which are used in the program Call Find dialog box by selecting Edit Find L Find JUMP CONDITION 9 17 GMWIN Manual In Text to find edit box of Find dialog box enter the string that you want to find Select the following options to find and click OK button 1 Contact Coil to find Select the contact or coil that you want to find 2 Select Objects to find Text only Find only the content o character Contact Coil only Find only LD program elements like contact coil or etc Both text and contact Coil Find a content of character and LD program elements like contact coil or etc simultaneously 3 Origin Select the range where find command is executed From cursor Find from current cursor position Entire scope Find through the whole program 4 Direction Select the direction that find command is executed Down Find command i
168. on variable User cannot delete modify SFC transition variable because it is inserted in GMWIN automatically Impossible to modify SFC transition variable User cannot delete modify SFC transition variable because it tis inserted in GMWIN automatically A 32 Appendix A GMWIN Error Code Tn has no name 2 12 1 You should input the transition name and make operating condition program Or Designate BOOL type variable in the transition Input it by selecting toolbox zoom in menu or double clink at the position of transition JL A T2 START_OK VAR_IN_OUT variables cannot be placed the first item of INPUT INOUT variable list VAR_IN_OUT variable cannot be at the beginning of the input output variable of function block because of the power line on LD 9 A constant cannot be given to VAR_IN_OUT parameter VAR_IN_OUT variable cannot have integer value because its address is transferred to parameter Special characters BOOL type operator is needed before C or N specifier The object of the BOOL data type must be used in the variable that has suffix of C N ex CALC CALN JMPC JMPN 9 Cannot Store to directly represented or assigned input variables l You cannot use command that substitute the value in the input direct variable area 0 Transition name Output transition condition to variable TRANS You have to output the condition to TRANS variable in transition program Ex LD 10 0 0 ST
169. ow move the mouse to the row that you want to delete and move the cursor with clicking a left button Select Edit Delete Line In LD program window move the cursor to the row that you wish to delete Select Edit Delete Line Ctrl D 5 6 19 Delete Cell Delete the cell that cursor is on If the current position of the cursor is empty space this function deletes the empty cell by one column Select in toolbox In LD program window move the mouse to the cell you want to delete and move the cursor with clicking a left button Select Edit Delete Cell 5 22 Chapter 5 Edit a Program In LD program window move a cursor to the cell to be deleted Select Edit Delete Cell Delete 5 6 20 Insert Line y Select in toolbox In LD program window move the mouse to the position that you want to insert the row and move the dursor with clicking a left button Select Edit Insert Line Ctrl N In LD program window move the mouse to the position that you want to enter the row Select Edit Insert Line Ctrl N 5 6 21 Insert Cell Insert an empty cell in the position where a cursor is on Select in toolbox In LD program window move the mouse to the position where you want to insert a cell and clicking a left button Select Edit Insert Cell Ctrl 1 In LD program window move the cursor to the position where you want to insert the cell Select Edit Insert Cell Ctrl
170. p Into Step Out Pause Run to Cursor Add Remove BreakPoint Breakpoint List Condition Task Enabel
171. put object of proper data type to the input parameter on inputting function function block input parameter Input of F FB is not assigned You do not declare input value Variable integer to input of the function function block You should connet power line integer variable etc to input of the function function block T15 200 VARI A 25 GMWIN Manual Do you wish to delete the Fun FBs along the way It is the case that function function block is in deleted line If you want to delete function function block also then push YES button otherwise push NO button If you want to cancel cell deletion then push CANCEL button Cannot use directly represented variable expression as an operand In F FB You cannot use direct variable expression in function function block 9 Function function block should have at least one input amp output parameter each Function function block has to have over one variable in input output You can add input output variable in input output variable dialog box Function function block cannot call itself It is the case that function function block calls itself so function function block cannot call itself because it makes infinite loop or computer to be unstable 9 Function function block lt F FB name gt you want to include is already loaded from library file named lt library filename gt Do you want to replace it with one in lt library filename gt It
172. py by entering the position of the base and clicking OK button Copy Entry cv from 6 to Cancel Help Position To edit entry items select the items and click Edit button Then Redundancy dialog box appears Select the item you want to edit and click OK button Redundancy Redundancy Set OK C Locals C Local B Cancel ra eee o Hep C Tranfer Single Input Output 1 0 Local A and Local B are operated by the same program simultaneously and the data is synchronized by transferring inputted data from Local A to Local B When system stops operating by Local A disorder input output of Local A stops operating and all connected outputs get OFF Single I O can be installed only in Local A And only I O modules of digital contacts can be installed for Single I O Single I O is made by setting each base as Single input output in the setting part And this system can be used for the part not to require backup to save cost for redundancy Redundancy Input Output Local A and Local B are operated by the same program simultaneously When the system needs the data synchronization during the operating they synchronize data each other If a system stops operating by disorder of master CPU the stand by CPU starts operating immediately and continues its operating At this time the input outputs connected to the master CPU in bases set as redundancy input output get OFF In this system both of master CPU and
173. r Monitor in menu Select Link Parameter As mE Cancel a Es a Select HS Link Parameter to monitor in the Select Link Parameter dialog box and click OK button 2 HS Link Parameter Monitor Run_Link 0 Link _Trouble 0 From rea To rea Size Hode 8 16 Chapter 9 Debugging Chapter 9 Debugging The Debugging detects an error and removes it so that the PLC program created by user may be operated normally the ways finding a program error are following as 1 Step Run Detecting an error with running the program step by step 2 Break Run Detecting an error after stopping the program on a specified step with break 3 Data Break Run Detecting an error with break on the access conditions of the specified scan account 4 Bread Run with Specifying Scan Account Detecting an error after making the program in execution as much as specified scan account In Step Run mode it is impossible to access the program with task but in Break Run mode you can access the task program Maximum number of break point is 32 points for Program Break and only 1 point for Data Break If the program for debugging is opened Step Run starts from the first line of its program If not it starts from the first line of the first scan program assigned in project Step run ends at the last line of the program Break point is displayed in red color in each program and in blue for the execution of break to the point If you cha
174. r more HDD 30M bytes or more 14 2 Create a Program Creating a Program is same as the program in GMWIN According to the type of program the number of program is limited as below Scan Program Max 256 Programs Task Program Single Max 32 Programs Interval Max 16 Programs Interrupt Max 16 Programs 14 3 Available Program for Simulation Program All programs defined in a Project of GMWIN Standard Function Function Block Only Function Function Block of A D and D A modules are available for simulation User Defined Function Function Block Not available for Function Function Block having special functions If the compiled code for Simulator does not exist You must compile the program again 14 4 Start Simulation To start Simulation Select Project Start Simulation in the pull down menu When you select Start Simulation GMWIN executes Compile Link Connect Download Stop Monitor Start Functions simultaneously Run Mode in Simulation Impossible to edit Monitor Mode Debug Mode Keeps the current data of the previous mode Timer Run Mode PC Clock base Debug Accumulated as much as the running time 14 5 Build an I O module 9 if I O variables or Direct variables are used in editing a Program they are displayed in the appropriate base and slot when starting Simulation Data Type 32Points 64Points O X 16 31 32 63 14 1 GMWIN Manual O Modules are set a
175. r move a cursor to the Parameter Redundancy Parameter and select Project Edit Project Properties in Menu Communicaton Parameter Communication Method Station Mo co Baud Rate 119200 Data Bit E Parity Bit None Stop Bit Communication Channel te RSZ32C Null Modern or RS422 485 f RS232C Modem Dedicated Line Init Command C R524320 Dial Up Modern Protocol and Mode Timeoutin Waster Mode ms Dedicated C Master f Slave Modbus C Master a Transmission Mode C Slave User Defined C Master f Slave canes o 4 36 Chapter 4 Edit a Project Set the Communication Method as follows Item Contents Self Station No 0 31 are selectable Note 1 Baud Rate Data Bit You can set 7 or 8 Bits Note 2 Parity Bit You can set 1 or 2 Bit s _ Note 3 e RS232C Null Modem or RS422 485 Select it to communicate with the internal function of GM7 s basic unit or Cnet I F module G7L CUEC e RS232C Dedicated Line On communication with Cnet I F module G7L CUEB if you use a Dedicated Line select this channel e RS232C Dial Up Modem On communication with Cnet I F module G7L CUEB if you use the Dial Up Modem select this channel Note A Communication of RS232C Dedicated Modem or RS232C Dial Up Modem is available at the Cnet I F module G7L CUEB supports RS232C only and no available at the Cnet I F module G7L CUEC supports RS422 485 e It is a waiting time
176. r the end of the program To setup a block Select in toolbox In SFC program window move the mouse to the start point of the block and drag it to the last row of the range to select with clicking the left button In SFC program window move the cursor to the start point of the block With pressing Shift key move the cursor with arrow key to the last row of the range to select 1 Cut After selecting a block Select Edit Cut Ctrl X EN 2 Copy After selecting a block Select Edit Copy Ctrl C Ba 3 Paste After copying or cutting In SFC program window move the cursor to the position that you want to paste Select Edit Paste Ctrl V E 4 Delete After selecting a block Select Edit Delete Delete aj 5 7 13 Find Select Edit Find L 5 47 GMWIN Manual In Name edit box of Find dialog box enter the string that you want to find Select the following option and click OK button 1 Kind Select the type of string that you want to find 2 Origin Select the range where Find function is executed From cursor Find from current cursor position Entire scope Find through the whole range 3 Direction Select the direction that Find function is executed Forward Find function is executed forward Backward Find function is executed backward 5 7 14 Replace Select edit Replacet llth In Name edit box of Replace dialog box enter the character that you want to fi
177. r transition in the branch that you want to delete Select Edit Delete 9 42 Chapter 5 Edit a Program kA c AgmwimnkisourceArobot3_ src 3 Delete a Label y Select in toolbox Move the mouse to the label that you want to delete and click a left button Move the cursor to the label that you want to delete Select Edit Delete 4 Delete a Jump y Select 9 in toolbox Move the mouse to the Jump that you want to delete and click a left button Move the cursor to the Jump that you want to delete with key Select Edit Delete 5 Delete a Action y Select in toolbox Move the mouse to the Action that you want to delete and click a left button Move the cursor to the Action that you want to delete with key Select Edit Delete Although you delete an action in SFC program an adtion program is not deleted If you want to delete the program you must delete it in action list select Program Action List 9 43 GMWIN Manual 5 7 9 Zoom In Action Transition This Function is used for editing an action or transition program A variable used in action or transition is commonly shared in other actions or transitions Select in toolbox 4 Move the mouse to an action or transition and call a Select language dialog box by clicking a left button At this time if it is declared as a variable you cannot zoom in Selecting a language type is omitted for
178. ram which has the integer or the direct variable as the object without using LD command after CAL command in IL USE LD command because you cannot know the data type of the object after CAL command Cannot progress compiling because data type is not determined Use the variable that has the data type or start the program from LD Wrong data type is assigned It is the case that the data type of the object and operator do not match when the object is given as variable Abnormal Data RAM Reboot the PLC Library file lt library file name gt not found It is the case that the library file cannot be found Confirm Cannot open lt file name gt of the library file Confirm the existence of the selected library file on the option in the declared directory Can not open lt file name gt of the library file Confirm the existence of the selected library file on the option in the declared directory Library file error Library file is damaged Copy backup library file to library directory again Can t find object in that library file Confirm the existence of the object file that is included in library on setting directory Cannot open library file S Confirm the existence of the selected library file on the option in the declared directory 9 This function function block is not in the library It is the case that the used function function block is not in the library which is inserted in the present project Inse
179. rce program 9 If you select the Compile All in the Compile Type Select GMWIN compiles again from the first line regardless editing a source program If you select the Part Compile in the Compile Type Select GMWIN compiles the updated part You can select making upload program for the output file in Output File Select You can select the size and retain of M in the M Area Size Set 9 2 You can select M area to be cleared at the turning point of STOP Mode in the M Area clearing cet at Stop 11 10 Chapter 12 Upload Chapter 12 Upload It saves a compressed project file and source file to RAM program area or flash memory of PLC and uploads a program from PLC 12 1 Make Upload File You can make an upload file by selecting Make Option menu An upload file includes project program function lock and user define function used in program Select the Project Option in menu Then Option dialog box appears Check the Up load Program in Make Option dialog box and click OK button Option Make Option Monitor Debug Option Auto Save Directory Set Connect Option Compile Type Select C PartCompile T Retain Output File Select If Lip load Program Content hi Area Size Set Soh Area Size 2 KByte Setting retain of M Area Include Comme Except Commer hi Area clearing set at Stop tM Area clearing set at Stop Ho ful o from conc Heo 12 1 GMWIN Man
180. res Select the Range for printing in IL Print Option dialog box Print Whole file Print the whole program Print from Cursor to End Print from a cursor to the end Print selected lines Print from start line to end line To print variables select Include Variables check box Setup the margin to print in Margin edit box 5 60 Chapter 6 Program Compile Chapter 6 Program Compile To create an execution file 1 Compile the Program that belongs to a project Compile the program that defines as a program instance in a project At this time the compiler verifies the erroe in a program and if error does not exist it creates an object an object file Object file name Program file name OP3 for GM3 2 Create an execution file It links object files each other which are created by compiler At this time a linker verifies the error on Global Variable Function Function block and creates one execution file Execution file name Project file name BNO Note In case of GM1 it is created as many as resource number Project file name BN1 Project file name BN2 6 1 Make It creates an execution file after compiling the only program which needs compiling in the project Select Compile Make in the pull down menu lf an error occurs the error message is displayed in Make dialog box and execution file is not created Click OK button in Make dialog box 6 2 Compile It compiles only the curr
181. ress list box and click OK button 11 1 5 Connection with Ethernet Select Ethernet GMWIN Manual 11 1 6 Computer Link Information po tem Standard Serial Communication a e eared module then a user can control the communication protocol by F B of user program It supports the multi drop 1 on 1 type with Exclusive Protocol Exclusive Protocol of LGIS Communication Protocol It supports Remote PLC control with GMWIN Protocol GMWIN Uses by GMWIN Protocol of GLOFA PLC tot Download with Frame Editor Set the User Defined Protocol RS232 and RS422 independently Data Type Download after setting in the Editor Set the RS232C and RS422 Independently Speed BPS 300 600 1200 2400 4800 9600 19200 38400 1 1 1 N N M configuration available N M lt 32 Transmission Range RS 232C Maximum 15M Extension by Modem is available Diagnosis Chapter 11 Option 11 2 Set the directory of GMWIN You can set 4 kinds default directories and use it in GMWIN 1 Standard Library Directory Libraries for GMWIN are located in this directory and User Defined Libraries also do 2 Source File Directory In Source File Directory GMWIN saves source program files of program function function block and etc 3 Output File Directory Object files are saved in this directory which are created when source file is compiled 4 Temporary File Directory GMWIN saves temporary file in this directory during the execution Select t
182. ring Select an information of the variable to monitor orce F4 Enter the specified value for variable forcibly elect F5 Select a variable to monitor Show the variable to be monitored with hexadecimal or decimal Display Form F6 format selectively Array Number select F7 Specify array range of variable for the type of Array In Time Chart monitoring mode Description tart Stop F2 Select start stop mode for monitoring Select an information of the variable to monitor orce F4 Enter the specified value for variable forcibly elect F5 Select a variable to monitor ime F6 Select the period to monitor In case of monitoring I O Description Select Base F2 Select a base board to monitor tart Stop F3 Select start stop mode for monitoring 3 16 Chapter 3 Getting Started 5 Compile Compile a program Build a PLC execution file after compiling an active program Make in a project Build All Make a PLC execution file after compiling all programs in a project Show an error message after compiling Show used global or direct variables 6 Online Items Description Connect Write Run Monitor On Connect GMWIN to PLC write a program created by user change Ctrl R the operation mode and monitor it Connect Disconnect Read Write Monitor On Off Start monitoring Stop monitoring Variable Monitor Monitor variables Monitor VO Monitor Monitor I O s Time Chart Monitor Monitor Boolean variables in time char
183. rinter setup Decrease blank and input again Too large margin You should input the number that is below 30 in left blank Invalid direct address You should modify direct variable name See Also 3 3 1 variable expression in command manual 9 Wrong directly represented variable expression found It is the case that it is wrong that direct variable expression starting with l Q M 9 Wrong directly assigned memory allocation is found It is the cases that direct variable allocation in case that you select user definition of memory allocation See also 3 3 1 variable expression in command manual Invalid direct variable range Two variable must be same area same base same slot same type Wrong example Correct example 10 1 0 10 2 10 10 1 0 10 1 10 Different slot number MW10 MB12 MW10 MB12 Different type Not found It causes when there is no anymore object string or command to be found Contacts cannot be placed in the first column It causes when you insert the cell at the first column You cannot in sert cell at the first column Wrong initial value is assigned It is case that the initial value designation is wrong Initial value is not correctly given It is the case that initial value is wrong See also 3 1 1 Identifier command manual A 20 Appendix A GMWIN Error Code Initial value is out of range It is the case that initial value is out of range which data type allow
184. rt a related library file and compile make again 0 F FB is not registered in library The function or the function block that is using now is not the basic library or the function function block which is inserted in the project It happen when the inserted library is deleted on the project after editing LD Insert the function which is using now or the library which has function block A 2 Appendix A GMWIN Error Code Cannot find function block lt function block name from library files It is not inserted that the library file that has function block that is assigned in library insert list In certain case some CPU has not this function block so please attend using function block This is Rung comment area lt causes when insert the command to the area of rung comment Command cannot be inserted in the rung comment area 9 This is Rung Comment area Only line insertion is allowed here It causes when insert the command in rung comment area It is impossible to insert and delete cells possible to insert and delete row If you want to delete the rung comment row delete comment row Rung comment cannot be longer than 170characters The maximum size of the rung comment is 170 characters This is Rung Comment area To delete a rung comment by menu you must delete the whole line You have to delete all of row to delete the rung comment The rung is too long The size of one rung is over 40 rows You should make o
185. rupt execution Files to assemble several functions or function blocks as an executive code form A manager to execute the function of addition deletion of a function or a function blocks in the Library A method to connect to RS 232C port in CPU module when a user tries to download monitor or debug a program lt gt Remote connect A variable to be effective only in one program element It is declared in each program element and used in the program of the declared program element It is impossible to read write in the other program element lt Global variable A work to compile program blocks in a project and to make One executive file which PLC can execute by linking each object files Refer to the GLOFA Mnet Appendix B GMWIN Glossary Modem Module 0 Operator P Partial compile PLC System Power Flow Priority Program Program organization unit Project Q Qualifier R Remote connect Resource Resource Global variable Restart Mode A device that you can send receive a data at a long distance between PC installed GMWIN and GLOFA PLC mounted computer link module by using a PSTN In addition this device alter a digital signal lt a analog signal to a smoothly communication between long distance computers A component having an independent function Adding it up onto baseboard uses it CPU module power module input output module special function module communication m
186. s C Between Entries Cancel Help A Copy Between Links Select Between Links option to copy a selected list to other link Select the Link number to paste in Target option radio button Example To copy the entry list 0 1 2 3 in High Speed Link 1 to 0 1 2 3 in High Speed Link 2 1 Select the entry list 0 1 2 in the High Speed Link 1 High Speed Link 1 Link Set Network Type Slot O GLOFA Fnet Self Station No O From rea To Area 0 Locall Send q1 Locall Recered 2 Remotel0 Aecenve C 100rne Cii 00m D 200rme AOS w 0 0 0 2 Click Copy button zow 0 1 0 Size 4 B 4 2 Delete Copy Edit 3 Choose the Between Links in Link Parameter Copy dialog box 4 Select Link 2 in Target box and click OK button 4 26 Chapter 4 Edit a Project Link Parameter Copy High speed Link 2 0 Locall Send C 100ms 2M WO 4 1 Local Recenvel L 100me AL WO 3 0 4 2 Remote 0 Aeceves D 200me 2IWO 0 0 420UWO10 2 4 27 GMWIN Manual B Copy Between Entries Select the Between Entries option to copy selected entries to other link list in the same link Enter the entry Item number to paste in Target option radio button selected entry ltems are copied from selected number Example To copy entry Items 0 1 2 in High Speed Link 1 to 10 11 12 in High Speed Link 1 1 Click Copy button after selecting entry Items 0 1 2 in High Speed Link 1
187. s Program Properties Program Mame assembly fb src UR Language LO Cancel Help dd Program Kind C Program Block Function Block Function Function Function Block Name ASSEMBLY_FB Retr Wata Whe IMT F Comments r FOR ASSEMBLY LINE Enter the Name of Function Block Program with sre to create in the column of Program Name When you create Function Block select the type of language to use in Language option button Select Function Block in Program Kind option button In Function Function Block Name input text box enter the function block name to be used in another program Do not designate the type of variable to be reurn Click OK button and the following message appears 9090809 Editing Function Function Block 2 You d better adding input output variables before editing a F FB program Do you want to add now 10 15 GMWIN Manual Ifyou click Yes button In Out Variables dialog box appears In Out Variables VAR_INIMWAR IN OUT VAR _OUT E Add YAR INPUT Add VAR IN OUT Add YAR OUTPUT Edit Delete denotes VARIN OUT 4 0 Ifyou click No button edit dialog box for the selected language appears 2 Create Input Output Variable Creating method is same as the creating of function However in function block there must be more than one input output variable instead of variable to return In Out Variables VAR _INMVA
188. s 16 points as default If input and output contacts are used together draw a output module 16 32 64 I O modules are all applicable for Input or Output module A D module Square ON GREEN OFF BLACK D A module Circle ON RED OFF BLACK Base Supported as type of combination box CPU Module Input Module 16 32 64 Power Module Empty Slot Output Module 16 32 64 E LG I GLOFA PLC Simulator a ae a 7 lee A A a oe A D Module A a cs 3 A A a oe A A a oe A a gt ae A A T ae a a En oe A A gt oe A A E So a a a oe a a a ae a a a Base Select Trash can A D D A Icon Output 16 32 64Points Icon 14 6 Add Remove Module To add or remove a module the PLC mode must be Stop mode 9 Add Drag and drop the icon which you want to add on the appropriate slot Remove Drag the appropriate slot and throw it to the trash can ww 14 7 Simulation of I O Module To turn the Input output contacts ON OFF Click the appropriate contact on the I O module directly 14 8 Power Simulation This function is only available in Run mode When Simulator begins to start the power gets On 9 If you click the red lamp on the power module the power gets Off and gets On in a few moment This function is almost same as the power turns to be Off in a second lf there is a program defined as Hot Restart the program is executed 14 2 Chapter 14 Simulator Function 14 9 A D D A Simulation 14 9 1 Shape
189. s executed downward Up Find command is executed upward 5 Sensitivity Select an accordance degree in finding a content of character Match whole word only Find only an exactly corresponding word Regular expression Find also a partially corresponding word Chapter 5 Edit a Program 5 6 13 Replace Call replace dialog box by selecting sore eth Replace Text to find Mew Text JUMP_CONDITION STOF Contact ail to find Mew Contactic oil hi 17 Objects to Find Replace Origin fe Text Only f From cursor C Contacticoil only Entire scope C Both text and contacticall Word amp Watch whole word Direction iz Forward C Backward C Watch partial word Cancel Replace All Help Enter the character that you want to change in Text to find edit box Select the element of LD program to change in Contact coil list box LD Program HP gt SN ms a INGO P M gt gt rerum DEC SCAL gt Le FUN FB FuwFB 10 Enter the character that you want to replace in New text edit box Select the element of LD program to replace in New Contact Coil list box Select the options in the same way of find command and click OK button Replace it Would you like to replace it Cancel Help Click OK button 9 19 GMWIN Manual Before After 5 6 14 Find Replace Again If you executed Find Replace command before execute that comm
190. set O T 1999 12 12 21 37 44 000 31 hiore Help 7 9 GMWIN Manual If you want to see detail information about the history of occurred error select the item to see the detail information in list box and click Detail button 7 10 5 Mode Change History This shows the history that has changed PLC mode 9 Select Online PLC Information Mode Change History in the pull down menu Mode Change History 7 10 Chapter 7 Online 7 10 6 1 0 Module Fault Information This shows information about the fault of input output contacts in redundant system Select Online PLC Information l O Module Fault Info in the pull down menu Redundant lO Error Select Base INnputOutput ray Co C3 C4 C5 CR 07 f Redundancy Error A side Error cr yg e 10 f 41 f 112 13 f 14 715 Co B side Error D E side Errar If you want to erase the detail information about error click Erase button When PLC is connected as a master you can erase a redundancy error and C side error And when PLC is connected to each CPU you can erase A side terror and B side error 7 11 GMWIN Manual 7 11 1 0 Information This shows the configuration of I O modules in PLC system Select Online 1 0 information in the pull down menu Base 00 Palnformation Select the base number in Base Select list box If you select the slot number in I O Configuration dialog box you can read the information of special module Base
191. set Date Time A CC a cont Heo Setup Date and Time in Date Time Set dialog box 1 1 GMWIN Manual 7 10 2 Error Warning Information When the following error occurs you can confirm the detail information about an error In case that I O parameters are different from practically mounted modules In case that module configurations are changed in Run mode In case that the fuse of module is blown In case that GMWIN cannot normally read or write program or parameter in I O module In case that normal interface is impossible in special or communication module In case that the position of error is incorrect or there is a trouble in peripheral device In case that there is a collision between tasks 100560 Select Online PLC Information Error warning Information Error Warning Information Module Change Error 4 Click More button More Information Module Change Error Base U Slot 7 8 Chapter 7 Online 7 10 3 AC Fail History AC Fail History shows the history of AC Fail that has occurred in PLC Select Online PLC Information AC History in the pull down menu AC Fail History AC Fail Count E 1 OT 1 999 12 12 241 36 3 000 Reset E 20741 499 1 2 12 21 36 1 000 7 10 4 Error History Error history shows the history of errors that has occurred in PLC Select Online PLC Information Error History in the pull down menu Error History Pires qn 2 AE Re
192. ssigned There is no the label name in the jump and subroutine call command START A A gt gt gt You should label the label name to the jump or the subroutine call command START THERE gt Invalid resource name You should input correct resource name for the identifier See also 3 1 1 Identifier command manual A 4 Appendix A GMWIN Error Code Resource name is duplicated It is the case that resource name is duplicated You should give a different name Impossible to step over at the last step You should declare a break point to the position you want and debug Nothing can be inserted on the last column It causes when you insert cells right beside the last column a right power line You cannot insert cells at the left to the right power line Can t proceed the stepover at the last row of the program It is impossible to proceed with step over at the last row of the program You can go to the next break point by using debug run or step out Step over cannot be done at the last line rung of LD program It is the case of trying to step over at the end of the program block or function function block Step over cannot be continued therefore try to debug run or debug run after declaration of a break point to the position you want Abnormal Memory Module After confirmation of fitting with memory module reboot the PLC If you have an error again replace the memory module Memory error
193. stand by CPU control the input output modules For input data the data can be adapted as the input data after comparing the data among Master Stand by and the transferred value Redundancy input output is set by setting up each base as Redundancy input output in the setting part And both bases of Local A and Local B must be set as the same number And you set the transfer I O location for the input comparison and the output feedback Transfer input output Local A and Local B are operated by the same program simultaneously When the system needs the data synchronization during the operating they synchronize data each other lf the master CPU is out of order the system stops and the stand by CPU starts operating immediately and continues its operating At this time the input outputs of each base set as transfer I O are continuously executed without any change of the status This system can call as a redundancy CPU because an input output is not for the redundant mechanism This system is set by setting up as Transfer I O in the parameter setting part The stand by CPU reads the information in the input output module periodically and checks any fault of the connection all the time 4 30 Chapter 4 Edit a Project 2 Input Circuit Set The below dialog box is for setting triple redundancy input Click Circuit Set button in the Redundancy Parameter dialog box Input Circuit set If you double click the item in the Input C
194. t OF It is created as object file when user compiles a program in case of Function Example OP3 program block for GM3 OF4 Function for GM4 3 5 Open a File To open a Project 4 Select Project Open in the pull down menu To open a Program 4 Select Program Open in the pull down menu Open Look in 3 Source ka File name Jengine_line_of_car Files of type Project Files FAJ Cancel Look in the folder to open and select the file to open List box displays only files having an extension name selected in Files of type list box Project File PRJ Program File SRC Click Open button 3 22 Chapter 3 Getting Started 3 6 Save a File 3 6 1 Save a New File Save a new file that is not ever saved To save a Project 4 Select Project Save in the pull down menu To save a Program Select Program Save in the pull down menu Select a drive and folder to save the file 4 Enter a file name in the File Name text box Input a PRJ extension for Project File and a SRC extension for Program File 4 Click Save button 3 6 2 Save a File on Working To save a project 4 Select Project Save in the pull down menu To save a program Select Program Save in the pull down menu 3 6 3 Save as another name You can save a project or program as another file name To save a Project 4 Select Project Save as in the pull down menu To save a Program 4 Select Program
195. t format Link Parameter Monitor Monitor High speed link parameter Mode Change Change PLC operation mode Data Clear Clear PLC data as 0 Reset Reset CPU of PLC Show the type of the flash memory in CPU PENO Write data on a flash memory Link Enable Enable or disable the execution of the high speed link PLC Info VO Info VO Forcing Link Info Comm Inf Mnet Parameter Mnet Info VO Skip Fault Mask Initialize Special Modules Start Online Edit Write for Online Edit Cancel Online Edit Data Share GMWIN Manual 7 Debug Debug Start Stop 0 Ctrl F9 tep Over Ctrl F8 tep Into Step Out ause un to Cursor Ctrl F2 Add Remove Breakpoint Ctrl F5 reakpoint List Condition ask Enable 8 Window Items ascade ile Horizontally ile Vertically rrange Icons lose All Start stop debugging Toggled Start or continue the program execution Step over the next statement Step into the next statement Step out of the current function or function block Pause the program execution Run to cursor position Insert or remove a breakpoint Show breakpoints and break conditions Enable or disable the task execution Chapter 3 Getting Started 3 2 2 The Tool Bar ole aleje El o ajala LIL Bal ES el Tool Bar buttons represent single action functions that you can perform by simply clicking on the appropriate button Ej W lwo rm Fa o a co rines apem 0 3 19 GMWIN Manual 3 2 3 The Tool
196. t includes the symbolic variable that is declared as a direct variable and resource global It has one memory area physically A direct variable can be used in each program and you can use a symbolic variable after you declare variable kinds of symbolic variable having s same name as VAR __EXTERNAL when making each program block An operating start mode for the user s program at the restart of PLC system There are three restart modes which are cold warm and hot B 3 GMWIN Manual Rung S Scan Scan Break Scan Watchdog Time Step Step In Step Out Step Over T Task Task Program Total compile Transition U Upload Program User defined memory allocation V Variable Break W Warm Restart Program element that does not have a line to connect to up down in LD language Total time to execute input refresh user program execution and output refresh in Run mode The debug method to stop PLC after the designated scan amount is execute The longest scan time to be permitted by PLC If scan time is longer than designate one scan watchdog error is occurred and PLC stops the execution The control element of the procedure in SFC language Step In is execute in where you want to call for debugging the function function block or action transition To return to the calling program element from function function block or action transition when the function function block or action transition
197. ted link 4 21 GMWIN Manual High Speed Link Link Set Network Type GLOFA Fret Slot O Self Station No O Class From rea To Area Size 0 Local Send EN 00m d a 1 Local Recenvel L 100me ZL WO 3 0 4 2 Remote 0 Aeceves D 200me 2IW0 0 0 AMA 2 Delete Copy Edit The High Speed Link dialog box allows you to setup the information of Link Setup and each registered List You can use the Delete Edit Copy and etc button or Del key to delete an item and CtrI V Ctrl C key to Copy Paste Reference Method of multi selection has two ways one is selection in order the other is selection of scattered items in list 1 How to select multi items in order J Click the first registered item you wanted in the list Drag a mouse to the final item in the desired list with pressing the left button of it Move a cursor to registered list with Tab key and move the cursor to the first registered item in the desired list with Arrow key Move the cursor to the final item in the desired list with Arrow key by pressing Shift key 2 How to make a multi selection for scattered items J By pressing Ctrl key click mouse button on each registered item Move a cursor to the registered list with Tab key and move cursor to the first registered item in the desired list with Arrow key 4 Press the Shift F8 key and cursor start to blink Move cursor to the
198. ter 5 Edit a Program 1 Add a Variable Open Add Edit Variables dialog box by clicking Add button Add Edit Yanables Variable Mame LIMIT_SWITCH3 OK Variable Kind Cancel Variable Kind Help dll Data Type Memory Allocation f Elementary BOOL C FB Instance CTO T Array 0 Vr Boo Initial Value Mia f Auto C Assign ATi Comments gt gt gt Enter the variable name in Variable Name box Maximum size for Variable name is 16 English characters However in case of FB Instance type the size limited to 8 English characters Select Variable Kind in Variable Kind list box Select one type of Data Type option button Elementary Data Type Function Block Instance and its type in that list box Select one of Memory Allocation option button Auto and Assign AT and in case of selecting Assign enter the exact position in the text box 9 5 GMWIN Manual Auto When you compile a program declared variable is automatically assigned to data area type User Define User assigns the declared variable to 1 Q M area Incase of User Define designation of Q M area to input is as follows LL Prefix Comments A ee Ex QX3 1 4 or Q3 1 4 4th bit of slot 1 on base 3 IW2 4 2 2nd word of slot 4 on base 2 MD48 48th double words of internal memory start from 0 MW10 3 3 bit of 10 word in the internal me
199. ter editing a desired item 9 3 GMWIN Manual 5 5 Edit a Variable You can edit Local Variable it appropriates to the activate program window Select Program Local Variables Local Yarables Close ABC VAR lt Auto gt SINT ABC ADD VAR lt Auto gt SINT LIMIT SWITCH VAR lt Auto gt BOOL LIMIT SWITCH3 VAR lt Auto gt BOOL MOTORI VAR lt Auto gt BOOL Ee ede SWITCH VAR lt Auto gt BOOL Browse Global Variables Description Mame ABC Variable Kind VAR Data Type SINT Allocation Auto Initial Value Detfault Comments Edit Help ERE Browse iones Click Close button after adding deleting and editing each variable In the list box of Local Variables you can see another variables besides local variables that user enter In case of function function block you can see I O variable and output variable name to return and in case of SFC you can see a variable TRANS it contained executive conditions But it is impossible to edit and delete these variables Examples of these variables are as below RETVAL lt Return variable gt INT IN1 VAR_INPUT BOOL IN2 VAR_INPUT INT OUT1 VAR_OUTPUT BOOL TRANS lt SFC transition gt BOOL output variable name to be returned in function input variable in function function block input variable in function function block output variable in function SFC execution condition variable 5 4 Chap
200. the first time y 9 Select gt in toolbox and move the mouse to the transition T1 where branch starts and click a left button You can see a mark S ka c igmwMin source robot sre Transition T2 T3 T4 are active in red Move the mouse to the transition T3 where branch ends and click a left button 9 29 GMWIN Manual c igmwMin source robot3 src Parallel branch and new step S5 are created Move the cursor to the transition where branch starts with key Select Toolbox Branch F3 Move the cursor to the transition where branch ends with key Select Toolbox Branch F3 2 To expand a parallel branch y Select in toolbox Move the mouse to the start position of the parallel branch and click a left button c gmwin source robot3 src Parallel branch and new step S6 are created 9 30 Chapter 5 Edit a Program 4A c Agmwink source robot src sz 25 S Ta dl d fie Move the cursor to the start position of a parallel branch where you want to insert a branch with key Select Toolbox Branch F3 Em i o 5 7 3 Create a Selective Branch 1 To create a selective branch initially y T 9 Select gt in toolbox and move the mouse to the step S2 where branch starts and click a left button You can see a mark ie A c qmwini source robot src S1 m En 53 T3 5 4 Ta Steps S3 S4 are active in
201. to a local variable of Function There is no variable which can declare initial value in function Cannot add function object to Function Block Library The library does not match the form of program to add Extension of library in function block is nFU A 26 Appendix A GMWIN Error Code N is PLC type For example if library file name is USER and PLC is GM then USER 4FU Return value of function is indeterminate It is the case that the function does not work because you do not insert the output value If you input the value to the output value in case of the function the function works 9 Output of function is not assigned Nothing is connected to the function output Declare variable to function output or connect to power line case of BOOL output 9 You cannot edit standard library files Select again The general library cannot be used by modifying it with user s will You can select only user definition library to executing modification deletion Standard libraries are already loaded The general library was already loaded in memory Fuse Cutoff Error It causes the case that FUSE break of FUSE attach module on operating Replace the fuse of wrong slot and execute again Program lt program name gt is not defined in project Make project and write it to plc Select COMFILE MAKE in menu to make executive file and Select ONLINE CONNECT WRITE RUN MONITOR START in menu Program lt program
202. ts EN Normally open contact IS Normally closed contact fee Shift F1 Positive transition sensing contact OM Shift F2 Negative transition sensing contact ICI H ree e Shift F3 Latched coil Shift F4 Unlatched coil ey Shift F5 Positive transition sensing coil MOM Shift F6 Negative transition sensing coil IN 7 Horizontal line Vertical line INTI a 1 rel dl T i Function Block MS RET A Shift F7 End command of LD program and Subroutine gt i Shift F8 Jump command for the branch of LD program Label position ics ES i Shift F9 Calla subroutine a subroutine If you select an arbitrary element in toolbox the shape eae eee the mouse is changed to that of the element 5 8 Chapter 5 Edit a Program 5 6 1 Create a contact Select a desired contact NI in toolbox In LD program window move the mouse to a desired position and click the left button When you draw a line Ni after moving the mouse from your desired position drag a mouse by clicking the left button and you can draw a long line When you draw a continuous line as the above way if there is another contact under the mouse position that contact is conserved cs Move the cursor to the position that you want to input a contact in Select a desired contact and line F2 F3 Shft F1 Shft F2 F4 F5 of commands in Toolbox In case of contact you can insert it between column 1 of program a
203. tton and select a desired library file 9 l you want to insert the library from the user defined library that does not exist in the project select a desired user define library file after clicking Marked and Search 9 To call the 3 dialog box click the Next button 10 12 Chapter 10 Library Fun FB Wizard 9 In this Fun FB Wizard dialog box it determines whether you insert the library into a current project If the library selected in the previous dialog box exists in the project the project updates the file automatically Click OK button and Next button Then the following dialog box appears 10 13 GMWIN Manual Fun FB Wizard Click Finish button then the new library is added on the project window 9 cc1gmwanisourcetengine_line prj Ml ES mf LD PROGRAM INSTO gt comia source nonamedl Z COMMENTS for DIRECT VARIABLES 0 variables declared PARAMETERS E BASIC PARAMETERS E 1 0 PARAMETERS E LINE PARAMETERS INCLUDED LIBRARTES E c gqmvin Lib ASSEMBLY 3 u Bc qmwin lib communi 3 b B c qmwin lib special 3 b If you click the Cancel button on each step of Library Wizard cancelled all the processing at this time To add a selected content on the project please click OK button in the 4 dialog box 10 14 Chapter 10 Library 10 3 2 Create a User Defined Function Block 1 Create a Function Block Program Select Program New Program in menu Then a new dialog box appear
204. tup the forced data and flag in I O Forcing set of dialog box Click Close button To input output the data that you setup you should setup Enable I O Forcing in section 7 13 7 13 Enable I O Forcing It allows you to enable the execution of Forced input output Select Online I O Forcing Output in the pull down menu Force 1 01 Enable W Input Select the area for Forced I O in Enable I O Forcing dialog box and click OK button 7 14 Chapter 7 Online 7 14 Link Information This function shows the station number type PLC mode error and slot number of communication module mounted on PLC Select Online Link Information in the pull down menu Communication Module ETHERMET 0 0 0 0 Click More button for the detail information in Communication Module dialog box OStop Mane 7 15 GMWIN Manual 7 15 Tx Rx Information In GM7 you can monitor a receiving data with the selecting of Tx Rx information through the C net or C net interface unit In GM1 6 you can monitor through the frame editor for C net Communication Information fel aw COL 7 16 Mnet Parameter It allows you to setup the parameter of Mnet Mini MAP communication module in PLC Select Online Mnet Parameter in the pull down menu GLOFA Minet Setup Slot No and Station No in GLOFA Mnet dialog box 7 16 Chapter 7 Online 7 17 Mnet Information This function indicates modern s status
205. ual tcreates the execution file for program and Upload file with selecting Compile Make in menu Make All Output File ciarmalimoutpu endgine_line B 0 Lines compiled Status Link success Program 1400 bytes Data 24 bytes Upload file 7404 bytes 12 2 Write to PLC Download Select the Upload program when writing a program to PLC Select the Online Write in menu Select the Parameter and Program Upload Program in the Write dialog box Write Range C Basic Parameter Cc KO Parameter HS Link Parameter a e Program Parameter and Program cane mom According to the program size it runs as below 12 2 Chapter 12 Upload Size of Execution Program Upload Program lt Size of It writes to RAM in CPU Program RAM Size of Program RAM lt Size of Execution Program If device has flash memory it writes to flash memory after query to Upload Program user 12 3 Read from PLC Upload Select the Project Open From PLC in menu Reading Total Data Frames 67 Percentage of Frames Sent 9 Ifa file had the same name in Source directory the following dialog box appears Upload Program File engine_line prj already exists Do you wantto Upload this file All Ho Click All button to monitor and online edit Uploaded Project window create then the following dialog box appears Edit You can monitor and online edit after m
206. ual Number of lines exceeds IL capacity IL cannot edit over 32000 lines Can t load LD cursors Marea can be monitored at only RES area Declare direct variable area with resource Abnormal O S Watchdog It is the case that the watchdog error is caused by Os program Abnormal O s RAM Reboot the PLC Abnormal O S ROM Reboot the PLC Qarea cannot be monitored at Configuration area The direct variable area cannot be designated as configuration Cannot define RETAIN or CONSTANT the variable located at l or Q area You cannot declare RETAIN CONSTANT besides variable that is allocated in automatic variable or M area 9 Cannot assign initial value to the variable located at l or Q area You cannot give initial value besides variable that is allocated in automatic variable or M rear Cannot assign direct address to this array variable which is out of I Q address range In care that array is the variable which is allocated in Q area by user definition if total size exceeds maximum of the 1 Q area from the beginning then error can be caused by memory overlap Therefore make array size small RTC Data Error Confirm that there is an error of battery or not if it is not then set the time in GMWIN Abnormal RTC Set the time again You cannot insert SFC element any more You cannot insert new element any more because it exceeds the size of SFC program 9 Impossible to delete SFC transiti
207. uld decrease the variable that you want to select A 5 GMWIN Manual Module type Inconsistent Error It is the case that a declared module in the parameter and an installed module of PLC do not match Download again after modification of module in wrong slot restart and parameter Array number over You should input numbers in the range of declared array Invalid array range You should input numbers in the range in the range of declared array Invalid array index It is the case that there is no a selected array element Confirm the size of array and input again Array name cannot exceed 8 characters You should declare array name within 8 characters Invalid array size The array size can be designated from 1 to 2048 The specified value is over the permitted range It is the case that INDEXES that is inputted in monitor dialog box of array variable exceed the rage 0 2047 You should designate it below the maximum INDEX size Data type of array element is mismatched LD ST command is effective for only Arrays having the same element number Array index is out of range It is the case that array number is bigger than element number of declared arry 0 Variable used as an array index should be INT type Variable that indicates array element must be INT type 0 Battery Error Change the better Integer is not within the permitted range It causes the inputted integer is out of range Input the
208. undancy f Convert In case of GMR you have to set a Base in the Base select box Local A Single input output I O can be installed only CPU A And I O module of digital content can be installed for Single I O Setting each base as Local A in the Base Selection box makes Single I O and this system can be used for the part no required backup to save the cost of redundancy Redundancy Input Output CPU A and CPU B are operated using the same program simultaneously When the system needs the data synchronization during the operating they synchronize data each other If the operating is stop by disorder of master CPU the stand by CPU maintain it s operating continuously At this time the input output connected to the master CPU in base set as redundancy input output gets OFF In this system both of the master CPU and stand by CPU control the input output modules For input data you can apply the data it had two or more same value in comparing the input values of Master Stand by and Transfer Setting up each base as Redundancy in the Base Selection box makes Redundancy input output You have to set both bases with the same number And you set the transfer I O location for the input comparison and the output feedback 9 Transfer Input Output CPU A and CPU B are operated using the same program simultaneously When the system needs the data synchronization during the operating they synchronize data each other If the operating is stop b
209. ution button Execute the conversion 7 Display the converted data Display the digital data according to DT 1 6 Step Executed by user 7Step Executed in the Simulator 14 10 Function by Online menu Refer to Chapter 7 Online for the detail information 14 10 1 Monitor Program Monitor Variable Monitor Time Chart Monitor YO Monitor 14 10 2 Forced I O Setup 1O Flag Data Setup Forced I O Enable 14 10 3 Data Clear Only available in Stop mode Clear the current data into zero 14 10 4 Reset Reset Overall Reset 14 10 5 Mode Change 4 GMWIN Online Mode Change 4 Simulator Click each mode in CPU module Stop gt Pause mode is not available 14 4 Chapter 14 Simulator Function Run R Stop S Pause P Debug D 14 11 Debugging Refer to Chapter 9 Debugging for the detail information GMWIN Debugging Simulator Click Debug D Mode in CPU Module Debug function in Simulator is same as GMWIN excluding Variable Break When each mode is changed to Debug mode the current value is retained Debug Start Stop Debug Run Pause Step Over Step In Step Out Run to Cursor Add Remove Break Point Break Point List Condition Task Enable 14 12 Stop Simulation GMWIN Project Stop Simulation Simulator Click X to close the simulator window 14 5 Appendix A GMWIN Error Code A GMWIN Error Code Warning Cannot find librar
210. w ction List ransition List Show action lists Show transition lists Chapter 3 Getting Started 3 Edit Undo Ctrl Z Undo the last action Cut Ctrl X Cut the selection and move it to Clipboard opy Ctrl C Copy the selection to Clipboard Paste Ctrl V Copy the selection to edit window from Clipboard Delete Del Delete the selection Paectes oo In SFC Program Menu more menus are added as below In LD Program Menu more menus are added as below Delete a cell Insert a line Insert a cell 4 Toolbox In IL mode Toolbox Type Open close a toolbox and adjust a position of toolbox In LD mode Description Insert a function Insert a function block Insert a label Insert an operator Delete one line of program 7 Show or hide comment column Change a mode Toggled ariable Comment F nsert Overwrite F 6 8 Insert contact coil function function block jump return and etc 3 15 GMWIN Manual In SFC mode Description tep F2 nsert a step or transition nsert a selective or simultaneous branch ction Transition 4 Define a name of action or transition including Qualifier 6 Insert a jump Open action or transition window rrow Mode Ctrl A Switch to Arrow mode F abel FS Insert a label F F In monitoring mode for LD and IL Select Array Subscript Specify array index for monitoring In Variable monitoring mode Description tart Stop F2 Select start stop mode for monito
211. w Print Calla LD Print Option dialog box by selecting Project Print LO Print Option Condense Label 100 400 90 100 ET H Excepted pages for whole file 1x1 Given range 1x1 Left margin fo Maximum 30 mm Select Range for Printing OK Cancel C Print from cursor to end Preview O Print selected lines fo From fo To Printer Setup Help EEEN Include variables In Select Range for Printing group box of LD Print Option dialog box select the range of LD program to print In Left Margin group box enter the blank in mm Maximum size is 30mm In Condense Label group box enter the compression rate of content to print within the range that is from 100 to 400 Indicates the required page number of printing the whole file and the required page number of printing the given range that user designate in Select Range for Printing 90 Preview 9 25 GMWIN Manual Preview button of LD Print Option dialog box is used when you want to see the outline of contents to print before printing actually on paper In Preview dialog box you can determine either showing several pages simultaneously in a screen or by one page Print Preview 5 26 Chapter 5 Edita Program 5 7 Edit SFC SFC supports the method that divides a PLC language IL LD into step and transition according to the execution order SFC consists of the following elements In case of executing the
212. when you declare initial value You must not exceed the maximum line number It is the case that you input number which is bigger than maximum in find dialog box You should value that is below the number which is bigger than maximum number that exists in file 0 Enter or select on e object file to add Confirm that object fill is in the directory on option Output branch is too deep It is over 16 levels that branch that uses the output good command coil function function block jump return subroutine call aca Cro Ca op REO Sa Ba Bi Sa Ha E j h ESE Ba Hr Sa Ba Ba 51 a O Branch point You should make the branch that uses the output good command not to be over 16 level Configuration global variable are declared too many Maximum 4K Byte You should delete unnecessary configuration global variable Size of configuration global variables cannot exceed 4K byte Total size of the configuration global variable cannot exceed 4K Byte You should delete unnecessary configuration global variable GMWIN Manual File related error happened while compiling It is case that you have difficulty to deal with file because there is no tile that in used temporarily and is used in open close object file or disk capacity is insufficient on compiling Maybe there ll be some errors in compiling It is the case that you cancel without declaring same name for duplicated variable on attach operating Error can be cause
213. x click OK button 9 04 Chapter 5 Edit a Program Function Block Hame CTUO CAL CAL m Instance Mame Po Input Output CU COs QU BOOL 00 Bo0L R LO C HT variable List Cancel Help Input an instance name in Instance Name edit box Click Ok button If you want to insert the already declared variable click Variable list button of Function Block dialog box and select the variable in list box of Variables dialog box method 1 Move the cursor in the display region which you want to insert a function block Enter CAL CALC CALN in Command edit box Command call Select the function block in Function Block List dialog box Enter the instance name and variables in Function Block dialog box Press Enter key 9 09 GMWIN Manual method 2 Move the cursor in the display region which you want to insert a function block Select Toolbox Function Block Select the function block in Function Block List dialog box Enter the instance name and variables in Function Block dialog box Press Enter key 9090 5 8 4 Label Input y To input the label Click in toolbox Label Label Name DK Cancel es Enter the label name maximum size is 8 characters in Label dialog box Click OK button method 1 Move the cursor in the display region which you want to insert a label Enter the label name and in Command edit box Command STAR
214. y disorder of master CPU the stand by CPU maintain its operating continuously At this time the input output of each base set as transfer I O are continuously executed without any change of this status This system can call as a redundancy CPU because Redundancy input output is not setting This system is set by setting up as Transfer I O in the parameter setting part The stand by CPU reads the information in the input output module periodically and check any fault of the connection 4 20 Chapter 4 Edit a Project 4 5 3 Set the High Speed Link Parameter To set the High Speed Link Parameter Double click on the Parameters Link Parameters in Project window or move a cursor to Parameters Link Parameters and select Project Edit Project Item High Speed Link Parameter High Speed Link 2 High Speed Link 2 High Speed Link 3 High Speed Link 4 Cloze High Speed Link 2 Help High Speed Link 3 High Speed Link 3 High Speed Link 4 High Speed Link 4 GM1 GM3 GM4 GM6 GM5 The configuration for setting High Speed Link Parameter according to PLC type is like the above figure GM1 2 3 High Speed Link1 4 GM4 6 High Speed Link 1 2 GM5 High Speed Link 1 If you click the High Speed Link Number button in the High Speed Link Parameter dialog box then High Speed Link dialog box will be displayed which shows the list of registered item and setting information of selec
215. y flies You should reassign library directory or copy library files in that directory It is the case that this library file is not in this directory when you open project file HS Link Parameter Set Error Download after making express link parameter again Abnormal HS Link parameter It is the Cases that download fails because error causes while you download the program so you should download again Abnormal Common RAM Reboot the PLC Current variable type should be same as one before left parenthesis Data type of current Result in IL has to continue before beginning bracket and after ending bracket This Operator cannot be placed in parenthesis LD LDN JMP C N CAL C N and etc cannot exist inside the bracket in IL so delete it Cannot define any more global variable 300 units of global variable is available Abnormal Basis parameter In Case of download failure during program download do download again Cannot declare local variables over 32kBytes Delete redundant variables PLC cannot use internal memory over 32k so Delete the variable that in not used among the declared variable or reduce the number of variable Wrong Single variable name is given It is the case that wrong single variable name is given if you select Single task See also 4 4 7 task definition in GMWIN user guide Single variable task number over Maximum number N Reduce the number with deleting internal contact task in the task definition

Download Pdf Manuals

image

Related Search

Related Contents

テイコブファッションカート  GE ERW Brochure  m16c/6s data link layer library d2dl user`s manual  PDF, 2,3 MB  Aeries.net Student Information System Query – User Manual April 29  生活の中の技能 ~その習熟度~(調査報告書)  Untitled  452313 Mode d`emploi pour le masque en car- ton "Afrique 3"  Magic Sirène - Splash Toys  Nady Systems QH-50NC headphone  

Copyright © All rights reserved.
Failed to retrieve file