PL7 Convert To Unity PRO
PL7 Convert To Unity PRO
35006148 07/2011
Unity Pro
PL7 Application Converter
User Manual
35006148.10
07/2011
www.schneider-electric.com
35006148 07/2011
Table of Contents
Safety Information . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
About the Book . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Part II
7
9
11
13
14
16
18
20
22
25
27
28
30
32
33
35
37
38
41
42
43
44
45
General . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Analysis Procedure . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
End of the analysis procedure. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Converter error message in the analysis procedure . . . . . . . . . . . . . . . .
Miscellaneous errors in the analysis procedure . . . . . . . . . . . . . . . . . . . .
46
47
48
49
50
51
53
54
57
3
59
60
61
62
63
64
64
65
66
67
69
70
71
74
75
77
80
81
82
86
89
91
93
95
97
98
100
101
104
105
107
109
115
116
117
118
119
120
121
122
124
125
126
35006148 07/2011
127
128
129
130
132
134
137
138
139
140
141
142
143
144
144
145
145
147
148
148
149
150
151
152
157
158
159
160
161
161
163
35006148 07/2011
165
165
165
168
169
170
171
172
173
174
175
176
177
179
181
181
182
182
183
15.1
167
183
183
185
185
185
187
Runtime screens . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
187
Appendices . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
189
Appendix A Recommendations. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
191
191
Glossary . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Index . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
197
199
35006148 07/2011
Safety Information
Important Information
NOTICE
Read these instructions carefully, and look at the equipment to become familiar with
the device before trying to install, operate, or maintain it. The following special
messages may appear throughout this documentation or on the equipment to warn
of potential hazards or to call attention to information that clarifies or simplifies a
procedure.
35006148 07/2011
PLEASE NOTE
Electrical equipment should be installed, operated, serviced, and maintained only by
qualified personnel. No responsibility is assumed by Schneider Electric for any
consequences arising out of the use of this material.
A qualified person is one who has skills and knowledge related to the construction
and operation of electrical equipment and its installation, and has received safety
training to recognize and avoid the hazards involved.
35006148 07/2011
At a Glance
Document Scope
This manual presents the PL7 application converter and describes the procedure for
converting PL7 applications into Unity Pro applications. It also contains
correspondence tables between PL7 programming elements and those of Unity Pro
programming.
Validity Note
This documentation is valid for Unity Pro from version 6.0.
User Comments
We welcome your comments about this document. You can reach us by e-mail at
techcomm@schneider-electric.com.
35006148 07/2011
10
35006148 07/2011
Unity Pro
General
35006148 07/2011
35006148 07/2011
11
General
12
35006148 07/2011
Unity Pro
Overview
35006148 07/2011
1
Subject of this Chapter
This chapter presents the PL7 application converter and describes the procedure for
converting PL7 applications into Unity Pro applications.
Whats in this Chapter?
This chapter contains the following topics:
Topic
35006148 07/2011
Page
14
16
18
20
22
13
Overview
If the conversion is automatic, the software generates a source file that can be
directly analyzed using Unity Pro. The application is imported automatically; after the
Unity Pro project analysis is manually started, the output window (see page 49)
containing the list of conversion errors is displayed on the screen.
If the conversion is semi-automatic, the converter generates a source file and a
conversion report file.
14
35006148 07/2011
Overview
In order for the contents of the converted source file to be usable, it needs to be
imported manually into an application. Following this import; the output window
(see page 49) containing the list of conversion errors is displayed on the screen.
WARNING
UNEXPECTED APPLICATION BEHAVIOR
The PL7 application converter translates the application but does not ensure its
correct operation. Test the application after the conversion.
Failure to follow these instructions can result in death, serious injury, or
equipment damage.
35006148 07/2011
15
Overview
Automatic Conversion
The procedure for converting a PL7 application into a Unity Pro is as follows:
The .fef PL7 source file is converted into a .xef Unity Pro source file, then imported
and analyzed automatically in the Unity Pro project. The analysis phase must be
started manually in order to detect any conversion errors and display them on the
screen in the form of an output window.
At the end of the procedure, the converted PL7 application and output window are
opened and displayed on the screen in the Unity Pro software.
To correct any conversion errors, click on the error line displayed in the output
window to go directly to the part of the program to be modified (see page 49).
16
35006148 07/2011
Overview
Semi-Automatic Conversion
The procedure for converting a PL7 DFB is as follows:
The .dfb PL7 source file is converted into a .xdb Unity Pro source file.
At the end of the procedure, the converted PL7 DFB is saved in its source format. In
order for this DFB to be exploitable by Unity Pro, it must be manually imported into
a Unity Pro application.
Following this import, you must start the projects analysis phase manually in order
to detect any conversion errors and display them on the screen in the form of an
output window.
To correct any conversion errors, click on the error line displayed in the output
window to go directly to the part of the program to be modified (see page 49).
The procedure for converting a PL7.DAT file is as follows :
The .dat PL7 file is converted into a .dat Unity Pro file by adding "_convert" in the file
name. At the end of the procedure, the converted PL7 .dat file is saved. Then it is
usable inside Unity Pro using the command "Transfert data from file to PLC" in the
menu PLC.
35006148 07/2011
17
Overview
NOTE: The recommended version of PL7 is V4.3. However, you may, under your
own responsibility, convert the exported applications with versions V4.0, V4.1 and
V4.2 if the hardware configuration has been explicitly exported in the FEF file. To
export the hardware configuration, you must modify the PL7SYS.INI file located in
the WINNT or Windows folder on your PC. This file must contain the following two
lines:
[PL7TOOL132]
ExportConf=True (to export configuration)
ExportPl7Converter=True (to export protected DFB)
The conversion of a DFB PL7 is called semi-automatic.
At the end of conversion, the user has:
z
z
Following a manual import of this converted DFB and the analysis in a Unity Pro
project, the output window containing the list of conversion errors is displayed.
NOTE: The recommended version of PL7 is V4.3 However, you may, under your
own responsibility, convert the exported DFB with versions V4.0, V4.1 and V4.2
18
35006148 07/2011
Overview
WARNING
UNEXPECTED APPLICATION BEHAVIOR
The conversion of complete applications, or DFBs, must be done with a PL7V4.3
(or more recent) version only. Test the applications and DFBs after the conversion.
Failure to follow these instructions can result in death, serious injury, or
equipment damage.
Processors
Sometimes the conversion procedure requires the size of the converted application
to be increased.
By default, the PL7 application converter automatically updates the processor +
memory card configuration, and proposes an equivalent configuration
(see page 53). However, this default selection may be modified.
NOTE: All PL7 applications earlier than version V4.0 must be updated.
For applications managed by the following processors, the update procedure
involves the compulsory replacement of the processor:
z
z
35006148 07/2011
Premium processor (see page 54) TSX P57 0, TSX P57 2 or T PMX P57 2,
Atrium processor (see page 57) T PCX 57 2.
19
Overview
Automatic conversion
The following diagram shows the technical aspects of the conversion procedure for
a complete PL7 application.
The following table describes the different steps involved in automatic conversion.
20
Step
Description
Conversion
During this phase, the .fef PL7 source file is converted into a .xef Unity Pro
source file. Any data and warnings relating to the conversion are generated.
Conversion
report
A .txt conversion report file is generated. It contains all data, warnings and
errors relating to the conversion procedure.
Import
Analysis
The imported file is analyzed by Unity Pro. Any conversion errors are
detected and generated.
Note: You must manually launch this analysis phase.
Output
window
Any conversion errors are shown in the output window (see page 48) which
is automatically displayed at the end of conversion.
35006148 07/2011
Overview
Semi-automatic conversion
The following diagrams show the technical aspects of the conversion procedure for
a PL7 DFB.
Description
Conversion
During this phase, the .dfb PL7 source file is converted into a .xfb Unity Pro
source file. Any data and warnings relating to the conversion are generated.
Conversion
report
A .txt conversion report file is generated. It contains all data and warnings
relating to the conversion procedure.
Once conversion is complete, the PL7 application converter stops.
The following diagram shows the technical aspects of the procedure for manually
importing a converted PL7 DFB into a Unity Pro application.
The following table describes the different steps in the manual import procedure.
Step
Description
Import
In order for the converted .xfb source file to be exploitable by Unity Pro, it must be
manually imported into a Unity Pro application.
Analysis The imported file is analyzed by Unity Pro. Any conversion errors are detected.
Note: You must manually launch this analysis phase.
Output
window
35006148 07/2011
Any conversion errors are shown in the output window (see page 48) which is
automatically displayed at the end of analysis.
21
Overview
If the functionalities or modules do not exist in V1.0, they will be indicated and not
acknowledged in the new Unity project.
If all functionalities or modules are available in Unity V1.0, the conversion is
performed normally.
For a V4.4 PL7 conversion to Unity Pro V2.0, the new functionalities and new
modules are converted. The following paragraphs describe the new features and
conversion rules to be used.
Fipio Applications
The PL7 applications containing the functionalities that implement a Fipio bus are
converted form V4.3 or V4.4 or V4.5 PL7 to V2.0 Unity Pro.
The Fipio I/O objects are converted in line with the new topological addressing rule
(see page 91).
Lexium EF
PL7 applications containing Lexium EFs LXM_SAVE and LXM_RESTORE
(see page 117) are converted from V4.3 or V4.4 or V4.5 PL7 to V2.0 Unity Pro.
NOTE: These EFs are used as part of applications that implement Lexium
controllers on a Fipio bus.
TSX WMY 100 Module
PL7 V4.3 service pack 1 is used in the TSX WMY 100 module. Applications
containing this module are converted from PL7 V4.3 service pack 1 to Unity Pro
V2.0.
22
35006148 07/2011
Overview
CANopen Applications
PL7 applications containing CANopen functionalities are converted to Unity Pro
V2.0, according to the following rules:
z
z
z
35006148 07/2011
Only the TSX CPP 110 card is available using Unity Pro V2.0,
A PL7 application containing a TSX CPP 110 card is entirely converted in Unity
Pro V2.0,
For PL7 applications containing a TSX CPP 100 card, the TSX CPP 100 card is
replaced using Unity Pro with a TSX CPP 110 card, and you must check or
modify the .CO configuration file of the CANopen bus for this to be implemented
with a TSX CPP 110 card.
23
Overview
24
35006148 07/2011
Unity Pro
Conversion procedure
35006148 07/2011
II
35006148 07/2011
Chapter Name
Page
27
37
45
25
Conversion procedure
26
35006148 07/2011
Unity Pro
The conversion of a PL7 application
35006148 07/2011
2
Subject of this Chapter
This chapter describes the procedure for converting a complete PL7 application into
a Unity Pro application.
Whats in this Chapter?
This chapter contains the following topics:
Topic
General
35006148 07/2011
Page
28
30
32
33
35
27
General
Introduction
Converting a PL7 application into a Unity Pro application requires the following:
z
z
z
z
Update
All PL7 applications earlier than version 4.0 must be updated, before being
converted into a Unity Pro application. To update a PL7 application, execute the
following actions running PL7 V4.3.
Step
Action
Select the hard disk and/or directory containing the file to be opened.
Select the file to be opened; the name of this file then appears in the File Name field.
Select a version TSX 3 processor that is compatible with your application from
the drop-down menu in the top left-hand corner of the Configuration screen.
Result: The Change Processor screen appears.
28
Action
Select the Properties command from the Edit menu.
Confirm with OK. The confirmation is only effective once the password is entered.
35006148 07/2011
CAUTION
UNEXPECTED APPLICATION BEHAVIOR - INCOMPLETE PROCEDURE
If a PL7 application to be converted contains DFBs whose protection cannot be
disabled (see page 38), the converter converts neither the DFB declaration nor the
calls from the DFB in the application.
The networks containing the call from a protected DFB are not converted: an error
message is displayed in the output window (see page 49).
In the conversion report file, the list of protected DFBs whose codes have not been
able to be converted is provided.
Failure to follow these instructions can result in injury or equipment damage.
Exporting the source file
To export a PL7 application, execute the following actions running PL7 V4.3:
Step
35006148 07/2011
Action
Select the disk and/or directory where the file must be stored.
29
30
Action
In the Files of type field, select the type .fef (PL7 applications).
Choose the hard drive and/or the directory containing the file to be converted.
Select the file (.fef) to be opened (and therefore converted). The name of this file
then appears in the File name field.
35006148 07/2011
Step
35006148 07/2011
Action
After the automatic import phase, you must start the analysis procedure
(see page 45) manually in order to check the syntax of your application.
Note: If during the import or analysis phase an output window (see page 48) is
displayed on the screen, this means that there are conversion errors. In this case,
correct these errors (see page 49).
31
If the application has been correctly converted, it is displayed on screen and may be
saved in Unity Pro application format (.stu file).
In the event of conversion errors, you must manually correct the application in order
for it to be exploitable. The output window (see page 48), which can be used to
manually correct these errors, is automatically displayed on the screen.
NOTE: the converted PL7 application may be saved in Unity Pro application format
(.stu) even if conversion errors have not been corrected. If this is the case, the next
time the application is opened, you must first launch an Analysis of the application,
in order to display the output window on the screen (see page 47).
NOTE: conversion errors appear in the report but not concerning errors not related
to the program (e.g. an incomplete configuration in the FEF) are listed in a section
located at the start of the master task.
32
35006148 07/2011
35006148 07/2011
Action
Export your application out of your legacy programming system (e.g. as an FEF
file out of PL7).
Create a new application in Unity Pro selecting a CPU with enough memory and
the I/O access capabilities needed (e.g. Modicon M340).
Optionally you can configure the I/O modules expected to be needed but you can
modify the hardware configuration even later (see step 6).
Launch the conversion wizard in Unity Pro via Tools Convert Partially.
Result: The conversion wizard asks you to select the exported legacy source file.
33
Step
Action
Select the parts of the application (or the complete application) to be converted in
the Structure tab.
Remap the I/O objects for getting them compliant with the new hardware
configuration.
Concurrently you can modify the hardware configuration of the new application in
Unity Pro.
Note: To save a backup file of your intermediate I/O mapping you can use the
Save button. With Load you can reload your latest saved intermediate I/O
mapping.
After finishing all your selections and manual modifications click OK.
Result: The converter applies the defined remapping to the selected parts of the
source file and imports the results into the opened Unity Pro Application (e.g. an
application with a Modicon M340 PLC).
34
35006148 07/2011
The above shown syntax is an extension of Unity Pro syntax to reflect the potential
sub modules of PL7.
The different elements of the syntax are described below.
For detailed address description please refer to the Direct Addressing Data
Instances section in the Languages Reference (see Unity Pro, Program Languages
and Structure, Reference Manual ).
Brackets and separators
35006148 07/2011
Element
Description
[...]
square brackets
|
choice separator
{...}
curly braces
35
Letters
Element
Description
Memory
input
Output
constant
Byte
Word
Double Precision
Float
Value
Description
Bus Alias
Connection
Point
1 => 62
or any connection point
Rack
0 => 7
or any rack number
Module
1 => 14
or any module number
Channel
0 => 63
or any channel number (MOD
included)
(PL7: 0..127 or MOD)
Sub Module
module dependent
Sub Channel
module dependent
Bit Selector
1 => 16
MOD
module dependent
module information
ERR
module dependent
error bit
MOD.ERR
module dependent
35006148 07/2011
Unity Pro
Conversion of a PL7 DFB
35006148 07/2011
3
Subject of this Chapter
This chapter describes the procedure for converting a PL7 DFB into Unity Pro.
Whats in this Chapter?
This chapter contains the following topics:
Topic
35006148 07/2011
Page
General
38
41
42
43
44
37
General
Introduction
Converting a PL7 DFB into Unity Pro requires the following:
z
z
z
Update
All PL7 applications earlier than version 4.3 must be updated to V4.3 before being
converted into a Unity Pro application (see page 28).
Disabling the protection
To deactivate the protection of a PL7 DFB, execute the following actions running
PL7 V4.3:
Step
1
38
Action
In the application browser, double-click on the DFB type to be unprotected.
Result: The DFB type Editor opens the screen for the selected DFB type.
35006148 07/2011
CAUTION
UNEXPECTED APPLICATION BEHAVIOR - CODE REWORK AFTER CONVERSION
The users own diagnostics DFBs must be completed manually, after conversion.
To complete them:
z
z
z
z
z
z
CAUTION
UNEXPECTED APPLICATION BEHAVIOR - INCOMPLETE CONVERSION
The Schneider PL7 Diagnostics DFBs ALRM_DIA, EV_DIA, MV_DIA, NEPO_DIA,
TEPO_DIA and SAFETY_MONITOR are automatically converted to Schneider
Unity Pro Diagnostics DFBs. It is therefore not necessary to unprotect these DFBs
before starting the conversion procedure.
The other PL7 diagnostics DFBs are not converted.
All Schneider Diagnostics DFBs available using Unity Pro are catalogued in the
diagnostics family (see Unity Pro, Diagnostics, Block Library) of the diagnostics
library.
Failure to follow these instructions can result in injury or equipment damage.
35006148 07/2011
39
Action
z To export from the application browser:
z select the type of DFB by left-clicking.
z To export from the DFB type editor:
z double-click on the DFB type,
40
Select the disk and/or directory where the file must be stored.
35006148 07/2011
35006148 07/2011
Action
In the Files of type field, select the type .dfb (DFB file).
Choose the hard drive and/or the directory containing the file to be converted.
Select the file (.dfb) to be opened (and therefore converted). The name of the file
then appears in the File name field.
The conversion procedure is then started. The status bar shows how the
procedure is progressing.
At the end of conversion, a screen appears indicating the end of the procedure.
41
42
Action
Send your customers the unprotected DFBs (without the code) and ask them to
replace the protected DFBs in their PL7 applications by these unprotected
DFBs.
Ask your customers to convert their applications from PL7 to Unity Pro.
Ask your customers to update the unprotected DFBs with the protected DFBs
containing the code.
35006148 07/2011
35006148 07/2011
Action
Select the hard disk and/or directory containing the file to be imported.
Select the file to be imported. The name of this file then appears in the File name
field.
When the screen indicating the end of the import procedure is displayed, select
the Analyse command from the Build menu, which launches the analysis
procedure.
Should any conversion errors occur, the output window (see page 48) is
displayed on the screen, allowing you to correct them.
43
If the DFB has been correctly converted, it may be used in a Unity Pro application
and saved in the application format (.stu file).
In the event of conversion errors, you must manually correct the DFB in order for it
to be exploitable. The output window (see page 48), which can be used to manually
correct these errors, is automatically displayed on the screen at the end of the
analysis procedure.
NOTE: The Unity Pro application containing the converted DFB may be saved in
.stu format even if the DFB conversion errors have not been corrected. If this is the
case, the next time the application is opened, you must first launch (see page 47)an
Analysis of the application, in order to display the output window on the screen.
44
35006148 07/2011
Unity Pro
Analysis of a converted PL7 application
35006148 07/2011
35006148 07/2011
Page
General
46
Analysis Procedure
47
48
49
50
45
General
Introduction
The analysis allows the detection of errors generated in the application during
conversion
Analysis
During the analysis phase, the following errors are detected:
z
z
z
z
z
z
syntax errors,
semantic errors,
missing program parts,
objects that have no Unity Pro equivalent,
graphic objects or Grafcet drawings that have no Unity Pro equivalent,
other errors (EFs developed by the user, etc.)
Output window
All types of error detected during the analysis phase are automatically shown on the
screen in the output window.
Errors necessitating manual correction are signaled by the message
"Converror".
This message, which appears in inverted commas in the output window allows you
to directly access the part of the program to be corrected by a left double click.
46
35006148 07/2011
Analysis Procedure
Introduction
The analysis procedure must be manually launched after the automatic import
phase.
Manual analysis procedure
The following table describes the procedure for manually running the analysis
phase.
Step
35006148 07/2011
Action
Select the Analyse command from the Build menu, which launches the analysis
procedure.
47
the output window contains CONVERROR messages: in order for the converted
application or DFB to be exploitable, you must manually correct these conversion
errors (see page 49) and delete the corrected CONVERROR messages before
saving,
the output window does not contain CONVERROR messages: the converted
application or DFB is directly exploitable for compilation and transfer to the PLC.
NOTE: At any time during the manual correction of the converted PL7 application or
PL7 DFB, you must delete the corrected CONVERROR messages and save the
application in Unity Pro format (.stu file). If this is the case, the next time the
application is opened, you must first launch an Analysis of the application,
(see page 47)in order to display the output window on the screen.
48
35006148 07/2011
NOTE: You must correct the errors generated by the conversion then save
application and analyse the converted project.
Illustration
The following diagram shows the Unity Pro software screen at the end of the
procedure of analyzing a PL7 application or a converted PL7 DFB.
Description
The following table describes the various parts of the Unity Pro screen.
35006148 07/2011
Part
Description
Application
Browser of the converted PL7 application or the Unity Pro application into
which you are importing the converted PL7 DFB.
Output window
"Converter
error"
MDI tool
49
50
35006148 07/2011
Unity Pro
Correspondence between PL7 and Unity Pro
35006148 07/2011
III
35006148 07/2011
Chapter Name
Page
Inter-platform equivalence
53
59
65
137
143
10
147
11
157
12
161
51
52
35006148 07/2011
Unity Pro
Inter-platform equivalence
35006148 07/2011
Inter-platform equivalence
5
Subject of this Chapter
This chapter contains the hardware equivalence tables (processor + memory card).
Whats in this Chapter?
This chapter contains the following topics:
Topic
35006148 07/2011
Page
Premium processors
54
Atrium Processors
57
53
Inter-platform equivalence
Premium processors
Introduction
The PL7 application converter ensures that the converted application is operational
by providing a table of correspondences between the original processor and the
updated processor.
Each processor is associated with an equivalent processor. If the original processor
is equipped with a memory card (with or without data storage), the equivalent
processor will also be equipped with the same type of card, except for the few
specific cases indicated in the legend of the following table.
Processor Equivalence
The following table indicates the equivalence between original processors and
updated processors.
Original processor
54
Processor: upgrade
to be performed
using PL7 V4
Processor replaced
Processor replaced
Not necessary
Processor replaced
Not necessary
Processor replaced
Processor replaced
Processor replaced
TSX P 57203
Processor replaced
Not necessary
Processor version
updated
Not necessary
Processor version
updated
Not necessary
Processor replaced
Processor replaced
Processor replaced
Not necessary
Processor version
updated
Not necessary
Processor version
updated
35006148 07/2011
Inter-platform equivalence
Original processor
Processor: upgrade
to be performed
using PL7 V4
Not necessary
Processor version
updated
Not necessary
Processor version
updated
Not necessary
Not necessary
Processor replaced
Processor replaced
Processor replaced
Not necessary
Processor replaced
Not necessary
Processor replaced
Not necessary
No equivalence
Legend:
(1)
(2)
NOTE: Processors TSX P57 2823 and TSX P57 4823 are not converted. You must
therefore adapt your configuration using PL7 in order to convert it into Unity Pro.
Memory card equivalence
For all processors except those indicated (1) in the above table, the cartridge
correspondence is as follows:
35006148 07/2011
None
None
32 K words
96 K bytes
64 K words
192 K bytes
128 K words
384 K bytes
55
Inter-platform equivalence
56
768 K bytes
160 K words
448 K bytes
1000 K bytes
256 K words
768 K bytes
2000 K bytes
384 K words
2000 K bytes
2000 K bytes
35006148 07/2011
Inter-platform equivalence
Atrium Processors
Introduction
The PL7 application converter ensures that the converted application is operational
by providing a table of correspondence between the original processor and the
updated processor.
Each processor is associated with an equivalent processor. If the original processor
is equipped with a memory card (with or without data storage), the equivalent
processor will also be equipped with the same type of card, except for the few
specific cases indicated in the legend of the following table.
Processor Equivalence
The following table indicates the equivalence between original processors and
updated processors.
Original processor Processor: upgrade to
be performed running
PL7 V4
T PCX 57 1012
T PCX 57 203
Processor replaced
T PCX 57 203
Not necessary
Processor replaced
T PCX 57 3512
T PCX 57 353
Processor replaced
Not necessary
Processor replaced
Key:
(1)
(2)
These processors are available for Unity Pro versions higher than
V1.0.
35006148 07/2011
None
None
32 K words
96 K bytes
64 K words
192 K bytes
128 K words
384 K bytes
768 K bytes
160 K words
448 K bytes
57
Inter-platform equivalence
58
1,000 K bytes
256 K words
768 K bytes
2,000 K bytes
384 K words
2,000 K bytes
2,000 K bytes
35006148 07/2011
Unity Pro
Correspondence between application structures
35006148 07/2011
Correspondence between
application structures
35006148 07/2011
Topic
Page
6.1
60
6.2
64
59
6.1
60
Page
61
The sections
62
63
35006148 07/2011
Unity Pro
Status
MAST task
Cyclic or periodic
Cyclic or periodic
Converted
FAST task
Periodic
Periodic
Converted
Event processing:
EVTi
Converted
Converted (1)
MASKEVT
UNMASKEVT
MASKEVT
UNMASKEVT
Converted (2)
Priority level
management
Subroutines: SRi
SRi
SR Section
Modified (3)
Legend:
35006148 07/2011
(1)
The same system objects exist in Unity Pro (see page 75).
(2)
(3)
The SR name is modified but the operation remains the same. In Unity
Pro, the SRi becomes an SR section named SRi().
61
The sections
Introduction
Conversion replaces PL7 section characteristics by their Unity Pro equivalents.
Sections
The following table describes any correspondence and differences between PL7
and Unity Pro section characteristics.
PL7
Unity Pro
Status
Sections
Yes
Yes
Converted
Activation condition
Yes
Yes
Converted
Objects (1)
%Si
%Mi
%MWi:Xj
%SWi:Xj
%KWi:Xj
%Mi[%MWj]
%Mi[%SWj]
%Mi[%KWj]
...
Protection of sections
Write
Read/Write
None
Write
Read/Write
None
Converted
Long name
16 characters
16 characters
Modified (3)
Short name
8 characters
8 characters
Modified
Comment
250 characters
256 characters
Modified
4096
No limitation
Modified
EVT
Converted
Section attributes
Number of
sections in ...
Language
DFB
Modified
SR
Converted
LD, ST, IL
LD, ST, IL
Converted
Legend:
(1)
(2)
The PL7 application converter replaces these objects by their Unity Pro
equivalents (see page 70).
(3)
The section name cannot already be used to define one of the variables of
the application.
62
35006148 07/2011
35006148 07/2011
63
6.2
Functional modules
Introduction
Conversion replaces PL7 functional module characteristics by their Unity Pro
equivalents.
Functional modules
The following table describes any correspondence and differences between PL7
and Unity Pro functional module characteristics.
PL7
Unity Pro
Status
Functional modules
Yes
Yes
Converted
No limitation
No limitation
Converted
Comment
0..127
characters
0..255
characters
Modified
No limitation
No limitation
Converted
Number of functional
modules
No limitation
No limitation
Converted
Number of
sections
No limitation
No limitation
Converted
LD, ST, IL
No limitation
Modified (1)
Number of events in a
section
Grafcet
No limitation
No limitation
Converted (2)
Deleted (1)
Number of animation
tables
No limitation
No limitation
Converted
Number of runtime
screens
No limitation
No limitation
Converted
Legend:
(1)
(2)
The PL7 application converter does not convert all types of functional
modules (see page 165).
The possible programming languages are the following:
z LD, ST, IL
64
35006148 07/2011
Unity Pro
Correspondences between common language elements
35006148 07/2011
Correspondences between
common language elements
35006148 07/2011
Topic
Page
7.1
66
7.2
70
7.3
7.4
95
127
65
7.1
66
Page
67
69
35006148 07/2011
Unity Pro
Status
BOOL
BOOL
Converted
EBOOL
EBOOL
Converted
WORD
INT
Modified (1)
DWORD
DINT
Modified (1)
REAL
REAL
Converted
Legend:
(1)
The WORD and DWORD types are converted into INT and DINT types
(see page 169).
Arrays
The following table describes any correspondence and differences between PL7
and Unity Pro arrays.
Table
PL7
Unity Pro
Status
Modified (1)
Modified (1)
Modified (1)
Modified (1)
STRING [n]
Modified (1)
Legend:
(1)
35006148 07/2011
67
Unity Pro
Status
Type
Modified (1)
Table
Legend:
(1)
68
WORD and DWORD types are converted into INT and DINT types (see page 169).
35006148 07/2011
Unity Pro
Status
PL7
No
Modified (1)
Yes
Yes
Converted (2)
Yes
No
Modified (3)
Yes
Yes
Converted
Yes
No
Modified (4)
Legend:
35006148 07/2011
(1)
(2)
(3)
(4)
69
7.2
70
Page
Immediate values
71
Labels
74
System objects
75
77
Word bits
80
81
82
SFBs
86
89
91
Grafcet objects
93
35006148 07/2011
Immediate values
Introduction
Conversion replaces the PL7 objects by their Unity Pro equivalent.
Immediate values
The following table describes any correspondence and differences between PL7
and Unity Pro objects.
PL7
Syntax
Boolean
Unity Pro
Type of data Syntax
FALSE/TRUE BOOL
Status
Type of data
0/1 or FALSE/TRUE
BOOL
Converted
WORD
1234
INT
Converted
123456
DWORD
123456
DINT
Converted
Base 2 integer
2#x...
(1...16
figures)
WORD
If 2#x ...
+32767
2#x...
INT
Modified
If 2#x ...
> +32767
decimal
value (1)
2#x...
(17...32
figures)
DWORD
If 2#x ...
+2147483647
2#x...
DINT
Modified
If 2#x ...
> +2147483647
decimal
value (1)
If 16#x ...
+32767
2#x...
INT
Modified
If 16#x ...
> +32767
decimal
value (1)
If 16#x ...
+2147483647
2#x...
DINT
Modified
If 16#x ...
> +2147483647
decimal
value (1)
Converted
Base 16 integer
16#x...
WORD
(1...4 figures)
16#x...
DWORD
(5...8 figures)
Real
-1.32e-12
REAL
-1.32e-12
REAL
Character string
aAbBcC
STRING
aAbBcC
STRING
Converted
Network address
ADR#... (2)
AR_W:6
ADDR (2)
ARRAY OF
INT
Modified
Legend:
(1)
This decimal value may be negative if the sign bit is equal to 1. (see page 172)
(2)
35006148 07/2011
71
Network address
The following table describes any correspondence and differences between PL7
and Unity Pro network address objects.
PL7
Unity Pro
Syntax
Type of data
Syntax (1)
Type of data
ADR#xy.i.e
ADR#2.1.3
AR_W:6
ADDR(r.m.c.d)
ADDR(0.2.1.3)
ARRAY OF
INT
ADR#xy.i.SYS
ADR#102.1.SYS
AR_W:6
ADDR(r.m.c.SYS)
ADDR(1.2.1.SYS)
ARRAY OF
INT
ADR#xy.SYS
ADR#102.SYS
AR_W:6
ADDR(r.m.SYS)
ADDR(1.2.SYS)
ARRAY OF
INT
ADR#SYS
AR_W:6
ADDR(SYS)
ARRAY OF
INT
ADR#APP
AR_W:6
ADDR(APP)
ARRAY OF
INT
ADR#\xy.i.c\SYS
ADR#\4.0.23\SYS
AR_W:6
ADDR(\b.e\SYS)
ADDR(\4.23\SYS)
(2)
ARRAY OF
INT
ADR#{r.s}xy.i.e
ADR#{2.4}2.1.3
AR_W:6
ADDR({n.s}r.m.c.d)
ADDR({2.4}0.2.1.3)
ARRAY OF
INT
ADR#{r.s}xy.i.SYS
ADR#{2.4}102.1.SYS
AR_W:6
ADDR({n.s}r.m.c.SYS)
ADDR({2.4}1.2.1.SYS)
ARRAY OF
INT
ADR#{r.s}xy.SYS
ADR#{2.4}102.SYS
AR_W:6
ADDR({n.s}r.m.SYS)
ADDR({2.4}1.2.SYS)
ARRAY OF
INT
ADR#{r.s}SYS
ADR#{2.4}SYS
AR_W:6
ADDR({n.s}SYS)
ADDR({2.4}SYS)
ARRAY OF
INT
ADR#{r.s}APP
ADR#{4}APP
AR_W:6
ADDR({n.s}APP)
ADDR({4}APP)
ARRAY OF
INT
ADR#{r.s}APP.num,
ADR#{2.4}APP.0
AR_W:6
ADDR({n.s}APP.num),
ADDR({2.4}APP.0)
ARRAY OF
INT
ADR#{r.s}\xy.i.c\SYS
ADR#{2.4}\4.0.23\SYS
AR_W:6
ADDR({n.s}\b.e\SYS)
ADDR({2.4}\4.23\SYS)
(2)
ARRAY OF
INT
Legend:
72
(1)
(2)
PL7
Unity Pro
Rack.
PL7
Unity Pro
Syntax
35006148 07/2011
Type of data
Syntax (1)
Channel.
Data.
Operational if equal to zero.
Network.
Operational if equal to zero.
Station.
num
num
SFB.
Bus.
Type of data
73
Labels
Introduction
Conversion replaces the PL7 objects by their Unity Pro equivalent.
Labels
The following table describes any correspondence and differences between PL7
and Unity Pro objects.
PL7
Syntax
Program label %Li (1)
DFB label
Unity Pro
Type of data Syntax
label
Identifier label
Status
Type of data
Li
label
Modified
Identifier
label
Converted
Legend:
(1)
74
i = 0...999.
35006148 07/2011
System objects
Introduction
Conversion replaces the PL7 objects by their Unity Pro equivalent.
System objects
The following table describes any correspondence and differences between PL7
and Unity Pro objects.
PL7
Unity Pro
Status
Syntax
Type of data
Syntax
Type of data
System bit
%Si (1)
EBOOL
%Si
or
%SXi
BOOL
Converted
System word
%SWi (1)
WORD
%SWi
INT
Converted
Real-time clock
system word
%SW50:4
AR_W
%SW50:4
ARRAY [0..3]
OF INT at
%SW50
Converted
System double
word
%SDi
DWORD
%SDi
DINT
Converted
Legend:
(1)
System bits
System words
35006148 07/2011
PL7
Unity Pro
Syntax
Syntax
%S36
%S37
%S95
%SW160
%SW76
%SW161
%SW77
%SW162
%SW78
Status
Deleted
Modified
75
PL7
Syntax
Unity Pro
Syntax
SG7_21
%S22
SG7_22
%S23
SG7_23
%S24
SG7_24
%S25
Grafcet system
words
Status
%S26
%SW20
%SW21
%SW22
SWG7_22
%SW23
SWG7_23
%SW24
SWG7_24
%SW25
SWG7_25
%SW125
%SW126
%SW127
Modified (1)
Deleted
Deleted
Modified (1)
Deleted
Legend:
(1)
Grafcet system bits and words are replaced in Unity Pro by equivalent
EFs (see page 157).
76
35006148 07/2011
Internal bits
Internal words
35006148 07/2011
Unity Pro
Status
Syntax
Type of
data
Syntax
Type of data
%Mi
EBOOL
%Mi
or
%Mxi
EBOOL
%Mi[%MWj]
EBOOL
%Mi[%MWj]
EBOOL
%Mi[%KWj]
EBOOL
%Mi[%KWj]
EBOOL
%Mi[n]
EBOOL
%Mi[n]
EBOOL
%Mi:L
AR_X
%Mi:L
ARRAY OF
EBOOL
%MWi
WORD
%MWi
INT
%MWi[%MWj]
WORD
%MWi[%MWj]
INT
%MWi[%KWj]
WORD
%MWi[%KWj]
INT
%MWi[n]
WORD
%MWi[n]
INT
%MWi:L
AR_W
%MWi:L
ARRAY OF INT
%MWi[%MWj]:L
AR_W
%MWi[%MWj]:L
ARRAY OF INT
%MWi[%KWj]:L
AR_W
%MWi[%KWj]:L
ARRAY OF INT
%MWi[n]:L
AR_W
%MWi[n]:L
ARRAY OF INT
%MDi
DWORD
%MDi
DINT
%MDi[%MWj]
DWORD
%MDi[%MWj]
DINT
%MDi[%KWj]
DWORD
%MDi[%KWj]
DINT
%MDi[n]
DWORD
%MDi[n]
DINT
%MDi:L
AR_D
%MDi:L
ARRAY OF DINT
%MDi[%MWj]:L
AR_D
%MDi[%MWj]:L
ARRAY OF DINT
%MDi[%KWj]:L
AR_D
%MDi[%KWj]:L
ARRAY OF DINT
%MDi[n]:L
AR_D
%MDi[n]:L
ARRAY OF DINT
Converted
Converted
Converted
77
PL7
Internal reals
Constant words
Constant reals
Common
words
Variable-type character
string
78
Status
Syntax
Type of
data
Syntax
Type of data
%MFi
REAL
%MFi
REAL
%MFi[%MWj]
REAL
%MFi[%MWj]
REAL
%MFi[%KWj]
REAL
%MFi[%KWj]
REAL
%MFi[n]
REAL
%MFi[n]
REAL
%MFi:L
AR_R
%MFi:L
ARRAY OF
REAL
%KWi
WORD
%KWi
INT
%KWi[%MWj]
WORD
%KWi[%MWj]
INT
%KWi[%KWj]
WORD
%KWi[%KWj]
INT
%KWi[n]
WORD
%KWi[n]
INT
%KWi:L
AR_W
%KWi:L
ARRAY OF INT
%KWi[%MWj]:L
AR_W
%KWi[%MWj]:L
ARRAY OF INT
%KWi[%KWj]:L
AR_W
%KWi[%KWj]:L
ARRAY OF INT
%KWi[n]:L
AR_W
%KWi[n]:L
ARRAY OF INT
%KDi
DWORD
%KDi
DINT
%KDi[%MWj]
DWORD
%KDi[%MWj]
DINT
%KDi[%KWj]
DWORD
%KDi[%KWj]
DINT
%KDi[n]
DWORD
%KDi[n]
DINT
%KDi:L
AR_D
%KDi:L
ARRAY OF DINT
%KDi[%MWj]:L
AR_D
%KDi[%MWj]:L
ARRAY OF DINT
%KDi[%KWj]:L
AR_D
%KDi[%KWj]:L
ARRAY OF DINT
%KDi[n]:L
AR_D
%KDi[n]:L
ARRAY OF DINT
%KFi
REAL
%KFi
REAL
%KFi[%MWj]
REAL
%KFi[%MWj]
REAL
%KFi[%KWj]
REAL
%KFi[%KWj]
REAL
%KFi[n]
REAL
%KFi[n]
REAL
%KFi:L
AR_R
%KFi:L
ARRAY OF
REAL
WORD
%NWs.d
INT
Modified
%NW{i.j}k (1)
WORD
%NWn.s.d
INT
Modified
%MBi:L
STRING (2)
xxx_L:String[L] STRING
Unity Pro
Converted
Converted
Converted
Converted
Modified
35006148 07/2011
PL7
Constant-type
character string
Unity Pro
Status
Syntax
Type of
data
Syntax
Type of data
%KBi:L
STRING (2)
xxx_L:String[L] STRING
Modified
Legend:
(1)
(2)
35006148 07/2011
PL7
Unity
Pro
i
j
k
n
s
d
network number.
station number.
word number.
Objects %MBi:L and %KBi:L are replaced by a character string (see page 173).
79
Word bits
Introduction
Conversion replaces the PL7 objects by their Unity Pro equivalent.
Word bits
The following table describes any correspondence and differences between PL7
and Unity Pro objects.
PL7
Syntax
Bit j
j = 1..15
@
= input/output
addresses (2)
Unity Pro
Type of Syntax
data
Status
Type
of data
%SWi:Xj
BOOL
%SWi.j
BOOL
%MWi:Xj
BOOL
%MWi.j
BOOL
%MWi[%MWj]:Xj
BOOL
%MWi[%MWj].j
BOOL
%MWi[%KWj]:Xj
BOOL
%MWi[%KWj].j
BOOL
%MWi[n]:Xj
BOOL
%MWi[n].j
BOOL
%KWi:Xj
BOOL
%KWi.j
BOOL
%KWi[%MWj]:Xj
BOOL
%KWi[%MWj].j
BOOL
%KWi[%KWj]:Xj
BOOL
%KWi[%KWj].j
BOOL
%KWi[n]:Xj
BOOL
%KWi[n].j
BOOL
%NW{r.s}k:Xj
BOOL
%NWn.s.d.j
BOOL
%NW{s}k:Xj
BOOL
%NWs.d.j
BOOL
%IW@:Xj
BOOL
%IW@.j
BOOL
%QW@:Xj
BOOL
%QW@.j
BOOL
%MW@:Xj
BOOL
%MW@.j
BOOL
%KW@:Xj
BOOL
%KW@.j
BOOL
Converted (1)
Modified
Legend:
80
(1)
The syntax of the bits extracted into Unity Pro is modified. (see page 174)
(2)
35006148 07/2011
Unity Pro
%MW100
MW100
%I0.2.3.4.
I0_2_3_4
35006148 07/2011
81
Tables of
memory
and
constant
objects
Unity Pro
Status
Address
Associated
symbol
Address
%MWi:L
TABA:L
%MWi:L
TABA_L
%MDi:L
TABB:L
%MDi:L
TABB_L
%Mi:L
TABC:L
%Mi:L
TABC_L
%MFi:L
TABD:L
%MFi:L
TABD_L
%KWi:L
TABE:L
%MWi:L
TABE_L
%KDi:L
TABF:L
%MDi:L
TABF_L
%KFi:L
TABG:L
%MFi:L
TABG_L
Modified (2)
Legend:
82
(1)
In Unity Pro, a variable is associated with each symbolized table (see page 175).
(2)
The table is declared from [0..L-1], its type and location depending on the
address.
Example: %MWi:L, declared in PL7 as TABA:L, in converted into TABA_L.
TABA_L is therefore a declared table from [0..L-1], of type INT, located at
%MWi and with the same comment as TABA.
35006148 07/2011
Unity Pro
Associated Address
symbol
Status
Associated variable (1)
%I@:L
TABA:L
%I@:L
TABA_L
%IW@:L
TABB:L
%IW@:L
TABB_L
%Q@:L
TABC:L
%Q@:L
TABC_L
%QW@:L
TABD:L
%QW@:L
TABD_L
Modified (2)
Legend:
35006148 07/2011
Addressing of the in-rack (see page 89) and/or remote (see page 91)
input/output objects.
(1)
(2)
The table is declared from [0..L-1], its type and location depending on the
address.
Example: %I@:L, declared in PL7 as TABA:L, in converted into TABA_L.
TABA_L is therefore a declared table from [0..L-1], of type EBOOL, located
at %I@ and with the same comment as TABA.
83
Indexed
memory and
constant
objects
Unity Pro
Status
Address
Associated
symbol
Address
Associated
variable (1)
%MWi[j]
TABA[j]
%MWi[j]
TABA_AR[j]
%MDi[j]
TABB[j]
%MDi[j]
TABB_AR[j]
%Mi[j]
TABC[j]
%Mi[j]
TABC_AR[j]
%MFi[j]
TABD[j]
%MFi[j]
TABD_AR[j]
%KWi[j]
TABE[j]
%KWi[j]
TABE_AR[j]
%KDi[j]
TABF[j]
%KDi[j]
TABF_AR[j]
%KFi[j]
TABG[j]
%KFi[j]
TABG_AR[j]
Modified (2)
Legend:
84
(1)
(2)
35006148 07/2011
Unity Pro
Associated
symbol
TABC[j]
%QW@[j] TABD[j]
Status
%IW@[j]
%Q@[j]
%QW@[j]
Modified
Legend:
35006148 07/2011
Addressing of the in-rack (see page 89) and/or remote (see page 91)
input/output objects.
(1)
85
SFBs
Introduction
Conversion replaces the PL7 objects by their Unity Pro equivalent.
Premium Targets
For Premium, the SFBs are replaced with EFBs.
The EFBs have the same layout as the SFBs in PL7.
These EFBs are used in the converted applications.
Modicon M340 Targets
For Modicon M340, the SFBs are replaced with DFBs.
The DFBs have the same layout as the SFBs in PL7.
They include also some program in ST to adapt the interface to the IEC function
blocks that are used in Unity Pro.
The DRUM SFB is represented by an empty DFB.
Quantum Targets
The conversion of SFBs is not available for Quantum.
SFB
The following table describes the converted PL7 SFBs.
86
SFB
Syntax
Type of data
%Ti
enable input
%Ti.E
BOOL
control input
%Ti.C
BOOL
%Ti.ET
INT
%Ti.PT
INT
time base
%Ti.TB
UINT
%Ti.D
BOOL
%Ti.R
BOOL
%TMi
TM
%TMi.S
BOOL
%TMi.ET
INT
%TMi.PT
INT
35006148 07/2011
SFB
35006148 07/2011
Syntax
Type of data
time base
%TMi.TB
UINT
%TMi.Q
BOOL
Monostable (3)
%MNi
start input
%MNi.S
BOOL
%MNi.ET
INT
%MNi.PT
INT
time base
%MNi.TB
UINT
%MNi.R
BOOL
Up/down counter
%Ci
reset input
%Ci.R
BOOL
preset input
%Ci.P
BOOL
up-count input
%Ci.CU
BOOL
down-count input
%Ci.CD
BOOL
%Ci.CV
INT
%Ci.PV
INT
%Ci.E
BOOL
%Ci.D
BOOL
%Ci.F
BOOL
Register
%Ri
reset input
%Ri.R
BOOL
store input
%Ri.I
BOOL
destock input
%Ri.O
BOOL
input word
%Ri.INW
INT
output word
%Ri.OUTW
INT
%Ri.F
BOOL
%Ri.E
BOOL
register length
%Ri.LEN
UINT
register type
%Ri.FIFO
BOOL
Drum
%DRi
DR
reset input
%DRi.R
BOOL
up input
%DRi.U
BOOL
%DRi.F
BOOL
current step
%DRi.S
INT
duration word
%DRi.ET
INT
87
SFB
88
Syntax
Type of data
time base
%DRi.TB
UINT
number of steps
%DRi.LEN
UINT
i step states
%DRi.Wj
j = 0..15
INT
35006148 07/2011
Unity Pro
Syntax
Type of
data
%CHxy.0
%CH3.2
CHANNEL %CHr.m.c
%CH0.3.2
Module or
channel
fault
%Ixy.i.ERR
%I2.3.ERR
BOOL
Bit
%Ixy.i.r
%I2.3.1
EBOOL
Channel
Syntax
Status
Type of
data
IODDT
Modified
%Ir.m.c.ERR
%I0.2.3.ERR
BOOL
Modified
%Ir.m.c.d
%I0.2.3.1
EBOOL
Modified
Inputs %I
%Ixy.i.r[index] EBOOL
%I2.3.1[index]
%Ir.m.c.d[index] EBOOL
%I0.2.3.1[index]
%Ixy.i.r:L
%I2.3.1:L
AR_X
%Ir.m.c.d:L
%I0.2.3.1:L
ARRAY
OF
EBOOL
Word
%IWxy.i.r
%IW2.3.1
WORD
%IWr.m.c.d
%IW0.2.3.1
INT
Modified
Double
word
%IDxy.i.r
%ID2.3.1
DWORD
%IDr.m.c.d
%ID0.2.3.1
DINT
Modified
Real
%IFxy.i.r
%IF2.3.1
REAL
%IFr.m.c.d
%IF0.2.3.1
REAL
Modified
%Qxy.i.r
%Q2.3.1
EBOOL
%Qr.m.c.d
%Q0.2.3.1
EBOOL
Modified
Outputs %Q
Bit
Word
35006148 07/2011
%Qxy.i.r[index] EBOOL
%Q2.3.1[index]
%Qr.m.c.d[index] EBOOL
%Q0.2.3.1[index]
%Qxy.i.r:L
%Q2.3.1:L
AR_X
%Qr.m.c.d:L
%Q0.2.3.1:L
ARRAY
OF
EBOOL
%QWxy.i.r
%QW2.3.1
WORD
%QWr.m.c.d
%QW0.2.3.1
INT
Modified
89
PL7
Unity Pro
Status
Syntax
Type of
data
Syntax
Type of
data
Double
word
%QDxy.i.r
%QD2.3.1
DWORD
%QDr.m.c.d
%QD0.2.3.1
DINT
Modified
Real
%QFxy.i.r
%QF2.3.1
REAL
%QFr.m.c.d
%QF0.2.3.1
REAL
Modified
Variables %M
Word
%MWxy.i.r
%MW2.3.1
WORD
%MWr.m.c.d
%MW0.2.3.1
INT
Modified
Double
word
%MDxy.i.r
%MD2.3.1
DWORD
%MDr.m.c.d
%MD0.2.3.1
DINT
Modified
Real
%MFxy.i.r
%MF2.3.1
REAL
%MFr.m.c.d
%MF0.2.3.1
REAL
Modified
Constants %K
Word
%KWxy.i.r
%KW2.3.1
WORD
%KWr.m.c.d
%KW0.2.3.1
INT
Modified
Double
word
%KDxy.i.r
%KD2.3.1
DWORD
%KDr.m.c.d
%KD0.2.3.1
DINT
Modified
Real
%KFxy.i.r
%KF2.3.1
REAL
%KFr.m.c.d
%KF0.2.3.1
REAL
Modified
Character
string
%KBxy.i.r:L
%KF2.3.4:L
STRING
(1)
STRING Modified
Legend:
The %KBxy.i.r:L and %KF2.3.4:L character strings are replaced by a
single character string (see page 173).
(1)
PL7 Unity
Pro
90
Rack.
Channel number.
Rank.
Optional if equal to zero.
35006148 07/2011
PL7
Unity Pro
Syntax
Syntax
%I\p.2.c\xy.i.r
%I\0.2.34\1.2.1
%I\b.e\r.m.c.d
%I\2.34\0.1.2.1
(1)
Status
Modified
Legend:
(1)
PL7
35006148 07/2011
In Unity Pro, the bus identifier has been added. In order to convert
Remote Fipio bus objects, the selected b identifier is assigned the
value 2.
Unity Pro
Module address.
Connection point.
Channel number.
Rank.
Bus identifier.
Rack.
91
PL7
Unity Pro
Syntax
Syntax
%I\xy.0\n.i
%I\104.0\2.3
%I\b.e\r.m.c
%I\15.2\0.0.3
(1)
Status
Modified
Legend:
(1)
92
In Unity Pro, the bus identifier has been added. In order to convert
remote AS-i bus objects, the selected b identifier corresponds to the
number of the xy rack/module.
PL7
Unity Pro
Rack.
AS-i channel (the module TSX SAY 100 has only one channel).
Slave number.
Channel.
Bus identifier.
35006148 07/2011
Grafcet objects
Introduction
Conversion replaces the PL7 objects by their Unity Pro equivalent.
Grafcet objects
The following table describes any correspondence and differences between PL7
and Unity Pro objects.
PL7
Grafcet objects
Unity Pro
Syntax
Type of
data
%Xi
BOOL
%XMj
Syntax
Type of
data
X_i.x
XM_j.x
%Xj.i
X_j_i.x
%Xj.IN
X_j_IN.x
%Xj.OUT
Grafcet objects
%Xi.T
Status
X_j_OUT.x
WORD
X_i.t
%XMj.T
XM_j.t
%Xj.i.T
XM_j_i.t
%Xj.IN.T
XM_j_IN.t
%Xj.OUT.T
XM_j_OUT.t
Legend:
(1)
35006148 07/2011
93
Unity Pro
Syntax
Syntax
Status
Indexed Grafcet
words and bits
%Xi[%MWj]
%Mi[%MWj]
Modified (1)
%Xi.T[%MWj]
Deleted (2)
%Xi:L
%Mi:L
Modified (1)
%Xi.T:L
Deleted (2)
Legend:
94
(1)
(2)
35006148 07/2011
7.3
35006148 07/2011
Page
Boolean instructions
97
Comparison instructions
98
100
Arithmetic instructions
101
Logic instructions
104
Shift instructions
105
107
Table instructions
109
115
116
Exchange Instructions
117
Input/output instructions
118
119
Other instructions
120
Communication instructions
121
95
Topic
96
Page
122
Diagnostics instructions
124
Grafcet instructions
125
126
35006148 07/2011
Boolean instructions
Introduction
Conversion replaces the PL7 instructions by their Unity Pro equivalent.
Instruction list
The following table describes any correspondence and differences between PL7
and Unity Pro instructions.
Operator
PL7
Unity Pro
Status
:=
:=
Converted
AND
AND
Converted
OR
OR
Converted
XOR
XOR
Converted
NOT
NOT
Converted
RE
RE
Modified (1)
FE
FE
Modified (1)
SET
SET
Modified (1)
RESET
RESET
Modified (1)
Legend:
(1)
35006148 07/2011
Replaced by an EF.
97
Comparison instructions
Introduction
Conversion replaces the PL7 instructions by their Unity Pro equivalent.
Integer words
The following table describes any correspondence and differences between PL7
and Unity Pro instructions.
Operator
PL7
(WORD)
Unity Pro
(INT)
Status
>
>
Converted
<
<
Converted
Converted
Converted
Converted
Converted
Operator
98
PL7
(DWORD)
Unity Pro
(DINT)
Status
>
>
Converted
<
<
Converted
Converted
Converted
Converted
Converted
35006148 07/2011
Real words
The following table describes any correspondence and differences between PL7
and Unity Pro instructions.
Operator
35006148 07/2011
PL7
(Floating point)
Unity Pro
(REAL)
Status
>
>
Converted
<
<
Converted
Converted
Converted
Converted
Converted
99
Unity Pro
Status
:=
:=
Converted
:=
MOVE_INT_AREBOOL
MOVE_DINT_AREBOOL
Modified (1)
Operator: between an
integer or long integer
word and a bit table
:=
MOVE_AREBOOL_INT
MOVE_AREBOOL_DINT
Modified (1)
EF
BIT_D
COPY_AREBOOL_ARDINT
Modified (2)
BIT_W
COPY_AREBOOL_ARINT
Modified (2)
COPY_BIT
COPY_AREBOOL_AREBOOL
Modified (2)
D_BIT
COPY_ARDINT_AREBOOL
Modified (2)
LENGTH_ARX
LENGTH_AREBOOL
Modified (3)
W_BIT
COPY_ARINT_AREBOOL
Modified (2)
Legend:
100
(1)
(2)
The function name is modified, but the operation remains the same
except in the case of negative ranks (see page 178).
(3)
The function name is modified but the operation remains the same.
35006148 07/2011
Arithmetic instructions
Introduction
Conversion replaces the PL7 instructions by their Unity Pro equivalent.
Integer words
The following table describes any correspondence and differences between PL7
and Unity Pro instructions.
Operator
EF
Operator
PL7
(WORD)
Unity Pro
(INT)
Status
Converted
Converted
Converted
Converted
REM
MOD
Modified (1)
SQRT
SQRT_INT
Modified (2)
ABS
ABS_INT
Modified (2)
INC
INC_INT
Modified (2)
DEC
DEC_INT
Modified (2)
:=
:=
Converted
Legend:
35006148 07/2011
(1)
The operator name is modified but the operation remains the same.
(2)
101
Operator
EF
Operator
PL7
(DWORD)
Unity Pro
(DINT)
Status
Converted
Converted
Converted
Converted
REM
MOD
Modified (1)
SQRT
SQRT_DINT
Modified (2)
ABS
ABS_DINT
Modified (2)
INC
INC_DINT
Modified (2)
DEC
DEC_DINT
Modified (2)
:=
:=
Converted
Legend:
(1)
The operator name is modified but the operation remains the same.
(2)
Real words
The following table describes any correspondence and differences between PL7
and Unity Pro instructions.
PL7
(Floating point)
Operator
102
Unity Pro
(REAL)
Status
Converted
Converted
Converted
Converted
35006148 07/2011
EF
Operator
PL7
(Floating point)
Unity Pro
(REAL)
Status
SQRT
SQRT_REAL
Modified (1)
ABS
ABS_REAL
Modified (1)
ACOS
ACOS_REAL
Modified (1)
ASIN
ASIN_REAL
Modified (1)
ATAN
ATAN_REAL
Modified (1)
COS
COS_REAL
Modified (1)
EXP
EXP_REAL
Modified (1)
EXPT
EXPT_REAL
Modified (1)
LN
LN_REAL
Modified (1)
LOG
LOG_REAL
Modified (1)
SIN
SIN_REAL
Modified (1)
TAN
TAN_REAL
Modified (1)
:=
:=
Converted
Legend:
(1)
35006148 07/2011
The function name is modified but the operation remains the same.
103
Logic instructions
Introduction
Conversion replaces the PL7 instructions by their Unity Pro equivalent.
Integer words
The following table describes any correspondence and differences between PL7
and Unity Pro instructions.
Operator
PL7
(WORD)
Unity Pro
(INT)
Status
AND
AND
Converted
OR
OR
Converted
XOR
XOR
Converted
NOT
NOT
Converted
Operator
104
PL7
(DWORD)
Unity Pro
(DINT)
Status
AND
AND
Converted
OR
OR
Converted
XOR
XOR
Converted
NOT
NOT
Converted
35006148 07/2011
Shift instructions
Introduction
Conversion replaces the PL7 instructions by their Unity Pro equivalent.
Integer words
The following table describes any correspondence and differences between PL7
and Unity Pro instructions.
EF
PL7
(WORD)
Unity Pro
(INT)
Status
SHL
SHL_INT
Modified (1)
SHR
SHRZ_INT
Modified (1)
ROL
ROL_INT
Modified (1)
ROR
ROR_INT
Modified (1)
ROLW
ROL_INT
Modified (2)
RORW
ROR_INT
Modified (2)
WSHL_RBIT
SHL_RBIT_INT
Modified (2)
WSHR_RBIT
SHR_RBIT_INT
Modified (2)
WSHRZ_C
SHRZ_RBIT_INT
Modified (2)
Legend:
35006148 07/2011
(1)
(2)
The function name is modified but the operation remains the same.
105
EF
PL7
(WORD)
Unity Pro
(INT)
Status
SHL
SHL_DINT
Modified (1)
SHR
SHRZ_DINT
Modified (1)
ROL
ROL_DINT
Modified (1)
ROR
ROR_DINT
Modified (1)
SHL_DWORD
SHL_DWORD
Converted
SHR_DWORD
SHR_DWORD
Converted
ROL_DWORD
ROL_DWORD
Converted
ROR_DWORD
ROR_DWORD
Converted
DSHL_RBIT
SHL_RBIT_DINT
Modified (2)
DSHR_RBIT
SHR_RBIT_DINT
Modified (2)
DSHRZ_C
SHRZ_RBIT_DINT
Modified (2)
ROLD
ROL_DINT
Modified (2)
RORD
ROR_DINT
Modified (2)
Legend:
106
(1)
(2)
The function name is modified but the operation remains the same.
35006148 07/2011
EF
35006148 07/2011
PL7
Unity Pro
Status
BCD_TO_INT
BCD_TO_INT
Converted
INT_TO_BCD
INT_TO_BCD
Converted
GRAY_TO_INT
GRAY_TO_INT
Converted
INT_TO_REAL
INT_TO_REAL
Converted
DINT_TO_REAL
DINT_TO_REAL
Converted
DINT_TO_DWORD
DINT_TO_DWORD
Converted
DINT_TO_INT
DINT_TO_INT
Converted
DINT_TO_WORD
DINT_TO_WORD
Converted
DWORD_TO_DINT
DWORD_TO_DINT
Converted
DWORD_TO_INT
DWORD_TO_INT
Converted
DWORD_TO_WORD
DWORD_TO_WORD
Converted
INT_TO_DINT
INT_TO_DINT
Converted
INT_TO_WORD
INT_TO_WORD
Converted
REAL_TO_DINT
REAL_TO_DINT
Converted
REAL_TO_INT
REAL_TO_INT
Converted
WORD_TO_DINT
WORD_TO_DINT
Converted
WORD_TO_INT
WORD_TO_INT
Converted
WORD_TO_DWORD
WORD_TO_DWORD
Converted
TRUNC
REAL_TRUNC_INT
REAL_TRUNC_DINT
Modified (1)
DEG_TO_RAD
DEG_TO_RAD
Converted
107
PL7
EF
Unity Pro
Status
RAG_TO_DEG
RAG_TO_DEG
Converted
CONCATW
INT_AS_DINT
Modified (2)
DBCD_TO_DINT
DBCD_TO_DINT
Converted
DBCD_TO_INT
DBCD_TO_INT
Converted
DINT_TO_DBCD
DINT_TO_DBCD
Converted
HW
HIGH_INT
Modified (2)
INT_TO_DBCD
INT_TO_DBCD
Converted
LW
LOW_INT
Modified (2)
Legend:
108
(1)
(2)
The function name is modified but the operation remains the same.
35006148 07/2011
Table instructions
Introduction
Conversion replaces the PL7 instructions by their Unity Pro equivalent.
Integer and long integer word tables: instructions
The following table describes any correspondence and differences between PL7
and Unity Pro instructions.
PL7
(WORD or DWORD)
Unity Pro
(INT or DINT)
Status
:=
:=
Converted
:=
Operator between a
table and an integer word
or a long integer word
MOVE_INT_ARINT
MOVE_DINT_ARDINT
Modified (1)
EF:
ADD_ARINT
ADD_ARDINT
Modified (2)
EF:
SUB_ARINT
SUB_ARDINT
Modified (2)
EF:
MUL_ARINT
MUL_ARDINT
Modified (2)
EF:
DIV_ARINT
DIV_ARDINT
Modified (2)
REM
EF:
MOD_ARINT
MOD_ARDINT
Modified (2)
+
Operator between a
table and an integer word
or a long integer word
EF:
ADD_ARINT_INT
ADD_ARDINT_DINT
Modified (2)
Operator between a
table and an integer word
or a long integer word
EF:
SUB_INT_ARINT
SUB_ARINT_INT
SUB_DINT_ARDINT
SUB_ARDINT_DINT
Modified (1)
*
Operator between a
table and an integer word
or a long integer word
EF:
MUL_ARINT_INT
MUL_ARDINT_DINT
Modified (2)
35006148 07/2011
109
PL7
(WORD or DWORD)
110
Unity Pro
(INT or DINT)
Status
/
Operator between a
table and an integer word
or a long integer word
EF:
DIV_INT_ARINT
DIV_ARINT_INT
DIV_DINT_ARDINT
DIV_ARDINT_DINT
Modified (1)
REM
Operator between a
table and an integer word
or a long integer word
EF:
MOD_INT_ARINT
MOD_ARINT_INT
MOD_DINT_ARDINT
MOD_ARDINT_DINT
Modified (1)
EF
SUM
SUM_ARINT
or
SUM_ARDINT
Modified (3)
EF
EQUAL
EQUAL_ARINT
or
EQUAL_ARDINT
Modified (5)
35006148 07/2011
EF
PL7
(WORD or DWORD)
Unity Pro
(INT or DINT)
Status
FIND_EQD
FIND_EQ_ARDINT
Modified (4)
FIND_EQDP
FIND_EQP_ARDINT
Modified (5)
FIND_EQW
FIND_EQ_ARINT
Modified (4)
FIND_EQWP
FIND_EQP_ARINT
Modified (5)
FIND_GTD
FIND_GT_ARDINT
Modified (4)
FIND_GTW
FIND_GT_ARINT
Modified (4)
FIND_LTD
FIND_LT_ARDINT
Modified (4)
FIND_LTW
FIND_LT_ARINT
Modified (4)
LENGTH_ARD
LENGTH_ARDINT
Modified (4)
LENGTH_ARW
LENGTH_ARINT
Modified (4)
MAX_ARD
MAX_ARDINT
Modified (4)
MAX_ARW
MAX_ARINT
Modified (4)
MIN_ARD
MIN_ARDINT
Modified (4)
MIN_ARW
MIN_ARINT
Modified (4)
OCCUR_ARD
OCCUR_ARDINT
Modified (4)
OCCUR_ARW
OCCUR_ARINT
Modified (4)
ROL_ARD
ROL_ARDINT
Modified (4)
ROL_ARW
ROL_ARINT
Modified (4)
ROR_ARD
ROR_ARDINT
Modified (4)
ROR_ARW
ROR_ARINT
Modified (4)
SORT_ARD
SORT_ARDINT
Modified (4)
SORT_ARW
SORT_ARINT
Modified (4)
Legend:
35006148 07/2011
(1)
(2)
(3)
(4)
(5)
111
Unity Pro
(INT or DINT)
Status
Operator
NOT
EF:
NOT_ARINT
NOT_ARDINT
Modified (1)
AND
EF:
AND_ARINT
AND_ARDINT
Modified (1)
OR
EF:
OR_ARINT
OR_ARDINT
Modified (1)
XOR
EF:
XOR_ARINT
XOR_ARDINT
Modified (1)
AND
Modified (1)
EF:
AND_ARINT_INT
AND_ARDINT_DINT
OR
EF:
OR_ARINT_INT
OR_ARDINT_DINT
XOR
Modified (1)
EF:
XOR_ARINT_INT
XOR_ARDINT_DINT
Modified (1)
Legend:
(1)
112
35006148 07/2011
EF
PL7
Unity Pro
Status
AND_ARX
AND_AREBOOL
Modified (1)
NOT_ARX
NOT_AREBOOL
Modified (1)
OR_ARX
OR_AREBOOL
Modified (1)
XOR_ARX
XOR_AREBOOL
Modified (1)
Legend:
(1)
The function name is modified but the operation remains the same.
Unity Pro
Status
:=
:=
Converted
:=
MOVE_REAL_ARREAL
Modified (1)
EF
EQUAL_ARR
EQUAL_ARREAL
Modified (3)
FIND_EQR
FIND_EQ_ARREAL
Modified (2)
FIND_EQRP
FIND_EQP_ARREAL
Modified (3)
FIND_GTR
FIND_GT_ARREAL
Modified (2)
FIND_LTR
FIND_LT_ARREAL
Modified (2)
LENGTH_ARR
LENGTH_ARREAL
Modified (2)
MAX_ARR
MAX_ARREAL
Modified (2)
MIN_ARR
MIN_ARREAL
Modified (2)
OCCUR_ARR
OCCUR_ARREAL
Modified (2)
ROL_ARR
ROL_ARREAL
Modified (2)
ROR_ARR
ROR_ARREAL
Modified (2)
SORT_ARR
SORT_ARREAL
Modified (2)
SUM_ARR
SUM_ARREAL
Modified (2)
Legend:
(1)
35006148 07/2011
PL7
114
Unity Pro
Status
(2)
(3)
35006148 07/2011
Unity Pro
STRING_TO_INT
STRING_TO_INT
Converted
STRING_TO_DINT
STRING_TO_DINT
Converted
INT_TO_STRING
INT_TO_STRING
Converted
DINT_TO_STRING
DINT_TO_STRING
Modified (3)
STRING_TO_REAL
STRING_TO_REAL
Converted
REAL_TO_STRING
REAL_TO_STRING
Converted
>, <, , , =,
Converted
EF
FIND_INT
Modified (1)
EQUAL_STR
EQUAL_STR
Converted
LEN
LEN_INT
Modified (1)
MID
MID_INT
Modified (2)
INSERT
INSERT_INT
Modified (2)
EF
FIND
Status
DELETE
DELETE_INT
Modified (2)
CONCAT
CONCAT_STR
Modified (1)
REPLACE
REPLACE_INT
Modified (2)
LEFT
LEFT_INT
Modified (2)
RIGHT
RIGHT_INT
Modified (2)
ROUND
STR_ROUND
Modified (1)
Legend:
(1)
The function name is modified but the operation remains the same.
(2)
In order to comply with the IEC standard, the function name is modified and the operation stays the same
except in extreme cases. Refer to the documentation on these EF for further details.
(3)
The function name is not modified and the operation stays the same except in extreme cases. Refer to
the documentation on this EF for further details.
Converting a variable into a character string is displayed differently when using PL7 software or Unity Pro:
z With Unity Pro, the character string is 11 characters long.
z With PL7, the character string is 12 characters long.
35006148 07/2011
115
Unity Pro
Status
RRTC
RRTC
Converted
WRTC
WRTC
Converted
PTC
PTC
Converted
ADD_TOD
ADD_TOD_PL7
Modified (1)
ADD_DT
ADD_DT_PL7
Modified (1)
DELTA_TOD
DELTA_TOD
Converted
DELTA_D
DELTA_D
Converted
DELTA_DT
DELTA_DT
Converted
SUB_TOD
SUB_TOD_PL7
Modified (1)
SUB_DT
SUB_DT_PL7
Modified (1)
DAY_OF_WEEK
DAY_OF_WEEK
Converted
TRANS_TIME
TRANS_TIME
Converted
DATE_TO_STRING
DATE_DINT_TO_STRING
Modified (1)
TOD_TO_STRING
TOD_DINT_TO_STRING
Modified (1)
DT_TO_STRING
DT_ARINT_TO_STRING
Modified (1)
TIME_TO_STRING
TIME_DINT_TO_STRING
Modified (1)
SCHEDULE
SCHEDULE
Converted
Legend:
(1)
116
The function name is modified but the operation remains the same.
35006148 07/2011
Exchange Instructions
Introduction
Conversion replaces the PL7 instructions by their Unity Pro equivalent.
Instruction List
The following table describes any correspondence and differences between PL7
and Unity Pro instructions.
PL7
EF
Unity Pro
Status
READ_STS
READ_STS
Modified (1)
WRITE_CMD
WRITE_CMD
Modified (1)
READ_PARAM
READ_PARAM
Modified (1)
WRITE_PARAM
WRITE_PARAM
Modified (1)
RESTORE_PARAM
RESTORE_PARAM
Modified (1)
SAVE_PARAM
SAVE_PARAM
Modified (1)
SMOVE
SMOVE
Modified (1)
XMOVE
XMOVE
Modified (1)
LXM_SAVE
LXM_SAVE
Modified (1)(2)
LXM_RESTORE
LXM_RESTORE
Modified (1)
Key:
35006148 07/2011
(1)
(2)
The order of the function parameters has been modified (see page 179).
117
Input/output instructions
Introduction
Conversion replaces the PL7 instructions by their Unity Pro equivalent.
Instruction list
The following table describes any correspondence and differences between PL7
and Unity Pro instructions.
EF
PL7
Unity Pro
Status
MOD_CAM
MOD_CAM
Modified (1)
MOD_PARAM
MOD_PARAM
Modified (1)
MOD_TRACK
MOD_TRACK
Modified (1)
TRF_RECIPE
TRF_RECIPE
Modified (1)
DETAIL_OBJECT
DETAIL_OBJECT
Modified (1)
Legend:
(1)
118
35006148 07/2011
EF
PL7
Unity Pro
Status
PID
PID_INT
Modified (1)
PID_MMI
Deleted
PWM
PWM_INT
Modified (1)
SERVO
SERVO_INT
Modified (1)
Legend:
(1)
35006148 07/2011
The function name is modified: its operation remains the same but the order
of its parameters has been changed (see page 179).
119
Other instructions
Introduction
Conversion replaces the PL7 instructions by their Unity Pro equivalent.
Instruction list
The following table describes any correspondence and differences between PL7
and Unity Pro instructions.
EF
PL7
Unity Pro
Status
FTOF
FTOF
Modified (1)
FTON
FTON
Modified (1)
FTP
FTP
Modified (1)
SCOUNT
SCOUNT
Modified (1)
MASKEVT
MASKEVT
Converted (2)
UNMASKEVT
UNMASKEVT
Converted (2)
FPULSOR
FPULSOR
Modified (1)
READ_PCMCIA
READ_PCMCIA
Modified (3)
READ_PCMEXT
READ_PCMCIA
Modified (4)
SET_PCMCIA
SET_PCMCIA
Modified (3)
SET_PCMEXT
SET_PCMCIA
Modified (4)
WRITE_PCMCIA
WRITE_PCMCIA
Modified (3)
WRITE_PCMEXT
WRITE_PCMCIA
Modified (4)
Legend:
(1)
The order of the function parameters has been modified (see page 179).
(2)
(3)
The function name remains the same but a parameter is added in the first
position. When the call is made the value 0 must be entered in this
parameter.
(4)
The function name is modified but the operation remains the same.
NOTE: FTOF, FTON and FTP are not converted for M340 targets.
120
35006148 07/2011
Communication instructions
Introduction
Conversion replaces the PL7 instructions by their Unity Pro equivalent.
Instruction list
The following table describes any correspondence and differences between PL7
and Unity Pro instructions.
EF
PL7
Unity Pro
Status
CALL_MODEM
CALL_MODEM
Converted
CANCEL
CANCEL
Converted
DATA_EXCH
DATA_EXCH
Modified (1)
INPUT_CHAR
INPUT_CHAR
Modified (1)
OUT_IN_CHAR
OUT_IN_CHAR
Modified (1)
PRINT_CHAR
PRINT_CHAR
Modified (1)
RCV_TLG
RCV_TLG
Modified (1)
READ_ASYN
READ_ASYN
Modified (1)
READ_GDATA
READ_GDATA
Modified (1)
READ_VAR
READ_VAR
Modified (1)
ROR1_ARB
ROR1_ARB
Converted
SEND_REQ
SEND_REQ
Modified (1)
SEND_TLG
SEND_TLG
Converted
SERVER
UNITE_SERVER
SWAP
SWAP_ARINT
Modified (2)
WRITE_ASYN
WRITE_ASYN
Converted
WRITE_GDATA
WRITE_GDATA
Converted
WRITE_VAR
WRITE_VAR
Converted
Legend:
35006148 07/2011
(1)
The order of the function parameters has been modified (see page 179).
(2)
The function name is modified but the operation remains the same.
121
EF
122
PL7
Unity Pro
Status
FCT_ACCEPT
Deleted
FCT_BIND
Deleted
FCT_LISTEN
Deleted
FCT_RECEIVE
Deleted
FCT_SELECT
Deleted
FCT_CONNECT
FCT_CONNECT
Converted
FCT_SEND
Deleted
FCT_SHUTDOWN
Deleted
FCT_SOCKET
Deleted
FCT_SETSOCKOPT
Deleted
35006148 07/2011
EF
PL7
Unity Pro
Status
FCT_ACCEPT_DFB
FCT_ACCEPT
Modified (1)
FCT_BIND_DFB
FCT_BIND
Modified (1)
FCT_LISTEN_DFB
FCT_LISTEN
Modified (1)
FCT_RECEIVE_DFB
FCT_RECEIVE
Modified (1)
FCT_SELECT_DFB
FCT_SELECT
Modified (1)
FCT_SEND_DFB
FCT_SEND
Modified (1)
FCT_SHUTDOWN_DFB
FCT_SHUTDOWN
Modified (1)
FCT_SOCKET_DFB
FCT_SOCKET
Modified (1)
FCT_SETSOCKOPT_DFB
FCT_SETSOCKOPT
Modified (1)
Legend:
(1)
35006148 07/2011
The function name is modified but the operation remains the same.
123
Diagnostics instructions
Introduction
Conversion replaces the PL7 instructions by their Unity Pro equivalent.
Instruction list
The following table describes any correspondence and differences between PL7
and Unity Pro instructions.
EF
PL7
Unity Pro
Status
DEREG
DEREG
Converted
REGDFB
REGDFB
Modified (1)
UREGDFB
UREGDFB
Modified (1)
REGIO
Deleted
Legend:
(1)
124
The function interface is modified. You must modify this function manually
(see page 38) before launching the conversion procedure.
35006148 07/2011
Grafcet instructions
Introduction
Conversion replaces the PL7 instructions by their Unity Pro equivalent.
Instruction list
The following table describes any correspondence and differences between PL7
and Unity Pro instructions.
EF
35006148 07/2011
PL7
Unity Pro
Status
RESET_XIT
Deleted
125
EF
PL7
Unity Pro
Status
ADJUST
No equivalent
Deleted
ASK_MSG
ASK_VALUE
ASSIGN_KEYS
CONTROL_LEDS
DISPLAY_ALRM
DISPLAY_GRP
DISPLAY_MSG
GET_MSG
GET_VALUE
PANEL_CMD
SEND_ALARM
SEND_MSG
126
35006148 07/2011
7.4
35006148 07/2011
Page
128
129
130
132
134
127
%T
PL7_3_TIMER
%TM
TON
PL7_TON
TOF
PL7_TOF
TP
%C
%MN
%R
PL7_MONOSTABLE
%Ri.LEN 32
32 < %Ri.LEN 255
%DR
PL7_TP
PL7_COUNTER
PL7_REGISTER_32
PL7_REGISTER_255
PL7_DRUM (1)
Key:
(1)
128
The PL7_DRUM EFB contains an extra output parameter (see page 181)
compared with the PL7 %DR instance type.
Note: A PL7_DRUM is converted in Modicon M340 applications to an empty
DFB.
35006148 07/2011
35006148 07/2011
129
Specific
%T
%TM
TON
TOF
TP
%C
%MN
130
PL7
START %Ti
START_PL7_3_TIMER(Ti);
STOP %Ti
STOP_PL7_3_TIMER(Ti);
TMi(S:=TRUE);
(* START*);
DOWN %TMi
TMi(S:=FALSE);
(* DOWN*);
DOWN_PL7_TON(TMi);
TMi(S:=TRUE);
(* START*);
DOWN %TMi
TMi(S:=FALSE);
(* DOWN*);
DOWN_PL7_TOF(TMi);
TMi(S:=TRUE);
(* START*);
DOWN %TMi
DOWN_PL7_TP(TMi);
TMi(S:=FALSE);
(* DOWN*);
RESET %Ci
RESET_PL7_COUNTER(Ci);
Ci(R:=TRUE);Ci(R:=FALSE);
(* RESET*);
Ci(P:=TRUE);Ci(P:=FALSE);
(* PRESET*);
UP %Ci
UP_PL7_COUNTER(Ci);
Ci(CU:= TRUE);Ci(CU:=
FALSE);
(* UP*);
DOWN %Ci
DOWN_PL7_COUNTER(Ci);
Ci(CD:= TRUE);Ci(CD:=
FALSE);
(*DOWN*);
MNi(S:=TRUE);
(* START*);
35006148 07/2011
SFB
Specific
PL7
%R
%Ri.LEN32
RESET %Ri
RESET_PL7_REGISTER_32(Ri);
Ri(R:=TRUE);Ri(R:=FALSE);
(* RESET*);
PUT %Ri
PUT_PL7_REGISTER_32(Ri);
Ri(I:=TRUE);Ri(I:=FALSE);
(* PUT*);
GET %Ri
GET_PL7_REGISTER_32(Ri);
Ri(O:=TRUE);Ri(O:=FALSE);
(* GET*);
RESET %Ri
RESET_PL7_REGISTER_255(Ri); Ri(R:=TRUE);Ri(R:=FALSE);
(* RESET*);
PUT %Ri
PUT_PL7_REGISTER_255(Ri);
Ri(I:=TRUE);Ri(I:=FALSE);
(* PUT*);
GET %Ri
GET_PL7_REGISTER_255(Ri);
Ri(O:=TRUE);Ri(O:=FALSE);
(* GET*);
32 <
%Ri.LEN255
%DR
DRi(R:=TRUE);
DRi(R:=FALSE);
(*RESET*);
UP %DRi
DRi(U:=TRUE);
DRi(U:=FALSE);
(* UP*);
WORD_TO_BIT(INT_TO_WORD(DRi
.W),
List of 16 DRUM output
objects);
UP_PL7_DRUM(DRi)
WORD_TO_BIT (INT_TO_WORD
(DRi.W),
list of 16 DRUM output
objects);
NOTE: The DRUM SFB is represented by an empty DFB for M340 targets.
35006148 07/2011
131
SFB %TM
SFB %C
Unity Pro
State
Not used in
instruction
list language
TON
IN %TMi
CAL TMi(S:=TEMPBOOL)
Converted
TOF
IN %TMi
CAL TMi(S:=TEMPBOOL)
TP
IN %TMi
CAL TMi(S:=TEMPBOOL)
R %Ci
CAL
Ci(CU:=0,CD:=0,R:=TRUE,P:=FA
LSE)
S %Ci
CU %Ci
Converted
CAL
Ci(CU:=0,CD:=0,R:=0,P:=TRUE)
CD %Ci
CAL
Ci(CU:=TRUE,CD:=FALSE,R:=FAL
SE,P:=FALSE)
CAL
Ci(CU:=FALSE,CD:=TRUE,R:=FAL
SE,P:=FALSE)
SFB %MN
SFB %R
S %MNi
%Ri.LEN R %Ri
32
I %Ri
O %Ri
R %Ri
32 <
%Ri.LEN
255
I %Ri
O %Ri
132
CAL MNi(S:=FALSE)
Converted
CAL Ri(R:=TRUE)
Converted
CAL Ri(R:=0,I:=TRUE,O:=0)
CAL Ri(R:=0,I:=0,O:=TRUE)
CAL Ri(R:=TRUE)
CAL Ri(R:=0,I:=TRUE,O:=0)
CAL Ri(R:=0,I:=0,O:=TRUE)
35006148 07/2011
SFB %DR
PL7
Unity Pro
State
R %DRi
CAL DRi(R:=TRUE,U:=0)
(1)
Converted
(Premium
only)
U %DRi
CAL DRi(R:=0,U:=TRUE)
(1)
Note: For Modicon M340, the converter replaces a DRUM SFB with an empty DFB.
Key:
(1)
35006148 07/2011
You must also assign the values of the current step to the DRUM output objects
(see page 181).
133
134
PL7 Timer
Unity Pro
State
Modified
35006148 07/2011
PL7
Unity Pro
State
SFB
PL7_3 Timer
Modified
SFB
PL7 Monostable
Modified
SFB
PL7 Counter
Modified
SFB
PL7 Register
Modified
(1)
35006148 07/2011
135
PL7
SFB
Unity Pro
PL7 Drum
State
Modified
(Premium
only)
(2)
Note: For Modicon M340, the converter replaces a DRUM SFB with an empty DFB.
Key:
(1)
Depending on the register length (see page 128), can be converted into
PL7_REGISTER_255.
(2)
You must also assign the values of the current step to the DRUM output objects
(see page 181).
136
35006148 07/2011
Unity Pro
Correspondences between ladder language elements
35006148 07/2011
35006148 07/2011
Page
138
The rungs
139
Coils
140
141
142
137
138
PL7
Unity Pro
Status
Label
%Li
Li
Modified
Comment
Network comment
Network comment
Converted
35006148 07/2011
The rungs
Introduction
Conversion replaces the PL7 ladder language elements by their Unity Pro
equivalent.
Rungs
The following table describes any correspondence and differences between PL7
and Unity Pro ladder language graphic objects.
Type of rung
35006148 07/2011
PL7
Graphic
representation
Unity Pro
Graphic
representation
Status
Direct
--I I--
--I I--
Converted
Reverse
--I / I--
--I / I--
Converted
Rising edge
--I P I--
--I P I--
Converted
Falling edge
--I N I--
--I N I--
Converted
139
Coils
Introduction
The conversion replaces the PL7 ladder language elements with their Unity Pro
equivalent.
Coils
The following table describes the correspondence and possible differences between
PL7 and Unity Pro graphic objects.
PL7
Graphical
representation
Unity Pro
Graphical
representation
State
Direct coil
--( )--
--( )--
Converted
Negated coil
--( / )--
--( / )--
Converted
Set coil
--( S )--
--( S )--
Converted
Reset coil
--( R )--
--( R )--
Converted
Jumps to a label
-->>%Li
-->>Li
Converted
Subroutine return
--<RETURN>--
--<RETURN>--
Converted
--<HALT>--
EF
Modified (1)
Coil #
--( # )--
--(
SR call coil
--( C )--
EF
name)--
Modified (2)
Modified (1)
Key:
(1)
(2)
140
35006148 07/2011
Unity Pro
Graphical representation
State
Operate block
Modified (1)
Horizontal
compare block
Converted
Vertical compare
block
EF
Modified (2)
Key:
(1)
(2)
35006148 07/2011
141
The following screen gives an example of a block embedded between two outputs
of another block: this part of the program cannot be automatically converted.
142
35006148 07/2011
Unity Pro
Correspondences between Structured Text language elements
35006148 07/2011
Correspondences between
Structured Text language
elements
35006148 07/2011
Topic
Page
9.1
144
9.2
145
143
9.1
The sequences
Introduction
Conversion replaces the PL7 Structured Text language elements by their Unity Pro
equivalent.
Sequences
The following table describes any correspondence and differences between PL7
and Unity Pro Structured Text language sequences.
144
PL7
Unity Pro
Status
Label
%Li
Li
Modified
Comment
Comment linked to
the sequence
Comment linked to
the sequence
Converted
35006148 07/2011
9.2
Command instructions
Introduction
Conversion replaces the PL7 Structured Text language elements by their Unity Pro
equivalent.
Instruction list
The following table describes any correspondences and differences between PL7
and Unity Pro Structured Text command instructions.
Instructions
PL7
Unity Pro
Status
IF
IF
Converted
CASE
CASE
Converted
WHILE
WHILE
Converted
REPEAT
REPEAT
Converted
EXIT
EXIT
Converted
FOR
FOR
Modified (1)
HALT
HALT()
Modified (2)
JUMP
JUMP
Converted
SRi
SRi()
Modified (3)
RETURN
RETURN
Converted
Legend:
(1)
35006148 07/2011
(2)
(3)
145
146
35006148 07/2011
Unity Pro
Correspondences between Instruction List language elements
35006148 07/2011
Correspondences between
Instruction List language
elements
10
NOTE: if a PL7 Instruction List language element has no Unity Pro correspondence,
both a warning and aconversion error message are generated (see page 46).
Whats in this Chapter?
This chapter contains the following sections:
Section
35006148 07/2011
Topic
Page
10.1
148
10.2
149
147
10.1
The sequences
Introduction
Conversion replaces the PL7 Instruction List language elements by their Unity Pro
equivalent.
Sequences
The following table describes any correspondence and differences between PL7
and Unity Pro Instruction List language sequences.
148
PL7
Unity Pro
Status
Label
%Li
Li
Modified
Comments
Comments linked to
the sequence
Comments linked to
the sequence
Converted
35006148 07/2011
10.2
35006148 07/2011
Page
Command instructions
150
Boolean instructions
151
152
149
Command instructions
Introduction
Conversion replaces the PL7 Instruction List language elements by their Unity Pro
equivalent.
Instruction list
The following table describes any correspondences and differences between PL7
and Unity Pro Instruction List command instructions.
Instructions
PL7
Unity Pro
Status
HALT
HALT
Modified (1)
HALTC
ST ACCU
HALT (EN:=ACCU)
Modified
HALTCN
STN ACCU
HALT (EN:=ACCU)
Modified
END
END
Modified (1)
ENDC
ST ACCU
END (EN:=ACCU)
Modified
ENDCN
STN ACCU
END (EN:=ACCU)
Modified
JMP
JMP
Converted
JMPC
JMPC
Converted
JMPCN
JMPCN
Converted
RET
RET
Converted
RETC
RETC
Converted
RETCN
RETCN
Converted
SRi
CAL SRi
Modified (2)
NOP
Deleted
FE
Modified
RE
Modified
Legend:
150
(1)
(2)
(3)
35006148 07/2011
Boolean instructions
Introduction
Conversion replaces the PL7 Instruction List language elements by their Unity Pro
equivalent.
Instruction list
The following table describes any correspondences and differences between the
Boolean instructions of PL7 and Unity Pro Instruction List language.
Instructions
PL7
Unity Pro
Status
LD
LD
Converted
LDF
LDF
Converted
LDN
LDN
Converted
LDR
LDR
Converted
ST
ST
Converted
STN
STN
Converted
AND
AND
Converted
OR
OR
Converted
XOR
XOR
Converted
Converted
Converted
RESET
Modified (1)
SET
Modified (1)
Modified (2)
Legend:
35006148 07/2011
(1)
(2)
The instructions MPS, MRD and MPP do not exist in Unity Pro
(see page 185).
151
152
PL7
Variable Name
Address
Type
Address
Unity Pro)
Type
Var_word_201
%KW0
WORD
%KW0
INT
Var_word_202
%KW1
WORD
%KW1
INT
Var_word_203
%KW3
WORD
%KW3
INT
Var_word_204
%KW5
WORD
%KW5
INT
Var_word_205
%KW7
WORD
%KW7
INT
Var_bool_001
%MW421:X2
BOOL
%MW421.2
BOOL
Var_word_206
%MW50
WORD
%MW50
INT
Var_word_207
%MW51
WORD
%MW51
INT
Var_ebool_101
%M122
EBOOL
%M122
EBOOL
Var_word_208
%MW305
WORD
%MW305
INT
Var_word_209
%MW306
WORD
%MW306
INT
35006148 07/2011
35006148 07/2011
Unity Pro
153
Example 2
Conversion of SFBs to IL language
PL7
154
Unity Pro
35006148 07/2011
PL7
Unity Pro
IL extensions
The following table describes the Instruction List language extensions which have
no Unity Pro equivalents.
PL7
Unity Pro
Status
[OF]
Deleted (1)
MASKEVT
UNMASKEVT
[...expression...]
Legend:
(1)
35006148 07/2011
155
156
35006148 07/2011
Unity Pro
Correspondences between Grafcet language elements
35006148 07/2011
Correspondences between
Grafcet language elements
11
35006148 07/2011
Page
158
159
160
157
Grafcet instructions
Introduction
The conversion replaces the PL7 Grafcet language elements with their Unity Pro
equivalent.
Grafcet instructions in ladder language
The following table describes the correspondence and possible differences between
PL7 and Unity Pro ladder language Grafcet instructions.
PL7
Unity Pro
State
Instructions
Modified
Modified
Instructions
PL7
Unity Pro
State
SET %Xi
SETSTEP (X_i);
Modified
RESET %Xi
RESETSTEP (X_i);
Modified
Instructions
158
PL7
Unity Pro
State
S %Xi
Modified
R %Xi
Modified
35006148 07/2011
If this checkbox is enabled, when the conversion of PL7 application to Unity Pro
is done, the macro steps not used on the PL7 program are declared on the Unity
Pro project.
If this checkbox is not enabled the macro steps not used on the PL7 program are
not converted to the Unity Pro project.
35006148 07/2011
When this checkbox is enabled, the PL7 steps %Xi are converted with the PL7
step symbol. For example on PL7 %X2 with the symbol Motor_1 is converted into
Motor_1.
When this checkbox is not enabled, the PL7 steps %Xi are converted on X_i. For
example on PL7 %X2 is converted into X_2.
159
160
35006148 07/2011
Unity Pro
Other correspondences between PL7 and Unity Pro elements
35006148 07/2011
12
35006148 07/2011
161
162
35006148 07/2011
Unity Pro
Differences between PL7 and Unity Pro
35006148 07/2011
IV
35006148 07/2011
Chapter Name
Page
13
165
14
167
15
183
16
185
17
187
163
164
35006148 07/2011
Unity Pro
Differences between the application structures
35006148 07/2011
13.1
13
Functional Modules
Introduction
Converting a PL7 application into a Unity Pro application generates certain
differences, which are described in the following paragraphs.
Functional modules
The PL7 application converter converts only the functional models which:
z
z
z
35006148 07/2011
165
166
35006148 07/2011
Unity Pro
Differences between common language elements
35006148 07/2011
14
35006148 07/2011
Topic
Page
14.1
168
14.2
171
14.3
176
14.4
181
14.5
182
167
14.1
168
Page
169
170
35006148 07/2011
35006148 07/2011
169
170
35006148 07/2011
14.2
35006148 07/2011
Page
172
173
Word bits
174
175
171
Immediate values
Introduction
Converting a PL7 application into a Unity Pro application generates certain
differences, which are described in the following paragraphs.
Integer and long integer words
WORD and DWORD types are converted into INT and DINT types by the PL7
converter.
A hexadecimal immediate value greater than 16#7FFF (+32767) is converted to a
negative decimal value, the original value is shown in the comment (example:
%MW0:=16#ABCD is converted to %MW0:=-21555 {16#ABCD}).
The conversion of the immediate value of a long integer is identical for values
greater than 16#7FFFFFFF (+2147483647) (example: %MD80:=16#ABCDABCD is
converted to %MD80:=-1412584499 {16#ABCDABCD}).
Network address words
The address ADR# is replaced in Unity Pro by an EF. For a given address
ADR#{r.s}\xy.i.c\xy.i.SYS, there are two possible scenarios:
172
35006148 07/2011
If there is a comment associated with the first element of a table from %MB or from
%KB, the converter declares a character string of length 1 and associates the
comment with this (example: TABLE, symbol of %MB500:20 (*This is the
TABLE comment*), is converted to TABLE_1:STRING[1](*This is the
TABLE comment*)).
35006148 07/2011
173
Word bits
Introduction
Converting a PL7 application into a Unity Pro application generates certain
differences, which are described in the following paragraphs.
Extracted bit
In order to avoid any conflicts of syntax in the PL7 user applications to be converted,
the Unity Pro syntax for extracted bits has been modified.
The PL7 syntax for the extracted bit :Xi is therefore replaced with Unity Pro syntax
.i.
Example: %IW12.3.1:X5 is converted into %IW12.3.1.5.
The Unity Pro syntax for the extracted bit on the rank 0 object is as follows:
%IW12.3.0.5.
174
35006148 07/2011
35006148 07/2011
175
14.3
176
Page
177
179
35006148 07/2011
35006148 07/2011
177
Tables: functions
The table functions for which you must indicate a rank (rank of an element in the
table) behave in the same way as the corresponding PL7 functions, except when the
rank is negative. In this case operation is as follows:
Functions
COPY_ARDINT_AREBOOL
COPY_ARINT_AREBOOL
COPY_AREBOOL_ARDINT
COPY_AREBOOL_ARINT
COPY_AREBOOL_AREBOOL
178
EQUAL_***
FIND_EQP_***
35006148 07/2011
Other instructions
(see page 120)
Communication instructions
(see page 121)
PL7
Unity Pro
PL7
Unity Pro
PL7
PID
PID_INT
FTOF
FTOF
DATA_EXCH
DATA_EXCH
PWM
PWM_INT
FTON
FTON
INPUT_CHAR
INPUT_CHAR
SERVO
SERVO_INT
FTP
FTP
OUT_IN_CHAR
OUT_IN_CHAR
SCOUNT
SCOUNT
PRINT_CHAR
PRINT_CHAR
FPULSOR
FPULSOR
RCV_TLG
RCV_TLG
READ_ASYN
READ_ASYN
READ_GDATA
READ_GDATA
READ_VAR
READ_VAR
SEND_REQ
SEND_REQ
SERVER
UNITE_SERVER
Unity Pro
NOTE: When you used a TSX series 7 PLCs PL7-2 or PL7-3 with the function
DATA_EXCH, in reception, APP.NUM is interpreted as APP and the message with
this address is managed by the first DATA_EXCH executed after reception.
NOTE: FTOF, FTON and FTP are not converted for M340 targets.
35006148 07/2011
179
Input/output parameters
(INOUT)
ADR
GEST
RECP
TYPE
EMIS
180
35006148 07/2011
14.4
35006148 07/2011
181
14.5
PL7_TON
PL7_TOF
PL7_TP
TON
TOF
TP
z No time base
z Preset time is a TIME type
(t#1mn20s)
z The current value of the
timer is directly one output
ET of TIME type
182
PL7 Timers
255
z Time base (min, sec, or ms)
Running Mode
Online Mode
Online modifications
(add/modify) allowed on TON
instance
35006148 07/2011
Unity Pro
Differences between Structured Text language elements
35006148 07/2011
15.1
15
Command instructions
Introduction
Converting a PL7 application into a Unity Pro application generates certain
differences, which are described in the following paragraphs.
FOR instruction
The PL7 application converter converts the FOR command instruction.
In Unity Pro the index variable used in the FOR instruction is usable only within the
programming loop.
During conversion of the first FOR instruction of a PL7 application , an error
message will warn you to check that each of the programming loop variables is used
only within the loop.
If this is not the case, the variable not having been declared, the command is not
carried out.
35006148 07/2011
183
184
35006148 07/2011
Unity Pro
Differences between Instruction List language elements
35006148 07/2011
16.1
16
Boolean instructions
Introduction
Converting a PL7 application into a Unity Pro application generates certain
differences, which are described in the following paragraphs.
MPS, MRD, MPP instructions
The instructions MPS, MRD and MPP do not exist in Unity Pro. The PL7 application
converter replaces these instructions with variables adapted to the environment.
For each module of a PL7 application in which an MPS, MRD or MPP instruction
appears, the converter declares an 8 BOOL table and an INT type index simulating
the behavior of the instruction to be replaced.
NOTE: before replacing MPS, MRD and MPP instructions, the PL7 applications
converter verifies that the names of the created variables have not already been
used in the application.
35006148 07/2011
185
186
35006148 07/2011
Unity Pro
Different display in runtime screens
35006148 07/2011
17
Runtime screens
Introduction
Converting a PL7 application into a Unity Pro application generates certain
differences, which are described in the following paragraphs.
Runtime screens
The display format of the values of text objects (Binary and Hex) have been modified
in the Runtime Screen tool.
The new format is identical to the one used in all other tools of Unity Pro: animation
tables and language editors.
Example: The WORD type variable, 0 in binary format 2#0000000000000000 is
converted into 2#0000_0000_0000_0000.
The PL7 applications to be converted may therefore show display errors. If the
display zone has been adjusted to the maximum size of the text, in animation,
running Unity Pro the value of the variable will be replaced by the sequence
##############, indicating that the size of the zone is insufficient to display the
value in its entirety.
You must then either resize the display zone of the text, or lower the size of the font
used.
35006148 07/2011
187
188
35006148 07/2011
Unity Pro
35006148 07/2011
Appendices
35006148 07/2011
189
190
35006148 07/2011
Unity Pro
Recommendations
35006148 07/2011
Recommendations
A
Recommendations during conversion
At a Glance
When converting PL7 applications, certain cases have been identified in which
manual solutions are required. These are described in this appendix.
CAUTION
UNEXPECTED APPLICATION BEHAVIOR - INCOMPLETE CONVERSION
If you are using control loops parametered using PL7 variables (%MW, %MF...) in
the FEF file to be converted, you must enter them again using Unity Pro.
Failure to follow these instructions can result in injury or equipment damage.
What to do when the conversion fails
The following table shows the procedure when the conversion fails just after opening
the FEF file.
If
Then
Then
open the STX file using version 4.3 of PL7,
modify the processor version,
export the PL7 application to obtain a new FEF file,
restart the conversion, opening the FEF file with Unity
Pro.
z
z
z
z
Then
z using PL7, modify the name of the variable to lower the
Pro.
35006148 07/2011
191
Recommendations
If
Then
Then
Pro.
the FEF file was created with a
version of PL7 previous to 4.0
Then
z open the FEF file using version 4.3 of PL7
(see page 18),
z export the PL7 application to obtain a new FEF file,
z restart the conversion, opening the FEF file with Unity
Pro.
Then
z open the FEF file using version 4.3 of PL7
Pro.
the processor is not level 3
Then
z open the FEF file using version 4.3 of PL7,
(see page 18)
z modify the processor version (see page 18),
z export the PL7 application to obtain a new FEF file,
z restart the conversion, opening the FEF file with Unity
Pro.
Then
z using PL7, modify the loops concerned,
z export the PL7 application to obtain a new FEF file,
z restart the conversion, opening the FEF file with Unity
Pro.
you have modified the
configuration of a
TSX SCY 21601 module just
before exporting the FEF file
192
Then
z using PL7, save the stx file before exporting the
application (this allows you to save all last-minute
modifications),
z export the PL7 application to obtain a new FEF file,
z restart the conversion, opening the FEF file with Unity
Pro.
35006148 07/2011
Recommendations
Then
Then
z using PL7, delete all the parts concerning these
Pro.
an indexed variable is used as an using Unity Pro, write the missing condition without using
activation condition
indexed variables.
A simulation module is used in
the PL7 Pro configuration during
import
35006148 07/2011
193
Recommendations
Then
Then
z using Unity Pro, check that the macro step is
declared (using PL7 it is possible to use a macro
step bit without it being declared),
z if this is the case, correct the program
accordingly.
z generate the project again.
Then
z check that these objects are configured using
PL7,
z if this is not the case, correct the program
accordingly.
z generate the project again.
Then
z check that these objects are configured using
PL7,
z if this is not the case, correct the program
accordingly.
z generate the project again,
z if you are using ADM 390 10 modules, it is no
194
Then
z create a table of integers with 4 elements,
z assign each element one by one.
z generate the project again.
35006148 07/2011
Recommendations
Then
Then
z modify the program to make the types
compatible,
z example: SD52, the solution consists of creating
35006148 07/2011
195
Recommendations
196
35006148 07/2011
Unity Pro
Glossary
35006148 07/2011
Glossary
D
DFB
User Function Block.
DT
Date and Time.
E
EF
Elementary Function.
EFB
Elementary Function Block.
EVT
Event.
I
IL
Instruction List language.
35006148 07/2011
197
Glossary
L
LD
Ladder language.
S
SFB
Standard Function Block.
SFC
Sequential Function Chart language.
SR
Subroutine.
ST
Structured Text language.
STRING
Character string.
198
35006148 07/2011
Unity Pro
Index
35006148 07/2011
B
AC
Index
ADR, 71
analyzing an application, 45
animation tables, 161
FAQs, 191
FOR instruction , 183
functional modules
correspondences, 59
C
character strings, 173
converror, 46
conversion settings for Grafcet elements,
159
conversion wizard for PL7 Micro), 33
converter, 49
converting a PL7 DFB, 37
converting a PL7 diagnostic DFB, 38
converting an application, 27
correspondences, 51
D
direct addresses
conversion wizard, 35
directly addressed variables
symbolization, 81
disabling the protection, 28
G
Grafcet, 157
H
hardware equivalences, 53
I
importing a PL7 DFB, 43
Instruction List
correspondences, 147
differences, 185
instructions
correspondences, 95
instructions
differences, 176
E
exporting a PL7 application, 28
exporting a PL7 DFB, 38
35006148 07/2011
199
Index
Ladder, 137
language objects
correspondences, 70
differences, 171
LD sections
split into small sections, 63
topological addresses
conversion wizard, 35
N
network address, 72
O
object types
correspondences, 66
differences, 168
P
PL7 Micro)
conversion wizard, 33
Processor equivalences, 53
R
runtime screens, 161
correspondences, 161
differences, 187
S
sections
LD section splitting, 63
SFBs
correspondences, 127
differences, 181
in Modicon M340 applications, 129
structural elements, 59
Structured Text
correspondences, 143
differences, 183
symbolized directly addressed variables, 81
200
35006148 07/2011