Control FPWIN Pro V5.2 Reference Manual: Programming Software
Control FPWIN Pro V5.2 Reference Manual: Programming Software
Control FPWIN Pro V5.2 Reference Manual: Programming Software
2
Reference Manual
Programming Software
Control FPWIN Pro V5.2 Reference Manual Panasonic Electric Works Europe AG ACGM0142V4.1END 1/2006
BEFORE BEGINNING
LIMITED WARRANTY
If physical defects caused by distribution are found, PEWEU will replace/repair the product
free of charge. Exceptions include:
• When physical defects are due to different usage/treatment of the product other than
described in the manual.
• When physical defects are due to defective equipment other than the distributed
product.
• When physical defects are due to modifications/repairs by someone other than
PEWEU.
• When physical defects are due to natural disasters.
Warning.
The warning triangle indicates especially important
safety instructions. If they are not adhered to, the
results could be:
• fatal or critical injury and/or
• significant damage to instruments or their contents,
e.g. data
Indicates where you can find additional information on the subject at hand.
Provides brief explanation of a function, e.g. why or when you should use it.
next page
The manual uses the following conventions to indicate elements from the user interface or the
keyboard:
"Data Field" Data field entries and option names are rendered in quotation marks.
[Button] Buttons are indicated by square brackets.
<Key> Keys are indicated by pointed brackets
Control FPWIN Pro Reference Manual Table of Contents
Table of Contents
2. User Interface......................................................................... 5
v
Table of Contents Control FPWIN Pro Reference Manual
5. Variables .............................................................................. 41
vi
Control FPWIN Pro Reference Manual Table of Contents
6. Tasks..................................................................................... 61
7. Networks............................................................................... 69
vii
Table of Contents Control FPWIN Pro Reference Manual
viii
Control FPWIN Pro Reference Manual Table of Contents
ix
Table of Contents Control FPWIN Pro Reference Manual
x
Control FPWIN Pro Reference Manual Table of Contents
xi
Chapter 1
Installation and First Steps
Installation and First Steps Control FPWIN Pro Reference Manual
• To install under Windows 2000 or XP, you need administrator rights on your
computer.
• We assume that you are an experienced user of Microsoft Windows.
1. Start Windows
2. Insert the Control FPWIN Pro CD into the CD-ROM drive
A browser showing the contents of the CD is automatically started.
3. Select a language
4. Choose “Install software”
Carefully read the information displayed on the screen and follow the instructions.
To start Control FPWIN Pro:
5. Programs → Panasonic MEW Control → FPWIN Pro 5 → FPWIN Pro 5
2
Control FPWIN Pro Reference Manual 1.2 First Steps and Helpful Files
3
Chapter 2
User Interface
User Interface Control FPWIN Pro Reference Manual
You can change the number of projects listed under Extras → Options →
Program Options → General.
6
Control FPWIN Pro Reference Manual 2.2 Main Window
Project Navigator
Menu Bar
Tool Bar
Programming Window including header and body within one frame
Status Bar
You can position the components anywhere on your screen. To move a component, drag its title
bar.
Many commands from the tool bar and the menus are also available in pop-up menus, which
open when you click on the right mouse button. Pop-up menus are available in the project
navigator, in the programming editors (except SFC), in the sampling trace window, and in the
recipe editor.
7
User Interface Control FPWIN Pro Reference Manual
Project navigator
There are three different tabs at your disposal:
• Project
• Calltree (see page 29)
• Used by (see page 30)
You can configure each of the tabs by using the pop-up menu (right mouse button within the
navigator) and select display to display additional information in the project navigator on the
respective objects.
8
Control FPWIN Pro Reference Manual 2.3 Project Navigator
9
User Interface Control FPWIN Pro Reference Manual
Programming window
Network Info Area
Set Network Height
In the network info area you can adjust the network height using the mouse:
10
Control FPWIN Pro Reference Manual 2.4 Programming Window
Network after
You can also insert a new network at the top or bottom of the program or before or after the
current network via Edit → New Network → Top/Before/After/Bottom.
11
User Interface Control FPWIN Pro Reference Manual
Status line
PLC Type
Editor Info
Clock
Online Mode
Communication Parameters
You can customize the status line in the "Status bar" dialog box.
3. Click
4. Select the item to be removed beneath “Displayed Fields”
5. Click
6. Click [OK]
12
Control FPWIN Pro Reference Manual 2.5 Status Bar
After you have set up the status bar, watch the tool tips for the double-click
functions within active fields.
It is also possible to reset the status bar to the default settings by selecting
[Defaults].
13
Chapter 3
Control FPWIN Pro Projects
Control FPWIN Pro Projects Control FPWIN Pro Reference Manual
Objects with sub-points or pools are marked by a plus sign ( ). By double-clicking on the
name of the object, you can open a pool, e.g. the Library pool:
A minus sign ( ) means that the respective sub-points are already displayed.
16
Control FPWIN Pro Reference Manual 3.1 What Does a Project Consist of?
3.1.1 PLC
Under PLC you can set system registers as well as configure inputs/outputs and decentralized
inputs/outputs of the PLC.
System registers are memory areas reserved for setting hold and non-hold areas for timers,
counters, flags and data registers.
In the system registers you can also define parameters for PLC interfaces as to how they should
react when errors occur.
• The size of the memory depends on the PLC type used. The sum of all
memory sizes for system registers, user program and machine program may
not be larger than the entire PLC memory.
• The 2 highest data registers (4 in PLCs with a second task (see page 66)) are
at the user’s disposal, since they are always in the hold area and used by the
compiler.
1. Double-click "PLC"
2. Double-click "System Registers"
17
Control FPWIN Pro Projects Control FPWIN Pro Reference Manual
A list with all system registers will be displayed. The number indicated in
parentheses is identical to the system register number. In "Memory Size (0-3)", you
define the memory sizes for machine programs, for example. You will find a list with
all system registers and the memory size of your PLC in your hardware description.
Each module on the backplane has to be configured, i.e. entered into the address list.
There are two options available:
• Loading configuration in online mode from the PLC
• Entering I/O maps for each slot manually
18
Control FPWIN Pro Reference Manual 3.1 What Does a Project Consist of?
The Configuration saved in the PLC is transferred to Control FPWIN Pro. Modules
inserted in the meantime are not recognized automatically.
or:
Click on [Register I/0 Maps]
If the PLC is in RUN mode, the question appears if the PLC should be switched into
PROG mode. If the PLC is in PROG mode, the PLC reconfigures the hardware
configuration and stores it in Control FPWIN Pro, i.e. modules inserted in the
meantime are recognized.
4. [Define]
19
Control FPWIN Pro Projects Control FPWIN Pro Reference Manual
Each slave must be configured, i.e. entered in the address list. There are two options for all
other PLCs:
• Loading configuration in online mode from the PLC (see page 20)
• Entering I/O maps in the master I/O map configurating list, described here:
20
Control FPWIN Pro Reference Manual 3.1 What Does a Project Consist of?
Free slots are marked with three asterisks ("***") and are gray in color.
8. [Define]
9. Select desired module type
10. [OK]
11. Repeat steps 8. to 10. until all modules are entered
12. Click [OK] in the "Slave I/O Map Configuration" window
13. [OK]
You can save the I/O configuration with the project, compile it and transfer it into the PLC or, if
you are in online mode, transfer the I/O configuration directly into the PLC with Online → PLC
Configuration (see page 117).
By double-clicking on Program Code in the project navigator, your program will be shown in
basic code. The code is entered as soon as you download your program to the PLC or upload a
program from the PLC (see page 116).
3.1.2 Libraries
By double-clicking Libraries, you can open the list containing all of the libraries available. In the
libraries, you will find functions and function blocks that will save you a lot of programming work.
Detailed information on how to use libraries and how to create your own library is provided in the
online help.
3.1.3 Tasks
Each program is assigned to a task (see page 62). In a task, you specify how the program is to
be executed, e.g. cyclically, event triggered or time triggered.
Only PRG-type POUs can be assigned to a task. The tasks are located under Tasks (Task
pool) in the project navigator.
3.1.4 DUTs
With a Data Unit Type (DUT) you can define a data unit type that is composed of other data
types. A DUT is first defined under DUTs in the navigator and then processed like the standard
data types (BOOL, INT, etc.) in the list of global variables or the POU header.
21
Control FPWIN Pro Projects Control FPWIN Pro Reference Manual
A DUT cannot be used as a variable of another DUT; ARRAYs of DUTs are not
possible.
3.1.6 POUs
The object POUs (POU pool) is a list containing all of the Program Organisation Units (see page
36) you program.
Objects which have not yet been compiled or have been changed since last
being compiled are marked by an asterisk (*) in the project navigator.
22
Control FPWIN Pro Reference Manual 3.2 Projects Created in FPWIN Pro
You can only open a project in the PLC if it has a configuration memory (see
hardware manual). The following PLCs can support a configuration memory
option:
PLC Card necessary? Type of card:
FP-X no
FP-Sigma no
FP2 yes Expansion Memory Unit: FP2-EM1, FP2-EM2 or FP2-EM3
FP2SH no
FP10SH yes ROM Operation Board: AFP6208
If you are using a different PLC type, the program code instead of the project
information will be uploaded to your PC. Then the program code will be
converted to a ladder diagram (compare with the import of FPWIN-GR files).
23
Control FPWIN Pro Projects Control FPWIN Pro Reference Manual
You can change the number of recently opened projects listed under Extras →
Options → Program Options → General, “Number of recent projects on project
menu”.
24
Control FPWIN Pro Reference Manual 3.3 Processing Projects
25
Control FPWIN Pro Projects Control FPWIN Pro Reference Manual
26
Control FPWIN Pro Reference Manual 3.5 Passwords and Security Levels
• For objects with higher security levels than that of the project, you may not
change the security level.
27
Control FPWIN Pro Projects Control FPWIN Pro Reference Manual
• If you only have access to the lower security level of the project, you may
read objects with higher security levels if "Allow Read Access for Lower
Levels" has been defined under Object → Properties for each respective
object.
28
Control FPWIN Pro Reference Manual 3.6 Calltree Tab
Calltree
• The calltree is only displayed if you have placed a check mark in the "Display
objects in the Project view" dialog box.
• For further information on the calltree settings such as displaying the global
variables, see "Display objects in the calltree".
29
Control FPWIN Pro Projects Control FPWIN Pro Reference Manual
30
Control FPWIN Pro Reference Manual 3.8 Check Objekt
Check Object
1. Click object to be checked
2. Object → Check or or
pop-up menu (within the navigator) → Check
Find error
1. Click error message/warning in the window
2. Click [Show] or
If several errors occur, correct the first error listed in the Compile/Check
messages first and repeat Object → Check. All other errors might be sequential
errors. Click [Next Error] to jump to the next error.
31
Chapter 4
Program Organisation Units
Program Organisation Units Control FPWIN Pro Reference Manual
The two parts (header and body) come from the IEC philosophy which maintains that variables
should be declared in a list, whereby these declarations (symbolic names) are used in the
program instead of physical addresses.
The advantage of this is that the compiler takes care of address administration and that you only
have to make address changes in the POU header once (as long as you have defined a variable
which is assigned to an address). The programs remain unchanged.
While all variables with an input/output address or a PLC address can be entered in the list of
global variables and can be used in the entire project (all POUs), only local variables are
declared in the POU header. Local variables are variables which are only used in the
accompanying POU body.
The body contains the program logic which can be written in several programming languages:
• ladder diagram (LD) or function block diagram (FBD) (see page 76)
• structured text (ST) (see page 82)
• instruction list (IL) (see page 91)
• sequential function chart (SFC) (see page 93)
34
Control FPWIN Pro Reference Manual 4.1 Program Organisation Units (POUs)
The local variables are entered in the POU header, i.e. the connection to the inputs/outputs and
the internal memories is defined. The program logic is contained in the POU body. Both, the
header and the body appear in one common programming window that can be splitted.
POU components
Drag this bar with the mouse (pointer ) to adjust the height of the window.
Body of the POU
35
Program Organisation Units Control FPWIN Pro Reference Manual
4.2.1 Programs
The control task can, for example, concern measuring a temperature, processing it (e.g.
comparing it with a set value) and issuing corresponding output data in order to control
peripheral equipment such as a heating system.
A program is the highest level in the POU hierarchy. Functions and function blocks can be
called from a program.
A program can only be loaded by a task (see page 62). On the other hand,
functions and function blocks can call functions (FUN) and function blocks (FB),
but not programs.
4.2.2 Functions
Functions (FUN) are Program Organisation Units (POUs) that upon execution deliver a data
element as a result and any number of output values of the classes VAR_OUTPUT and
VAR_IN_OUT. By specifying the result type VOID the function has no result.
They can also access global variables via VAR_EXTERNAL, VAR_EXTERNAL_RETAIN or
VAR_EXTERNAL_CONSTANT.
36
Control FPWIN Pro Reference Manual 4.2 Types of POUs
Functions do not contain any internal status information, i.e. calling a function with the same
input values for the classes VAR_INPUT and VAR_IN_OUT will always yield the same result
and the same output values for the classes VAR_OUTPUT and VAR_IN_OUT.
FPWINPro provides two types of functions:
1. Functions of the system libraries
- FP Library
- FP Pulsed Library
- FP Tool Library
- IEC Standard Library
2. User functions (see page 123)
You can also write your own user functions and insert them into your own User Library.
Then you can use these functions in all projects in which this user library is installed.
Functions can be written in four programming languages:
- ladder diagram (LD) or function block diagram (FBD) (see page 76)
- structured text (see page 82) (ST)
- instruction list (see page 91) (IL)
37
Program Organisation Units Control FPWIN Pro Reference Manual
created. Give this copy (instance) a name so its values are neither overwritten nor processed by
a FB of the same type.
FPWINPro provides two types of function blocks:
1. Function blocks of the system libraries
- Standard Function Blocks
- Basic FP Function Blocks
2. User Function Blocks (see page 124)
3. These FBs can be written in four programming languages:
- ladder diagram (LD) or function block diagram (FBD) (see page 76)
- structured text (see page 82) (ST)
- instruction list (see page 91) (IL)
If you call up the FB "E_TON" (timer with input delay) of the IEC Standard Library for the
first time, e.g. to switch on a motor with delay, this FB could have the name
"E_Del_Motor". The next time you call up this FB you give it a different name, e.g.
"E_Del_Heater", etc.
38
Control FPWIN Pro Reference Manual 4.3 Create a New POU
39
Chapter 5
Variables
Variables Control FPWIN Pro Reference Manual
5.1 Variables
Variables are symbolic names for inputs, outputs and memory areas within the PLC. These
symbolic names are used in the program instead of physical addresses.
A distinction is made between global (see page 43) and local (see page 46) variables:
• Global variables are a direct connection to the outside world, i.e. they represent inputs
and outputs for the process. Other variables are used for IOP or visualization. Global
variables are declared in the Global Variable List.
• Local variables are place holders for intermediate results that the system saves in a
location of your choice. They are declared in the POU header of the respective POU.
Variables which have been declared once can be changed, assigned directly in the program to
the input/output etc. or assign them to groups of variables, e.g. ARRAYs or data unit types. For
complex control procedures, you can also create recipes.
To help you maintain on overview, the cross–reference list enables you to list all variable
declarations and their constraints.
42
Control FPWIN Pro Reference Manual 5.2 Global Variables
Do not assign addresses to global variables unless you have to! The compiler
automatically assigns addresses after the power has been turned on. This
prevents errors caused by duplicate outputs and ensures that the addresses are
automatically updatd ahen the PLC type is changed.
For further information, we would like to familiarize you with address formats in the online help
under the keyword "addresses".
Note:
If under Extras → Options → Compile Options → Code Generation, you activated
"Retain variables in the user area are not initialized", holding variables for which the
user assigned addresses are not reinitialized.
• VAR_GLOBAL_CONSTANT
- The value of the global variable cannot be changed by the PLC program. These
variables do not occupy an address in the PLC and are inserted in the program
code as constant numbers.
43
Variables Control FPWIN Pro Reference Manual
5.2.1 Addresses
Addresses enable you to specify which input ("I") or internal memory area ("M") should be read
and which output ("Q") should be controlled. Both word and bit addresses are used for
addressing Panasonic controllers.
Under Control FPWIN Pro you can enter addresses in FP format (i.e. the hardware address) or
in IEC format. For details, refer to the online help (keyword "Address Definition") or
programming manuals.
Class
is the variable class, e.g. VAR_GLOBAL, VAR_GLOBAL_CONSTANT, etc., for details see Global Variables
(see page 43)
Identifier
is the symbolic name that is used in the program. Identifiers may not start with a number!
FP Address and IEC Address
is the physical address which is assigned to the variable.
• Enter an address only for the inputs and outputs of the PLC or when a specific data register is necessary.
Otherwise, do not enter an address.
• It does not matter whether you enter the FP address or IEC address first – the second one is automatically
displayed when you jump to the next field. If you do not enter an address, the compiler will assign one.
Detailed information on these address formats can be found under IEC ⇔ FP addresses.
Type
When you have entered an address, a preselected data type (e.g. "BOOL” for inputs/outputs) will appear. You
can select another type from the list of data types.
Initial
is the starting value which is assigned to the variable whenever your PLC is started. You can change these
values when necessary.
Autoextern
inserts the global variable automatically into the headers of all POUs to be created later. Activate the
checkbox under Extras → Options → Program
Options → Editors → Declaration Editors, the variable is also inserted automatically in all POUs currently
displayed in the project navigator.
Comment
Fill in for a more detailed description of the variables.
44
Control FPWIN Pro Reference Manual 5.2 Global Variables
45
Variables Control FPWIN Pro Reference Manual
The variable type that can be declared in the POU header depends on the POU type.
Extras → Options → Compile Options → Address Ranges (see page 102) enables
you to specify the address area which the compiler reserves for local variables.
The remaining address area is used for global variables.
Edit → Undo is not possible for Extras → Declare External Variables. You can
only remove externally declared variables from the POU headers with Extras →
Delete Unused Variables (see page 47).
Variables which you adopt from the list of global variables in a POU header have three different
classes:
46
Control FPWIN Pro Reference Manual 5.3 Local Variables (VAR)
• VAR_EXTERNAL
A VAR_GLOBAL type variable which has been adopted from the list of global variables.
A VAR_EXTERNAL type variable can only be adopted in the header of a PRG or FB
type POU. The value of this variable is initialized with the value defined in the POU
header when the PLC is re-booted, after a power failure, or after switching the PLC from
Prog to RUN mode.
• VAR_EXTERNAL_RETAIN
A VAR_GLOBAL_RETAIN type variable which has been adopted from the list of global
variables. VAR_EXTERNAL type variables are holding variables, which keep their
current buffered value when the PLC is re-booted, after a power failure, or after
switching the PLC from PROG to RUN mode. The value of a holding variable is only
initialized with the value defined in the global variable list after a cold start, i.e. when a
program is downloaded to the PLC or when the INITIALIZE switch is activated in PROG
mode.
Note:
If under Extras → Options → Compile Options → Code Generation, you activated
“Retain variables in the user area are not initialized”, variables for which the user
assigned addresses are not reinitialized.
• VAR_EXTERNAL_CONSTANT
A VAR_GLOBAL_CONSTANT type variable which has been adopted from the list of
global variables. VAR_EXTERNAL_CONSTANT type variables can only be adopted in
the header of a PRG or FB type POU. They do not occupy an address in the PLC and
are inserted in the program code as constant numbers.
If you have adopted superfluous variables from the list of global variables, you can delete them
again from the POU header.
47
Variables Control FPWIN Pro Reference Manual
Default setting:
Deletion of all variables in all POUs.
Addresses for local variables are always automatically provided by the system. In the case of
local variables, seven different classes are provided. The class you can select depends on the
POU type.
Type of Variable Explanation
VAR Variable which you can declare for each POU type, e.g. to save intermediate results. The
values of VAR remain from one invocation to the next. VAR is only placed at the initial value
once you have switched the PLC from PROG mode into RUN mode or after a power failure.
VAR_CONSTANT Like VAR but contains a constant. VAR_CONSTANT does not occupy any addresses, but the
constant is inserted in the program code.
VAR_RETAIN Like VAR but holding, i.e. the value of the variable remains even in the event of a power failure.
VAR_RETAIN is only set at the initial value after a PLC cold boot, provided you downloaded a
program into the controller beforehand and switched the PLC from PROG mode to RUN
mode.
If under Extras → Options → Compile Options → Code Generation, you activated “Retain
variables in the user area are not initialized”, variables for which the user assigned addresses
are not reinitialized.
VAR_INPUT Input variable used for transferring parameters. The POU invocated transfers a value to a
function or a function block (not a PRG). Input variables must be declared in the
accompanying header of the function/function block. You can read the value of an input
variable but you cannot set it (exception: “Forcing”, see online help).
The output is implicitly part of the function and is not declared in the header.
Program Code in the POU Body of the function "fun_deac"
48
Control FPWIN Pro Reference Manual 5.3 Local Variables (VAR)
49
Variables Control FPWIN Pro Reference Manual
Tip:
In the FBD and LD editor you can also declare local variables directly in the POU body
if you have activated the check box "Declare new identifiers" under Extras → Options
→ Program Options → Editors → LD/FBD Editors. In this case, the "Variable
Selection (Mode NewVar)" dialog box is automatically opened as soon as you enter the
name of a variable not yet declared in the POU header in the POU body and press
<Enter>. You can then declare the variable immediately.
50
Control FPWIN Pro Reference Manual 5.3 Local Variables (VAR)
2. Click , press <F2>, or click "Variable Selection" from the pop-up menu
51
Variables Control FPWIN Pro Reference Manual
array will be displayed under “Variable” that are declared in the global variable list.
6. Click desired variable
The parameters of the selected variables are displayed under “Details”.
7. Double-click selected variable or [Insert -> Body]
The selected variable is inserted at the current position in the POU body. If you
have selected a global variable, it will automatically be copied into the header of the
current POU if it is not already there.
Tip:
When inserting variables into the PLC program you can also use global variables that are not
yet in the POU header.
52
Control FPWIN Pro Reference Manual 5.4 Changing Variables
53
Variables Control FPWIN Pro Reference Manual
[Assign]
By clicking on Assign, the highlighted entry from the left column will be assigned to the
highlighted entry in the right column and be shown in parentheses. Several entries in the right
column can be highlighted. If an entry is highlighted in the right column, it also appears in the
field below. You can edit it there. In this way you can give Field x a meaningful name.
[Remove]
By clicking on Remove, the highlighted entry in the right column is removed. "Unassigned"
appears in parentheses.
54
Control FPWIN Pro Reference Manual 5.5 Export Variables
[Export]
Starts the export process
[Cancel]
Closes the dialog without exporting.
In order to have access to data unit types or arrays, which are not supported
directly, their individual elements are exported as variables to the CSV file.
55
Variables Control FPWIN Pro Reference Manual
If you have selected CSV-Import Project, the CSV file must have been created via Extras →
Export CSV File. All global variables in the CSV file will be imported into the Global Variable
List.
If you chose CSV-Import general, you can import any CSV files not created with Control
FPWin Pro. The dialog "CSV Import general" appears and the following options are available:
[Assign]
By clicking on Assign, the highlighted entry from the left column will be assigned to the
highlighted entry in the right column and be shown in parentheses. Several entries in the right
column can be highlighted.
[Remove]
By clicking on Remove, the highlighted entry in the right column is removed. "Unassigned"
appears in parentheses.
Separating character
From this group you select the separating character that will separate the individual columns of
the CSV file to be imported.
56
Control FPWIN Pro Reference Manual 5.6 Import Variables
[Import]
Starts the import process from the line given in "Import from Line".
[Cancel]
Closes the dialog without importing.
57
Variables Control FPWIN Pro Reference Manual
ARRAYs
An array is a group of variables which all have the same elementary data type and that are
grouped together, one after the other, in a continuous data block. This variable group itself is a
variable and must hence be declared for this reason. In the program you can either use the
whole array or individual array elements.
Arrays can be 1, 2 or 3-dimensional. In each dimension, an array can have several fields.
58
Control FPWIN Pro Reference Manual 5.8 Cross-Reference Lists
• Cross-reference objects for the cross-reference list are only created if you
have checked the objects (POU, GVL, DUT) or the whole project with Object
→ Check and activated the option to generate cross-reference objects during
the check/compile process under Extras → Options → Program Options →
Cross-Reference. During each check of an object, the accompanying
cross-reference object is updated.
• By checking “Link cross-reference objects to cross-reference list”, you can
have the cross-reference list created automatically while compiling the
program. As this makes the compilation procedure longer, we do not
recommend this procedure.
For details on cross-reference lists, search criteria, wild cards etc., please refer to the online
help (keyword "Cross-Reference").
59
Variables Control FPWIN Pro Reference Manual
60
Chapter 6
Tasks
Tasks Control FPWIN Pro Reference Manual
Each POU of the type PRG has to be compiled and assigned to a task first, i.e. it
has to be entered into Tasks of the navigator. Otherwise it will not be processed.
You may assign one or several POUs to a task. If you assign several POUs, they will be
processed according to their input sequence. During compilation, the programs are treated as
one single program and are downloaded into the PLC.
You can deactivate/activate a program within a task for code generation by highlighting the
program and selecting Deactivate/Activate from the pop-up menu or via the menu Edit.
62
Control FPWIN Pro Reference Manual 6.2 Assigning a Program to a Task
4. [OK]
If you have created several programs, it is possible to assign them to one task. All
assigned programs will then be controlled by this single task.
5. <Tab>
6. Enter comment <Enter>
7. Object → Save
8. Object → Close
• SFC programs (SFC POUs) must always be entered one after the other in the
Task_Pool. No other POU types are allowed between them.
63
Tasks Control FPWIN Pro Reference Manual
Task information
Event
This field displays the assigned event or TRUE with cyclic processing. The event is directly
linked to the task.
Interval
For time-driven tasks, this field displays the interval after which the POU is reloaded. You can
change the interval by clicking the interval field and entering a time.
64
Control FPWIN Pro Reference Manual 6.2 Assigning a Program to a Task
Priority
Under FPWIN Pro, the priority for all tasks is firmly set at the value 31 and cannot be changed.
Interrupt tasks are processed in the order displayed in the Task pool, i.e. Interrupt 0 has a higher
priority than Interrupt 1, etc.
65
Tasks Control FPWIN Pro Reference Manual
The system resources, e.g. labels, data registers or file registers are used by both tasks and are
administered centrally.
• Programs that are entered under Tasks → Program 1 and the Interrupt
routine (Interrupt 0 - 23 and Timer Interrupt) are assigned to the first task.
• Programs entered under Tasks → Program 2 are assigned to the second
task.
• Programs written in Funtion Sequential Chart can only be used in the first
task.
66
Control FPWIN Pro Reference Manual 6.3 Second task for FP10SH/120k and FP2SH 120k
67
Chapter 7
Networks
Networks Control FPWIN Pro Reference Manual
Labels in an IL network
All networks together comprise one POU. In a POU, you can insert networks, delete them,
deactivate or activate them, add labels and comments. After creating networks, you can have a
list of them drawn up with Tools → Network list (see page 71).
70
Control FPWIN Pro Reference Manual 7.2 Network List
In this example, 2 networks are listed with the start and stop labels and their titles (comments).
On the right side of the network list dialog box there are several keys used for editing the
network in many different ways.
Always select the network prior to editing it. It is up to you to select one network or several
consecutive or non-consecutive networks.
71
Networks Control FPWIN Pro Reference Manual
When defining a label you may also enter a title (comment) for the network at the same time.
The following procedure also applies to the editing of network labels or titles.
72
Control FPWIN Pro Reference Manual 7.4 Deactivate or Activate Network
2. Edit → Deactivate/Activate or or
Deactivate/Activate in the pop-up menu
Move mouse cursor in the network info area to use the pop-up menu.
73
Chapter 8
Programming Editors
Programming Editors Control FPWIN Pro Reference Manual
FBD program
76
Control FPWIN Pro Reference Manual 8.1 LD and FBD Editors
Comment field
Programming window
Each POU body consists of one or more networks. The network info area is displayed on the
left. Here you can find the network number, labels and statuses, e.g. for breakpoints (debug),
network selection and error messages. The program is displayed in the right of the
programming window. Comments can be inserted using the symbol.
You may place up to 160 elements within a network. An element is anything that
can be created on screen, including lines. For this reason, when creating lines,
please draw them as long as possible using one stroke. If you compose lines
from several pieces, each piece counts as an element.
77
Programming Editors Control FPWIN Pro Reference Manual
copied. If you copy a programming symbol by selecting it and keeping <Ctrl> pressed
while dragging it to the new position, the programming symbol and all of its
accompanying connection lines is duplicated and automatically equipped with contacts.
When you open an LD or FBD body, the following buttons appear in the tool bar:
Icon Description
Inserts a new network before the selected network.
Deactivates/activates the selected network. Deactivated networks are treated like comments and are
therefore not compiled.
Switches between interconnect mode (Draw Line) and selection mode.
Opens the “Variable Selection” dialog box if a name box for an input/output variable is selected.
Opens the “OP/FUN/FB Selection” dialog box from which you can select operators, functions or function
blocks and insert them in the programming window with a left-click at the desired position.
Inserts a name box for an variable in the programming window. Left-click at the desired position.
Inserts a jump.
Inserts a comment.
78
Control FPWIN Pro Reference Manual 8.1 LD and FBD Editors
Icon Description
Inserts a coil in the programming window. Left-click at the desired position.
When you click the right mouse button anywhere in the programming window, a pop-up menu
opens. This menu contains many useful commands.
A list of the last operators, functions or function blocks used appears in the bottom part of the
pop-up menu.
For all of the functions, function blocks or operators inserted in the POU body,
you can have the corresponding help page displayed by selecting the desired
programming symbol and pressing <F1>.
In FBD and LD you can program for conditions by using EN/ENO functions and function blocks.
EN stands for enable input, ENO for enable output.
All IEC functions and function blocks are available both with and without EN and ENO. The
E_MOVE function does and the MOVE function does not have an EN/ENO, for example.
User-defined functions (see page 123) and function blocks (see page 124) can be created with
or without EN/ENO input and output. You can choose between the following possibilities:
79
Programming Editors Control FPWIN Pro Reference Manual
• when creating a new POU (Edit → New → POU or ) and selecting the option "With
EN/ENO contacts"
• at a later time with Object → Properties...
The ENO output can be explicitly set in the body during programming:
• If you do not explicitly set the ENO output within the body of the user-defined function or
function block, it will have the same value as the EN input.
• If you set the ENO output within the body of the user-defined function or function block
to FALSE, the values of the output variables will not be transmitted to the outputs.
Set EN to TRUE prior to processing the POU. Once the POU has been
successfully processed, the corresponding ENO is set to TRUE. If ENO is not
set, an error might have occurred.
In the Ladder Diagram and Function Block Diagram editors you can edit the programming
symbols in your program in selection mode as follows:
• select and deselect
• cut/copy and paste
• shift (with and without connection lines)
• change distance between programming symbols
• enter/change variable names
• extend functions and operators
• negate contacts, define edges, set and reset
• define graphic macros
For the description of these features and their use, please refer to the online help.
80
Control FPWIN Pro Reference Manual 8.1 LD and FBD Editors
You can check your program any time with Object → Check or . The entire program
defined up to that point is checked for syntax errors as well as for declaration errors (e.g.
whether a variable is used that has not yet been declared). Each error is listed individually in the
error list. Selection of any error in the error list by double-clicking causes the error to be
displayed in the POU body in the color defined for errors.
If applicable, please click on the displayed error and then [Show]. The program containing the
error will be displayed on your screen and the error will be highlighted.
Always fix the first error first and then repeat Object → Check. Subsequent
errors may be sequential errors.
81
Programming Editors Control FPWIN Pro Reference Manual
IF Send THEN
(* Copy characters of the variable SendString to the SendBuffer[1]
*)
(* SendBuffer[0] will be used by F144_TRNS. The number of bytes not
yet transmitted is stored in SendBuffer[0] at each transmission *)
F10_BKMV( s1_Start:= Adr_Of_VarOffs( SendString, StringHeaderSize),
s2_End:= AdrLast_Of_Var( SendString), d_Start:=
SendBuffer[1]);
8.2.1 Expressions
Expressions link the Operands (see page 83) of Operators (see page 83) based on their rank.
When their rank is the same, processing proceeds from left to right.
With the values A:=1.0; B:=2.0; C:=3.0; and D:=4.0; for
X:=A+B-C*SQRT(D); the result is -3.
When you wish to avoid processing UserFun1 for whatever reason, e.g. it’s too time-consuming, or when
a>=100 an operation error occurs, or because the memory area will be overwritten, you can write, for example:
IF a<100 THEN
IF UserFun1(a) THEN
82
Control FPWIN Pro Reference Manual 8.2 Structured Text Editor (ST)
a:=a+1;
END_IF;
END_IF;
8.2.2 Operands
The operands you can use in the ST editor are:
Name Type Example
Literal Numerical 49 or 3,14159
String 'This is a text'
Time T#8d_3h_23m
These operands can be linked via Operators (see page 83). The combination of Operators in
connection with Operands are called Expressions (see page 82).
8.2.3 Operators
The operators you can use in the ST editor are:
Operator Description Precedence
( ) Parentheses, Call up function highest
- Negation
NOT Complement
** Raise to a power
* Multiplication
/ Division
MOD Modulo (remainder)
+ Addition
- Subtraction
>,<,>=,<= Comparison
= Equal
<> Not equal
&, AND Boolean AND
XOR Boolean exclusive OR
OR Boolean OR lowest
Operators can link Operands (see page 83). The combination of Operators in connection with
Operands are called Expressions (see page 82).
83
Programming Editors Control FPWIN Pro Reference Manual
8.2.4 Instructions
The ST editor’s instructions are:
• the assignment instruction :=
• the specification instructions IF, CASE
• the repeating instructions FOR, WHILE, REPEAT along with the quit instruction EXIT
• the return instruction RETURN
Note:
The order matters for arguments
without formal parameters.
The case of letters is not significant.
Q=> End1 ,
Note:
EV=> EV_1 );
The order does not matter for
arguments with formal parameters.
Ton1(IN:=Start1, Function block arguments without
formal parameters
PT:=T#300ms);
End1:=Ton1.Q; Note:
Ev1:=Ton1.EV; The order matters for arguments
without formal parameters.
The case of letters is not significant.
84
Control FPWIN Pro Reference Manual 8.2 Structured Text Editor (ST)
FOR Loop instruction FOR i:=0 TO 100 DO Defined number of loops with preset
step width 1
SUM:=SUM + a[i]
END_FOR; or with user-defined step width
85
Programming Editors Control FPWIN Pro Reference Manual
8.2.5 Comments
You can enter comments anywhere you like in the ST editor. Comments are enclosed by
parentheses with asterisks '(*' and '*)' and are not nested. They can extend over several lines.
(* this is a
86
Control FPWIN Pro Reference Manual 8.2 Structured Text Editor (ST)
You can enter the name of an operator or a function (see Insert operand (see page 88)) directly
in the editor. A function block is entered by the name of its instance in the dialog variable
selection.
1. Click or
Tools → OP/FUN/FB Selection or
87
Programming Editors Control FPWIN Pro Reference Manual
<Shift> + <F2>
The dialog box OP/FUN/FB Selection is opened.
2. Choose OP, FUN or FB
3. Insert with [Insert -> Body] or by double-clicking in the editor
4. Create parameter list with the insertion template
or
Enter parameters directly into the editor
You can enter the name of the variable (see page 83) or instances of function blocks (see page
37) as text into the editor or use the Variable Selection dialog box.
2. Click on or
Tools → Variable Selection or
<F2>
The dialog box Variable Selection opens.
3. Select variable
4. Insert with [Insert -> Body] or by double-clicking in the editor
88
Control FPWIN Pro Reference Manual 8.2 Structured Text Editor (ST)
• The address functions of the FP Tool Library do not distinguish between input and
output functions, i.e. in the ST editor, only one of them exists.
Functions of the ST editor Corresponding functions in the FP Tool Library
Adr_Of_Var Adr_Of_Var_I Adr_Of_Var_O
AdrLast_Of_Var AdrLast_Of_Var_I AdrLast_Of_Var_O
Adr_Of_VarOffs Adr_Of_VarOffs_I Adr_Of_VarOffs_O
AdrDT_Of_Offs AdrDT_Of_Offs_I AdrDT_Of_Offs_O
AdrFL_Of_Offs AdrFL_Of_Offs_I AdrFL_Of_Offs_O
• When debugging an IF or CASE control structure, the program code within the control
structure will run even if the control condition is not true. However, the individual
commands will not be executed.
• Do not use the value of the control variable after the loop is finished because different
values have been assigned to it.
• Programming loops with many steps may extend the scan time of the PLC. Increase the
settings (system register 30) or try to divide the program into several cycles.
• The data type of a Boolean or numeric literal can be specified by adding a type prefix to
the literal, consisting of the name of an elementary data type and the '#' sign. For
example INT#2 or REAL-3.2.
To identify literals, some competitor programming systems require typed literals. For
this reason, FPWIN Pro also supports typed literals. Because internally the compiler of
FPWIN Pro automatically assigns a the right type to literals, it is not required to explicitly
type literals as described above.
• The case of letters is not significant in
- identifiers (for instance, the identifiers abcd, ABCD, and aBCd are interpreted
identically) and
- keywords (for instance, the keywords "FOR" and "for" are syntactically equivalent).
When compiling code with earlier versions of Control FPWIN Pro, please
remember that these versions are case-sensitive.
89
Programming Editors Control FPWIN Pro Reference Manual
90
Control FPWIN Pro Reference Manual 8.3 IL Editor
8.3 IL Editor
The instruction list editor is a text-based, non-syntaxed editor. Here you enter IL commands in
accordance with the IEC-61131 standard, which are listed under "Standard Operators" in the
online help, or in accordance with the basic instruction set.
Comments
Operands
Operators
Each POU body consists of one or more networks. In the left of the network info area, the labels
(Start:, Stop:) and statuses, e.g. for breakpoints, network selection and error messages, are
displayed.
The program is displayed on the right in the programming window. It is subdivided into three
columns: Operators, Operands and Comments. The comments are restricted by brackets and
asterisks (* *). Comments can be several lines long and positioned anywhere in the
programming window. Empty lines in the body are permissible. Each body can contain 60kB
maximum of ASCII source texts.
An IL network (see page 70) must always start with a load operation (LD). Linking results are
filed in the bit memory. They are lost, however, when transferred from one network to another.
• Each result which you require at a later stage should be buffered (variable)
before another network is processed.
• Please do not create overly large networks as this makes searching for
errors and following labels a very time-consuming task. Take advantage of
structured programming.
For additional information and examples on working with the IL editor, please refer to the online
help (keyword "Instruction List Editor").
91
Programming Editors Control FPWIN Pro Reference Manual
92
Control FPWIN Pro Reference Manual 8.4 Sequential Function Chart (SFC)
Example:
SFC program
Initial step
Transition
Step
Divergence
Convergence
Final step
93
Programming Editors Control FPWIN Pro Reference Manual
Step
A step is a part-task, e.g. switch on motor.
When you switch the PLC from PROG to RUN mode, the initial step is the first step to be
activated. The steps are processed one after the other. Once the final step has been processed,
the initial step is reactivated etc.
You can assign one or more actions to each step. If you do not assign an action to a step, the
step has a wait function until the subsequent transition is fulfilled. Actions are entered under
Actions in the project navigator and can be Boolean variables or programs in LD, ST, IL or FBD.
They can be assigned to one or more steps. Whenever a step is active, the actions assigned to
it are executed.
Action
Create a new action in the navigator:
1. Select the POE or the respective Action pool of the SFC program
Select the step you wish to associate with an action and click to open the respective
window "Action Association".
Monitor → Monitor Header or lets you monitor the status of a step flag. The name of this
flag is composed of the name of the step plus the extension .X, e.g. Step1.X.
94
Control FPWIN Pro Reference Manual 8.4 Sequential Function Chart (SFC)
Macro step
Several steps can be summarized in a macro step. A macro step is marked by two extra
horizontal lines. Behind the "Ventilation" macro step, for example, there are several steps which
serve ventilation control.
Transitions
A transition is a conditional jump. Once the transition is fulfilled, the next step becomes active.
A transition can be:
• A Boolean variable or address (e.g. bVar or R0)
The transition is regarded as fulfilled once the assigned variable or address is TRUE.
• A transition condition (e.g. "NOT bVar" or "bVar1 & bVar2")
The transition is regarded as fulfilled if the calculation result of the ST program code is
TRUE.
• A program in IL, FBD, LD or ST programming language
95
Programming Editors Control FPWIN Pro Reference Manual
The transition is regarded as fulfilled once the variable with the name of the transition is
TRUE. The variable with the transition name is automatically declared by Control
FPWIN Pro.
Parallel divergence
A parallel divergence is marked by a double horizontal line. When the transition is fulfilled before
the parallel divergence, two or more steps are executed in parallel (simultaneously).
After execution, all of the steps are reunited in a transition by a parallel connection.
96
Control FPWIN Pro Reference Manual 8.4 Sequential Function Chart (SFC)
The transition after a parallel convergence only takes effect once all of the
previous steps have been processed.
Alternative divergence
An alternative divergence is marked by a horizontal line. Depending on which transition is
fulfilled (GoToWords or GoToDoubles), the accompanying divergence is executed. When
both transitions are fulfilled at the same time, the execution priority of left to right applies, i.e. in
the following divergence, only the step to GoToWords is executed.
No matter which step is executed, both steps are reunited with the following symbol:
When programming with the SFC editor, not only the POEs but all actions and transitions for
entering an SFC program are displayed in the navigator under Actions.
For further information on the most important steps, see online help under keyword "Edit an
SFC".
97
Chapter 9
Downloading Projects to the PLC
Downloading Projects to the PLC Control FPWIN Pro Reference Manual
100
Control FPWIN Pro Reference Manual 9.2 PLC Type
• When you select [Default], the compile options are reset to the default
values. Variables from the list of global variables that were in the hold area
might now be in the non-hold area. For this reason, you should adapt the
compiler options and hold/non-hold areas after changing the PLC. Under
Extras → Options → Compile Options → Code Generation, you can set the
compiler to retain these variables.
• Furthermore, all system registers are reinitialized and the default values are
loaded when you change the PLC type.
101
Downloading Projects to the PLC Control FPWIN Pro Reference Manual
Do not use explicit addresses in the editor's bodies, because they will be
unaccounted for if the you have pressed [Maximize system areas according to the
global variables].
For example, if you use R110 and R200 directly in the body, WR11 and WR20
would not be taken into consideration.
102
Control FPWIN Pro Reference Manual 9.3 Address Ranges
WR11 and WR20 are taken into consideration when you use global variables with
explicit addresses as shown in the following example:
Values in the non-hold area are lost in the event of a power cut or when switching from RUN to
PROG mode; values in the hold area are retained. They are not initialized until the program is
downloaded to the PLC. The values in the user area are not initialized if you did not place a
check mark in the "Retain variables in the user area are not initialized" check box in the
"Options" dialog field under Extras → Options → Compile Options → Code Generation.
• For FP2, FP3, FP-C and FP5 the size of the file register (FL) can be set in the
Project Navigator under PLC → System Registers → Memory Size (0-3).
• The address from which the areas are self-holding can be set in the
navigator under PLC → System Registers → Hold OnOff (5-18).
• When you change the compiler options, you must recompile the entire
project.
• Each variable which did not receive an address in the global variable list is
automatically assigned a memory area by the compiler.
• Not all memory areas apply for all PLC types (highlighted in light gray).
• In the global variable list addresses for all PLC inputs and outputs (X,Y) must
be provided. For all internal data areas (DT, R, etc.) the addresses are
automatically assigned by the compiler unless a hardware address is
entered. It is recommended to have all addresses assigned by the compiler
to ensure that all addresses are automatically updated when the PLC type is
changed. Addresses should be designated only if it is absolutely necessary,
e.g. to assign addresses for higher ranking devices (operator devices,
terminals, etc.).
The following table shows where the compiler allocates variables of a given class and data type:
103
Downloading Projects to the PLC Control FPWIN Pro Reference Manual
The compiler also automatically creates labels which are required for loops.
The number of labels for the system (compiler) can be specified using Extras → Options →
Compile Options → Labels.
You can activate the standard settings for your compiler if you click on [Default].
104
Control FPWIN Pro Reference Manual 9.4 Compiling a Project
If no errors arise while compiling, you can download the compiled project using
Online → Download Program Code and PLC Configuration.
Only POUs of the type Program (PRG) that are entered under Tasks are
compiled.
105
Downloading Projects to the PLC Control FPWIN Pro Reference Manual
If no errors arise, you can download the compiled project using → Download
Program Code and PLC Configuration.
• If you use the function Compile Incrementally several times in a row the
memory assignment of the PLC might be fragmented. We therefore
recommend that you use the function Compile All (see page 105) in regular
intervals. With Compile All any fragmented memory assignment will be
restored.
• A POU is an incremental unit. When part of a POU is changed, the entire POU
is recompiled. In order to keep the complexity of commissioning to a
minimum, we would recommend distributing the whole program among as
many POUs as possible (structured programming).
• Only the POUs of the type Program (PRG) which are entered under Tasks are
compiled.
106
Control FPWIN Pro Reference Manual 9.5 Check Memory Area Assignment
• Sequential Steps (SSTP) are available in the Sequential Function Chart (SFC)
only. You can obtain a display of available steps and those already used.
• Instruction SUB is the memory for user-defined function blocks (FB) and
functions (FUN).
• The number of available relays and registers depends on your PLC type and
PLC configuration.
When you click [Show Details] you will receive a detailed description of the point you have
clicked in the window shown above.
107
Downloading Projects to the PLC Control FPWIN Pro Reference Manual
108
Control FPWIN Pro Reference Manual 9.6 Communication Parameters
When using an ET-LAN unit, make sure you have read the “ET-LAN SYSTEM
Technical Manual” before setting the communication parameters.
109
Downloading Projects to the PLC Control FPWIN Pro Reference Manual
With Online → Online Mode or <Shift> + <Esc> or , you can switch between online and
offline mode. The status line (see page 12) indicates whether online or offline mode is switched
on (if status was set up correctly). The symbol is highlighted if you are online.
As soon as you change from offline mode to online mode, the software checks whether the PLC
type set in the project is the same as the PLC connected. If this is not the case, you will be
requested to adopt the PLC type connected. If you cancel this procedure, Control FPWIN Pro
remains in offline mode.
If you update the PLC, you also have to adjust the PLC configuration. Otherwise FPWIN Pro will
not switch into online mode, but will rather ask you to configure your PLC accordingly.
110
Control FPWIN Pro Reference Manual 9.8 Security Settings
Security settings dialogs for PLCs (upload protection dialog on the right, e.g. for FP-X)
Status information
The status information shows the accessibility condition of the PLC as either password
protected or accessible.
Once upload protection has been activated, the complete program code,
comments and password settings will be erased if the function is turned off.
111
Downloading Projects to the PLC Control FPWIN Pro Reference Manual
Password function
Here you can set a new password or change an existing one.
Clear password To delete the existing password, press [Clear] or change the password (see above) to an
empty password.
PLC access
In this section you can log onto or log off the PLC.
Login To log onto the PLC, enter the current password in the field “Enter password” and click
[Login]. The section “Status” now shows the new password state.
Logout If a password is set and the user is already logged onto the PLC, the PLC can be protected
by clicking [Logout]. In this case, neither uploading nor downloading is possible.
112
Control FPWIN Pro Reference Manual 9.9 Downloading a Project
If your PLC supports the configuration memory option (see hardware manual),
you can download not only the program code, but the entire project via Online →
Save Project in the PLC. Project information includes the contents of all editors,
the PLC configuration, the compiler options and the content of the user libraries.
Attention!
113
Downloading Projects to the PLC Control FPWIN Pro Reference Manual
• The variables in the global variable list, the DUT and the POU Headers may not have
been edited, added to, or deleted.
• Only a program or function may have been changed. Function blocks cannot be
changed online.
• A program can be added, but not removed.
• The PLC configuration may not have been changed.
• If the PLC remains in RUN mode, only an instruction may be changed or inserted.
• In the case of FP1 and FP-M prior to Version 3.0, Online → Download
Program Code Changes is only available in PROG mode; for all other PLC
types, this command is available in both PROG and RUN mode.
• Make small changes or spread out the changes in small bits, since only
small contiguous program packages can be downloaded to the PLC while in
RUN mode (max. 128 steps compiled, contiguous code; for the FP-X: 512
steps).
• The FP-X offers the possibility to download the complete program code in
run mode if the size of code changes exceeds 512 steps.
• The offline PLC configuration must be the same as the online configuration.
If this is not the case, you will receive an error message.
Attention!
114
Control FPWIN Pro Reference Manual 9.9 Downloading a Project
With Online → Online Edit Mode or you change the mode so that you can make changes
in the body of your PLC program. In order to do this, the correct project opened in the project
Navigator has to be loaded on the PLC (Online → Download Program Code and PLC
Configuration). After you have made the desired changes, select Online → Download
Program Code Changes (see page 113) or click .
• With the PLC types FP1 and FP-M, you can only make changes in Online
programs while in PROG mode. With all other PLC types, you can do this in
PROG or RUN mode.
• Make small changes or spread out the changes in small bits, since only
small contiguous program packages can be downloaded to the PLC while in
Online mode (max. 128 steps compiled contiguous code; for the FP-X: 512
steps).
• The FP-X offers the possibility to download the complete program code in
run mode if the size of code changes exceeds 512 steps.
• New variables cannot be declared in Online mode. In this case, define a
dummy variable while in Offline mode. You can use this to enter addresses
directly into the body at any time.
115
Downloading Projects to the PLC Control FPWIN Pro Reference Manual
If you want to upload an entire project from the PLC to the PC, use the command
Project → Open Project from the PLC. However, only certain PLCs can utilize
this command.
116
Control FPWIN Pro Reference Manual 9.9 Downloading a Project
The PLC’s program and system register settings are overwritten by those of the FPWIN Pro
Program.
117
Downloading Projects to the PLC Control FPWIN Pro Reference Manual
registers from PLC) or vice-versa (download I/O maps to the PLC). You can also reset the PLC
configuration with FPWIN Pro to their default settings (Defaults −> Project).
Online → Change PLC Mode or enables you to switch back and forth between the RUN
and PROG PLC modes if the PLC operating type selection switch is at REMOTE. In PROG
mode, you can download the program into the PLC memory; in RUN mode, the program is run
in the PLC.
If you added the field "online mode" to the status bar (see page 12) you also can double-click
this field to switch between the two modes.
118
Control FPWIN Pro Reference Manual 9.10 How the Compiler Works
119
Downloading Projects to the PLC Control FPWIN Pro Reference Manual
3. In the case of the element from the second step (interim result), the compiler conducts
the output current to all elements directly connected to it. Then it evaluates the next
element. Finally, it returns to the second step until all elements are evaluated or no
element is available for the evaluation.
4. The processing procedure is interrupted or ended.
You will find program examples for the processing order in FPWIN Pro in the online help
(keyword “Processing Order in LD and FBD Networks”).
120
Control FPWIN Pro Reference Manual 9.10 How the Compiler Works
Example 1:
The value of var_1 is changed from -45 to -40. But in the var_1 variable of the E_SUB
function, the value -45 is used which the variable had when the compiler entered the
network This is termed a “late assignment”.
The result after processing the network: var_1 = -50. This is as a result of temporary
variables which are introduced internally in the Control FPWIN Pro program code. At
the end of a network and before each jump, the variables are assigned the values of
these temporary variables.
Example 2:
Here the program is divided among two networks. The result from network 1 for var_1 =
-40 is used by E_SUB in network 2. The value after processing in network 2 is var_1 =
-45
121
Downloading Projects to the PLC Control FPWIN Pro Reference Manual
ST R0
OT R1
ST R9010
F22 (*PLUS_S*)
122
Control FPWIN Pro Reference Manual 9.10 How the Compiler Works
DT0
DT1
ST R2
AND R3
OT R4
123
Downloading Projects to the PLC Control FPWIN Pro Reference Manual
DT550
F0 (*MV*)
DT1 DT1 -> UserAdd.In2
DT551
CALL 0 UserAdd subprogram cue
ST R9010 Reload output parameters
F0 (*MV*)
DT552
DT2 UserAdd -> DT2
...
ED End of the main program
SUB 0 UserAdd subprogram
ST R9010
F22 (*PLUS_S*)
DT550
DT551
DT552 if (TRUE)
UserAdd=UserAdd.In1 + UserAdd.In2
RET backward jump to main program
• With FB indexing, some basic functions do not work correctly when they are
called up several times within a cycle. You will receive an error message with
the following commands:
- Counters: F118, F166, F167, F168
- Shift instructions: SR, F119
124
Control FPWIN Pro Reference Manual 9.10 How the Compiler Works
Instances of function blocks can be assigned to holding areas, i.e. all conditions for the function
block’s variables remain intact after a power failure. In this case, the variables have to be
entered under the class VAR_RETAIN or VAR_EXTERNAL_RETAIN in the POU header. For
VAR_EXTERNAL_RETAIN, the FB instance must have been declared in the global variable list
as VAR_GLOBAL_RETAIN.
If the class VAR_RETAIN or VAR_EXTERNAL_RETAIN is used for the instance, the compiler
assigns addresses from the holding area to the non-holding variables of the classes VAR,
VAR_INPUT, VAR_OUTPUT or VAR_IN_OUT, which are only initialized after downloading the
program. Sub-instances of the class VAR are treated like sub-instances of the class
VAR_RETAIN. The adresses for other variables or sub-instances of the classes VAR_RETAIN,
VAR_OUTPUT_RETAIN, VAR_EXTERNAL, or VAR_EXTERNAL_RETAIN are assigned as for
instances of the class VAR or VAR_EXTERNAL. The values of the variables of the classes
VAR_CONSTANT and VAR_EXTERNAL_CONSTANT are entered as constant values in the
program code.
If the class VAR or VAR_EXTERNAL is used for an instance, the declaration of the variables or
sub-instances in the function block determines whether they are holding (VAR_RETAIN) or not
(VAR).
The POU Header of the function block ‘FB1’ has the following entries. Function block
‘FB1’ also draws upon two instances of function block ‘FB2’.
125
Downloading Projects to the PLC Control FPWIN Pro Reference Manual
The POU Header of the function block ‘FB2’ has the following entries.
126
Control FPWIN Pro Reference Manual 9.10 How the Compiler Works
The compiler’s job is to ensure that index registers that are used in interrupt programs, functions
or function blocks are not overwritten. For this reason the following code is generated for PLCs
(index register in interrupt: program code, programmer’s comments on the right):
ST R9010
F0_MV DT458, I5 Actual program code
F0_MV K5, I5DT455
ST R9010
F412_POPB Index register band reset
ST R9010
F0_MV DT458, I5 Actual program code
F0_MV K5, I5DT455
ST R9010
F0_MV DT461, I5 Rewriting the current content
IRET
127
Chapter 10
Debugging
Debugging Control FPWIN Pro Reference Manual
When debugging, you can simulate the program flow (i.e. you have not
connected any outputs) or you can activate the outputs using Debug → Test
Flags → Output Enable. The PLC must be in test prog mode for this.
130
Control FPWIN Pro Reference Manual 10.2 Step Mode
The POUs entered in the task are loaded automatically and processed in step
mode.
In the procedure, we assume that you have already downloaded your project into the PLC.
131
Debugging Control FPWIN Pro Reference Manual
• Specify the colors for set and active breakpoints using Extras → Options →
Program Options → Editors → Format. Select an editor and open the "Format"
menu. Choose a color for set and active breakpoints.
• The POUs entered in the task are loaded automatically and processed from
breakpoint to breakpoint.
In the procedure, we assume that you have already downloaded your project into the PLC.
Removing a breakpoint
1. Switch PLC to Prog mode
2. Select breakpoint
132
Control FPWIN Pro Reference Manual 10.3 Breakpoint Mode
With Debug → Breakpoints you can view the breakpoints set in the current project, insert or
erase breakpoints.
Use Debug → Test Flags → Output Enable to send the results of the links to the outputs.
Please ensure that the control for these settings must be in TEST PROG mode.
133
Debugging Control FPWIN Pro Reference Manual
10.4 Breakpoints
With Debug → Breakpoints or you can view the breakpoints set in the current project, or
insert or erase them.
The fields in the dialog box mean the following:
Task
no function
Call Path (POU)
Breakpoint in programs:
Enter program name
Breakpoint in functions:
Enter function name
Breakpoint in function blocks:
Program name, function block instance name
e.g. program name.FB instance name 1.FB instance name 2
if a function block has to access another function block:
Editor Position
Enter Network number. The first network has the number 1.
Break condition
no function
Number of Passes
no function
Breakpoints
Shows the current breakpoints that are set.
Please note that due to the code optimization of the compilers, it is not possible
to set breakpoints in some IL/ST lines.
134
Control FPWIN Pro Reference Manual 10.4 Breakpoints
In the following illustration, the breakpoint is in the first network, 2nd line.
Breakpoint in an IL
Breakpoint in a LD
Breakpoint in a FBD
135
Debugging Control FPWIN Pro Reference Manual
In the above illustration a breakpoint is set in the first network and is highlighted in the
breakpoint color in the network info area.
Breakpoint in a SFC
In the above illustration a breakpoint was set on the first step after the initializing step (color
background).
In the SFC program, the breakpoint is only processed when the program has also reached this
stage. If the program part in which the breakpoint was set is not processed, the breakpoint is not
reached either.
136
Chapter 11
Monitoring
Monitoring Control FPWIN Pro Reference Manual
the header
entry values
sampling traces
Monitoring can only be carried out in online mode (see page 110).
For details and procedures on these monitoring operations, please refer to the online help.
138
Chapter 12
Additional Memory
Additional Memory Control FPWIN Pro Reference Manual
IC Card
IC Cards can be used for additional memory in several PLC types. With the IC Memory Card
Manager you can format, write, read and clear IC Cards under FPWIN Pro.
FPWIN Pro supports IC Cards for SRAM and F-EEPROM. Depending of the type of IC card
inserted into the PLC, certain functions (e.g. formatting) are locked out in the IC Card Manager
dialog box.
EEPROM
A program can be exchanged directly between the RAM of a Matsushita PLC and an EEPROM
(plug-in EEPROM or EEPROM card available as an option, depending on the PLC type used).
EPROM
A compiled program can be saved on a hard drive or a floppy disk in FP Hex format, in Motorola
Hex format or in Intel Hex format and loaded in an EPROM using EPROM software.
Using EPROM software, the Motorola Hex and Intel Hex formats can be loaded in an EPROM
which can be plugged into the PLC as a program memory facility.
With the exception of FP0 (10k), FP-Σ, FP-M (0.9k), FP1 C14 (0.9k) and FP10/FP10S, all
Panasonic PLC types can use an EPROM for saving programs.
140
Chapter 13
Exporting and Importing
Exporting and Importing Control FPWIN Pro Reference Manual
• Exporting projects is a good way to save data, especially for saving space.
The ASCII file can be saved on floppy disk.
• Before installing an Control FPWIN Pro upgrade/update, we recommend
exporting all existing projects with the old version and importing them into
the new version once it has been installed. This ensures that you are working
with the current data base.
142
Control FPWIN Pro Reference Manual 13.2 Introduction to Reusability Level
143
Exporting and Importing Control FPWIN Pro Reference Manual
Exporting a project:
• The file type “Reusability Level: POU files (*.st)” is available for POUs only
that are created with the ST editor.
• The file type “ Reusability Level: Type files (*.typ)” is available only if data
unit types are created under "DUTs" in the project navigator.
Importing a project:
The following files can be imported with the function "Import Project":
• FPWIN Pro (*.asc)
• FPWIN GR project files (*.fp)
• NPST GR files (*.spg)
• Reusability Level POU files (*.st)
• Reusability Level Type files (*.typ)
144
Control FPWIN Pro Reference Manual 13.3 Exporting/Importing Projects
Before using this function you have to create an empty project using Project →
New or an existing project has to be opened with Project → Open.
For details on importing NPST GR or FPWIN GR projects see the online help (keyword “NPST
GR file” or “FPWIN GR file”).
Examples of FPWIN GR file import
145
Exporting and Importing Control FPWIN Pro Reference Manual
Exporting Objects:
With Object → Export Object you can export any or all objects to a Control FPWIN Pro
compatible file.
• The file type “Reusability Level: POU files (*.st)” is available for POUs only
that are created with the ST editor.
• The file type “ Reusability Level: Type files (*.typ)” is available only if data
unit types are created under "DUTs" in the project navigator.
Importing objects:
Objects such as POUs, global variable lists, and tasks can be imported. You can save certain
program parts on a floppy disk/hard drive to use later in a different project, for example. Object
→ Import Object enables you to import individual objects from a completely exported project.
The following files can be imported with the function "Import Object":
• FPWIN Pro files (*.asc)
• FPWIN GR project files (*.fp)
• NPST GR files (*.spg)
• Reusability Level POU files (*.st)
146
Control FPWIN Pro Reference Manual 13.4 Exporting/Importing Objects
1. Select the object (objects) in the project navigator, e.g. POUs and/or Tasks
Only objects according to the selection in the project navigator are imported. Use
<Shift> and/or <Ctrl> for multiple selection.
2. Object → Import Object
3. Select drive and path of the file that is to be imported
4. Click file name
Use <Shift> and/or <Ctrl> for multiple selection.
5. Click [OK]
The information from the file selected will be imported into the current project of
FPWIN Pro and will be displayed within the project navigator under the respective
objects.
A system message will be displayed as soon as you have successfully completed the import
procedure.
147
Exporting and Importing Control FPWIN Pro Reference Manual
With Object → Import Program Code you can upload a compiled program code of a file.
148
Chapter 14
Keyboard Assignment
Keyboard Assignment Control FPWIN Pro Reference Manual
14.1 Shortcuts
Key <Shift> <Ctrl> <Alt> <Shift>+
<Ctrl>
<1>Navigator <underlined
on/off character>
<a>Select all Activate menu
<0> Activate
<c>Copy
navigator
<f>Find
<h>Replace
<k>Edit
breakpoints
<n>New project
<o>Open project
<p>Print
<q>Print preview
<s>Save
<v>Insert
<x>Cut
<y>Redo
<z>Undo
<Esc> Discard changes Online mode
in edit box and
close field
<Tab> Next field Previous field Change windows
Next line Last field of
Insert line at the previous line
end Insert line at the
beginning
<Space> Open field or text Open system
entry if field open menu
<Return> Close field Next field of same Insert carriage Object properties Previous network
or column return in comment
IL: new line in
<Enter>
same network Next network Close network
<Back-sp Delete selected Redo Undo
ace> characters
Delete character
left of cursor
<Ins> Paste Copy
150
Control FPWIN Pro Reference Manual 14.1 Shortcuts
<↑> Line up
F9 Insert/delete
breakpoints
151
Keyboard Assignment Control FPWIN Pro Reference Manual
152
Chapter 15
Glossary
Glossary Control FPWIN Pro Reference Manual
Accumulator
The accumulator stores intermediate results of an IL instruction. The result of each operation is
stored immediately after it is processed. Input conditions for subsequent operations are not
necessary: further processing is based on the current value of the accumulator. The
accumulator’s content is lost when the following network is processed. Therefore, store its
value in a variable if you require it later on in another network.
Action Assignment
An action combines one sequence (created with the SFC editor) with parts of the logic which
are executed when a specific step is active. An action contains parts of the over-all logic. An
action can be assigned to multiple steps and can be coded in FBD, LD, IL or ST.
Action Pool
The action pool appears below the POU in the project navigator when a program is created
using SFC. All actions programmed for this POU are located here.
Array
An array is a number of variables all of which have the same data type. This combination
represents a variable itself, and therefore it is declared.
Compile
When a project is compiled, Control FPWIN Pro translates it into machine language so that the
PLC can read it.
Data Type
In Control FPWIN Pro a difference is made between elementary and user-defined data types.
Elementary data types include: BOOL, INT, DINT, WORD, DWORD, REAL, TIME and
STRING.
Declaration
A declaration is the definition of variables for global or local use.
DUT
With a Data Unit Type (DUT) you can define a data unit type that is composed of other data
types. A DUT is first defined in the DUT pool and then processed like the standard data types
(BOOL, INT, etc.) in the list of global variables or the POU header.
DUT Pool
The DUT pool is located in the project navigator and contains all Data Unit Types (DUTs). Data
Unit Types are user-defined.
F-Instructions
F-Instructions are instructions from the basic Instruction Set. They are executed whenever the
EN input has a value of TRUE.
154
Control FPWIN Pro Reference Manual Glossary
Function
Functions are used within the definition of the user logic whenever a routine is needed, which,
when executed, yields exactly one result. Since Functions do not access any internal memory,
every invocation of one Function with identical input parameters always results in an identical
value: the Function result. As soon as a Function has been declared it can be accessed from
any other Program Organisation Unit of the User Logic.
Function Block
Function Blocks define both the algorithm and the data declaration of a part of the User Logic.
Due to this definition the logic can be considered a class. Not the Function Block itself is
invoked but several instances of this Function Block can be created, which then can be used
separately. Each instance possesses its private copy of the data declaration memory, which
provide the necessary data information for executing the Function Block’s functionality.
The private data declaration memory of a Function Block Instance persists from one
invocation of this instance to the next one. This internal memory allows for the implementation
of incremental functionality by using Function Blocks.
As a consequence, several invocations of one Function Block Instance with the same input
variables do not necessarily yield the same results.
In contrast to Functions, Function Blocks permit defining not only one but a set of output
variables representing the Function Block results.
Instances of Function Blocks can be declared locally for use within one POU. Declaring the
instance of a Function Block within a POU defines the scope of this instance at the same time.
Global Variable
A global variable is assigned a physical address in the global variable list. From there it can be
accessed by all POUs.
Identifier
The identifier is the symbolic name of a variable.
Input Variable
Input variables provide functions and function blocks with the values they need for calculation.
155
Glossary Control FPWIN Pro Reference Manual
Library Pool
Four libraries come with Control FPWIN Pro. For more information, see online help.
Local Variable
A local variable is only valid for the POU in whose header it is declared.
Logic
The complete PLC program defined by the user for solving the automation problem. The user
logic is structured in Program Organisation Units.
Machine Program
Machine programs can be used with the FP2, FP3 and FP5 only. One of these PLC types has
to be selected with Online " PLC Type, otherwise the component Machine_Program will not be
displayed in the Project Navigator.
Panasonic Electric Works Europe AG optionally offers machine programs which take over
certain partial tasks which facilitate programming. At this point in time a PID controller is
available.
Network
Networks belong to a POU body and contain the logic (program).
Network List
A network list provides you with a better overview of your program. Open the network list when
the POU body is active via Tools → Network List.
156
Control FPWIN Pro Reference Manual Glossary
Object
In Control FPWIN Pro, all components listed in the project navigator are objects.
Online
Online means that the PC and the PLC are communicating with each other. You can also
program while online. Caution! When online, you must program with extreme caution
because programming errors/changes could injure men or damage machinery!
Output Variable
Functions and function blocks write their results into output variables.
P-Instructions
P-Instructions are instructions from the Basic FP Instruction Set that work exactly like the
F-Instructions except that they are only executed at a rising edge.
Program
A program is similar to a Function Block with one implicit Function Block Instance. The
differences between Programs and Function Blocks are:
• Programs are only allowed on top of a POU invocation hierarchy (i.e. a program may
not be invoked from another POU)
• Directly represented variables can be used for defining a Program
Project
The project occupies the highest level in the hierarchy of Control FPWIN Pro. It includes
everything the PLC carry out what is required.
Project Navigator
The project navigator provides structure for the project and contains all objects belonging to
the project: libraries, PLC configuration, the Task pool, POUs, etc.
157
Glossary Control FPWIN Pro Reference Manual
Task
defines the moment (and other execution parameters) of program execution. A POU of type
program contains the logic, i.e. it defines what has to be done. The association of a program to
a task defines the moment of the logic’s execution.
Structured Text
a text-based editor exempt from normal syntax. ST is a high-level language allowing you to
write complex programs and control structures. It is available for all PLCs and requires no
more resources, e.g. steps, labels or calls, than other editors while doing comparable
programming.
Variable
A variable is a symbolic name that links an input or output to an internal memory area of the
PLC. Variables can be either global or local.
158
Compile Incrementally ..........................105
Index Compiling a Project...............................105
Configuring Inputs/Outputs for Modular
PLCs ...................................................18
A Configuring Remote I/Os for Modular PLCs
Access to Protected Objects ..................27 ............................................................20
Accumulator..........................................154 Connecting Objects ................................77
Action Assignment ................................154 Control FPWIN Pro Projects...................15
Action Pool............................................154 Create a New POU .................................39
Additional Memory ................................139 Create New Project.................................23
Address Ranges ...................................102 Cross Reference.....................................59
Addresses...............................................44 Cross-Reference Lists ............................59
Adopting Global Variables in the POU CSV ........................................................56
Header ................................................46 Import.................................................56
Adr_Of_Var.............................................88
Array .....................................................154 D
ARRAY ...................................................58 Data Type .............................................154
ARRAY and Data Unit Type ...................58 Deactivate or Activate Network ..............73
Assigning a Program to a Task ..............63 Debug Menu .........................................130
Assigning Variables in the Program .......51 Debugging ............................................129
Declaration............................................154
B Declaring Local Variables.......................48
Backup Project........................................25 Defining Lables and Titles ......................72
BEFORE BEGINNING............................... i Delete Unused Variables........................47
Before You Download Your Program to the Downloading a Project..........................113
PLC ...................................................100 Downloading Changes in Run Mode ....113
Breakpoint Mode...................................132 Downloading Projects to the PLC...........99
Breakpoints...........................................134 DUT ......................................................154
Breakpoints in the FBD Editor ..............135 DUT (Data Unit Type) .............................21
Breakpoints in the IL/ST Editor.............134 DUT Pool ..............................................154
Breakpoints in the LD Editor.................135 DUTs.......................................................21
Breakpoints in the SFC Editor ..............136
E
C Edit Network ...........................................72
Calltree Tab ............................................29 Edit Objects ............................................26
Navigator ...........................................29 Editing Programming Symbols ...............80
Change PLC Mode ...............................118 Editors.........................................82, 91, 93
Changing Variables ................................53 Structured Text ..................................82
Check................................................31, 81 EN/ENO in Ladder Diagram ...................79
Check a LD or a FBD Program...............81 Enable Input and Enable Output ............79
Check Memory Area Assignment .........107 Export Variables .....................................54
Check Objekt ..........................................31 Exporting and Importing .......................141
Checking your Program ....................86, 92 Exporting/Importing Objects .................146
Clear Program and Reset System Exporting/Importing Program Code ......148
Registers ...........................................117 Exporting/Importing Projects ................144
Comma Separated Variables .................56 Expressions ............................................82
Command Buttons in the Tool Bar .........78
Comments ..............................................86 F
Communication Parameters .................109 F-Instructions ........................................154
Compile.................................................154 First Steps and Helpful Files.....................3
159
Index Control FPWIN Pro Reference Manual
160
Control FPWIN Pro Reference Manual Index
161
Record of Changes
Manual No. Date Description of Changes
ACGM0142END V1.0 JUNE 2000
ACGM0142END V2.0 AUG. 2001 Update for release of Control FPWIN Pro V4.0. See the
section "What is new" in the online help.
ACGM0142END V2.1 SEPT. 2001 Minor modifications and improvements integrated
ACGM0142V3.0EN Dez. 2003 Update for release of Control FPWIN Pro V5. See the
section "New in this version" in the online help.
ACGM0142V4.0END July 2005 Update for release of Control FPWIN Pro V5.1 and new
PLC type FP-X. Security settings new. See also the section
"New in this version" in the online help.
ACGM0142V4.1END January 2006 No changes in content.
GLOBAL NETWORK
Europe
H Headquarters Panasonic Electric Works Europe AG
Rudolf-Diesel-Ring 2, 83607 Holzkirchen, Germany, Tel. (08024) 648-0, Fax (08024) 648-111, www.panasonic-electric-works.com
H Austria Panasonic Electric Works Austria GmbH
Josef Madersperger Straße 2, A-2362 Biedermannsdorf, Austria, Tel. (02236) 26846, Fax (02236) 46133, www.panasonic-electric-works.at
H Benelux Panasonic Electric Works Sales Western Europe B. V.
De Rijn 4, (Postbus 211), 5684 PJ Best, (5680 AE Best), Netherlands, Tel. (0499) 37 27 27, Fax (0499) 37 21 85,
www.panasonic-electric-works.nl
H Czech Republic Panasonic Electric Works Czech s.r.o
Prumyslová 1, 34815 Planá, Tel. (0374) 79 99 90, Fax (0374) 79 99 99, www.panasonic-electric-works.cz
H France Panasonic Electric Works Sales Western Europe B. V. French Branch Office
B.P. 44, F-91371 Verrières le Buisson CEDEX, France, Tél. 01 60 13 57 57, Fax 01 60 13 57 58, www.panasonic-electric-works.fr
H Germany Panasonic Electric Works Deutschland GmbH
Rudolf-Diesel-Ring 2, 83607 Holzkirchen, Germany, Tel. (08024) 648-0, Fax (08024) 648-555, www.panasonic-electric-works.de
H Ireland Panasonic Electric Works UK Ltd. Irish Branch Office
Dublin, Republic of Ireland, Tel. (01) 4600969, Fax (01) 4601131, www.panasonic-electric-works.ie
H Italy Panasonic Electric Works Italia s.r.l.
Via del Commercio 3-5 (Z.I. Ferlina), I-37012 Bussolengo (VR), Italy, Tel. (045) 675 27 11, Fax (045) 6 70 04 44,
www.panasonic-electric-works.it
H Nordic Panasonic Electric Works Nordic AB
Countries Sjöängsvägen 10, 19272 Sollentuna, Sweden, Tel. (+46) 8 59 47 66 80, Fax (+46) 8 59 47 66 90,
www.panasonic-electric-works.se
H Portugal Panasonic Electric Works Portugal España S.A. Portuguese Branch Office
Avda Adelino Amaro da Costa 728 R/C J, 2750-277 Cascais, Portugal, Tel. (351) 21 481 25 20, Fax (351) 21 481 25 29,
www.panasonic-electric-works.es
H Spain Panasonic Electric Works España S.A.
Parque Empresarial Barajas, San Severo, 20, 28042 Madrid, Spain, Tel. (91) 329 38 75, Fax (91) 329 29 76,
www.panasonic-electric-works.es
H Switzerland Panasonic Electric Works Schweiz AG
Grundstrasse 8, CH-6343 Rotkreuz, Switzerland, Tel. (041) 799 70 50, Fax (041) 799 70 55, www.panasonic-electric-works.ch
H UK Panasonic Electric Works UK Ltd.
Sunrise Parkway, Linford Wood East, Milton Keynes, MK14 6LF, England, Tel. (01908) 231 555, Fax (01908) 231 599,
www.panasonic-electric-works.co.uk
Asia
H China Panasonic Electric Works (China) Co., Ltd.
2013, Beijing Fortune, Building 5, Dong San Huan Bei Lu, Chaoyang District, Beijing, China, Tel. 86-10-6590-8646,
Fax 86-10-6590-8647
H Hong Kong Panasonic Electric Works (Hong Kong) Co., Ltd.
Rm1601, 16/F, Tower 2, The Gateway, 25 Canton Road, Tsimshatsui, Kowloon, Hong Kong, Tel. (852) 2956-3118, Fax (852) 2956-0398
H Japan Matsushita Electric Works, Ltd.
1048 Kadoma, Kadoma-shi, Osaka 571-8686, Japan, Tel. 06-6908-1050, Fax 06-6908-5781, www.mew.co.jp/e-acg/
H Singapore Panasonic Electric Works Asia Pacific Pte. Ltd.
101 Thomson Road, #25-03/05, United Square, Singapore 307591,Tel. (65) 6255-5473, Fax (65) 6253-5689