• No results found

Reading from PLC (Upload)

In document ED4260 Manual (Page 44-55)

4-3 Project Structure

3) Reading from PLC (Upload)

◆ Choose Project - 'Load from PLC' in the menu.

Open the project after creating the project, the program file, and the user libraries by loading the upload file from PLC.

If a project with the same name already exists in GMWIN, overwrite it, or save it at another directory or save as another name as specified by the user.

4-6. Menu

1) Project

Command Description

New Project Creates a project.

Open Opens a existing project.

Upload Project From PLC Uploads a project and program in the PLC.

Save Saves the project. (program is not saved)

Save As Saves the project as a different name.

Close Closes the project.

Import Proiect Bundle Opens project bundle file.

Export Proiect Bundle Bundles all files connected to the project as one file.

Add Item Adds new items to the project.

(Define program, Resource Task, Library)

M Area Edit Edits M area or saves it.

Preview Show the contents which will be printed.

Print Project Prints the contents of each corresponding point. Print Program Prints the contents of the activated window.

Printer Setup Sets the print options.

Option Sets the options for the GMWIN.

2) Program

Command Description

New Program (↑N) Creates a program.

Open (↑O) Opens a existing program.

Save (↑S) Saves the program.

Save As Saves the program as a different name.

Close Closes the program.

Properties Changes the program’s properties.

Local Variables Edits local variables.

In/Out variables For functions and function blocks, edits input/output Variables.

3) Edit

Command Description

Undo (Ctrl+Z) Cancels the last action at the program edit window, and returns back to the previous screen.

Redo (↑Y) Restores the edit-canceled action again.

Cut (↑X) Deletes the selected item, and copies it to the

clipboard.

Copy (↑C) Copies the selected item to the clipboard.

Paste (↑V) Copies the clipboard contents to the edit window.

Delete (Del) Deletes the selected item.

Find (↑F) Finds out the desired string.

Replace (↑H) Finds out the desired string, and replaces it to new one.

Replace Direct Variables Replace the whole desired direct variables. Find Next (↑F3) Repeats the previous Find or Replace operation.

Go To Moves the cursor to the desired location.

Screen Size Controls the view size.

Delete Line Deletes a line.

Insert Line Inserts a line.

Insert Cell Inserts a cell.

4)View

Command Description

Tool Bar The user defines the toolbox.

Status Bar Shows or hides the status line.

Full Screen Enlarges the scope to indicate the program windows to the overall screen.

Project Shows or hides the project window.

Result Shows or hides the result window.

Variable Monitor Shows or hides the variable monitor window.

I/O Monitor Shows or hides I/O monitor window.

Link Parameter Shows or hides link parameter window.

Zoom Enlarges or reduces the screen.

Show Memory/ Comments Shows or hides the variable comments.

Properties Shows the registration information of the currently

selected items.

Monitor Array Selects array no. Of the variable declared as array.

5) Compile

Command Description

Compile Compiles the program.

Compile All Compiles all the programs in the project, and create a PLC execution file.

Memory Reference Allows users to see the used global and direct variables.

Show Used I/O Shows I/O use global variable or direct variable. Check Double Coils Shows the used doubles coil.

Previous Message Moves to the previous message position.

6) Online

Command Description

Connect + Write + Run + Monitor On [Ctrl+R]

Connects to the PLC specified through the GMWIN and options, writes the program a user creates to the PLC and changes to the monitoring mode.

Connect Connects to the PLC specified through the GMWIN

and options.

Read Reads the PLC’s data.

Write Writes the GMWIN’s program to the PLC.

monitor On/Off Start/finishes program monitoring.

PLC Monitor

Run Converts PLC mode.

Converts CPU to communicate in GM1. Stop Sleep Debug Master Convert Reset

Data Clear Clears PLC data as "0".

Reset Resets PLC.

Overall

Reset Resets all data of CPU.

Flash memory

Read Type

Reads flash memory type information installed in CPU or writes data to flash memory.

Set Mode is only available in GM4-cpu. If the mode is set executing code is written in flash memory.

Write Program

Set Mode

PLC Info

System Shows PLC information.

Error/ Warning History I/O Module Fault Base Units

Command Description

I/O Modules

I/O Info Shows/Writes PlC I/O Configuration Status.

Matches PlC I/O Configuration With Project & PLC I/O

Synchronization

I/O Forcing

Input Sets Forced I/O Value/Execution Allowance. Output

Network

Enable

Link Shows Link Module Type, Installed Slot, Station No. Link

Status Shows Network Information.

Mnet

Parameter Inputs Mnet Parameter.

Comm unication Info Shows Sending/Receiving Information Online

Edit

Start

Starts To Edit Function.

Writes The Edit Contents while running. Cancels The Edit Function.

Write Cancel

FSM Sets The Emergency Data Of F-Net Slave Module.

I/O Skip Sets I/O To Skip.

Fault Mask Sets Failure Mask.

Initialize Speacial

7) Debug

Command Description

Begin/End Debug Changes to the debug mode, (Begin debugging the program / Stops debugging the program.)

Go(Ctrl+F9) Run to the break point.

Step Over(Ctrl+F8) Run step by step.

Step In Debugs functions and function blocks.

Step Out While debugging functions and function blocks, escape the present block.

Pause Pauses the Run.

Run to Cursor(Ctrl+F2) Runs to the cursor location. Insert / Remove Breakpoint

(Ctrl+F5) Inserts or removes the breakpoint.

Breakpoint List/Condition Shows the list of the breakpoints you have set, and enables you to set the break condition.

Task Enable Enables you to change the task while debugging.

8) Tools

Command Description

