0% found this document useful (0 votes)
33 views6 pages

First Prog Panasonic

This document provides a step-by-step guide to creating and running a program on a PLC using Control FPWIN Pro. It covers creating a new project, adding contacts and coils, checking the program for errors, downloading it to the PLC, and running the program. Additionally, it explains the use of the project pane and programming window for organizing and managing the program components.

Uploaded by

AgungBudiono
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
33 views6 pages

First Prog Panasonic

This document provides a step-by-step guide to creating and running a program on a PLC using Control FPWIN Pro. It covers creating a new project, adding contacts and coils, checking the program for errors, downloading it to the PLC, and running the program. Additionally, it explains the use of the project pane and programming window for organizing and managing the program components.

Uploaded by

AgungBudiono
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 6

Create your first program Page 1 of 6

Create your first program


You will learn

• the main steps to create a program and run it on the PLC

This is what the program will look like when you complete this example.

• Create a new project


Create a new project using the wizard.
• Project pane
• Open the programming window
Adjust the size of the header
• Add contact and coil
• Checking a program
• Download the program to the PLC
• Run the program on the PLC

Create a new project


Create a new project using the wizard.

1. Start Control FPWIN Pro


The start page appears.
2. Select “New project”.
You can change the settings offered by the wizard.
3. Change PLC type, program name and programming language as needed.
4. “Create project”

file:///C:/Users/MEKATRONIKA/AppData/Local/Temp/~hh1FD3.htm 01/02/2023
Create your first program Page 2 of 6

Related topics:

Start page

New project

Supported PLCs

Programming editors

Parent topic: Create your first program

“Project” pane

Activate the “Project” pane via “Window” > “Panes ” > “Project” or .

The “Project” pane provides the structure for the project and contains the following objects:

“Project” pane Object Explanation

Use system registers to change hardware


Hardware
characteristics, e.g. no. of timers/counters.

In the library pool, all instructions, functions and


Libraries
function blocks which are available are stored.

Task pool Programs of the POU (Program Organization Unit)


pool have to be entered into the task pool as program
or interrupt.

file:///C:/Users/MEKATRONIKA/AppData/Local/Temp/~hh1FD3.htm 01/02/2023
Create your first program Page 3 of 6

“Project” pane Object Explanation

Enter global variables here i.e. variables with an


Variables explicit user address or variables which are used in
different POUs.

• Programs are stored in the POU pool.

• Several POUs are allowed.

POU pool programs • Each POU consists of a header (variables) and a


body (program code).

• Add new POUs with “Object” > “New” >


“POU” or or the context menu.

Related topics:

Navigator

Navigator options

User interface

Parent topic: Create your first program

Open the programming window


Adjust the size of the header

1. Double-click on “POUs” in the navigator then on Program_1


2. Adjust the header size by dragging the bar

Related topics:

POUs (program organization units)

Programming window

Parent topic: Create your first program

Add contact and coil


You will learn

• how to add contacts and coils in the body of the programming window

• how to create a variable

1. Choose between programming with tool bar icons or using intelligent keys
Using toolbar icons
a. Click on the required contact and coil in the toolbar or choose the item from the context menu
b. Place them into network 1 of the programming window
If you place the elements in one grid line (same height in the network) then connection lines are drawn automatically.
Using intelligent keys
a. Place the cursor into network 1 of POU body
b. Press the intelligent keys <2> for contact or <3> for coil

file:///C:/Users/MEKATRONIKA/AppData/Local/Temp/~hh1FD3.htm 01/02/2023
Create your first program Page 4 of 6

If contact and coil are placed in one grid line, then the connection lines will be drawn automatically. If connection lines are not drawn automatically,
activate the option “Insert new elements without lines (does not apply when using intelligent keys)” under “Extras” > “Options” > “Program options” >
“Editors” > “LD/FBD editor”.
2. Enter variable name
If the variable name you enter has not been assigned yet, the “Create new variable” dialog opens. If no name is entered and you select a different element, a
question mark will appear in the name box.
NOTE

◦ We recommend to use variables instead of explicit user addresses.

◦ If you want to use explicit user addresses, please define them in the list of global variables.

◦ The compiler can output a warning when using explicit user addresses in the POU declaration, see “Extras” > “Options” > “Compile options” >
“Additional warnings”.

The “Create new variable” dialog opens

3. Enter an identifier for the variable, e.g. bVar0

According to the prefix of variable identifiers, Control FPWIN Pro selects the data type BOOL.

4. “OK”
5. Create the variable bVar1 for the coil

If connection lines are not drawn automatically:

6. Select the “Draw line” icon in the toolbar or from the context menu
7. Draw the connections between the contact and the coil

Each line has to be connected to the power rail. Be careful not to draw double lines or allow them to overlap.

Related topics:

Using the LD/FBD editor

Parent topic: Create your first program

Checking a program

Check the program using or from the context menu

A message will inform you if your program is OK or not. If needed, modify errors, e.g. double lines. If more than one error occurs, fix the first one first. The others
could be sequence errors.

file:///C:/Users/MEKATRONIKA/AppData/Local/Temp/~hh1FD3.htm 01/02/2023
Create your first program Page 5 of 6

Related topics:

Checking a program

Parent topic: Create your first program

Download the program to the PLC


You will learn

• how to connect the computer to the PLC

• how to download the program

1. Connect the PLC to the computer using the programming cable

If communication problems occur, check the communication parameters.

2. Switch to online mode by clicking


3. Make sure the PLC is in remote programming mode

You can toggle between the remote run and remote programming via the toolbar.

4. Download the program to the PLC by clicking


5. Confirm by compiling all ( )

Related topics:

Online mode

Communication parameters

Tasks

Download program code and PLC configuration

Change the values of variables while monitoring

Status bar

Parent topic: Create your first program

Run the program on the PLC

1. Change to “RUN” mode by clicking

file:///C:/Users/MEKATRONIKA/AppData/Local/Temp/~hh1FD3.htm 01/02/2023
Create your first program Page 6 of 6

“REMOTE RUN” should appear in the status bar.

2. Start monitoring by clicking


3. Close and save the program

Related topics:

Monitor values

Parent topic: Create your first program

file:///C:/Users/MEKATRONIKA/AppData/Local/Temp/~hh1FD3.htm 01/02/2023

You might also like