Library Manager Edits library. Start Simulation Starts simulator.

9) Windows

Command Description

New Window Opens New Window Against Current Window.

Cascade Cascades The Several Windows Of The GMWIN.

Tile Horizontally Tiles The Several Windows Of The GMWIN Horizontally. Tile Vertically Tiles The Several Windows Of The GMWIN Vertically. Arrange Icons Arranges Icons In The GMWIN.

Close All Closes All The Windows In The GMWIN.

10) Help

Command Description

GMWIN Help Opens GMWIN helpdesk.

LGIS Homepage Connects to LG industrial systems homepage by

internet.

Icon Command Description

New Project - create a new project.

- select Menu - Project - New Project Open Project - opens a existing project.

- select Menu - Project - Open Save Project - saves the created project file.

- select Menu - Project - Save New Program

- is used to open one or more programs included in a project.

- select Menu - Program – New Program

Open Program

- opens a program selected from the menu. - select Menu - Program - Open

[Note]

- At the editing/debugging mode, two or more instances for one program are not available.

For the monitor mode, you can open two or more instances for each program to monitor different positions of a long program.

Save Program

- saves the created program file. - select Menu - Program - Save

Local Variables

- It allows you to edit local variables corresponding to the enabled program window.

- select Program – Local Variables

- Add/delete/edit each variable, and click the Close button.

Undo(Ctrl+Z)

- cancels the last editing action during writing the program.

- select Menu –Edit - Undo

Cut(Ctrl+X) - specifies the item to be cut as a block. - select Menu – Edit-Cut

Copy(Ctrl+C) - specifies the item to be copied as a block. - select Menu – Edit- Copy

4-7. Toolbar

The following is the GMWIN toolbar.

GMWIN provides frequently used features as toolbar. Choosing the desired tool with the mouse will execute the feature, as described in the chart below.

Icon Command Description

Paste (Ctrl+V)

- position the cursor to a location to be pasted, after performing the Cut or Copy.

- select Menu – Edit - paste

Delete - specifies a item to be deleted with the block-specifying icon, and deletes the item using the Delete icon.

Search

- searches an instruction or operand in the enabled program. - select Menu – Edit - Find

- enter a desired string to the string input column in the Find dialog box.

- select one of the following options, and press the OK button.

1) Both Text and contact/coil : selects the type of the desired string.

2) Range : selects the range of the search.

- From Cursor : searches it from the present location of the cursor.

- Entire Scope : searches it over the program. 3) Direction : selects the direction of the search. - Forward : searches it downward.

- Backward : searches it upward.

4) Word : selects the match percent of the desired word. - Match whole word : searches 100% percent matching word.

- Match partial word : searches any percent matching word.

Replace

- Invoke the Replace dialog box, by selecting Menu – Edit - Replace

- Enter text to be replaced to the New text textbox.

- Select a LD program component to replace at the Contact/Coil to find box.

- Enter the desired text to the new name textbox.

- Select a LD program component to replaced at the New Contact/Coil box.

- For other options, select those equal to the options for Find, and press the OK button.

Find Next (Ctrl+F3)

- When you have already done with the Find/Replace operation before, it repeats the Find/Replace operation with the conditions equal to Find/Replace.

- select Menu - Edit- Find Next

Compile

- only complies the program in the enabled program window, and produces an object file.

- select Menu – Compile

[Note] If you only compile a program, its execution file is not created.

Icon Command Description Make

Create execution file

- compiles only the programs needed to be compiled in the project programs, and creates an execution file.

- select Menu – Compile - Make Connect +

Write+ Run + Monitor On

- This is a macro command to execute the written program with one menu operation.

- With this command, you can connect, write a program,

change the mode change(Run), and start monitoring with one operation.

Connect - establishes the connection between GMWIN and PLC. - select Menu - Online - Connect

Run - RUN mode : Mode to execute a program properly. - select Menu - Online – Change Mode - Run

Stop

- STOP mode : Mode to stop the program, without operating it.

- select Menu - Online – Change Mode - Stop

Pause - PAUSE mode : Mode to pause to operate the program. - select Menu - Online – Change Mode - Pause

Begin Debug

- DEBUG mode : Mode to find out errors on the program or to trace the operating process.

- select Menu - Online – Change Mode -Begin Debug

Go runs to the break point.

Over Step runs the program step by step. Step In debugs functions and function blocks.

StepOut While debugging functions and function blocks, escape the present block.

Pause pauses the Run.

Run to

Cursor runs to the cursor location. Insert/

Remove Breakpoint

Icon Command Description

Disconnect - releases the connection between GMWIN and PLC. - select Menu - Online - Disconnect

Write

- writes parameters and programs of the GMWIN to the PLC.

- invoke the Write dialog box, by selecting Menu – Online – Write. (after establishing the connection)

- If the PLC state is on Run mode, the following screen appears.

- Basic Parameters : reads only basic parameters from the PLC.

- I/O Parameter : reads only I/O parameters from the PLC. - High speed Link Parameters : reads only high speed link parameters from the PLC.

- Duplication Parameters : reads only duplication parameters from the PLC. (enabled only when selecting the Duplication)

- Program : reads only programs from the PLC.

- Parameters and Programs : reads both parameters and programs from the PLC.

- Upload : reads upload programs from the PLC.

Monitor On/Off

- GMWIN allows users to monitor the status of the PLC on operation.

- Online - Monitor – Monitor On ▪ Program Monitoring

▪ I/O Monitoring ▪ Variable Monitoring ▪ Time Chart Monitoring ▪ Link Parameter Monitoring

In document ED4260 Manual (Page 44-55)

Related documents