Tuser
Tuser
Tuser
35003084 00
Related Documentation
Related Documentation
At a Glance
Related Documentation
Table of Contents
Chapter 1
Setting up . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17
Presentation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
General points on PL7 software . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Connections . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Software installation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Chapter 2
Chapter 3
17
18
20
21
27
28
29
30
31
32
33
34
35
37
39
40
41
Managing applications . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 45
Presentation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
PL7 access security management . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Accessing PL7 software . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Creating an application . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Opening an application . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Protecting an application on a PLC . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Saving an application . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Offline/online operation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
45
46
47
48
49
50
53
54
5
Chapter 4
4.1
4.2
Chapter 5
Chapter 6
Chapter 7
Chapter 8
151
152
153
154
157
158
159
160
161
163
164
166
169
170
171
173
174
175
176
179
180
7
Chapter 9
Chapter 10
Chapter 11
Chapter 12
Part III
259
260
261
262
265
267
268
269
270
Chapter 13
Debugging . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 273
Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Introduction to the PLC debugging screen . . . . . . . . . . . . . . . . . . . . . . . . . . . .
CPU screen designation zone. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Information zone . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Task Zones . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Operating mode zone . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Event zone . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Last stop zone . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Realtime clock zone . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Modification of the program in Run mode . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Animating program elements . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Grafcet debugging . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Executing the programme . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Task properties . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Executing the MAST task . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Executing the FAST task. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Execution of a program with breakpoint . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Executing a program in step by step mode. . . . . . . . . . . . . . . . . . . . . . . . . . . .
Forcing TOR input . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Forcing analog inputs, TSX Micro . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Forcing analog inputs, TSX Premium . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Adjustment of the application specific functions . . . . . . . . . . . . . . . . . . . . . . . .
Debugging a functional module. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Debugging DFBs . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
273
275
276
277
278
280
281
282
283
284
285
288
291
292
293
295
297
300
302
303
304
305
306
308
Chapter 14
Chapter 15
Chapter 16
Documentation. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 333
Presentation. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 333
Contents of documentation file . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 334
Documentation: application documentation file . . . . . . . . . . . . . . . . . . . . . . . . . 337
Chapter 17
Import/Export . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 341
Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 341
General points on import/export. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 343
Import/Export source files . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 344
Exporting a Section , a Subroutine, an Event . . . . . . . . . . . . . . . . . . . . . . . . . . 351
Importing a Grafcet/Ladder/List/Structured text section. . . . . . . . . . . . . . . . . . . 353
Exporting an LD, IL, ST, Grafcet source file . . . . . . . . . . . . . . . . . . . . . . . . . . . 354
Importing an LD, IL, ST, Grafcet source file. . . . . . . . . . . . . . . . . . . . . . . . . . . . 355
Exporting variables . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 357
Importing variables. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 358
Importing/Exporting variables in EXCEL format. . . . . . . . . . . . . . . . . . . . . . . . . 360
Exporting a functional module . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 362
Importing a functional module . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 364
Importing a functional module using the wizard. . . . . . . . . . . . . . . . . . . . . . . . . 366
Exporting animation table(s) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 369
Importing animation table(s) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 371
Export of runtime screens . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 373
Import of runtime screens . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 375
Export of a DFB type . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 376
Importing a DFB type . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 378
Exporting an application. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 380
Importing an application. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 382
Exporting an application in FNES format (Input/Output Neutral File) . . . . . . . . 384
10
Chapter 18
Chapter 19
Chapter 20
399
400
402
406
OS Loader . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 409
Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
The OS Loader: At a Glance . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Displaying the PLC OS version . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Downloading an OS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Communication error during downloading. . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Limitations of the OS Loader. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Chapter 21
387
388
390
396
409
410
412
413
414
415
Windows . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 417
Presentation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
PL7 online help . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Help Topics Browser . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
PL7 contextual Help . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
General points relating to Windows. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Equivalent Windows keyboard: Basic principle . . . . . . . . . . . . . . . . . . . . . . . . .
The menu keys . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Windows dialogue box keys . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Keys for modifying text . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Text selection keys . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Work station and Windows Explorer keys . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Print management in Windows . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
417
418
419
421
422
423
424
425
427
428
429
430
Glossary . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .431
Index . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .439
11
12
At a Glance
Document Scope
This manual describes the installation of software for Micro and Premium PLCs
Validity Note
The update of this documentation takes into account the functions of PL7 V4.0
Nevertheless, it can be used to set up previous versions of PL7.
User Comments
We welcome your comments about this document. You can reach us by e-mail at
[email protected]
13
14
Presentation
Subject of this
part
This spacer describes how to set up the software tool and gives general points on
managing applications.
Whats in this
part?
Chapter
Chaptername
Page
Setting up
17
27
Managing applications
45
15
16
Setting up
Presentation
Whats in this
chapter
This chapter describes the software set up for the programming software.
Whats in this
Chapter?
Topic
Page
18
Connections
20
Software installation
21
17
Setting up
PL7 Micro/Junior/Pro are programming and debugging tools for TSX Micro and TSX
Premium PLCs.
There are three software variants:
l the software suite that is used to install PL7 software,
l the software update suite that is used to update a previous version to a new version (Pl7 Micro V1.0 to P17 Micro V4.0),
l the software upgrade suite that is used to upgrade a previous version to a new
version with a higher level of functionality (PL7 Micro V1.0 to P17 Junior V4.0, or
PL7 Junior V1.0 to PL7 Pro V4.0).
A PL7 software suite comprises:
l a TSX07/37/57 PC UNI-TE terminal port cable (reference TSX PCU 1030, not
supplied with updates or upgrades),
18
Pl7-Junior
Pl7-Pro
Programming
TSX-Micro
TSX-Micro\Premium TSX-Micro\Premium
Grafcet Chart
Grafcet Macro
yes
yes
no
TSX Premium
TSX Premium
Ladder
yes
yes
yes
List
yes
yes
yes
Structured text
no
yes
yes
Sections
yes
yes
yes
Functional modules
no
no
yes
Debugging
yes
yes
yes
Adjustments
yes
yes
yes
Diagnostics
yes
yes
yes
Runtime screens
no
no
creation/use
yes
Setting up
DFB types
no
use
creation/use
DFB diagnostics
no
no
TSX/PCX/PMX57
TSX Premium
TSX Premium
yes
yes
Storage of PLC
symbols
Application documentation file
References
yes
19
Setting up
Connections
Introduction
This module deals with linking the terminal to the PL7 by cable. The specific links to
the terminal (monitor, keyboard, mouse, printer, power) are described in the construction documentation.
Other connection methods are possible such as UNITELWAY bus, modem (via the
telephone network).
Connection from
the PC <-> to the
PL7
Connecting a PC type terminal means using a TSX PCU 1030 link cable 2.5 metres
long which is supplied with new software packages (not supplied with updates or upgrades).
TSX 57
TSX 37
Secteur
PC
Secteur
Secteur
TSX PCU 1030
TSX PCU 1030
Connection of
FTX517/FT2000
<-> to the PL7
Connecting an FTX 517 terminal requires a T FTX CBF 020 link cable 2.5 metres
long.
Connecting an FT 2000 terminal requires a TSX PCU 1030 link cable 2.5 metres
long which is supplied with new software packages (not supplied with updates or upgrades).
TSX 57
FTX 517
TSX 37
Secteur
FT 2000
Connecteur
liaison srie
Secteur
TSX PCU 1030
TSX PCU 1030
Secteur
20
Setting up
Software installation
Configuring the
terminal
Nominal configuration
Processor
Pentium 133MHz
System
Ram
64 Mb
Drives
Ports
Monitor
VGA
Typical configuration
Processor
Pentium 266MHz
System
Ram
128 Mb
Drives
Ports
Monitor
Note:
These characteristics are for configurations for the installation of the PL7 software
only.
A larger configuration may be necessary if it is to be used at the same time as other
software.
21
Setting up
Contents of PL7
22
You can choose which components of the PL7 software you wish to install. The standard installation is the most straightforward, but a customized installation allows you
to optimize the space taken up by the software.
Contents of a standard installation (in bold):
Software
Contents
PL7-Micro
PL7-Junior
PL7-Pro
Setting up
Installation
This procedure describes the various stages for PL7 software installation.
Insert the CD-ROM
Select:
the type of installation
Standard
Customized
23
Setting up
PL7 directories
and files
Directories created on C:
C:\PL7USER\
C:\PL7TEMP\
C:\CONGIG.SYS
C:\CONFIG.001
\PL7Micro33\
\PL7Junior33\
\PL7Pro33\
\PL7SYS\
\XWAYDRV\
24
\PL7SYS\
\PL7SYS\HISTO.REF
\PL7SYS.INI
initialization file
\START MENU\PROGRAMS\MODICON
TELEMECANIQUE
Setting up
Execution
Uninstalling the
software
Action
Action
Select PL7***V4.*.
Select Add-Remove.
Select OK.
25
Setting up
26
Presentation
Whats in this
chapter
This chapter describes very generally the various components of the software product.
Whats in this
Chapter?
Topic
Page
Configuration editor
28
Variables editor
29
30
31
32
33
Animation tables
34
Debugging
35
Diagnostics
37
Operating screens
39
40
41
27
Presentation
Configuration editor
Hardware
configuration
The configuration editor is used intuitively and graphically to declare and configure
the various constituent parts of the PL7.
l rack,
l supply,
l processor,
l application specific modules.
Editor:
Software
configuration
The configuration editor also ensures the software parametrizing of the application
by informing on the number of function blocks, registers and the size of the global
variable fields.
Configuring
Grafcet objects
If the Grafcet programming language has been used, the configuration editor is used
to define the Grafcet objects (steps, macro steps,.) and the execution parameters
(number of steps and active transitions).
Note
In on-line mode the configuration editor also provides the debugging, adjustment
and diagnostic functions.
28
Presentation
Variables editor
Presentation
l
l
l
l
l
l
l
l
Variables
Addr 1: TSX DEY 16D2
Parameters I/O
%CH1.MOD
Address
%CH1.MOD
%I1.MOD.ERR
+ %MW1.MOD
+ %MW1.MOD.1
+ %MW1.MOD.2
P %CH1.0
+ %KW 1.0
+ %KW 1.0.1
+ %KW 1.0.2
%I1.0
%I1.1
%I1.2
%I1.3
%I1.4
%I1.5
%I1.6
%I1.7
%I1.0.ERR
Type
CH
EBOOL
WORD
WORD
WORD
CH
WORD
WORD
WORD
EBOOL
EBOOL
EBOOL
EBOOL
EBOOL
EBOOL
EBOOL
EBOOL
BOOL
Symbol
PRESENCE_PIECE
CAPTEUR_V1_ENTREE
CAPTEUR_V1_SORTIE
CAPTEUR_V2_ENTREE
CAPTEUR_V2_SORTIE
INIT
ARRET
Input zone
Comment
29
Presentation
The Ladder editor offers a number of tools to help build a ladder in a user-friendly
way:
l a graphics palette,
l the language objects can be entered at random and displayed in the form of addresses, symbols or both at the same time,
l a collapsed view.
Editor:
LD : MAST - test
%I1.0
%M12
%TM4.Q
%I1.5
%I1.7
%Q2.
%M17
%TM0
%M27
IN
Q
%MW0:X5
TM
%M25
OPERATE
%MVV15:=%MVV13*500
MODE TON
TB: 1 s
TM.P: 10
MODIF: Y
F2
F3
P
F4
N
F5
F6
F7
F8
F9
F10
S
F11
R
F12
1.F2
OPER
1.F3
COHP
H
1.F4
COHP
V
1.F5
1S.F6
1F7
F (...)
1.F8
When displayed, the ladders are shown in contracted form. It is thus possible to view
several ladders in the same window and to access them using the scroll bar or their
label.
A subroutine can be accessed directly from the call program.
30
Presentation
The Listeditor is used to input language instructions and operands via the keyboard,
they are formatted automatically.
The operands can be input and viewed either as addresses or symbols.
To make program reading easier, key words of the language and comments are displayed in color.
Instruction list editor.
IL: MAST - SR0
! ( * Verification of part in drying position * )
LD
%I1.0
AND
%I1.1
ST
%Q2.2
! ( * Start motor * )
LDN
%I1.0
ANDN
%I1.4
AND
%I1.3
ST
%Q2.0
31
Presentation
The editor is used to input program lines via the keyboard, using alphanumeric characters.
The operands can be input and viewed either as addresses or symbols.
The editor provides a help option for function input via the functions library.
To make program reading easier, key words of the language and comments are displayed in color.
Structured text editor
ST : MAST - SR1
! (*Search for the first not null element in a 32 word table
Determination of its value ( %MW10), and its rank (%MW11)
This search is carried out if %M0 is set to 1
%M1 is set to 1 if a not null element exists, if not it is set to 0*)
IF %M0 THEN
FOR %MW99: =0 TO31 DO
IF %MW100 [ %MW99 ] < >0 THEN
%MW10: = %MW100 [ %MW99 ];
%MW11: = %MW99;
%M1: =TRUE;
EXIT;
(*Exit FOR loop*)
ELSE
%M1: =FALSE;
END_IF;
END_FOR;
ELSE
%M1: FALSE;
END_IF;
32
Presentation
The editor has a number of tools which are used to enter the chart in a user-friendly
manner:
l a range of graphic objects,
l access to the actions or receptivity programs,
l automatic numbering of steps,
l a display of each Grafcet page with step and transition lines,
l simplified entering of remarks,
l a reduced view.
The graph is constructed by selecting the desired object from the graphics palette
and putting it into the Grafcet page.
The graphics (fine lines) appear which ensures that the programmed graphic objects
are displayed immediately.
Illustration
Grafcet editor
GRAFCET: MAST - Chart
(*Copy the
Recipe data*)
(*Select the Recipe
with the Display key*)
(*Start the cut/
New Recipe*)
(*Advance the high-speed
bar*)
(*Deceleration threshhold
reached*)
(*Advance the low-speed
bar*)
(*Length of cut
reached*)
(*Cut off a section*)
(*New section/
Cut completed*)
F2
F3
F4
F5
F6
F7
F8
F9
F10
F11
F12
1F2
The Grafcet editor behaves like an editing field by shifting onto a complete module
of 8 Grafcet pages.
33
Presentation
Animation tables
At a Glance
F8
Forcing
7/8
Address
%Q3.0
%Q3.1
%I4.0
%I4.1
%M0
%M1
%TM0.V
Symbol\Name
TEMOIN_DEMARRAGE
TEMOIN_TEMPO
DEMARRAGE
ARRET
MEMO_RETARD_ALLUMAGE
MEMO_FONCTIONNEME
RETARD_ALLUMAGE-V
Current value
Nature
Type
1
0
0
0
0
1
8
F4 Force 0
F5 Force 1
F6 Unforce
Display
Dec.
34
Presentation
Debugging
Debugging tools
The PL7 software offers a complete range of tools for debugging applications.
A range of tools is used to access the main functions directly:
l setting the break point,
l running the program from step to step,
l independent running of the MAST master task and the FAST rapid task.
Debugging bar
Debug
GO
CU debugging
screen
Ap
F
Surv.
cR7
Mast
Fast
Evt
RUN a
RUN a
RUN a
DIAG...
Information
TSX 57302
3.0(35)
Processor present:
Processor version:
Network address:
Number of forced bits:
SYS
1
Task
Period Minimum Current Maximum Cycle time Watch Operating State Cmd Activate Error Init Reset
dog Mode
duration Fault
Set Duration Duration Duration FIPIO
task
Network
2
6
12 Not pres 250 RUN
a
Stop Deactivate Fault Init Reset
MAST CYCLIC
FAST
5
0
1
2 Not pres 100 RUN
a
Stop Deactivate Fault Init Reset
Events
Operating Mode
Warm restart
Reset fault bit
Fault
Output fallback
State: RUN active
Cold start
Outputs in fallback mode
Number of events:
0
Last stop
Timestamp
Tuesday
Cause Change to Stop
OK
24/02/1998
Tuesday
Upd
Date: 24/02/1998 Time: 10:47:55
Cancel
10:49:13
35
Presentation
Grafcet
debugging
screen
This Grafcet debugging screen is used to give a hierarchical display of the graph
with overlays of the CHART module and the macro steps.
This view is animated on line. The animation is represented by the absence and
presence of flags.
Debugging browser
Grafcet Debug Browser
G7
LD
LD
operate
Prl
Chart
G7 Macro0
G7 Macro1
Post
The debugging bar is used to display the status of the graph, to modify the status of
the graph, to inform on the status of the master task.
Debugging bar
Chart status
Frozen Error
Debugging
function
modules
Actions on chart
Prepositioning
PRG
Mast
RUN a
Organizing a function module, distributing the sections, events and Grafcet modules
to the various modules has no effect on the running of the program. This is carried
out according to the order shown in the structure view.
To debug a function module, the user has basic debugging functions and additional
functions used for incremental debugging of the application, function module by
function module.
These functions are:
l deactivating all sections attached to a function module,
l activating all sections attached to a function module,
l cancelling the forcing of all sections attached to a function module.
36
Presentation
Diagnostics
Diagnostics tool
The software provides various diagnostics tools. To access the tools you need to be
in online mode.
These tools are:
l diagnostics for the PLCs last operational stop,
l module/channel diagnostics,
l program diagnostics,
l system diagnostics (See "Diagnostics functions installation manual",)
l Diagnostics DFBs (See "Diagnostics functions installation manual")
Diagnostics
DFBs
Can be used with PL7 PRO. The diagnostics DFBs are composed of:
l Application diagnostics DFBs, which are used to set up process monitoring via
the application program:
l PL7 equation monitoring,
l monitoring the reaction time of the process to a command,
l monitoring safety conditions,
l monitoring inputs, outputs and the ASI bus.
l Working part control and diagnostics DFBs which are used to control and monitor
elements of the working part (EPOs):
l monitoring sensor information,
l monitoring actuator control requests,
l monitoring the duration of a movement,
l storing minimum and maximum movement durations,
l learning the duration times of a movement,
l controlling an actuator.
The library breaks down into the following DFBs:
EV_DIA
Monitoring the status of 2 bits without taking a time factor into account.
MV_DIA
Monitoring the status of two bits without taking a time factor into account, with
the option of monitoring a movements changes (change of bit status within a
given time period).
NEPO_DIA
TEPO_DIA
IO_DIA
ASI_DIA
ALRM_DIA
37
Presentation
Error message:
Each DFB has its own standard error message, which may be customized according
to the type of DFB.
Error messages are displayed on a Viewer integrated into PL7 Pro. A Diagnostics
Viewer is also available with the CCX17 V2.5
Viewer:
Ack Error Zone Appearance Disappearance Error Message
ALARM 0 10/03/1998... 10/03/1998... Silo empty or weighing ho
EV_DIA 0
38
Status
0.2
Presentation
Operating screens
Presentation
The operating screens editor is a tool integrated into the PRO PL7 program from version V3.0 onwards.
It is used to make running an automated process easier.
From the screen tab you can:
l create operating screens, screen families,
l manage importing and exporting screens and screen families,
l manage the link between the screen number and the screen browser object,
l list all the variables used in a screen,
l parametrize the screen (size, elevator, full screen, mouse position.),
l copy/paste one or more objects,
l display the errors found by the diagnostic DFBs in the program.
From the message tab you can:
Reagent
VAL L I T E R VAL L I T E R
Screen
1 - Contents
Volume
4 Program debug
1
1
2 Chemical process
111 - Clock
3- VOIT LINE DIAGRAM
34 PRO CUT DIAGRAM
27 DEF_1_DEFAUTS
0
0
24 - SYNZ1_SYNOPTIQUE
112 - Product mix
5 Screen 1 blank for
5 Screen 2 blank for
7 Valve management
0
Contents
E v o l u t i o n at v e s s e l l e v e l
0
VAL
VAL L I T E R S
LITERS
1
1
ANOMALY
ANOMALY
0
39
Presentation
The documentation editor is linked to the Documentation browser which shows the
documentation file structure in tree diagram format.
The documentation editor is used to define:
l a title page containing the name of the project and the designer,
l general information pages,
l a cartridge.
The documentation editor automatically generates:
For functional
modules
40
When the documentation tool is launched, it detects whether there is at least one
functional module referencing either program modules which are not empty (Section, Evt, Grafcet modules, Srs), or animation tables.
If this is the case, an additional node "Function view" is added to the directory tree.
Presentation
The PL7 software uses all the standard working tools for Windows:
l mouse or keyboard,
l drop-down menus,
l browsers,
l tool bars and palettes with icons,
l several tools in parallel,
l on-line help and tool tips.
Standard
elements
PLC
Debug
Options
Window ?
?? ?
RUN STOP
M0
M1
F2
F3
F4
F5
F6
F7
F8
F9
F10
Ready
F11
F12
OFFLINE
1F2
U:SYS
GR7 NOK
OVR
41
Presentation
Tool bar
Number
Description
Tool bar for rapid access to all basic functions using the mouse.
Comments zone.
Work context.
The tool bar provides a rapid means of access to the standard software functions:
This table shows what each element of the tool bar is for:
Element
Function
Element
Function
New application
Offline mode
Open an application
Online mode
Undo
Confirm modifications
Go to
Tile Horizontally
Application browser
Tile Vertically
Cross references
Help
Function library
Whats This?
42
Presentation
Status bar
ONLINE
Ready
STOP
U:SYS
GR7 OK MODIF
OVR SHIFT
This table describes the different zones that make up the status bar:
Number Zone
Function
Operating mode
PLC status
Network address
Grafcet mode
Modification in
progress
Shows that the current application is not backed up or is different from the back up.
Animation flag
Keyboard functions
Shows the status of the Insert and Caps functions of the keyboard.
43
Presentation
44
Managing applications
Presentation
Whats in this
chapter
Whats in this
Chapter?
Topic
Page
46
47
Creating an application
48
Opening an application
49
50
Saving an application
53
Offline/online operation
54
55
57
Comparing applications
58
59
60
62
Memory Usage
63
65
45
Managing applications
PL7 access security management, administered by the super user, limits and controls access to the various PL7 functions.
It is applied to the terminal where the PL7 software is installed, not the application.
PL7 software provides 5 user profiles:
l Read Only,
l Operate,
l Adjust,
l Debug,
l Program.
User information
l
l
l
l
l
PL7 software
access
management
The super user is the only one with the rights to manage PL7 access security.
From the "PL7 Access Security Management" dialog box the super user can:
l create/ modify a list of users,
l import a list of users,
l export a list of users,
l activate the "PL7 Access Security Management" function,
l modify his/her password.
Note: The name reserved for the super user is Supervisor.
46
Managing applications
Access without
launch option
Access with
launch option
Action
Select the PL7 icon required (Micro, Junior or Pro) from the Modicon Telemecanique program group.
If PL7 Access Security Management is active, a dialog box is used to identify the user.
Enter a user name.
Action
Notes:
The operating mode described above can vary slightly depending on the launch options.
Depending on the launch options declared in the options file, different dialog boxes
may appear.
When the user is not known (name and/or password incorrect), only the minimum
PL7 profile (read only) is available.
47
Managing applications
Creating an application
Procedure
Suggestion for
setting up an
application
48
Action
Depending on which processor it is, select the type of memory card. The type
of memory card can always be modified subsequently when configuring the
processor.
Depending on the processor version, the Grafcet option must be selected before being used in the application.
Managing applications
Opening an application
Procedure
Step
Click on Open.
Note:
The applications are saved by default in the directory defined when it was installed.
This can be looked up and modified using the command Option/Personalize.
The modifications will take effect after the next PL7 session.
49
Managing applications
The applications Protection function can be accessed in offline mode from the Application properties screen.
This function provides:
l Global application protection,
l For protecting the sections, the type of protection can be defined:
l individually by section,
l for all sections of an application or task.
Global
application
protection
Action
From the Station directory select Properties via the contextual menu
This function is used after transferring the application to the PLC to provide read and
write protection.
Only the Run, Stop and Init functions which can be accessed via the PLC/Command to the PLC command are authorized in a protected PLC application.
WARNING
Protection cannot be removed once applied. A protected application
cannot be modified. The only option is to load a new application onto
the PLC.
Failure to observe this precaution can result in severe injury or
equipment damage.
50
Managing applications
Global
protection of all
sections
Individual
protection of
sections
Activating
section
protection
Action
Select the following from the drop-down menu: Write Protect, or Read and
Write Protect.
Action
From the drop-down menu, select Protection: Write or Read and Write
Step
Action
Check the box protection activated, and enter the password. A padlock by
the section shows that it is protected.
Notes:
The first time the application is used, the password must be confirmed.
The Clear button is used to delete the password.
The password is stored in the PLC when the application is transferred.
Deactivating
protection
Action
Check the Protection deactivated box, and enter password. An open padlock
by the section shows that protection has been deactivated.
51
Managing applications
Note
52
Managing applications
Saving an application
Saving a new
application
Action
If necessary, select the applications disk and/or save directory using the pulldown menu "In".
Enter the name of the file in the "Name" field (maximum of 215 characters).
Caution: The characters given below cannot be used in naming a :\ / file:
* ? " < > |.
Note: When saving an application, which exceeds the capacity of one disk, dialog
boxes will appear on the screen asking you to insert the disks one after another.
This will continue until the save of the application is complete.
You are advised to prepare several empty, formatted discs in advance, and to number them in the order in which you insert them.
Saving an
existing
application
53
Managing applications
Offline/online operation
Offline mode
Online mode
plications directory.
For functional
modules
Commands
54
Managing applications
Action
1
Select the PLC/Transfer Program command or the icon
If a cartridge allowing symbols and comments to be stored is declared in configuration, the box with the symbols is available: you can choose to make the
symbol transfer or delay it until a later stage of the transfer.
Action
1
Select the PLC/Transfer Program command or the icon
2
First scenario:
If no applications are open on the terminal (PC), the program is transferred. If there
is a symbol and comments database on the PLC, it is transferred, otherwise the offline database is initialized (empty).
Second scenario:
If the PC has an application open when a request for PLC -> PC transfer is made,
and modifications have been made since the last save, the software suggests saving them before continuing.
The software then suggests:
55
Managing applications
l either saving the data (symbols), the respective application documentation file,
the animation tables and the runtime screens on the terminal (PC) to do this use
the Keep button.
l or it suggests initializing the data (symbols), the respective application documentation file, the animation tables and the runtime screens on the terminal (PC) to
do this use the Initialize button (default values are the same as at application installation).
If there is a symbol and comments database is on the PLC, it is transferred from the
PLC to the PC.
WARNING
For DFB instance comments:
DFB instance comments are not retained in the variables editor even if
the user selects the "Keep" option
To combat this problem you must:
l either use a PCMCIA memory card for storing symbols and comments,
l or Export the symbols and comments from the old application, unload the new one and Import the symbols and comments into this
new application.
Failure to observe this precaution can result in severe injury or
equipment damage.
Transfer results
Results of the transfer are shown in the status bar (at the bottom of the window).
The ESC key can be used at any time to interrupt a transfer.
56
Managing applications
Action
Action
l
l
Click on OK.
The ">" command displays a dialog box which is used to choose the destination file.
WARNING
A transfer in progress can only be interrupted if there is a fault of some
kind (PLC fault, break in the PLC/PC link, etc.).
Failure to observe this precaution can result in severe injury or
equipment damage.
57
Managing applications
Comparing applications
Presentation
Procedure
Result
Step
Action
Click on OK.
l
l
l
l
l
58
Managing applications
TSX 37-10 PL7s and TSX 37-20 PL7s can save the application (program and constants) in the internal PL7 EPROM FLASH memory if this is in the RAM and is not
more than 15 associated symbol addresses.
This is used:
l to reload the PL7 RAM manually (transferring BACK UP -> RAM field) using the
contents of the EPROM FLASH,
l to reload the RAM automatically using the contents of the EPROM FLASH, when
the application in RAM is invalid.
This function must be carried out in offline mode.
Transferring
Ram -> Back up
field
Action
WARNING
If the %SW97 system word is initialized at 0, only the application program contained in the internal RAM is transferred to the Eprom Flash
(equivalent to a program back up).
Any saving of %MWi is deleted.
Failure to observe this precaution can result in severe injury or
equipment damage.
Transferring
Back up -> Ram
field
Action
59
Managing applications
TSX Micro and Premium PLCs provide the option of backing up the application (program and constants) on a TSX MFP BAK 032P memory card.
This Backup function is not available if the application is already running on a RAM
or EPROM memory card. The internal RAM memory can thus be reloaded using the
contents of the Backup card.
This function must be performed in Offline mode.
Action
Save the application held in the PLCs internal RAM on the programming terminal, if necessary.
Insert the TSX MFP BAK 032P memory card into the PLC (the write protection
lock must be set to OFF).
Transfer the application from the terminal to the PLCs internal RAM memory.
Notes:
For a RAM->Backup transfer on TSX 3720 PLCs with an external memory card, priority is given to transferring the application to the memory card.
When the memory card is inserted into the PLC the contents of the internal RAM
memory are re-initialized.
Backup memory
card -> Ram
transfer
60
Action
Insert the TSX MFP BAK 032P memory card into the PLC (the write protection
lock must be set to ON).
Inserting the memory card automatically transfers its contents into internal
RAM (and into EPROM FLASH: for the TSX 37-20).
Managing applications
Notes on the
PLCs operating
modes
At the end of transfer, with the Backup card in the processor, the PLC is forced to
STOP even if the RUN AUTO option has been configured. The PLC can be set to
RUN from the terminal, but after a power restoration the PLC starts systematically
in forced STOP mode.
After removing the Backup memory card, the PLC performs a cold restart in RUN or
STOP mode depending on the AUTO RUN configuration.
If internal word initialization on cold restart is not configured, the transfer from the
Backup memory card into RAM retains the internal word values.
61
Managing applications
Network address
syntax
Action
Note
Using the number 254 as a position when communicating between slaves allows it
to stay on the same UNITELWAY bus by optimizing exchange routing.
Example
{0.2}0.1.3 = PL7 having 3 for an address on the Unitelway link of the module 0 communication card, track 1 of station 2 on network 0.
SYS = default address of the PL7 physically linked to the terminal.
62
Managing applications
Memory Usage
At a Glance
The memory usage function can be accessed via the PLC/Memory usage command or from theApplication properties screen.
It provides information on:
l PLC memory used (data, program, configuration and system),
l memory mapping for an application (internal memory and memory card).
This zone groups together the objects linked to software configuration data:
l Bits and I/O bits:
l %Mi bits,
l %Si bits,
l Input/output bits,
l Bits associated with Grafcet, %Xi, %Xi,j,
TSX37xx: zone set at 2560 bits and I/O bits outside the internal memory.
TSX57xx: zone in the internal memory that can be configured.
l Words:
l %MWi words,
l %SWi system words,
l Words linked to configured function blocks (%Ci:V, etc),
l Words associated with Grafcet, %Xi, T, %Xi,j,T,
l I/O data:
l Data used for managing I/O modules and I/O words (%IW, %QW, %MW).
l DFB:
l data for DFB type instances,
l PL7 internal management.
"User program"
zone
63
Managing applications
"Other" zone
This zone summarizes consumption linked to the application configuration and application structure.
The total of the values declared is equal to the total amount of memory available in
the various memory spaces.
Mapping by memory type is displayed by positioning the mouse over the bars of the
chart.
l Configuration.
l hardware configuration (I/O, FIP),
l software configuration (Timers, Registers, etc.),
l System:
l Stack of tasks, catalogs, etc.
"Optimize"
command
The Optimize command is used to reorganize the memory structure where possible.
It is also used to remove EFs which are not used in the application from the memory.
64
Managing applications
The Command to a PL7 function is used to run (Run), stop (Stop) or initialize (Init)
a PL7 application from the terminal in offline mode.
Procedure
Action
Enter the communication driver type between the terminal and the PL7.
Select the command Identify in order to establish communication with the target PL7. The following parameters are supplied:
l the type of processor,
l the current status of the PL7 (Run, Stop or Init),
l the name and version of the PL7 application,
l the date of the last modification,
l any comments.
65
Managing applications
66
II
Introduction
Subject of this
part
This section describes how to configure the hardware devices TSX Micro/TSX Premium and how to program an application.
Whats in this
part?
Chapter
Chaptername
Page
Program access
69
115
151
173
195
101
10
Editing variables
227
11
Function modules
245
12
259
67
68
At a Glance
Subject of this
chapter
Whats in this
Chapter?
Section
Topic
Page
4.1
TSX-Micro
71
4.2
TSX Premium
84
69
70
4.1
TSX-Micro
At a glance
Object of this
section
Whats in this
Section?
Topic
Page
72
73
75
78
80
81
82
71
The configuration software displays the processor selected when the application
was created.
The aim of this function is to:
l replace the processor (if the one selected at the time of creation is not suitable),
l configure the processor,
l declare/parametrize the various input/output modules and integrated modules,
l enter the software configuration,
l enter the Grafcet configuration.
In online mode this function is used to:
Action
From the Application Browser, double left click on the "Configuration" directory or position the cursor over it using the arrow keys and press right arrow.
Select:
l Hardware configuration to access the module racks,
l Software configuration to define the application software parameters,
l Grafcet object configuration to define the grafcet parameters specific to
the application.
Note:
The Edit/Cancel modifications (CTRL+Z) command or the
modifications made since the last confirmation.
72
Changing the
processor
Choosing the processor is the first stage in setting up an application. This choice is
reversible.
Carry out the following actions:
Step
Action
If necessary, select a memory extension card (PCMCIA - if the processor supports it).
Click on OK.
The configuration editor provides assistance when attempting to change the processor. A message is sent out if the change is not authorized.
WARNING
When changing to a version V3.x processor
Using aV3.x processor in an application that has previously been configured with a lower processor version leads to an irreversible change
in the application structure.
This conversion involves:
l the creation of program structure in sections,
l the automatic creation of the Grafcet section when the initial program
module is written in Grafcet language,
l an increase in the size of the application by approximately 100 bytes.
Failure to observe this precaution can result in severe injury or
equipment damage.
Carry out the following actions:
Step
Action
73
Note:
It is possible to change the processor using the drop-down menu in the configuration
editor.
74
Action
Select Open module using the contextual menu or double click on the processor.
According to the application, enable the Alarm (See Alarm output, p. 76) output.
According to the application, enable the Save program and first %MWi (See
Saving/Restoring %MWi internal words, p. 76) input.
Select the type of memory card for processors which have this option.
l
l
10
Enter the MAST task watchdog (See WatchDog, p. 77) value: 10 to 500 ms
maximum (250ms, default value).
11
According to the application, enter the FAST task period value: 1 to 255 ms
maximum (5ms, default value).
12
According to the application, enter the FAST task watchdog value: 10 to 500
ms maximum (100 ms, default value).
13
Confirm using the Edit/ Confirm (CTRL + W) command or using the icon
75
RUN/STOP input
The %I1.8 input parameters can be set to switch the PLC between RUN/STOP as
follows:
l %I1.8 to 1 -> the PLC switches to RUN (program running),
l %I1.8 to 0 -> the PLC switches to STOP (program stops running).
This is taken into account on rising edge.
A STOP command by the %I1.8 input takes priority over a RUN command from a
terminal or a network command.
A fault on the RUN/STOP input causes the machine to STOP.
Alarm output
Saving/
Restoring %MWi
internal words
Automatic start
in RUN
If this option is checked, the PLC will automatically switch to RUN on a cold start.
If there is no memory card, the PLC will start up using the contents of the processors
internal RAM.
If a memory card is inserted, its contents determine the start up.
76
WatchDog
The duration of the master task operation when in cyclic or periodic mode, is controlled by the PLC (watchdog) and must not exceed the value set out in the T max
configuration (250ms default, 500ms maximum, rollover 10ms).
If this value is exceeded, an error is declared in the application, which stops the PLC
immediately:
l TSX Micro: setting the %Q2.0 alarm output to 0 if it has been configured.
Execution monitoring:
l %S11: indicates that the watchdog has been exceeded. It is set to 1 by the system when the cycle time exceeds the watchdog value.
l %SW11: contains the watchdog value (in ms).
l %S19 (periodic operation): indicates that the period has been exceeded. The
system sets it to 1 when the cycle time exceeds the task period.
l %SW0 (periodic operation): this word contains the period value (in ms). It is initialized on cold restart by the value set during configuration. It can be modified by
the user.
77
Editor:
0
TSX
3710
2
Main rack
Extension rack
Action
Select the position of the module to be configured (using the mouse or arrow
keys).
Select the Edit/Add module command or double click on the position selected. A dialogue box is displayed showing a list by family of the modules that can
be configured for the selected position (standard format module or half format).
Select the family (using the mouse or arrow keys), the module (the TAB key is
used to move between the different zones) and choose OK to confirm.
Notes:
If the module takes up 2 positions (as with all standard format modules), the software automatically updates the position configuration.
If no input/output modules are declared in the configuration, or if there are any format modules, the PL7 software gives access to the %Ix.0 to %Ix.15 bits and to the
%Qx.0 to %Qx.15 outputs for each position (even if the half format module concerned has less inputs/outputs).
78
If there are any standard format modules, the PL7 software gives access to the
%Ix.0 to %Ix.31 input bits for odd positions and to the %Qx+1.0 to %Qx+1.31 output
bits for even positions (even if the standard format module concerned has less inputs/outputs).
79
Configuration
context
Action
Select the command Services/Open the module or double click on the module selected.
For integrated modules a window shows:
l the module reference and position,
l the configuration context (See Configuration context, p. 80) in progress.
Enter the parameters and confirm with the command Edit/ Confirm (CTRL +
W).
To find out about the various parameters, refer to the job headings concerned.
Depending on whether the command View/Module Zone is selected or not,
the display is different.
Close the window by pressing (CTRL+F4) and parametrize the next module.
80
Maximum
number of
authorized
objects
Action
Double left click on the Configuration directory or select it using the arrow
keys, then press right arrow.
For each of the fields to be modified, select the field and then enter the required
value (entry is controlled to prevent values greater than the maximum authorized number (See Maximum number of authorized objects, p. 81)) from being
entered.
Maximum value
%TMi timers
64
64
%MNi monostables
%Ci counters
32
%Ri registers
%DRi drums
255
%KWi constants
81
Maximum
number of
authorized
objects
82
Action
Double left click on the Configuration directory or select it using the arrow
keys, then press right arrow.
For each of the fields to be modified, select the field and then enter the required
value (entry is controlled to prevent values greater than the maximum authorized number (See Maximum number of authorized objects, p. 82)) from being
entered).
Confirm the configuration with the command Edit/ Confirm (Ctrl + W).
Maximum values
Number of steps
TSX3705/08/10: 1 to 96.
TSX3721/22: 1 to 128.
TSX3705/08/10: 1 to 96.
TSX3721/22: 1 to 128.
TSX3705/08/10: 1 to 192.
TSX3721/22: 1 to 256.
Processor
version
Compatibility table
V1.1 processor
This generation of processors does not support Grafcet.
V1.5, V2.0, V3.x, and V4.0 processors
If you are using Grafcet it must be declared when the application is set up.
It is not possible to change this option subsequently.
83
4.2
TSX Premium
At a glance
Object of this
section
Whats in this
Section?
84
Topic
Page
85
86
88
89
91
94
96
98
99
The configuration software displays a supply module and the processor selected
when the application was set up.
The object of this function is to:
l replace the processor (if the one chosen at the beginning is not right),
l configure the processor,
l declare/parametrize the various input/output modules and integrated modules,
l enter the software configuration,
l enter the Grafcet configuration.
In on-line mode this function is used to:
Action
From the Application browser, double left click on the repertoire "Configurationor position the arrow keys on this and press the right arrow.
Select:
l Hardware configuration to access the module racks,
l Software configuration to define the software application parameters,
l Grafcet objects configuration to define the specific grafcet parameters for
the application.
Note:
The command Edit/ Cancel modifications (CTRL+Z) or the icon
modifications made since the last confirmation.
cancels all
85
TSX/PCX/PMX 57-1x
Up to 2 racks
TSX/PCX/PMX 57-2x/3x
Up to 16 racks
For a station configured with TSX/PCX/PMX 57-2x/3x processors, it is not necessary to use successive addresses. It is possible to configure one station with a rack
with a 0 address and one rack with a 7 address.
A configuration with several racks must contain one rack that can be extended to a
0 address.
86
Extension racks
then..
and..
adding a rack
or the symbol
(rack EX) then the command
Edit/Add a rack
selecting a rack
replacing a rack
suppressing a rack
Note:
The button
only appears for version V3.3 processors or later and for extendible racks.
Changing a V3.3 -> V3.0 processor can be refused if there are extension racks.
87
The supply does not necessarily occupy the first position in a rack (the position furthest to the left). This position has no address.
Double format supplies occupy not only the first position but the 0 address position.
In this case the processor is configured in the 1 address position.
Configuration
88
then..
select a module
and..
adding a module
replacing a module
suppressing a module
moving a module
copying a module
Changing the
processor
Choosing the processor is the first stage in setting up an application. This choice is
reversible.
Carry out the following actions:
Step
Action
Specify (depending on the processor configured) whether or not your application contains Grafcet.
Click on OK.
The configuration editor provides assistance when attempting to change the processor. A message is sent out if the change is not authorized.
WARNING
When changing to a version V3.x processor
Using aV3.x processor in an application that has previously been configured with a lower processor version leads to an irreversible change
in the application structure.
This conversion involves:
l the creation of program structure in sections,
l the automatic creation of the Grafcet section when the initial program module is written in Grafcet language.
l the automatic replacement of TSX SCY 21600 modules, if there are
any in the configuration, with TSX SCY 21601 modules.
l an increase in the size of the application by approximately 10%,
which can cause the conversion to fail.
Failure to observe this precaution can result in severe injury or
equipment damage.
89
Action
Note:
It is possible to change the processor using the drop-down menu in the configuration
editor.
90
Action
Select Open module from the context menu or double click on the processor.
Select the type of memory card for processors with this option.
l
l
Enter the value of the watchdog (See Watchdog, p. 92) of the MAST task: 10
to 500 ms maximum (250ms, default value).
10
Enter, depending on the application, the value of the period of the FAST task:
2 to 255 ms maximum (5ms, default value).
11
Enter, depending on the application, the value of the FAST task watchdog: 10
to 500 ms maximum (100 ms, default value).
12
If necessary, select type of Fipio (See Fipio, p. 93) mode for the MAST task:
l Controlled mode:the task is timed by a period (MAST in periodic execution).
l Free mode: the task controlled variables are scanned in "Optimal" mode,
but the scanning period may be greater than the period of the task, while
still less than the task watchdog.
13
If necessary, select type of Fipio mode for the FAST task (Controlled mode,
Free mode).
14
Confirm using the command Edit/Confirm (CTRL + W) or using the icon
RUN/STOP input
The input %I1.8 can be parameterized to control the PLCs switching between RUN/
STOP in the following way:
91
If this option is checked, the PLC will automatically switch to RUN during a cold start.
If there is no memory card, the PLC starts up according to the contents of the processors internal RAM.
ee
If a memory card is inserted, it is the contents of the card which defines the startup.
Memory
protection
This option enables the application contained in the PLC to be protected against any
attempt to alter it.
The protection is activated by setting the PLC input dedicated to this function to 1.
Watchdog
92
Fipio
The FIPIO bus allows 127 devices to be connected to the connection point which is
built into the processor.
The software PL7-Junior or PL7-PRO and the processors, TSX P 5725x / 35x /
45x, TPCX 57351x, and TPMX 57352 /452 are used to configure and monitor the
connected devices.
These devices can be any of the following:
l FIPIO agent PLCs,
l TBX TOR or ANA,
l Momentum TOR or ANA,
l CCX-17,
l ATV16/58/66,
l AS-i gateway TBX SAP10,
l devices which comply with FIPIO standard profiles,
l PCs.
93
Action
Select the position of the module to be configured (using the mouse or arrow
keys). (The PgUp, PgDn, TAB and SHIFT+TAB keys are used to select a different rack).
Select the Edit/Add module command or double click on the position selected
(ENTERkey). A dialogue box is displayed showing a list by family of modules
that can be configured for the selected position
Select the family (using the mouse or arrow keys), the module (the TAB key is
used to move between the different fields) and confirm by OK.
Notes:
Double format modules (for example the TSX CAY41 movement module) only appear in the module list when both the position selected, and the position before or
after it (depending on type) are not occupied.
Position 0 can only be occupied by a double format supply module or processor.
Moving a module
Action
Move it to the new position while keeping the mouse button held down or select the Edit/Move a module command.
Select the Edit/Confirm command for the modifications to be taken into account.
Notes:
Objects linked to the module at the former address are:
l deleted then recreated automatically at the new address,
l replaced in the program and variables editor (except for animation tables and
runtime screens) by objects at the new address.
Symbols associated with objects from the moved module are reattached to the objects at the new address.
The module that has been moved keeps all its parameters.
The processor can only be moved into positions 0 and 1 of rack 0.
94
If you move a discrete module whose channel has been configured in RUN/STOP
mode, the address of the RUN/STOP bit is not modified. You must ensure that the
RUN/STOP input corresponds to an valid address for a discrete input.
When the module addresses are used in an EF (e.g. SEND_REQ, READ_VAR,
etc.), they are not updated automatically.
Copying a
module
Action
hold down Ctrl and drag the copy to the new position or select the Edit/Copy
Module command.
Select the Edit/Confirm command for the modifications to be taken into account.
Notes:
The objects associated with a module with the old address are copied to the new
address.
The module that has been copied keeps all its parameters.
Duplicating a module associated with an event (at least one module channel is associated with oneevent) is impossible. One event cannot be associated with several
channels/modules at the same time.
Deleting a
module
Notes
Action
Select the Edit/Confirm command for the modifications to be taken into account.
If no input/output modules are declared in the configuration, or if there are any format modules, the PL7 software gives access to the %Ix.0 to %Ix.15 bits and to the
%Qx.0 to %Qx.15 outputs for each position (even if the half format module concerned has less inputs/outputs).
If there are any standard format modules, the PL7 software gives access to the
%Ix.0 to %Ix.31 input bits for odd positions and to the %Qx+1.0 to %Qx+1.31 output
bits for even positions (even if the standard format module concerned has less inputs/outputs).
95
96
Action
Select the command Services/Open the module or double click on the module selected.
A window is displayed indicating:
l the module reference and position,
l the configuration context (See Configuration context in progress , p. 97) in
progress.
Enter the parameters and confirm with the command Edit/Confirm (CTRL +
W).
To find out about the various parameters, refer to the job headings concerned.
Depending on whether the command View/ Module Zone is selected or not,
the display is different.
Close the window by pressing (CTRL+F4) and parametrize the next module.
Action
Double click or move the up/down arrows and press the ENTER key.
Action
Double click or move the up/down arrows and press the ENTER key.
Action
Double click or move the up/down arrows and press the ENTER key.
Configuration
context in
progress
97
Maximum
number of
authorized
objects
98
Action
Double left click on the Configuration directory or select it using the arrow
keys, then press right arrow.
For each of the fields to be modified, select the field and then enter the required
value (entry is controlled to prevent values greater than the maximum authorized number (See Maximum number of authorized objects, p. 98)) from being
entered.
Maximum value
%TMi timers
255
255
%MNi monostables
255
%Ci counters
255
%Ri registers
255
%DRi drums
255
255
%KWi constants
l
l
l
l
Procedure
Maximum
number of
authorized
objects
Action
Double left click on the Configuration directory or select it using the arrow
keys, then press right arrow.
For each of the fields to be modified, select the field and then enter the required
value (a check is made so that entries higher than the maximum authorized
number (See Maximum number of authorized objects, p. 99) cannot be made).
Maximum values
250
64
250
400
99
Processor
version
Compatibility table:
V1.5 and V2.0 processors
If you are using Grafcet it must be declared when the application is set up.
This option cannot subsequently be changed.
V3.x and V4.0 processors
The choice of whether to use Grafcet is made when creating the Grafcet section.
100
Program access
Introduction
Subject of this
chapter
Whats in this
Chapter?
Topic
Page
102
105
107
109
110
111
112
113
101
Program access
The application browser shows the contents of a PL7 application in two forms:
l the structure view,
l the function view.
Description
WARNING
Only PL7 PRO can be used to set up functional modules on TSX/PMX/
PCS57 PLCs.
Failure to observe this precaution can result in severe injury or
equipment damage.
102
Program access
Navigation
between function
view and
structure view
Application
properties
The Properties function (which can be accessed from the Functional View of the
Application Browser by right clicking on the application directory) at application
level is used to:
l provide the user with information on the current application,
l manage certain application parameters.
General tab
l application protection.
Identification tab
l creation date,
l date of last update,
l application ID.
Diagnostics tab
If the box is checked, the alarms generated by the diagnostics DFBs are saved in
the diagnostics buffer and can be viewed with the runtime screen viewer.
103
Program access
Identification,
application IDs
104
Designation
Reserved.
ID of constants.
Reserved.
Reserved.
Program access
Creating a section is authorized in offline and online mode with the PLC in Run or
Stop mode.
Importing a section is authorized in offline and online mode with the PLC in Stop
mode.
Section
properties
Display or
modify a
sections
properties
Action
go to the section (in the Application Browser of the Structure view) and select the Properties contextual menu (right click).
Click on OK.
105
Program access
Creating a
section
Importing a
section
106
Action
Left click on the Section directory for the required task or position the cursor
over it using the arrow keys.
Via the contextual menu or using the Shift+F10 keys select Create.
Select the language you would like to use to program the section.
Click on OK.
Action
Left click on the Section directory of the required task or position the cursor
over it using the arrow keys.
Via the Context menu, the File menu or Shift+F10, select Import.
Program access
A Grafcet section can be created in offline and online mode with the PLC in Run or
Stop mode.
Importing a section is authorized in offline and online mode with the PLC in Stop
mode.
By default the creation of a Grafcet section generates three directories. These correspond to:
l preliminary processing (Prl),
l sequential processing (Chart),
l posterior processing (Post).
The creation of a macro-step generates an additional directory.
PRL, POST
Properties
CHART, XM
Properties
107
Program access
Creating a
section
Action
Position the cursor over the section directory for the MAST, or FAST task using
a left mouse click or the arrow keys.
Click on OK.
Notes:
A Grafcet section may not be created if the configuration is in the process of being
modified.
A Grafcet section may not be deleted:
l if a section module is in the process of being edited,
l or if the configuration is in the process of being modified.
Importing a
section
108
Action
Position the cursor over the section directory for the MAST, or FAST task using
a left mouse click or the arrow keys.
Using the File menu, the contextual menu or the Shift+F10 keys, select Import.
Program access
Creating a subroutine is authorized in offline and online mode with the PLC in Run
or Stop mode.
Importing a subroutine is authorized in offline and online mode with the PLC in Stop
mode.
SR properties
Creating a
subroutine
Importing a
subroutine
Note
Step
Action
Left click on the SR directory of the required task or position the cursor over it
using the arrow keys.
Click on OK.
Action
Left click on the SR directory of the required task or position the cursor over it
using the arrow keys.
Using the contextual menu, the File menu or the Shift+F10 keys select Import.
Click on OK.
A subroutine can be called from any section of its associated task, or from other subroutines of that task.
109
Program access
Event creation is authorized in offline and online mode, with the PLC in Stop mode.
Importing an event is only authorized in offline mode.
Event Properties
Creating an
event
Importing an
event
110
Step
Action
Left click on the Event directory or position the cursor over it using the arrow
keys.
Click on OK.
Action
Left click on the Event directory or position the cursor over it using the arrow
keys.
Click on OK.
Program access
Emptying
Suppressing
Action
Select the module (section, sub-program, event) required using the mouse or
the arrow keys.
Edit the module using the command contextual menu Open or double click or
key ENTER.
Action
Select the module (section, sub-program, event task) required using the
mouse or the arrow keys.
Action
Select the module (section, sub-program) required using the mouse or the arrow keys.
Note:
It is not possible to perform a suppression operation on an event task.
111
Program access
This action can be carried out from within the same task from the structure view.
It is done in offline or online mode with the PLC in Stop mode.
Procedure
Action
Left click (keeping the button held down) on the icon of the section to be
moved.
WARNING
Running the program.
The program runs in the order shown in structure view.
The distribution of the sections, events and Grafcet modules in the various functional modules has no impact on the running of the program.
Failure to observe this precaution can result in severe injury or
equipment damage.
112
Program access
How to access
the runtime
screens editor
Action
Double click on the Runtime screens directory from the structure view:
Result: The Runtime screens editor opens on a blank page, ready for the creation of a new screen or message.
Action
Double click on the Runtime screens directory from the structure view.
Result: the editor appears, displaying the last screen open before the previous
save:
Runtime Screens: BLEND_PRODUCTS - Product - Blend - Titration
Screens Messages
Objects
Screen
WELCOME!
3 - Read_me
1 - Welcome_screen
SYSTEM INFORMATION
7 - System bit
6 - Grafcet
TITRATION_PRODUCTS
2 - Screen_ monitoring
0 - Product_Blend_Titration
DIAGNOSTICS_APPLICA
8 - Monitoring_mixer
DFB BEHAVIOR
4 - DFB_Screen - behavior
5 - Information_on_DFB_Debug
ie_1
Tr
1
eur
113
Program access
Second scenario:
Step
Action
Double click on the desired screen or message from the structure or function view.
Result: the editor displays the desired element immediately:
Runtime Screens: TITRATION_PRODUCTS - Product - Blend - Titration
Screens
Messages
Objects
Screen
WELCOME!
3 -Read_me
1 - Welcome_screen
SYSTEM INFORMATION
7 - System bit
6 - Grafcet
TITRATION_PRODUCTS
2 - Screen_monitoring
0- Product_Blend_Titration
DIAGNOSTICS_APPLICATION
8 - Monitoring_mixer
DFB BEHAVIOR
4 - DFB_Screen - behavior
5 - Information_on_DFB_Debug
114
ie_1
Tr
1
eur
Introduction
Subject of this
chapter
Whats in this
Chapter?
Page
117
119
Specific input
121
122
127
Information box
129
Online symbolization
130
131
Function library
134
136
138
139
142
143
145
115
Topic
116
Page
148
Printing of a program
149
150
l A label input area (cell situated in the top left of the rung).
l A comment input area (first line to the right of the label).
l A (Test and Action) input area for graphical elements:
l Coils.
l Operate blocks.
117
Example
Network (Rung).
Comment
(*Verifying start group authorization*)
Label
%1
%I 1.1
F2
118
F3
P
F4
N
F5
F6
F7
F8
F9
F10
S
F11
R
F12
S.F2
OPER
S.F3
COHP
H
S.F4
COHP
V
S.F5
Action
F3
F4
F5
I F2
119
Moving within
the editor
Notes
120
Specific input
Input/Deletion of
the vertical links.
Select the cell situated at the top and to the right of the connection then click on the
key F7 or click on the icon
Input/Deletion of
horizontal
connections
Input:
Select the cell where the link must be positioned and then click on the key F6 or F8
Inputting instructions HALT (end of program), RETURN (return to the calling program), CALL (subroutine call) operates following the procedure:
Step
Action
Click on the icon positioned in the graphic palette, the choice window appears.
HALT
CALL
RETURN
Place the cursor symbolizing the chosen code in the zone Action and click (in
the case of a keyboard entry, the cursor should be positioned in the Action
zone beforehand).
With codes, confirmation is direct HALT and RETURN. For the call, input the
SR number (sub-routine created beforehand) and confirm with ENTER.
121
The program module being displayed, select the command Edit/Go to/Rung
(Crtl+A) or the icon
.
The possible choices are as follows:
Select in the label field
position
TOP
BUTTOM
%Li
by
one network
positioning the cursor over the Rung by clicking to the left of the gray verand selecting the command Edit/
tical bar.
Rung selection mode.
or
several networks
Note:
The display of each selected rung is implemented by means of a rectangle equipped
with 8 handles.
122
Selecting one or
several graphical
elements
This function supports operations on elements such as cut, copy, paste, move, delete, initialize an animation table or initialize a table of cross references.
The possible choices are as follows:
Select
by
or
an element
Note:
Acknowledgement of an element is shown by a rectangle equipped with 8 handles.
Modifying a
network (Rung)
Modifying a variable:
Step
Action
Position the cursor over the variable to be modified then press the Space bar
or double click on the variable to be modified (except for SRs and DFB types).
Enter the modification (Escape cancels the current modification) and confirm
the entry using ENTER.
3
Confirm the modification using the keys (CTRL+W) or click on the icon
123
Action
Canceling a modification:
To cancel a current modification on a network of contacts, select the command Edit/
Cancel modifications or click on the icon
124
Moving an
element in a
network (Rung)
Action
Cutting/Copying/
Pasting one or
several graphical
elements
you must
the selection
125
Cutting/Copying/
Pasting one or
several
consecutive
networks
(Rungs)
you must
select the Rung(s) to be copied and select the is placed on the Wincommand Edit/Copy (CTRL+C)
dows clipboard.
the selection
Note:
The Cut/Copy/Paste function works in the same way for a selection of multi-Rungs
and between program modules.
Inserting a
network (Rung)
To insert a rung between two networks of contacts (the inserted network is placed
on top) or to place a rung at the top of the program module (TOP), after displaying
the program module carry out the following actions:
Step
Action
3
Enter the rung and confirm using CTRL+W or click on the icon
126
Action
Open the program module with right click + Open or with a double click.
Note:
It is possible to run the language editor from the Options menu in:
l addresses view,
l symbols view,
l symbols&addresses view (for the Ladder editor only).
Example of
display
127
Note
If a symbol or address has more than 8 characters, the display can be truncated.
Select the element, which is then displayed in full in the status bar. You can also use
the Information box.
The View/Collapsed command is used to reduce the size of the window whilst
maintaining the same level of information.
The View/Normal command allows you to return to the normal sized window.
128
Information box
Functions
This box, which can be accessed from all language objects, displays the symbols,
address and comments for the selected object (except for the operate blocks and
horizontal comparison) in an integrated format.
Display table according to object:
How to access
the object
information box
Note
Single object
l
l
l
l
l
Action
Click on the right mouse button (contextual menu) and then select Information, or select theView Informationcommand.
The information box remains visible when it is not explicitly closed by the user. The
contents of the Information box is updated according to the current selection.
129
Online symbolization
Principal
Online symbolization allows you, at the time of input of a Ladder, List, Structured
Text program, to immediately (without opening the data editor) associate:
l an address to a new symbol,
l a symbol to a non symbolized address.
Procedure
With the Ladder editor, start at Step 1, with the Structured Text or List editors, go
straight to step 2.
130
Step
Action
From within the language editor, carry out the following actions:
Step
Action
Input the number of the function block and confirm with ENTER .
131
Function blocks
132
Syntax
Timer block:
Timer block:
Function blocks
Syntax
Monostable (%MNi)
Monostable block:
Register block:
Drum-DRUM (%Dri)
133
Function library
Introduction
The functions library brings together all the associated information and utilities concerning functional elements (EFtab) and DFB function blocks (DFB tab).
Two access modes exist:
l in consult mode,
l by calling a function from the editor.
Consulting an EF
To access the library, select Library from the Tools menu then choose the EF tab
(default selection).
The functions library screen presents:
l The list of available families defined by:
l family name,
l the library version Lib.V,
l the version of families used in the current application App V (open station
only).
l The list of functions associated with each family defined by:
l function name,
l comments.
Note: In order to display an entire set of truncated comments (>>symbol at the end
of the line), double click on the function or place the cursor above and use the
Space bar.
l The parameters of the selected function, defined by:
l name,
l type (eg: DWORD),
l kind,
l comments,
l the result of a function (if there is one).
Note: In order to display the parameters of a function and its possible result, select
Parameters in the Function Information field.
134
Consulting a
DFB
To access the library, select Library from the Tools menu then choose the DFB
tab.
For each DFB instance, the library screen presents:
l The list of DFBs in the application and defined by:
l the DFB name,
l the version (which is automatically incremented with the confirmation of each
modification),
l comments.
l The list of the instance for a given DFB(Select the instance),
l The DFB parameters selected defined by:
l the nameof the parameters,
l type (eg: DWORD),
l kind,
l comments.
Note: A new instance can be created from the screen for The list of the instance
for a given DFB.
135
Select an operate
block with the
mouse
Select an operate
block using the
keyboard
Click on the graphics element which corresponds to the operate block in the
graphics palette at the bottom of the editor.
Click in the target cell ( Action zone) to position the operate block.
Operate block
entry help
Action
Action
Select the target cell with the arrow keys.
136
Step
Action
Select the contextual menu Enter a function call (right click or SHIFT+F8).
The "Parameters" option must be selected from the Function Information heading.
Select the EF group using the mouse or Tab and arrow keys (example: Single
length integer).
Enter the function variables and the entered function is displayed in the Call
Display field.
Note:
l some functions have additional entry screens which are accessed using the Detail button,
l when the function syntax is known, enter the syntax directly into the editor,
l it is possible to directly enable assisted entry on a given function by selecting
the function name and then selecting the Service Enter the function call
command or right click,
l Tabulation and line feed characters are represented by $T and $N respectively,
they must be entered in $$T and $$N format.
Modifying the
function call
Action
137
Entering a
comparison
block with the
mouse
Entering a
comparison
block using the
keyboard
138
Step
Action
Click on the target cell ( Test zone) in order to position the selected comparison
block.
Action
Select the target cell with the arrow keys.
Step
Action
Select the tab EF (selection by default). The "Parameters" option must be selected under the heading Function Information.
Enter the (EF) function variables (%MB4:6; %MB14:9). The function entered
can be viewed in the Display the call field.
Click on ENTER.
139
Notes:
Certain functions offer extra screens for parameter entry (e.g.: human-machine interface functions). These parameters are accessed with the Detail button that then
appears at the bottom of the screen.
When the function syntax is known, enter syntax directly into the editor.
It is possible to directly enable assisted entry on a given function by selecting the
function name then selecting the command Service/Enter function call
(SHIFT+F8).
Procedure for an
instance of DFB
type
Action
140
Note:
Two instances of the DFB type connected in series must be separated by at least
2 columns.
WARNING
For EFs displayed in red:
EFs which are displayed in red in the function entry help screen cannot
be used in the application. This limitation is encountered in the following
instances:
l when an earlier version of the EF is already used in the application,
l when the EF name is used as a variable linked symbol, and only concerns the EF ROUND (family of single precision reals).
Failure to observe this precaution can result in severe injury or
equipment damage.
141
142
Action
Procedure
Action
Select the command Tools/Replace variables or position the cursor over the
Station directory and select Replace variables from the contextual menu.
Put the variable to be replaced (as an address or a symbol) in the Findfield and
confirm with ENTER or TAB.
Structure view
Function view
143
144
Step
Action
Select the label (if LD, ST, IL) or the page (if G7) at the beginning of the replacement by positioning the pointer on the list From.
If more precision is required, use the up and down arrow keys.
Select the label (if LD, ST, IL) or the page (if G7) at the end of the replacement
by positioning the pointer on the listTo.
If more precision is required, use the up and down arrow keys.
Principals of
using debugging
The user realizes that the variable X is not the right value. To identify the cause he
must therefore:
l find the places where this variable is used,
l obtain a list of statements, rungs and expressions,
l to display and verify the activation conditions of the variable.
Note:
In order to record the path of this search, the list elements thus visited are marked
with an asterisk (*).
Operational
mode for objects
A variable can be a read variable (R), a write variable (W) or a read/write variable
(R/W).
- "R" groups together the read operational modes, indexed read, indexed word, input or input/output parameter of a indexed or non-indexed function.
- "W" groups together the write operational modes, indexed write, output or input/
output parameter of indexed or non-indexed function and execution of Block Functions (SFB and DFB).
Search source
variables
Table of variables:
Bit
Word
%MWi; %MDi; %MFi; %KBi; %KWi; %KDi; KFi; %MBi; %SWi; %QWi;
%QDi; %IWi; %IDi; %NWi
Instruction
SRi; HALT
145
Search options
For an indexed variable, the variable and the index are taken into account in the list.
Table of options:
146
Extract Bit
Table Object
This option is for bit tables, word tables and immediate indexed variables.It adds to the list the immediate indexed table variables
whose first element is the input variable.
Channel Object
This option is for channel objects.It adds to the list all the objects of
the same referenced channel, including the tables and the extract
bits.
Network Objects
This option is for the network variables.It allows you to obtain all the
variables from the same remote module (NANET object).
FB Object
This option allows you to expand the list of SFB block function elements and the DFB type elements.
FB Instance
Searching for
cross references
Action
1
Select the icon
2
Enter the search source variable as an address or a symbol (E.g. %M10) and
the possible options then confirm via Search.
To display a module, select the module, via the Contextual menu, select Open
or double click on the module.
147
148
Refer to the "Debugging" Chapter of the Part "Debugging, Adjustment, Documentation and Appendices"-> (see Animating program elements, p. 285 ).
Printing of a program
Procedure
Action
2
Select the command File/Print (Ctrl+P) or click on the icon
Notes
Select %Li/TOP/BOTTOM (if LD, ST, IL) or start page (if G7).
If more precision is required, use the up and down arrow keys.
The print type depends on the type of display selected in the View menu.
l Addresses: prints variables with addresses,
l Symbols: prints variables with symbols,
l Symbols&Addresses: prints variables with symbols/addresses.
149
150
Introduction
Subject of this
chapter
This chapter reminds you of the structure of a program in instruction list language.
It describes:
l How to create a program.
l How to use the different functions offered by the editor.
l How to manage the different modules making up the application.
Whats in this
Chapter?
Page
152
153
154
157
Information box
158
Online symbolization
159
160
161
163
164
166
169
Printing of a program
170
171
151
Example
! (*Drying wait*)
%L2:
->Label
LD %I1.0 ->Start of statement
AND %M10 ->Instruction
ST %Q2.5 ->End of statement
Notes:
Key-words (LD, AND, ST) are colored blue.
Comments are colored green.
The remainder is colored black.
152
Action
Create a List section (See Creating or importing an LD, IL, ST section, p. 105).
1. Enter the first statement. As input begins, the statement is displayed in red.
Rules
They are:
l At the time of confirmation, the input text is formatted giving you automatically indented source code.
l If an error is detected at confirmation, the cursor is positioned over the first error
detected, the error message is displayed at the bottom of the window.
l In the editor, a statement is displayed in redwhile being entered.
l A selected statement is surrounded by a green frame.
l The current statement is surrounded by a black frame.
153
When the program module is displayed, select the Edit/Go to (Ctrl+A) command or
the icon
.
Access by label -> select "Label":
In the label zone, select
position
TOP
BOTTOM
%Li
position
instruction number
The Edit/Go to current modification command allows you to position the cursor
on the current modification.
Selecting one or
several
statements
by
or
one statement
positioning the cursor over the statement and selecting the Edit/Select
statement from the menu
154
% I1. 0
%M0
%Q1 .0
several statements
part of a statement
Modifying a
statement
Action
Position the cursor over the point where the modification is to be made.
by
then by
one statement
part of a statement
Inserting a
statement before
the current
statement
Cut/Copy/Paste
part of a program
module
Action
Position the cursor on the statement before which the insertion must be made.
you must
the text
copy part of a
statement
paste the contents select the point from where the text
of the Clipboard
must be pasted and select the Edit/
into a document
Paste (Ctrl+V) command
cut a piece of text select the text to be cut and select the
and place it on the command Edit/Cut (Ctrl+X)
clipboard
155
Note:
The Cut/Copy/Paste function works in the same way for a selection of statement(s)
and between program modules.
Canceling a
modification
156
Action
Open the program module with right click + Open or with a double click.
Note:
It is possible to run the language editor from the Options menu in:
l addresses view,
l symbols view,
l symbols&addresses view (for the Ladder editor only).
Example of
display
Note
If a symbol or address has more than 8 characters, the display can be truncated.
Select the element, which is then displayed in full in the status bar. You can also use
the Information box.
The View/Collapsed command is used to reduce the size of the window whilst
maintaining the same level of information.
The View/Normal command allows you to return to the normal sized window.
157
Information box
Functions
This box, which can be accessed from all language objects, displays the symbols,
address and comments for the selected object (except for the operate and horizontal
comparison blocks) in an integrated format.
Display table according to object:
How to access
the object
information box
Note
158
Single object
l
l
l
l
l
Action
Click on the right mouse button (contextual menu) and then select Information, or select theView Informationcommand.
The information box remains visible if it the user does not specifically close it. The
contents of the Information box is updated according to the current selection.
Online symbolization
Principal
Online symbolization allows you, at the time of input of a Ladder, List, Structured
Text program, to immediately (without opening the data editor) associate:
l an address to a new symbol,
l a symbol to a non symbolized address.
Procedure
With the Ladder editor, start at Step 1, with the Structured Text or List editors, go
straight to step 2.
Step
Action
159
Function blocks
160
From within the language editor, carry out the following actions:
Step
Action
From the Contextual or the Service menu, select the command Input a block
function call (Shift+F7).
Select the SFB type (counter, monostable) using a double click (selection
via the keyboard is done using the Arrow keys and ENTER). The input mask is
displayed.
Instruction
Syntax
Start
Initialize
Reset to 0
Set to Preset value
Increment by 1
Decrement by 1
R %Ci
S %Ci
CU %Ci
CD %Ci
Monostable (%MNi)
Start
S %MNi
R %Ri
I %Ri
O %Ri
Drum-DRUM (%DRi)
R %DRi
U %DRi
Position at step 0
Change step
Notes
Step
Action
Via the Contextual or Service menu, select the Enter call for a function command.
Select the required tab (default selection). For an elementary function (EF) the
"Parameters" option must be selected in the Function Information menu.
Select the (EF) function family (e.g.: Single length integer), or the required
DFB block (only on TSX Premium with PL7 Junior and Pro).
Select the (EF) function name (e.g. ROL), or the name of the DFB instance.
An instance can be created for a DFB:
1. Select Create.
2. Enter the name.
3. Enter a comment.
4. Confirm using Create.
Enter the (EF) function variables or DFB type parameters in the parameter
entry field. The function entered can be viewed in the Display the call field.
Certain functions offer extra screens for parameter entry (e.g.: human-machine interface functions). These parameters are accessed with the Detail button that then
appears at the bottom of the screen.
When the function syntax is known, enter syntax directly into the editor.
It is possible to directly enable assisted entry on a given function by selecting the
name of the function then selecting the Service/Enter call for a function command
or performing a RIGHT MOUSE CLICK.
161
WARNING
For EFs displayed in red:
EFs which are displayed in red in the function entry help screen cannot
be used in the application. This limitation is encountered in the following
instances:
l When an earlier version of the EF is already used in the application,
l when the EF name is used as a variable linked symbol, and only concerns the EF ROUND (family of single precision reals).
Failure to observe this precaution can result in severe injury or
equipment damage.
162
To access the subroutines input/viewing window during the input/viewing of a subroutine call, carry out the following actions:
Step
Action
163
Procedure
Action
Put the variable to be replaced (as an address or a symbol) in the Findfield and
confirm with ENTER or TAB.
164
Structure view
Function view
l
l
Step
Action
Select the label (if LD, ST, IL) or the page (if G7) at the beginning of the replacement by positioning the pointer on the listFrom.
If more precision is required, use the up and down arrow keys.
Select the label (if LD, ST, IL) or the page (if G7) at the end of the replacement
by positioning the pointer on the listTo.
If more precision is required, use the up and down arrow keys.
165
Principals of
using debugging
The user realizes that the variable X is not the right value. To identify the cause he
must therefore:
l find the places where this variable is used,
l obtain a list of statements, rungs and expressions,
l to display and verify the activation conditions of the variable.
Note:
In order to record the path of this search, the list elements thus visited are marked
with an asterisk (*).
Operational
mode for objects
A variable can be a read variable (R), a write variable (W) or a read/write variable
(R/W).
- "R" groups together the read operational modes, indexed read, indexed word, input or input/output parameter of a indexed or non-indexed function.
- "W" groups together the write operational modes, indexed write, output or input/
output parameter of indexed or non-indexed function and execution of Block Functions (SFB and DFB).
Search source
variables
Table of variables:
Bit
Word
% MWi; %MDi; %MFi; %KBi; %KWi; %KDi; KFi; %MBi; %SWi; %QWi; %QDi;
%IWi; %IDi; %NWi
Instruction
SRi; HALT
166
Search options
For an indexed variable, the variable and the index are taken into account in the list.
Table of options:
Extract Bit
Table Object
This option is for bit tables, word tables and immediate indexed variables. It adds to the list the immediate indexed table variables
whose first element is the input variable.
Channel Object
This option is for channel objects. It adds to the list all the objects of
the same referenced channel, including the tables and the extract
bits.
Network Objects
This option is for the network variables. It allows you to obtain all the
variables from the same remote module (nanet object).
FB Object
This option allows you to expand the list of SFB block function elements and the DFB type elements.
FB Instance
167
Searching for
cross references
Action
1
Select the icon
2
Enter the search source variable as an address or a symbol (E.g. %M10) and
the possible options then confirm via Search.
To display a module, select the module, via the Contextual menu, select Open
or double click on the module.
168
Refer to the "Debugging" Chapter of the Part "Debugging, Adjustment, Documentation and Appendices"-> (see Animating program elements, p. 285 ).
169
Printing of a program
Procedure
Action
2
Select the command File/Print (Ctrl+P) or click on the icon
Notes
170
Select %Li/TOP/BOTTOM (if LD, ST, IL) or start page (if G7).
If more precision is required, use the up and down arrow keys.
The print type depends on the type of display selected in the View menu.
l Addresses: prints variables with addresses,
l Symbols: prints variables with symbols,
l Symbols&Addresses: prints variables with symbols/addresses.
171
172
Introduction
Subject of this
chapter
This chapter reminds you of the structure of a program in Structured Text language.
It describes:
l How to create a program.
l How to use the different functions offered by the editor.
l How to manage the different modules making up the application.
Whats in this
Chapter?
Page
174
175
176
179
Information box
180
Online symbolization
181
182
183
185
186
188
191
Printing of a program
192
193
173
Structured Text (ST) can be used on PLCs TSX Premium (V>=V1.0) and on the TSX
Micro (V>=V1.5).
Structured Text is supported by software products PL7 Junior and PL7 Pro.
Principal
Example
! (*Initialisation*)
%L2: (*Label*)
%MW0:=0; (* Init Index *)
%MW2:=%MW99:2; (* length of table *)
IF (%MW2 REM 2=0) THEN DEC %MW0;
END_IF;
(* while the index is < the length of the table
carry out
shift *)
WHILE(%MW0<%MW2)DO
%MW100[%MW0]:=(SHR(%MW100[%MW0],8))OR(SHL(%MW101[%MW0],8));
INC %MW0;
END_WHILE;
Notes :
Key-words (example AND, OR, IF) are colored blue.
Comments are colored green.
The rest is colored black.
174
Structured Text can be used on PLCs TSX Premium (V>=V1.0) and on the TSX Micro (V>=V1.5).
Structured Text is supported by software products PL7 Junior and PL7 Pro.
Procedure
Action
1. Enter the first statement. As input begins, the statement is displayed in red.
Rules
They are:
l When confirming the statement, superfluous spaces are ignored.
l If an error is detected at confirmation, the cursor is positioned over the first error
detected, the error message is displayed at the bottom of the window.
l In the editor, a statement is displayed in redwhile being entered.
l A selected statement is surrounded by a green frame.
l The current statement is surrounded by a black frame.
175
The program module being displayed, select the command Edit/Go to (Ctrl+A) or
the icon
position
TOP
BOTTOM
%Li
by
or
one statement
!
%L1:
( * INIT * )
IF Mode-Auto_manu
SR2;
END_IF;
176
several statements
a part of a statement
THEN
Modifying one
statement
Action
Confirm the modification with the keys CTRL + W or SHIFT+ ENTER or the
icon
by
then by
one statement
a part of a statement
Cut/Copy/Paste a
part of a program
module
Action
Position the cursor on the statement before which the insertion must be carried
out.
you must
the text
Cut a piece of text and place select the text to be cut and
it on the clipboard
select the command Edit/
Cut (CTRL+X)
Note:
177
The Cut/Copy/Paste function works in the same way for a selection of statement(s)
and between program modules.
Canceling a
modification
To cancel a modification carried out on an unconfirmed statement, select the command Edit/Undo changes or the icon .
This command allows you to return the statement to its last confirmed state.
178
Action
Open the program module by right mouse click + Open or double mouse
click.
Note:
It is possible to run the language editor from the Options menu in:
l addresses view,
l symbols view,
l symbols&addresses view (only for the Ladder editor).
Example display
Note
If a symbol or an address has more than 8 characters, the display can be truncated.
Select the element displayed in this way in the status bar. You can also use the Information box.
The command View/Reduced allows you to reduce the size of the window while
keeping the same level of information.
The command View/Normal allows you to return to the normal sized window.
179
Information box
Functions
This box, which can be accessed from all language objects, displays the symbols,
address and comments for the selected object (with the exception of the operate and
horizontal comparison blocks) in an integrated format.
Display table according to object:
How to access
the object
information box
Note
180
Single object
l
l
l
l
l
Action
Click on the right mouse button (contextual menu) and then select Information, or select theView Informationcommand.
The information box remains visible if it the user does not specifically close it. The
contents of the Information box is updated according to the current selection.
Online symbolization
Principal
Online symbolization allows you, at the time of input of a Ladder, List, Structured
Text program, to immediately (without opening the data editor) associate:
l an address to a new symbol,
l a symbol to a non symbolized address.
Procedure
With the Ladder editor, start at Step 1, with the Structured Text or List editors, go
straight to step 2.
Step
Action
181
From within the language editor, input at the cursor position one of the instructions
presented below corresponding to the desired function block.
Function blocks
182
Function blocks
Instruction
Syntax
PL7-3 timer(%Ti)
Start
Stop
Reinitialize
START %Ti;
STOP %Ti;
PRESET %Ti;
Start
Initialize
START %TMi;
DOWN %TMi;
Reset to 0
Set to Preset value
Increment by 1
Decrement by 1
RESET %Ci;
PRESET %Ci;
UP %Ci;
DOWN %Ci;
Monostable (%MNi)
Start
START %MNi;
RESET %Ri;
PUT %Ri;
GET %Ri;
Drum-DRUM (%DRi)
RESET %DRi;
UP %DRi;
Position at step 0
Change step
Notes
Step
Action
Via the Contextual or Service menu, select the Enter call for a function command.
Select the required tab (default selection). For an elementary function (EF) the
"Parameters" option must be selected in the Function Information menu.
Select the (EF) function family (e.g.: Double length integer, or the required
DFB block (only on TSX Premium with PL7 Junior and Pro).
Select the (EF) function name(e.g. ROL), or the name of the DFB instance.
An instance can be created for a DFB:
1. Select Create.
2. Enter the name.
3. Enter a comment.
4. Confirm using Create.
Enter the (EF) function variables or DFB type parameters in the parameter
entry field. The function entered can be viewed in the Display the call field.
Certain functions offer extra screens for parameter entry (e.g.: human-machine interface functions). These parameters are accessed with the Detail button that then
appears at the bottom of the screen.
When the function syntax is known, enter syntax directly into the editor.
It is possible to directly enable assisted entry on a given function by selecting the
name of the function then selecting the Service/Enter call for a function command
or performing a RIGHT MOUSE CLICK.
Tabulation and Line Feed characters are represented by $T and $N respectively.
They must be entered in $$T and $$N format.
183
WARNING
For EFs displayed in red:
EFs which are displayed in red in the function entry help screen cannot
be used in the application. This limitation is encountered in the following
instances:
l when an earlier version of the EF is already used in the application,
l the EF name is used as a variable linked symbol, and concerns the
EF ROUND (family of single precision reals).
Failure to observe this precaution can result in severe injury or
equipment damage.
184
Action
Select the command Service/Open or select Open from the contextual menu.
185
Procedure
Action
Put the variable to be replaced (as an address or a symbol) in the Findfield and
confirm with ENTER or TAB.
186
l
l
l
l
Step
Action
Select the label (if LD, ST, IL) or the page (if G7) at the beginning of the replacement by positioning the pointer on the listFrom.
If more precision is required, use the up and down arrow keys.
Select the label (if LD, ST, IL) or the page (if G7) at the end of the replacement
by positioning the pointer on the listTo.
If more precision is required, use the up and down arrow keys.
187
Principals of
using debugging
The user realizes that the variable X is not the right value. To identify the cause he
must therefore:
l find the places where this variable is used,
l obtain a list of statements, rungs and expressions,
l to display and verify the activation conditions of the variable.
Note:
In order to record the path of this search, the list elements thus visited are marked
with an asterisk (*).
Operational
mode for objects
A variable can be a read variable (R), a write variable (W) or a read/write variable
(R/W).
- "R" groups together the read operational modes, indexed read, indexed word, input or input/output parameter of a indexed or non-indexed function.
- "W" groups together the write operational modes, indexed write, output or input/
output parameter of indexed or non-indexed function and execution of Block Functions (SFB and DFB).
Search source
variables
Table of variables:
Bit
Word
% MWi; %MDi; %MFi; %KBi; %KWi; %KDi; KFi; %MBi; %SWi; %QWi;
%QDi; %IWi; %IDi; %NWi
Instruction
SRi; HALT
188
Search options
For an indexed variable, the variable and the index are taken into account in the list.
Table of options:
Searching for
cross references
Extract Bit
Table Object
This option is for bit tables, word tables and immediate indexed variables. It adds to the list the immediate indexed table variables
whose first element is the input variable.
Channel Object
This option is for channel objects. It adds to the list all the objects of
the same referenced channel, including the tables and the extract
bits.
Network Objects
This option is for the network variables. It allows you to obtain all the
variables from the same remote module (nanet object).
FB Object
This option allows you to expand the list of SFB block function elements and the DFB type elements.
FB Instance
Action
1
Select the icon
Enter the search source variable as an address or a symbol (E.g. %M10) and
the possible options then confirm via Search.
To display a module, select the module, via the Contextual menu, select Open
or double click on the module.
189
190
Refer to the "Debugging" Chapter of the Part "Debugging, Adjustment, Documentation and Appendices"-> (see Animating program elements, p. 285 ) .
191
Printing of a program
Procedure
Action
2
Select the command File/Print (Ctrl+P) or click on the icon
Notes
192
Select %Li/TOP/BOTTOM (if LD, ST, IL) or start page (if G7).
If more precision is required, use the up and down arrow keys.
The print type depends on the type of display selected in the View menu.
l Addresses: prints variables with addresses,
l Symbols: prints variables with symbols,
l Symbols&Addresses: prints variables with symbols/addresses.
193
194
Introduction
Subject of this
chapter
Whats in this
Chapter?
Page
196
197
198
203
216
219
221
224
Printing of a program
225
226
195
Gracet language (GR7) allows the sequential operation of automation to be represented graphically and in a structured way.
This description is carried out with help from single graphical objects (See Grafcet
graphic objects, p. 198) representing:
l the steps with which the actions can be associated (except the OUT step),
l the macro-steps, (onlyTSX/PCX/PMX57)
l the transitions with which the receptivity is associated,
l the positioned links connecting a step to a transition or a transition to a step.
The graph is input by Grafcet pages (See Structure of a Grafcet page, p. 197) addressed from 0 to 7 in the status bar.
Example
Grafcet editor:
2) Place the element on
the input grid
M0 0
F2
196
F3
F4
F5
F6
F7
F8
F9
F10
F11
F12
1F2
The Grafcet page is displayed in the form of a matrix made up of 14 lines and 11
columns defining 154 cells.
Each cell can receive a graphic object (See Grafcet graphic objects, p. 198).
There are two types of line:
l step lines where steps, macro steps and connectors are entered,
l transition lines where the transitions and source connectors are entered.
Comments can be entered. These are independent graphic objects, which are not
attached to steps or transitions.
A program module is made up of 8 Grafcet pages, and a Grafcet page is accessed
via the Edit/Go to command, or the icon
There are two Grafcet page viewing modes offered, which can be accessed from the
View menu:
l normal view (default display),
l collapsed view.
Example
Grafcet page:
0
Step line
3
Transition line
197
Macro-steps
Initial
Example:
Standard
Example:
198
Macro-Step
steps
Only enabled on TSX/PCX/PMX57, Max: 250 per Macro-Step plus IN and OUT step.
Types of Macro-step steps:
Can be accessed from the graphics palette using the keys F3, F4, (Shift+F2), (Shift+F3),
(Shift+F4) or the icons .
Initial
Example:
Standard
Example:
IN
Example:
OUT
Example:
199
Step + Transition
Step/Transition:
Can be accessed from the graphics palette using the (F2) key or the icon .
Step + Transition
Transitions
Example:
200
Standard
Example:
AND divergence
Example:
Connectors
AND convergence
Example:
OR divergence
Example
OR convergence
Example
Connector types:
Can be accessed from the graphics palette via the F5, and F7 keys or the icons .
Destination
Example:
Origin
Example:
201
Oriented links
Link types:
Can be accessed via the graphics palette via the F9key, or the icon .
Comments
202
Up
Example:
Down
Example:
Left or right
Example:
Can be accessed from the graphics palette via the F12 key or the icon .
Action
Open the Grafcet module (chart). (See Open the Grafcet module (chart), p.
203)
Carry out the following actions from the Grafcet section previously created.
Step
Action
Open the Chart module using the command Services/Open or using the contextual menu Open.
203
Entering a step,
an action, a
connector
Action
204
Entering a
Macro-Step
Action
Note:
When a chart is confirmed, the display changes:
l the graphical objects change from red to black,
l the page border becomes gray.
Carrying out an
AND divergence
205
Action
Note:
An AND divergence is always represented from left to right, the segment represented by a double line cannot be cut by another link.
206
Carrying out an
AND
convergence
Action
Notes:
The segment represented by a double line cannot be cut by another link.
An AND convergence can only be entered from right to left.
207
Carrying out a
Step ->
Transition link
A step -> transition link starts with a step and goes to a transition.
208
Step
Action
Carrying out a
Transition ->
Step link.
A transition -> step link starts with a transition and goes to a step.
Step
Action
209
210
Step
Action
Carrying out a
loop iteration
Step
Action
211
Using connectors:
Step
Action
212
Programming
actions
Action
213
Programming
the transition
conditions
Action
Limitations:
l in ladder language (LD) only the follow elements can be used:
l test graphical elements: contacts (Bi, I/O, Ti, D), comparison blocks,
l action graphical elements: only "transition condition" coils (other coils not being relevant in this case).
l in instruction list language (IL) the following objects are prohibited:
l no labels (%L),
l no action instructions (bit objects, words or function blocks),
l no jumps, sub-routine calls.
l in structured text language (ST) the following objects are prohibited:
l no labels (%L),
l no action statements, conditional statements or iterative statements,
l no actions on bit objects,
l no jumps, sub-routine calls,
l no transfers, no action instructions on blocks.
214
Entering
comments
Action
Notes:
Comments are not mandatory.
They are stored on the PLC, as a consequence they take up memory.
215
A Grafcet module (Graphic object, Step number, Macro-step (TSX 57 only), Comment), is modified in the same way as it is created.
Actions and transition conditions are modified in the same way as they are created.
Rules for
modifying a chart
216
Action
Put the cursor on the required Grafcet page (See Structure of a Grafcet page,
p. 197).
Modifying a
Macro-Step
Modifying an
action:
Modifying a
transition
condition
Action
Put the cursor on the required Grafcet page (See Structure of a Grafcet page,
p. 197)
Action
Put the cursor on the required Grafcet page (See Structure of a Grafcet page,
p. 197).
217
Cut/Copy/Paste/
Move one or
more
consecutive
objects.
These actions can be performed on graphic objects and any programs associated
with them. They can be made in offline and online mode, with the PLC in Stop mode.
Carry out the following actions:
To..
you must
l
l
l
l
l
218
l
l
l
l
Procedure
Action
Structure view
Function view
219
220
Step
Action
Select the label (if LD, ST, IL) or the page (if G7) at the beginning of the replacement by positioning the pointer on the listFrom.
If more precision is required, use the up and down arrow keys.
Select the label (if LD, ST, IL) or the page (if G7) at the end of the replacement
by positioning the pointer on the listTo.
If more precision is required, use the up and down arrow keys.
Principals of
using debugging
The user realizes that the variable X is not the right value. To identify the cause he
must therefore:
l find the places where this variable is used,
l obtain a list of statements, rungs and expressions,
l to display and verify the activation conditions of the variable.
Note:
In order to record the path of this search, the list elements thus visited are marked
with an asterisk (*).
Operational
mode for objects
A variable can be a read variable (R), a write variable (W) or a read/write variable
(R/W).
- "R" groups together the read operational modes, indexed read, indexed word, input or input/output parameter of a indexed or non-indexed function.
- "W" groups together the write operational modes, indexed write, output or input/
output parameter of indexed or non-indexed function and execution of Block Functions (SFB and DFB).
Search source
variables
Table of variables:
Bit
Word
% MWi; %MDi; %MFi; %KBi; %KWi; %KDi; KFi; %MBi; %SWi; %QWi; %QDi;
%IWi; %IDi; %NWi
Instruction
SRi; HALT
221
Search options
For an indexed variable, the variable and the index are taken into account in the list.
Table of options:
222
Extract Bit
Table Object
This option is for bit tables, word tables and immediate indexed variables. It adds to the list the immediate indexed table variables
whose first element is the input variable.
Channel Object
This option is for channel objects. It adds to the list all the objects of
the same referenced channel, including the tables and the extract
bits.
Network Objects
This option is for the network variables. It allows you to obtain all the
variables from the same remote module (nanet object).
FB Object
This option allows you to expand the list of SFB block function elements and the DFB type elements.
FB Instance
Searching for
cross references
Action
1
Select the icon
2
Enter the search source variable as an address or a symbol (E.g. %M10) and
the possible options then confirm via Search.
To display a module, select the module, via the Contextual menu, select Open
or double click on the module.
223
224
Refer to the "Debugging" Chapter of the Part "Debugging, Adjustment, Documentation and Appendices"-> (see Animating program elements, p. 285 ) .
Printing of a program
Procedure
Action
Notes
Select %Li/TOP/BOTTOM (if LD, ST, IL) or start page (if G7).
If more precision is required, use the up and down arrow keys.
The print type depends on the type of display selected in the View menu.
l Addresses: prints variables with addresses,
l Symbols: prints variables with symbols,
l Symbols&Addresses: prints variables with symbols/addresses.
225
226
Editing variables
10
Introduction
Whats in this
chapter
Whats in this
Chapter?
Topic
Page
228
229
231
Presymbolization
232
234
235
237
Entering/Modifying constants
238
239
Printing variables
243
Exporting/Importing variables
244
227
Editing variables
The editor allows the input/modifation/display of all the variables with their parameters and attributes.
Accessing the
editor
228
Step
Action
Open the application browser and on the repertoire select Variables menu
Edit/Select.
Open the editor on the type of variables required with a double left click or via
the Open contextual menu or by pressing ENTER.
Editing variables
Input/Modification procedure
Action
Double left click on the Variables directory or select this and then press the
right arrow.
l
l
l
l
l
l
l
l
l
229
Editing variables
Click on the rectangle to the left of the variable address or press the keys
(SHIFT+SPACE).
Suppression
procedure
230
Step
Action
Select the symbol, the comment or the whole line with the (Shift+Space) keys
or left click on the line.
Editing variables
In the variables editor, if the variable is preceded by the symbol "+", in order to know
which objects are associated with the variable you must:
Step
Action
Select the command Edit/Expand or double click on the "+", the list of all the
objects (bits, words..) associated with the variable is displayed.
To close the list of objects associated with the variable, select the command
Edit/Contract or double click on the "-" associated with the variable.
231
Editing variables
Presymbolization
Introduction
Presymbolization allows automatic association of constructive suffixes for a channel level (%Chxy.i) module language object with prefixes defined by the user.
The prefix defined by the user is the generic symbol given to the %Chxy.i channel
(12 characters maximum).
The constructive suffix is the part of the symbol which corresponds to the bit object
or %Chxy.i channel word (20 characters maximum).
The presymbolization function automatically generates a constructive comment.
This succinctly reminds you of the role of the object.
Setting up
232
Action
Open the variables editor (See Accessing the variables editor, p. 228). In the I/
O variable type.
Double left click on the "T" associated with the channel object that is to be
symbolized or position yourself on the channel object and select the Edit/ Presymbolize command.
Editing variables
Suppressing
presymbolization.
Cancelling presymbolization for a given logic channel is done to suppress all the object symbols described in the presymbolization file.
Carry out the following actions:
Actions
Step
Double left click on the "T" associated with the channel object that is to be
symbolized or position yourself on the channel object and select the Edit/ Presymbolize command.
233
Editing variables
234
Editing variables
The variables used in the application (sections, subroutines, sequential tasks) are
viewed in bold characters in the variables editor.
For this, input the Options\Variables editor\Usage in the application command
before opening the variables editor.
Example:
Variables
parameters
DWORD
MEMORY
%MD0
Address
%MD0
%MD1
%MD2
%MD3
%MD4
%MD5
%MD6
%MD7
%MD8
%MD9
%MD10
%MD11
%MD12
%MD13
Display of
variables with
overlapping
Type
DWORD
DWORD
DWORD
DWORD
DWORD
DWORD
DWORD
DWORD
DWORD
DWORD
DWORD
DWORD
DWORD
DWORD
Symbol
Presel_trem1_a
Presel_trem2_c
Presel_trem1_b
Presel_melang
Litres_tremie1
Litres_tremie2
Litres_melangeur
235
Editing variables
MEMORY
DWORD
%MD0
Variable
%MD0
%MD1
%MD2
%MD3
%MD4
%MD5
%MD6
%MD7
%MD8
%MD9
%MD10
%MD11
%MD12
Type
DWORD
DWORD
DWORD
DWORD
DWORD
DWORD
DWORD
DWORD
DWORD
DWORD
DWORD
DWORD
DWORD
Symbol
Presel_trem1_a
Presel_trem2_c
Presel_trem1_b
Presel_melang
Litres_tremie1
Litres_tremie2
Litres_melangeur
MEMORY
DWORD
%MD0
Variable
%MD0
%MD1
%MD2
%MD3
%MD4
%MD5
%MD6
%MD7
%MD8
%MD9
%MD10
%MD11
%MD12
236
Type
DWORD
DWORD
DWORD
DWORD
DWORD
DWORD
DWORD
DWORD
DWORD
DWORD
DWORD
DWORD
DWORD
Symbol
Presel_trem1_a
Presel_trem2_c
Presel_trem1_b
Presel_melang
Litres_tremie1
Litres_tremie2
Litres_melangeur
Editing variables
PL7 gives the option of Cutting or Pasting a selection of variables, within the variables editor.
How to Copy/
Paste a block of
variables in a
variables editor.
Action
Select a block of variables by clicking and dragging from the first variable of the
block through the whole block, keeping the Shiftkey held down, in the far left
hand column of the variables editor.
Place the cursor on the first variable in the block where the copied variables
are to be pasted.
Symbol
Trig_sect_remp
Trig_sect_vidan_mix_a
OK
Comment
Validation condition
Validation condition
Cancel
All the variables duplicated in this way should be renamed before you Paste
them.
How to Cut/Paste
a block of
variables in a
variables editor
Action
Select a block of variables by clicking and dragging from the first variable of the
block through the whole block, keeping the SHIFTkey held down, in the far left
hand column of the variables editor.
Place the cursor on the first variable in the block where you want to paste the
copied variables.
237
Editing variables
Entering/Modifying constants
Introduction
The variables editor is used to enter/modify/display all the variables with their parameters and attributes.
Procedure
Double left click on the Variables repertoire or select this with the arrows and
then press the right arrow.
238
Action
l
l
l
l
10
11
Editing variables
Procedure
Action
Double left click on the Variables repertoire or select this with the arrows and
then press the right arrow.
l
l
l
l
l
l
239
Editing variables
Parametrizing
%TMi
Parametrizing
the %Ti
Parametrizing
the %MNi
240
Action
Action
Action
Editing variables
Parametrizing
the %Ci
Parametrizing
the %Ri
Parametrizing
the %DRi
Action
Action
The length (1<LEN<255) of the registers can be modified in the software configuration.
Action
Select the STEPS field to define the bit status for each step.
1. Allocate a variable %Qi.j or %Mi to each bit.
2. Show the value of variable for each step by clicking on the value 0 or 1 (flip
flop).
241
Editing variables
Cop/Paste the
pre-defined
function block
parameters
This function is used to Copy/Paste the parameters of one function block into one
or more other function blocks of the same family to avoid tiresome entering.
Carry out the following actions:
Step:
Actions:
Select the FB to be copied by clicking to the left of the name (the line goes to
reverse video).
Select the Edit\Copy SFB parameters command or, using the contextual
menu Copy SFB parameters.
Select the Edit\Paste SFB parameters command or, using the contextual
menu Paste SFB parameters.
Note:
The Paste function can only be done with consecutive objects.
242
Editing variables
Printing variables
Introduction
This heading is use to print the list(s) of variables with their parameters.
Procedure
Action
Select the ascending order of printing with the command View Variables
sorted by address or View Variables sorted by symbols.
Select:
"All" to print all the variables configured in the application with the various
parameters.
l "Current type" to print the variables of the selected type.
243
Editing variables
Exporting/Importing variables
Refer to the "Debugging, adjusting, documentation and appendix" part Chapter
heading "Importing and exporting":
l See: Exporting variables, p. 357.
l See: Importing variables, p. 358.
244
Function modules
11
Presentation
Object
Whats in this
Chapter?
Topic
Page
Function modules
246
247
248
249
250
251
254
255
256
245
Function modules
Function modules
Definition
l A function module is a group of program elements )sections, sub-programs, macro steps, animation tables, operating screens) used to carry out a PL7 function.
l A function module can itself be broken down into lower level function modules. In
relation to the principle function these modules assume one or more PL7 subfunctions.
Attributes of a
function module
246
Function modules
How to display or
modify the
properties
Action
Right click on the function module, in the Function view of the Application
browser.
Click on Properties.
Click on OK.
Note: The Apply button confirms the modifications without closing the window.
247
Function modules
A functional module can be created offline, with the PLC in Stop or in Run.
It can be created at Station level or at the level of each existing functional module.
How to create a
functional
module
How to create a
lower level
functional
module
Moving a
functional
module
Action
From the functional view, right click on the Station directory, or on the directory
of an existing functional module, or place the cursor on this directory and then
press Shift+F10.
Select Create.
Fill in the short name, the long name, the comment and confirm with OK.
Action
Right click on the "higher level" module or position the cursor on it and press
Shift + F10.
Select Create.
Fill in the short name, the long name, the comment and confirm with OK.
A functional module can be moved offline, with the PLC in Stop or in Run (this has
no effect on the execution of the application). The movement only corresponds to a
modification in the functional architecture of the application (a module is linked directly to theStation directory level or to another functional module).
To move a functional module:
248
Step
Action
Left click (keeping the button held down) on the module to be moved,
Function modules
l 1st scenario: the section, event and graph already exist in structure view (See
Introducing the application browser, p. 102),
l 2nd scenario: the section, event, and graph are created from function view (See
Introducing the application browser, p. 102),
l 3rd scenario: the section, event and graph must be created from structure view.
1st scenario: the
section, event
and graph
already exist in
structure view,
2nd scenario:
creating the
section, event, or
graph from
function view
The principle is the same as for creating a section from structure view:
Rules
Step
Action
Step
Action
Right click on theProgram directory or place the cursor on the Program directory and then press Shift+F10,
Select Create,
Fill in the various headings in the same way as for creating a section from the
structure view. The name of the function module is stored at the structure view
level.
A Grafcet section can only be created offline and only in the Mast task.
The other actions can be carried out offline, with the PLC in Stop or in Run.
249
Function modules
The organization of a functional module and the distribution of sections events and
Grafcet modules in the different modules has no effect on the execution of the program. The program is executed in the order shown in the structure view. To debug
a functional module there are:
l standard debugging functions,
l additional functions allowing incremental debugging of the application, functional
module by functional module.
Deactivating all
sections linked
to a functional
module
This function is used to force to 0 all the execution conditions of the module sections.
Activating all
sections linked
to a functional
module
Canceling the
forcing of all
sections linked
to a functional
module
250
Step
Action
From the contextual menu, select the Activation condition for the included
sections -> Force to 0command.
This action is used to force to 1 all the execution conditions of the module sections.
Step
Action
From the contextual menu, select the Activation condition for the included
sections -> Force to 1command.
This action is used to unforce all the execution conditions of the module sections.
Step
Action
From the contextual menu, select the Activation condition for the included
sections -> Unforcecommand.
Function modules
Detaching a functional module involves severing the links between a functional module and the associated objects (code modules and animation tables),
l the sections contained in the module are not deleted, only detached,
l the animation tables associated with the modules are not deleted but only detached from the module.
To detach one or more of the functional modules, carry out the following steps:
Step
Action
Note: this action is allowed in offline and in online mode, with the PLC in Stop or
in Run.
Introduction to
deleting a
functional
module
Deleting one or
more functional
modules without
deleting the code
modules and
animation tables
To delete a functional module without deleting the code modules and animation tables, you must:
Step
Action
Delete the module or modules by right clicking (contextual menu) and selecting
Delete.
Note: you must be in offline mode.
251
Function modules
Deleting a
functional
module and
deleting the
modules and
animation tables
CAUTION
Deleting the module entails deleting the submodules.
- the sections contained in the module are deleted,
- the animation tables associated with the module are deleted.
Failure to observe this precaution can result in injury or equipment damage.
Carry out the following actions:
Step
Action
Select Delete.
Note: this action is authorized in offline mode, with the PLC in Stop and is not authorized in Run.
CAUTION
Deleting the module entails deleting the submodules.
- the sections contained in the modules are deleted,
- the animation tables associated with the modules are deleted.
Failure to observe this precaution can result in injury or equipment damage.
Carry out the following actions:
Step
Action
Note: this action is authorized in offline mode, with the PLC in Stop and is not authorized in Run.
252
Function modules
Deleting a
section, a
macro-step or an
event in a
functional
module
CAUTION
A section or a macro-step can be deleted in a functional module. They
are then deleted in the module and in the associated task. Deleting an
event only results in it being detached from the functional module because an event cannot be deleted from the application.
Failure to observe this precaution can result in injury or equipment damage.
Carry out the following actions:
Rules
Step
Action
Select Delete.
Deletion is authorized in offline mode with the PLC in Stop, but it is not authorized in Run.
253
Function modules
254
See Exporting a functional module, p. 362 from the section "Debugging, Documentation and Annexes" chapter "Import/Export"
Function modules
See Importing a functional module, p. 364 from the section "Debugging, Adjustment, Documentation and Annexes" chapter "Import/Export".
255
Function modules
In a functional module, you can create, delete, move and drag and drop the animation table.
Creating an
animation table
Steps to follow:
If the table
already exists
Deleting an
animation table
Moving an
animation table
l
l
l
l
Action
Steps to follow:
If using
the drag and drop function
the Properties contextual menu
256
Then
Then
l
l
l
l
l
left mouse click (and hold the mouse button down) on the table
to be moved,
move the table to the desired place.
select the table,
select the Properties contextual menu.
select the modules name in the localization zone.
Function modules
Detaching an
animation table
Steps to follow:
If using the
Detach contextual
menu
Properties contextual
menu
Then
l
l
l
l
l
l
257
Function modules
258
12
Presentation
Whats in this
chapter
Whats in this
Chapter?
Topic
Page
DFB types
260
261
262
265
267
268
269
270
259
DFB types
At a Glance
DFB types (Derived Function Block) are function blocks which can be programmed
by the user in Structured Text or Ladder language.
These DFBs are used in an application to:
l simplify program design and entry,
l improve program readability,
l facilitate debugging (all variables manipulated by the DFB type are identified on
its interface),
l reduce the volume of code generated (the code corresponding to the DFB is only
loaded once, regardless of the number of calls to the DFB).
PL7 Pro software is needed to create a DFB type.
A DFB type can be used with PL7 Pro or PL7 Junior on a TSX/PCX/PMX 57 type
PLC.
A DFB type is called in an editor (LD, IL or ST) via an Instance of the DFB type that
is the image of the DFB type.
A DFB type instance can be used several times in a single application.
How to gain
access to the
DFB types
properties
Action
260
Action
Right click with the mouse on the DFB type directory and select Create from
the context-sensitive menu.
Click on OK.
Note:
The choice of language Ladder or Structured text for the DFB code can be modified as long as the code is not entered.
Setting the
parameters for
the DFB type
DFB type
programming
Programming a DFB is done using the DFB code editor which can be accessed
from the DFB editor.
261
The code defines the processing that the DFB type must carry out depending on the
declared interfaces.
All language instructions are permitted except for:
l calling up standard function blocks,
l calling up other DFB types,
l jumping to a label (JUMP),
l calling up a subroutine,
l instructions using input/output module variables (e.g. READ_STS, SMOVE etc.).
The code of the DFB type may only use:
l the timer functions, FTON, FTOF, FTP, FPULSOR, which can be used instead of
timer function blocks,
l the instructions, LW, HW, COCATW which are used to handle double words,
l the instructions, LENGTH_ARW, LENGTH_ARD, LENGTH_ARR, which are
used to calculate table lengths.
Programming
rules
DFB instances can be used in various parts of the application, which use the languages LD, IL or ST (apart from in event tasks).
l sections,
l subroutines.
The programming rules are as follows:
l All table type input parameters and input/output parameters must be entered.
l Unconnected input parameters keep the value of the previous call or the initialization value if the block has never been called with this entered or connected input.
l All the objects assigned to input, output and input/output parameters must be of
the same type as those entered at the time DFB Type creation,
l Only BOOL and EBOOL types can be mixed for input or output parameters.
262
Entering and
modifying code
Action
Click on Code in the DFB editor or select Utilities/Open then click on ENTER
to open the DFB code editor.
Note:
DFB type code can only be entered or modified on an unprotected DFB type.
Code that has not been confirmed (in the process of being created or modified) is
indicated by a red dash in the left hand margin of the editor.
Search/Replace:
to find or replace
an object in the
code
This function is used to search for and/or replace an object (interface or variable) in
the DFB code.
Searching for an object:
Step
Action
In the Search zone indicate the object to be searched for (e.g.: Input0).
Select Next to go to the different occurrences in the order in which they appear.
Action
In the Search zone indicate the object to be searched for (e.g.: Input0).
Select:
Next to go to the first occurrence,
Replace to replace only the current occurrence,
Replace All to replace all occurrences.
l
l
l
263
Confirming a
DFB type
Confirming a DFB type is a global operation which can be used to confirm the interfaces, the variables, descriptive form and the code.
Carry out the following actions:
To confirm a DFB from
you must
DFB editor
click on the icon
press ENTER.
Note:
To confirm a DFB type, it must have at leastone Boolean input.
The DFB editor cannot be closed until the DFB type has been confirmed or canceled.
How to access a
line of code
Errors
This function is used to go to a line of code within the code of a given DFB type by
entering its numeric position.
Carry out the following steps to access a line of code:
Step
Action
If there is an interface, variable or code error, the DFB type cannot be confirmed,
and the system then positions itself at the first error.
You must:
1. Correct the error(s).
2. Reconfirm.
264
l
l
l
l
Creating an
instance from an
application
browser
Creating an
instance from the
function library
Action
From the application browser, right click on the sub-directory DFB Variables/
Instances DFB.
Select the DFB type to be instanced using the mouse or the Tab and arrow
keys.
Enter the name of the new instance in the last line of the Name field (32 characters maximum).
Click on ENTER.
Action
Select Library from the Tools menu then select the DFB tab.
Click on Create.
265
Modifying an
instance
Deleting an
instance
266
Action
From the application browser, right click on the sub-directory DFB Variables/
Instances DFB.
267
Action
1
Click on the graphic element
268
Select DFB.
Click on OK.
Click on the destination cell (Test zone) to set the type of DFB.
Action
Select the required instance or create a new instance (any name + comments)
then click on Create.
Protecting a DFB
type
Modifying
protection type
for a DFB type
Modifying the
password
Action
Open the DFB type editor.
Click on OK.
Action
Action
Open the DFB type editor.
Select Change.
Click on OK.
269
Refer to the "Import/Export" Chapter of the Part "Debugging, Adjustment, Documentation and Appendices".
See Exporting a standard format DFB type, p. 376.
See Export of a binary format DFB type, p. 377.
See Importing a DFB type in binary format, p. 378.
See Importing a DFB type in binary format, p. 378.
Exporting/Importing an
application
containing DFB
types.
Refer to the "Import/Export" Chapter of the Part "Debugging, Adjustment, Documentation and Appendices".
See Exporting an application with DFB, p. 380.
See Importing an application with DFBs, p. 382.
270
Debugging, adjustment,
documentation and appendices
III
Introduction
Subject of this
section
This section gives information about the application context and describes how to:
l Debug an application.
l Diagnose an application.
l Export/Import application modules.
Whats in this
part?
Chapter
Chaptername
Page
13
Debugging
273
14
Adjustment of variables
309
15
Diagnostic functions
321
16
Documentation
333
17
Import/Export
341
18
387
19
399
20
OS Loader
409
21
Windows
417
271
272
Debugging
13
Introduction
Subject of this
chapter
Whats in this
Chapter?
Topic
Page
275
276
Information zone
277
Task Zones
278
280
Event zone
281
282
283
284
285
Grafcet debugging
288
291
Task properties
292
293
295
297
300
302
303
304
273
Debugging
Topic
274
Page
305
306
Debugging DFBs
308
Debugging
PLC Debugging
screen
Action
ThePLC debugging screen offers different functions and information, which are divided up into zones:
PLC debugging screen :
TSX 57352 [RACK 0 POSITION 0]
Debugging
Designation: PROCESSOR TSX P 57352
RUN
IO
ERR
DIAG...
Information
3.7(88)
Processor present: TSX 57352
Processor version:
Network address:
Number of forced bits: 0
SYS
Task
Period Min. Current Max. Cycle time Watch Opera- Stat Cmd Enable Error Init Reset
duratio Def
Set DuratioDuration Durati Fipio
Dog
ting us
task
2
6
6
0
250 STOP a Run Deactivate Def Init Reset
MAST CYCLIC
FAST
0
0
0
0
0
0 Not
Events
Operating mode
Warm Restart
Error Bit error reset
Output fallback
Status: Active STOP
Cold Start
0
Number of events:
Outputs in fallback mode
Last stop
Realtimeclock
Wednesday
Cause
Change to stop
OK
23/02/
Wednesday
Update
Date: 23/02/
Time: 10:16:33
Cancel
10:27:08
l
l
l
l
l
l
l
Note: To access the debugging functions you need to be in online mode (PLC
Connect).
275
Debugging
This zone allows you to find out the execution status of an application in the PLC.
Designation Zone:
Designation: PROCESSOR TSX P 57352
RUN
Description
IO
ERR
DIAG...
Function
The RUN
indicator
The I/O in- Red light indicating the errors on another module in the station or a configuradicator
tion error.
276
The ERR
indicator
Red light indicating the errors relating to the processor and its on-board devices (PCMCIA memory card and PCMCIA communication card).
The DIAG
button
Debugging
Information zone
At a Glance
Description
TSX 57352
Network address:
SYS
Processor Version:
Number of forced bits:
3.7(88)
0
Function
Processor present
Network Address
Processor version
Number of forced
bits
277
Debugging
Task Zones
At a Glance
This zone gives access to the various FAST task and MAST task execution commands:
l RUN/STOP commands,
l Activate/Deactivate Task commands,
l setting periods,
l Period Initialization command,
l Error Management commands.
Task Zone:
Tasks
Period Minimum Current Maximum Cycle time Watch Operating Status Cmd
Enable Fault Init Reset
Mode
duration Fault
Set Duration Duration Duration Fipio network Dog
task
40
4
10
a
4
250 RUN
MAST
55
Stop Deactivate Fault Init Reset
5
1
FAST
a
Stop Deactivate Fault Init Reset
3
100 RUN
1
0
MAST or FAST
task RUN/STOP
command
The RUN/STOP buttons associated with the MAST and FAST tasks are used to
switch to RUN or STOP mode.
In RUN mode the inputs are read, the program is executed and the outputs are refreshed.
In STOP mode the inputs are read, the program is not executed and the outputs are
not refreshed.
Note: These functions are also accessible via the Debug menu.
MAST or FAST
task Activate/
Deactivate
command
The Activate/Deactivate buttons associated with the MAST and FAST tasks are
used to activate or deactivate a task.
When a task is activated, the code is scanned and executed. The inputs/outputs are
refreshed.
When a task is deactivated, the code is neither scanned nor executed. The inputs/
outputs are still refreshed.
Note: The Status field informs you of the status of a task:
l a: for active (the system bits %S30 and %S31 are set at 1),
l i: for inactive (the system bits %S30 and %S31 are set at 0).
278
Debugging
Setting periods
In periodic operation, the "Period set" column is used to set the task period. This setting is lost on cold start. The value entered in the configuration is then taken into account. It is possible to save the period set using theUtility Save task periods
command.
Note: The Utility Restore task periods command replaces the period set with
the period defined in the configuration.
The minimum, current and maximum durations are provided by the PLC.
The Init button in the Init column restores these values in order to carry out new
measurements (except the current duration).
Error
management
commands
Button
Function
Fault bit
Reset
Is used to reset the system bits associated with the task errors to zero, in order
to be sure that the error(s) is/are still valid.
279
Debugging
Description
Warm restart
Cold start
Function
280
Cold start
Output fallback
Debugging
Event zone
At a Glance
Description
Function
Number of
events
Default button
Is used to view the default bits and to access the events diagnostics program.
Reset fault bit Is used to reset the fault bits associated with the execution of events to zero.
button
Status field
Icon
281
Debugging
This zone gives the diagnostics on the last stop of the PLC.
Last stop zone:
Last stop
Cause
Change to Stop
Tuesday,
Date:
Description
282
29/02/2000
Time:
09:31:59
Function
Cause
field
Date field
Time field
Debugging
Description
OK
Cancel
Update
Function
OK button
Is used to confirm once the date and the time have been set using the double
arrows.
Update
button
Updates the realtime clock according to the date and time of the terminal.
Cancel
button
Cancels all modifications if the PLC update has not been confirmed.
283
Debugging
The program editor authorizes the modification of the application in RUN mode, except for the Grafcet structure part.
Principals
Modification of program elements LD, IL, ST PLC in RUN, is possible at the level of
a LD rung, of an IL statement or of an ST instruction, except if the contents are contained in an event processing (EVTi).
The situation with Grafcet: only the processing linked to steps and transitions can
be modified, Grafcet can not be modified.
CAUTION
For security reasons, you are advised to start the PLC programming at
the stopSTOP. Modification in RUNmode must be used for program
modifications which do not require the application to be stopped and are
under the responsibility of the user.
Failure to observe this precaution can result in injury or equipment damage.
The operate
modes
284
The operate modes are the same as for modification in PLC local mode or connected mode in STOP mode. However some modifications are applied:
l no jump on an undefined label,
l not to be in step by step mode or have set a breakpoint,
l the PLC must not be at default,
l the multi-rung functions are not authorized,
l it is impossible to add a function block which is not already represented in the applcation.
Debugging
The animation of the parts of the program when the PLC is in RUN (rungs Ladder,
instruction LIST sequence, Structured text sequence, Grafcet) is carried out directly
in the language editors by activating the animation function when PL7 is connected
to a PLC.
Ladder rung
animation
l the FB outputs are highlighted when they are set to 1. Some internal parameters
are animated by the display of their numerical value inside the block.
Note: A forced variable is indicated by F.
Animation of List
sequences
%M0
%M1
%M2
%M3
285
Debugging
Animation of
Structured text
sequences (PL7
Junior, PL7 Pro)
The editor animates by linking itself to the Animation tables tool in the following way:
Select the Option Animation by tables, command after having started the Structured Text sequence editor, and the tool is then placed next to the editor.
Each language element displayed on the editor screen is entered in the table, keeping to the limit of 40 possible variables.
Note: For a table type variable, only the first element in the table is taken into account. It is therefore possible to add other elements from the table which may be
important in the context of the application.
Animation of the
Grafcet steps
11
Animation of
macro-steps
Animation of
DFB code
If the DFB type has not been code protected, it is possible to view the code dynamically using animation tables.
Select a call interface in a section then select the Opencontextual menu.
286
Debugging
Animation
commands
Function
Utility
Stop Animation
Suspends animation.
Utility
Animate
Restarts animation.
Utility
Freeze
The animation is frozen, the variables change but the display is no longer refreshed.
Note:
l the animation is synchronous with the end of the MAST task cycle.
l for all indexed objects, if index overflow occurs, there may be inconsistency in
the animation.
Example:
LD %M[%MW10] animation = status of indexed object even in the case of index
overflow.
ST %M1 animation = status of %M0 if there is index overflow.
287
Debugging
Grafcet debugging
At a Glance
How to gain
access to the
Grafcet
debugging bar
Action
288
Actions on chart
Prepositioning
PRG
Mast
RUN a
Debugging
Grafcet
debugging bar
The following illustration shows the arrangement of the command buttons in the debugging bar.
Chart status
Frozen Error
Zone
Chart status
Actions on chart
Prepositioning
Mast
Actions on chart
Prepositioning
PRG
Mast
RUN a
Functions
Provides information about the chart status:
Frozen:indicates whether or not the chart is frozen,
Error: indicates whether there is an error in the chart,
Button: can be activated when there is an error, is used to create an
information box with the list of active errors.
l
l
l
l
l
l
l
l
l
The animation of the Grafcet sections activity condition is displayed on the far left
of the debugging bar.
The
button is used to switch from the Grafcet debugging bar to the program
debugging bar.
289
Debugging
How to gain
access to the
Grafcet
debugging
screen
Action
In the Application browser in the Structure view, look at the Program directory and right click (contextual menu) on the G7 icon.
G7
LD
LD
The Grafcet
debug browser
operate
Prl
Chart
G7 Macro0
G7 Macro1
Post
The Grafcet debug browser can be accessed from the Grafcet editor or from the application browsers Grafcet section using the contextual menu.
Grafcet Debug Browser
G7
LD
operate
Prl
Chart
G7 Macro0
G7 Macro1
Post
This screen gives a hierarchical view of the chart with the nesting of the CHART
module and macro-steps.
This view is animated in online mode with the animation indicated by the absence
or presence of a token (an active macro-step is shown by the presence of a green
circle).
A certain number of operations are possible via:
l the contextual menu at the bottom of the screen,
l the contextual menu on an item describing a macro-step:
l deactivating a macro-step,
l activating a macro-step,
l editing a macro-step.
290
Debugging
Accessing the
contents of a
section
Step
Action
Action
Operating the
programme
In runtime:
l a green circle indicates that the section is confirmed,
l a red circle indicates that the section is not confirmed (confirmation bit at zero).
Forcing the
confirmation
values of the
section
Step
Action
Select the contextual menu (right click) Force the activation condition to 0
orForce the activation condition to 1, this is indicated by a F on the green
circle.
291
Debugging
Task properties
Task
configuration
Task debugging
292
The Operating mode zone indicates the status of the task execution.
The Duration zone indicates the execution time of the MAST and FAST tasks.
Debugging
There are several ways in which the MAST task can be put into RUN:
l select the Debug Run Mastcommand,
l select the Debug Access the PLC debugging screen command and click on
the RUN button associated with the MAST task.
There are several ways in which the MAST task can be put into STOP:
l select the Debug Stop Mastcommand,
l select the Debug Access the PLC debugging screen command and click on
the STOP button associated with the MAST task.
l click on the STOP icon on the general panel.
Note: The execution status of the task is shown in the debugging bar:
l STOP, RUN,
l a: the task is active (the %S30 system bit is at 1),
l i: the task is inactive (the %S30 system bit is at 0),
l Non Pr: the task is not programmed,
l STEP: step by step function in progress,
l ERR: execution error.
Duration
adjustment
In periodic operation, the "Adjusted Period" column is used to adjust the task period.
This adjustment is lost on cold start, it is the value entered in the configuration which
is taken into account in this case, it is possible to save the adjusted period using the
Services Save the Set Period command.
Note: The Service Restore periods command replaces the period set with the
period defined in the configuration.
The mimimum, current, maximum durations are provided by the PLC, the duration
button Init in the column Init resets these values in order to carry out new process
values.
293
Debugging
Task
activation-Fault
management
The Activation/Deactivation button on theUC debugging screen is used to activate the MAST task when the latter is in RUN.
The Err button on theUC debugging screen displays the MAST task errors and the
Reset button is used to reset the system bits associated with task errors to zero to
ensure that the error(s) is/are still valid.
294
Debugging
There are several options for putting the FAST task into RUN:
l select the Debub Run Fastcommand,
l select the Debug Access the UC debugging screen command and click on
the RUN button associated with the FAST task.
There are several options for putting the FAST task into STOP:
l select the Debug Stop Fastcommand,
l select the Debug Access the UC debugging screen command and click on
the STOP button associated with the FAST task.
l click on the STOP icon on the general panel.
Note: The execution status of the task is shown in the debugging bar:
l STOP, RUN,
l a: the task is active (the %S30 system bit is at 1),
l i: the task is inactive (the %S30 system bit is at 0),
l Non Pr: the task is not programmed,
l STEP: step by step function in progress,
l ERR: execution error.
Duration
adjustment
In periodic operation, the "Adjusted Period" column is used to adjust the task period.
This adjustment is lost on cold start, it is the value entered in the configuration which
is taken into account in this case, it is possible to save the adjusted period using the
Services Save the Set Periodcommand.
Note: The Service Restore periods command replaces the period set with the
period defined in the configuration.
The mimimum, current, maximum durations are provided by the PLC, the duration
button Init in the column Init resets these values in order to carry out new process
values.
295
Debugging
Task
activation-Fault
management
The Activation/Deactivation button on theUC debugging screen is used to activate the MAST task when the latter is in RUN.
The Err button on theUC debugging screen displays the FAST task errors and the
Reset button is used to reset the system bits associated to task errors to zero in order to ensure that the error(s) present are still correct.
296
Debugging
The software manages a single breakpoint which can be set in on-line mode on any
program element (LD rung or IL, ST, DFB sequence) that is contained in the MAST,
FAST, or SR tasks.
Setting these breakpoints is one of the functions of the debug bar.
How to access
the debug bar
Setting a
breakpoint
Step
Action
Action:
Place the cursor on the program element (LD rung or IL, ST statement) that is
to be the breakpoint.
Example:
2
Select the Debug/Set the breakpoint command or click on the button
on the debug bar.
297
Debugging
Action:
1
Select the Debug/Line mode command or click on the button
debug bar.
2
on the
Place the cursor at the position on the instruction line at which the breakpoint
is to be set,
3
Select the Debug/Set breakpoint command or click on the button
the debug bar.
on
Note:
Setting a new breakpoint deletes any existing breakpoint.
Executing the
program
Execute the PLC/Run, Debug/Run Mast, Debug/Run Fast program if the PLC is
not already in Run.
The program is executed until the rung, the statement or the instruction line (with
Structured Text in line mode) associated with the point is reached. The statement,
instruction line or the rung is not executed.
The breakpoint is displayed in yellow (step in progress), so it is possible to execute
the program in step by step mode.
Accessing the
breakpoint
To place the cursor directly on the breakpoint set in the application (without first accessing the program module), select the Debug/Show Breakpoint Inserted command or click on the button
Accessing the
step in progress
To place the cursor directly on the step in progress in the application (without first
accessing the program module), select the Debug/Show Current Step command
or click on the
Deleting the
breakpoint
298
on the
Debugging
With DFBs
A breakpoint cannot be directly inserted into the code of a DFB type (accessible in
read mode).
It is recommended that you set the breakpoint directly on the calling code element,
then enter the instance code via the Call Module menu.
Module Call
Stack
299
Debugging
How to access
the debug bar
Action
Step by step
program
execution
300
PLC
F
Monit.
cR7
Mast
Fast
Evt
RUN a
RUN a
RUN a
Action:
Insert a breakpoint in a module through which the program will pass when it is
executed in step by step mode.
Give the AP/Run, Debug/Run Mastand Debug/Run Fast commands in program execution mode.
Debugging
Commands
The commands are accessible via the debug bar or the Debug menu:
Debug bar:
Debug menu:
Button:
Button:
Button:
Button:
Button:
Debug/Abort Step by Step (the breakpoint is deleted and the task restarts).
Button:
WARNING
With alarm relay:
At each step the alarm relay (or safety output) controlled by the PLC
momentarily changes its status. At the end of the cycle, the outputs are
refreshed for approximately 1 ms. To avoid these effects on the alarm
relay and the physical outputs, the %S9 bit can be set at 1, which will
force the physical outputs into fallback.
Failure to observe this precaution can result in severe injury or
equipment damage.
301
Debugging
How to force
TOR inputs
Action
In Application Browser in the structure view, click on the Configuration directory, then double click (or contextual menu) on the Hardware configuration directory.
Select the module and then double click (or contextual menu).
Each channel is viewed:
l channel: input or output channel number,
l symbol: symbol set by the user linked to the channel,
l parametering: memory, event
Next select the channel and right click, then click on Command.
To delete the forcing of a channel click on Unforce (select the channel then the contextual menu Command.
To delete the forcing of all of the modules channels, click on the Global unforcing
button.
302
Debugging
How to force
analog inputs
Action
In Application Browser in the structure view, left mouse click on the Configuration directory then double click on the Hardware configuration directory.
Note: When a channel is forced, the information F appears in the values display
zone.
Forcing an input
When an analog input is forced, the value present in the modules input is not available. The forced value is indicated in the Value and Forcing fields on the screen.
The forcing of inputs is active whether the PLC is in RUN or in STOP mode.
Forcing an
output
When an analog output is forced, the value present in the modules output is indicated in the Forcing field on the screen. The value calculated by the application remains displayed in the screens Value field .
Deleting forcings
To delete the forcing of a channel, select it and then press the Unforce button.
To delete the forcing of all of the modules channels, click on the Global unforcing
button.
303
Debugging
How to force
analog inputs
Action
In Application Browser in the structure view, left mouse click on the Configuration directory then double click on the Hardware configuration directory.
Note: When a channel is forced, the information F appears in the values display
zone.
Forcing an input
When an analog input is forced, the value present in the modules input is not available. The forced value is indicated in the Value and Forcing fields on the screen.
The forcing of inputs is active whether the PLC is in RUN or in STOP mode.
Forcing an
output
The forcing is only possible if the task associated to the output is in RUN mode. If
the task is in STOP mode the output is put into fallback/maintain.
When an analog output is forced, the value present in the modules output is indicated in the Forcing field on the screen. The value calculated by the application remains displayed in the Forcing on the screen field. The value calculated by the
application remains displayed in the Value field on the screen.
Deleting forcings
To delete the forcing of a channel, select it and then press the Unforce button.
To delete the forcing of all of the modules channels, click on the Global unforcing
button.
304
Debugging
You must be in connected mode to access the adjustment of the application specific
functions.
Action
Select the module position to be debugged then select the contextual menu
(right click) Open the moduleor double click on the module.
The attainable functions are:
l viewing the parameters,
l adjusting the selected channel.
In local: the input parameters correspond to the initial parameters (value of the parameters during the first start or during a cold re-start).
In connected: the input parameters correspond to the current parameters (they are
lost during a cold re-start if they have not been saved beforehand).
The commands
Function
Allows you to save the current parameters (replacing the initial values with the current values) if the application is in RAM memory.
Service Restore
parameters
Allows you to replace the current values with the initial values.
Note: the functions and the commands which are available depend upon the application specific module which you are using.
305
Debugging
Execution
condition of the
sections
Forcable:
%Si
%Mi
Grafcet Objects
%MW:Xj
%SW:Xj
%KW:Xj
%Mi[%MWj
%Mi[%SWj]
%Mi[%KWj]
306
Debugging
Deactivation of
all sections
linked to a
functional
module
Activation of all
sections linked
to a functional
module
Cancellation of
the forcing of all
sections which
are linked to a
functional model
Action used to force to 0 all the execution conditions of the module sections.
Step:
Action:
From the contextual menu, select the Activation condition for the included
sections command.
Action used to force to 1 all the execution conditions of the module sections.
Step:
Action:
From the contextual menu, select the Activation condition for the included
sections command.
Action used to unforce all the execution conditions of the module sections.
Step:
Action:
From the contextual menu, select the Activation condition for the included
sections command.
307
Debugging
Debugging DFBs
Procedure
308
Adjustment of variables
14
Introduction
Subject
Whats in this
Chapter?
Topic
Page
310
312
314
316
317
309
Adjustment of variables
The software is used to create animation tables containing lists of variables and is
used to ascertain the value of the variables using various display types and to force
the bit variables. The variables tables can be created in offline or in online mode.
It is possible:
l to create an animation table automatically,
l to create an animation table manually,
l to enter a table of variables of the same type.
Automatically
creating an
animation table
Manually
creating an
animation table
310
Action
Access the program module of the structure or function views, on which the table is to be created.
Select the rung, the statement, the instruction and the DFB then select the Initialize Animation Table contextual menu. The tables which are automatically
created in this way can then be modified by deleting or adding new variables.
Procedure:
Step
Action
Enter the variables in address or symbol format and confirm with ENTER. The
current value of the variables is displayed.
Specify the name of the table, enter any comments and confirm with ENTER
or Confirm As.
Adjustment of variables
Entering a table
of variables of
the same type
Accessing an
existing
animation table
Procedure:
Step
Action
Enter the separator - to increment the position or -.. to increment the channel.
Action
Animation table
properties
How to display or
modify the
properties of an
animation table
Step
1
Action
Select the animation table.
Click on OK.
311
Adjustment of variables
Selecting and
deleting one or
more lines
Selecting
Click on the rectangle on the left of the variable address (SHIFT+SPACE) in order
to select the line or click and drag to select more than one line (the selected lines
are highlighted in black).
Deleting
Select the line or lines and press Delete.
Entering a value
for
N consecutive
variables
Changing the
display format
for
N consecutive
variables
312
Action
Click on the first of the consecutive values in the Current value field.
Enter your value in the animation table entry field and confirm with Enter.
Result: the selected variables all have the same value.
Action
Adjustment of variables
WARNING
Displaying digital values:
If numerical values of more than three figures are truncated, change the
thousands separator value in the Windows Control Panel under Regional Settings, numbers section.
Failure to observe this precaution can result in severe injury or
equipment damage.
Inserting one or
more lines
Select the line before which the insertion is to be made and select the Insert a line
contextual menu.
Saving the
animation table
on the PC
Select the command Edit Confirm asenter the name of the table and confirm with
OK.
Deleting an
animation table
Procedure:
Changing the
name of an
animation table
Masking the
"Modification,
Forcing" zone
Step
Action
Select Edit Delete from the menu or press the DELETE key or use the Delete contextual menu.
Procedure:
Step
Action
313
Adjustment of variables
With DFBs, there are several possibilities for the animation and the modification of
the variables:
l automatic creation via a DFB code,
l automatic creation via a DFB instance call,
l automatic creation via a DFB instance code,
l contraction and expansion,
l display and modification of a character string,
l the operate mode for the tables.
Note: You can only animate the instances used in the table.
Automatic
creation via a
DFB code
It is possible to automatically create an animation table from a DFB code. Select the
instance in the list and confirm with OK. All the accessible variables on the animation
table level will automatically be input.
Automatic
creation via a
DFB instance
call,
314
Then
is not protected
the call interface and the public variables are viewed and are modifiable.
These standard functions are available only for the PL7 Pro product
to enable debugging of the DFB type.
For the PL7 Junior product, the variables are not modifiable.
is protected
the call interface and the public variables are viewed in read-only. The
instance variables are viewed in the table according to a Contract/Expand operate mode on the DFB types.
Adjustment of variables
Automatic
creation via a
DFB instance
code
Then
is not protected
the parameters and the public and private variables used in the code
are viewed and are modifiable. These standard functions are available
only for the PL7 Pro product to enable debugging of the DFB type. For
the PL7 Junior product, the variables are not modifiable and the private
variables are not viewed.
is write-protected
the parameters and public variables used in the code are viewed in
read-only.
Contract/Expand
If the variable in the animation table is preceded by the + symbol, to know the objects
associated to the variable:
l select the variable,
l select the Edit Expand command or double click on the +, so the list of associated variables is displayed.
To contract the list of objects associated to the variable, select the Edit Contract
command or double click on the -.
Displaying/
Modifying a
character string
All the displayable ASCII characters (eg: 1,2,A,B,+,) are displayed only in animation and the non-displayable ones are replaced by a vertical dash. The NULL character shows the end of the chain. It is not displayed. In animation, only the first 10
characters are displayed.
To Display/Modify a whole string, you can:
l double click on the concerned cell,
l select the Display Modify menu (as a contextual menu or on the menu bar).
Modification: all the objects whose attributes are mandatory inputs (objects whose
attributes are by reference) are not modifiable.
The operate
mode for the
tables
According to the type of table chosen in the DFB editor (static or dynamic), the Animation tables tool offers:
l static tables: Contract/Expand expand to the same level as the number of the
element,
l dynamic tables: (in connected mode with the PLC in RUN) Contract/Expand expand when the instance is executed and the number of elements is known.
315
Adjustment of variables
The software allows you to create animation tables containing lists of variables, to
know the value of the variables with different types of display and to force the bit variables.
The variables tables can be created in local or in connected mode.
Modifying a
variable
Steps to follow:
Forcing a bit in
an animation
table
Unforcing a bit in
an animation
table
316
Step
Action
Select the variable and put the cursor on the Current value zone.
Steps to follow:
Step
Action
Select the variable to be forced and put the cursor on the Current value zone.
Select Force 0 to force the bit to zero. The forcing is shown by the letter F.
Select Force 1 to force the bit to 1 and the forcing is again shown by the letter
F.
Steps to follow:
Step
Action
Select the variable to be unforced and put the cursor on the Current value
zone.
Select Unforce.
Adjustment of variables
PL7 features a tool which allows you to view the list of forced bits in the PLC at any
given time without having to go into the animation table in the usual way.
Principles
The forced bits display function is available from the PLC menu in online mode only.
Launch the forced bits search and the resulting list is displayed in the animation tables editor. The entire man-machine interface is therefore sub-processed to the animation tables editor.
The " Forced bits list" tool can be broken down into 2 components:
l A component in the PLCs OS environment, with the following functions:
l managing a forced bits trace table in order to optimize the search,
l implementing a request to read the trace table.
List of forced
bits" tool
Then
the PLC
contains
no forced
bits
there are
a forced bits animation table appears:
forced bits.
TABLE_1 (Animated)*
F1
Modification
F3 Modify
0
F7
1
F8
Forcing
F4 Forcing 0
F5 Force 1
F6 Unforce
Display
Dec.
Current value
9
F1
F1
F1
F1
F1
F1
F1
F1
F1
Kind
Type
10/11
Comment
317
Adjustment of variables
When the table is open, the PLC List of forced bits command restarts the search
creating another forced bits animation table.
Note: the List of forced bits table displays the forced bits at a given time t in the
PLC and this table is not refreshed. In fact, we have a static image of the data read
in the PLC at the time at which the PLC List of forced bits is executed. To obtain the list of forced bits at any given moment t+1 another List of forced bits table
must be launched.
318
Adjustment of variables
Contents of the
"List of forced
bits" table
The contents of a list is identical to the contents of an animation table except that the
system word %SW108 which gives information about the number of forced bits in
the PLC, appears at the start of the list.
Review of table fields:
l address,
l symbol,
l current value,
l kind,
l type,
l comments.
Limits and
restrictions
When the maximum number of forced bits is reached, the OS component saves no
further forcing/unforcing actions in the table. However, these actions are still carried
out and there is no change to the operating procedures at the user and PL7 end.
In this context, there is inconsistency between the table contents and the PLC memory. An information message is displayed, which could be:
l "Overflow of number of forced bits",
l "Cold start necessary to reinitialize the forced bits table",
l "OK".
The forced bits list will be displayed again following a cold start (reinitializing all the
forced bits and the forced bits table).
319
Adjustment of variables
320
Diagnostic functions
15
Introduction
Subject of
chapter
This chapter describes the diagnostic functions available for diagnosing the hardware and the application.
Whats in this
Chapter?
Topic
Page
322
Module/channel diagnostics
323
Program diagnostics
324
326
Diagnostics DFBs
327
328
329
321
Diagnostic functions
To access the diagnostic of the PLCs last stop, you need to be in connected mode.
How to access
the diagnostic of
the PLCs last
stop
322
Diagnostic functions
Module/channel diagnostics
Introduction
The software provides various diagnostics tools. You must be in online mode to access these tools.
Note: the diagnostics for the Discrete modules and for the analog modules are
performed in the same way as those described below.
How to access to
module/channel
diagnostics
Action
10
P
S
Y
T
S
X
D
E
Y
D
S
Y
D
E
Y
D
S
Y
2
6
0
0
5
7
3
5
2
0
8
D
2
0
8
R
4
D
1
6
A
2
1
6
R
5
Select the position of the faulty module, then right click and choose the Open
the module command or double click on the selected position.
323
Diagnostic functions
Program diagnostics
Introduction
To access the diagnostics tools it is necessary to be in online mode. To connect, select the PLC Connect command.
Program diagnostics is used to find out the cause and the source of the switch to
error mode. Various types of error are signaled:
l blocking errors (which cause the execution to be stopped),
l non-blocking errors (which become blocking when the application monitoring option is selected),
l non-blocking errors.
Blocking errors
(causing the
execution to be
stopped)
Non-blocking
errors (which
become blocking
when the
application
monitoring
option is
selected)
Non-blocking errors which become blocking when the application monitoring option
is selected:
l index overflow,
l division by zero,
l capacity overflow of an unsigned arithmetic calculation,
l character string error (the character string transfer zone is too small to accommodate this string),
l floating point calculation error (division by zero, capacity overflow, incompatibility
with the IEEE 754 format following the overlap of the memory zones etc.).
Non-blocking
errors
324
Diagnostic functions
Diagnostics
procedure for
blocking errors
Action
Application
monitoring
Action
In the PLC debugging screen, click on the Fault button which is associated with
the task.
Click on the Reset Fault Bit button (reset bits systems to 0) to confirm the
presence of the error on the different tasks (FAST, MAST, EVT).
To refine the diagnostics, or in other words, to make this fault type blocking in order
to isolate it, choose the monitoring option (Mon.) on the debugging bar or use the
Application monitoring command from the Debugmenu.
Then execute the diagnostics procedure for non-blocking errors.
325
Diagnostic functions
The Module call stack display function lets you know the chronological chain of
calls that have led to the execution of the faulty module (from the most recent to the
oldest), for a diagnostics error in a SR or a DFB type.
Accessing the
Module call stack
326
Diagnostic functions
Diagnostics DFBs
Introduction
The diagnostics DFBs are accessible from PL7-Pro , and are used in the applications which run on TSX57/PCX57/PMX57 processors.
Diagnostics DFBs consist of:
l diagnostics application DFBs which are used to set up process monitoring via the
application program:
l PL7 equation monitoring,
l monitoring the reaction time of the process to a command,
l monitoring the inputs/outputs and the ASI bus,
l monitoring the safety conditions.
l working part control and diagnostics DFBs which are used to control and monitor
elements of the working part (EPOs):
l monitoring sensor information,
l monitoring actuator control requests,
l monitoring the duration of a movement,
l memorizing the minimum and maximum durations of a movement,
l learning the duration times of a movement,
l controlling an actuator.
At a Glance
Descriptive form
Functions
EV_DIA
Monitoring the status of 2 bits without taking a time factor into account.
MV_DIA
Monitoring the status of two bits without taking a time factor into account,
with the option of monitoring a movements changes (change of bit status
within a given time period).
NEPO_DIA
TEPO_DIA
IO_DIA
ASI_DIA
ALRM_DIA
Every diagnostics DFB possesses a descriptive form describing the DFB function
and its parameters (inputs, outputs and public variables).
This form is accessed by double clicking on a DFB type in the application browser,
then by clicking on the Descriptive form tab in the DFB editor.
327
Diagnostic functions
Registering
diagnostic DFBs
Action:
Open the applications Properties dialog box (Station directory in the application browser).
Before using a DFB in the application, carry out the following actions:
Step:
Action:
Import the binary DFB file (* .UFB) using Import binary from the contextual
menu within the PL7s installation directory (example C:\PL7\PL7PRO33\DIAG).
Programming
rule for
diagnostics
DFBs
A Diagnostic DFB:
l must be executed in the MAST task for managing operate modes. So that it is
executed, it is necessary that:
l the DFB is called (the program element to which it is assigned must be executed)
l the ED input must be at 1.
l can be instanced in any program module (Section, SR) written in Ladder language (LD), Structured Text (ST) or Instruction list (IL). It is strongly recommended that you only program the instance once,
l imposes a Label on the rung or the phrase containing it.
Information
system
328
Object
Information
%S101=1
%S102=1
Full diagnostics buffer. If the diagnostics buffer cannot save an error, this error
is lost and the %S102 bit passes to 1.
%SW162
Diagnostic functions
All the error messages appear in a window in the lower part of the runtime screens
tool.
The size of this window can be modified with the mouse, but its position is fixed.
However, it can be hidden.
It consists of a list of messages and has:
l a vertical scroll bar allowing you to view any obscured messages in the list,
l a horizontal scroll bar used to view the entire contents of a line.
Illustration of the
Viewer
Appearance: 5
01/03/2000 - 18:21:41
01/03/2000 - 18:21:43
01/03/2000 - 18:22:16
01/03/2000 - 18:22:25
01/03/2000 - 18:22:05
Disappearance: 5
01/03/2000 - 18:21:46
01/03/2000 - 18:22:16
01/03/2000 - 18:22:18
01/03/2000 - 18:22:25
01/03/2000 - 18:23:11
Status
Message
Mixing time too short (< 5 s)
16#
Maximum mixer level reached: 25 liters
Maximum mixer level reached: 25 liters
Mixing time too short (< 5 s)
16#
Maximum mixer level reached: 25 liters
Every line displayed in the Viewer corresponds to an error and contains the following
information:
l the message status which is indicated by an icon plus text (the message having
to be acknowledged or not),
l the faulty DFB type,
l the geographical zone in which the source of the error is located,
l the time and date when the error appeared,
l the time and date when the error disappeared,
l the message associated with the error,
l the value of the word status at the time of the error.
The user can increase or decrease the size of the columns using the mouse. A column not displaying the information in its entirety ends in an ellipsis.
The width of each column is stored and retrieved while opening the runtime screens
tool.
329
Diagnostic functions
Error message
display
The number of messages it is possible to display is limited only by the size of the
memory buffer. When there is not enough memory, a message warns the user and
any messages of errors that have disappeared or have been acknowledged (if necessary) are then deleted.
It is possible to modify the color of the messages and the blinking associated with
an acknowledged message.
In the viewer, it is possible to show only those messages which come from one or
more specific zones.
The list of messages can be sorted according to each field. To do this, simply click
on the column header containing the data on the basis of which the sort is to be carried out.
A second click carries out the sort in opposite order.
By default, the error messages are inserted into the list in the chronological order in
which they appear.
Error message
management
Possible operations:
Operation
Implementation
Navigation
With the UP, Down, Page-Up, Page-Down, Home, and End keys.
Acknowledge- By using the contextual menu having selected the corresponding item.
ment
Several messages can be acknowledged at the same time.
After an acknowledgment, an order is sent to the PLC.
The acknowledgment can come from another viewer, in which case the runtime screens tool is alerted and the message is displayed as acknowledged.
330
Deletion
By using the contextual menu having selected the corresponding item or by using the Delete key.
Only messages that have disappeared and been acknowledged (if necessary)
are deleted.
Properties
Diagnostic functions
Error message
archiving
Archiving is used to create a log file. The activation and the location of this file are
configured in a window that can be accessed using the Service/Configure/Viewer
tab command.
It is possible to modify the directory in which the archive file is located. By default,
it is kept inC:\PL7USER\NameAppli.HIS.
This file is in ASCII format, so it is easy to import it into a text editor or a spreadsheet.
To stop the file from becoming too large, it is renamed in NameAppli.BAK every
1000 saves and a new file is created with its source name.
WARNING
If a NameAppli.BAK file already exists, it is deleted without warning.
Failure to observe this precaution can result in severe injury or
equipment damage.
Error message
customization
331
Diagnostic functions
332
Documentation
16
Presentation
Whats in this
chapter
This chapter describes how to create the documentation file for the application.
Whats in this
Chapter?
Topic
Page
334
337
333
Documentation
Description of
the title page and
the contents
Title page:
this heading gives the name of the designer and the name of the project.
Contents:
the contents table is created automatically by the software according to the selected
options.
Description of
the configuration
heading
Description of
the Function
View heading
334
Documentation
Description of
the program
heading
Choosing this heading automatically selects the existing modules in the application.
For each language LD, IL and ST select printing in symbol or address format.
The selected mode applies to all modules in the same language.
The "With Variables Used" option allows you to print the list of the variables used
after each rung or phrase.
Several sub-headings are available:
l application structure,
l MAST task,
l FAST task,
l event task.
Application structure:
this heading is used to print the application software structure as well as the tree
structure subroutine calls.
MAST Task :
this sub-heading is itself built up of sections (as well as PRL/CHART/POST modules
if there is a GR7 section) and subroutines.
FAST Task :
this sub-heading is also built up of sections and subroutines.
All of these headings are used to print the contents of the different sections that constitute the program.
Description of
the DFB Type
heading
335
Documentation
Description of
the cross
references,
animation tables
and variables
headings
Cross references:
this heading allows you to print the list or lists of variable cross references.
Animation table:
this heading allows you to print the different animation tables along with the addresses, the symbols, the types and the kind.
List of variables :
this heading is used to print the list or lists of variables and their parameters.
Description of
the footer
heading
336
Select this heading to create a footer at the bottom of the documentation page:
l the blank fields can be filled in by the user,
l the shaded fields are filled in automatically.
Documentation
To access a documentation file, double click on the documentation file icon in the
structure view of the application browser, a documentation window then displays
the various components of the application documentation file.
Components of
the application
documentation
file
Each element of the documentation file can be included or excluded by using the
contextual menu: by right clicking.
The elements included in the documentation file are marked with a red square.
To build the file carry out the following actions:
Setting the
documentation
file parameters
Step
Action
Select each element to be included or excluded in the file using the Include
heading or Exclude heading contextual menus or select Edit Exclude
heading from the menu.
Set the parameters for the various elements: Program, DFB type, Cross references, Variables, Footer.
Select the Build contextual menu via the general documentation file icon or select Edit Build from the menu.
337
Documentation
Action
Click on the variables icon in the documentation window and select the Parameters contextual menu.
Select the variable sorting order: ascending order of symbols, ascending order
of addresses or both.
Action
Click on the Cross references icon in the documentation window and select
the Parameters contextual menu.
Select the variable sorting order: ascending order of symbols, ascending order
of addresses or both.
338
Step
Action
Click on the DFB type icon in the documentation window and select the contextual Parametersmenu.
Documentation
Printing the
documentation
file
Action
Action
Action
Select Print from the contextual menu or click on the printer icon in the task
bar.
Action
Select Print from the contextual menu or click on the printer icon in the task
bar.
339
Documentation
340
Import/Export
17
Introduction
Subject of this
chapter
Whats in this
Chapter?
Page
343
344
351
353
354
355
Exporting variables
357
Importing variables
358
360
362
364
366
369
371
373
375
376
378
Exporting an application
380
341
Import/Export
Topic
342
Page
Importing an application
382
384
385
Import/Export
Import/Export functions for the PLC TSX 37 or TSX 57 applications allow you:
l to insert or to duplicate all or part of IL, LD, ST, Grafcet program module.
l to insert an IL, LD or ST section into a task (MAST, FAST, EVT...).
l to insert a DFB type into the list of DFBs.
l to insert symbolized variables in the table of variables.
File types
Possible
commands
Notes:
In order to select the directory containing the applicationsource files, use the command Options/Customize. (The file PL7.INI contains the pathname for the source
files). The source directory becomes the current directory for import/export.
343
Import/Export
Description of
the blocks
344
Import/Export
LD source file
Header Block
[HEADER]
DATE = date #1999-12-10
STANDARD = PLCopen v0.1 1993
SENDER = Schneider Automation S.A. PL7 PRO V3.4
Application Block
[APPLICATION]
NAME = MACHINE_DOSAGE
DATE = date_and_time#1999-12-10-14:52:06
VERSION = 0.125
345
Import/Export
IL source file
Header Block
[HEADER]
DATE = date #1999-10-10
STANDARD = PLCopen v0.1 1993
SENDER = Schneider Automation S.A. PL7 PRO V3.4
Application Block
[APPLICATION]
NAME = MOP5
DATE = date_and_time#1999-10-10-14:52:06
VERSION = 0.125
346
LDN %M0
ST
%M1
Import/Export
ST source file
Header Block
[HEADER]
DATE = date #1999-08-10
STANDARD = PLCopen v0.1 1993
SENDER = Schneider Automation S.A. PL7 PRO V3.4
Application Block
[APPLICATION]
NAME = MOP6
DATE = date_and_time#1999-08-10-14:52:06
VERSION = 0.125
347
Import/Export
G7 source file
Header Block
[HEADER]
DATE = date #1999-06-10
STANDARD = PLCopen v0.1 1993
SENDER = Schneider Automation S.A. PL7 PRO V3.4
Application Block
[APPLICATION]
NAME = MOP7
DATE = date_and_time#1999-06-10-14:52:06
VERSION = 0.125
348
Import/Export
349
Import/Export
Symbols source
file
Header Block
[HEADER]
DATE = date #1999-12-10
STANDARD = PLCopen v0.1 1993
SENDER = Schneider Automation S.A. PL7 PRO V3.4
Application Block
[APPLICATION]
NAME = MOTOR
DATE = date_and_time#1998-12-02-14:52:06
VERSION = 0.125
350
Import/Export
The Export function can be accessed in local mode and in connected mode, with
the PLC in Stop mode.
It supports export of:
l all or part of a program module from within a language editor (LD, IL, ST, Grafcet),
l a whole section, a program module from within the application browser.
Exporting from
within an editor
Exporting from
within the
application
browser
Action
Select the part of the program to be exported (if nothing is selected, the whole
module is exported).
For Grafcet, select either:
l the whole module (default),
l the current page (the one where the cursor is),
l from page x to page y inclusive, between values 0 and 7.
Select the disk and/or the directory where the file is to be saved using the pulldown menu In.
Action
Left mouse click on the Section or the Module to be exported or move the cursor using the arrow keys.
Using the contextual menu or the File menu or the keys Shift+F10 select the
command Export
Select the disk and/or the directory where the file is to be saved.
351
Import/Export
Notes
During export, the message "Processing (Esc to cancel):1" is displayed in the status bar.
Pressing Esc followed by confirmation stops the export and the source file is not created.
Errors
The only error that can arise is insufficient disk space available. If this happens, an
error message is displayed.
The generation of the source file in progress is aborted.
352
Import/Export
353
Import/Export
Exporting from
an editor
Exporting from
an application
browser
Errors
354
Action
Select the part of the program to be exported (if nothing is selected, all the
module is exported).
With Grafcet:
Select either:
l the whole module (by default),
l the current page (the one the cursor is on),
l from page x to page y with x, y between 0 and 7.
Select the disk and/or directory where the file is to be saved using the scrollable
menu In.
Action
Right click on the section or module to be exported or select with the arrow
keys and then press (Shift + F10).
The only error that can occur with an Export is lack of available disk space; in this
case an error message is displayed.
Import/Export
The Import function can be accessed in local mode and in connected mode, with
the PLC in Stop mode.
It supports import of:
l A source file into a section (empty or already programmed) from a language editor,
l A section or a module from the application browser.
Importing from
within an editor
Action
Put the cursor in the editor in the position where you want to insert the code.
Confirm the import with Enter or select the command Edit/Accept (CTRL+W)
or click on the icon
Importing from
within the
application
browser
l
l
l
l
355
Import/Export
l Special cases:
-If eight pages are read, the cursor remains on page seven.
-If the user aborts the import part way through, the cursor is positioned on the
first page of the import.
-If the contents of a page are incorrect, the editor displays the page in error
with the correction functions for the page and the look-up functions for the pages already imported.
-The contents of a Macro-Step cannot be imported into the CHART and vice
versa.
Notes
During import, the message "Processing (Esc to cancel):1" is displayed in the status bar.
Pressing Esc followed by confirmation deletes the code already inserted.
Errors
356
Import/Export
Exporting variables
Functionality
The Export variables function can be accessed in local mode and in connected
mode, with the PLC in Stop mode.
Procedure
Action
Open the variables editor from the application browser by double clicking with
the left mouse button on one of the data families or by using the keys Shift+F10
or via the contextual menu command Open.
Select the disk and/or the directory where the file is to be saved using the pulldown menu In.
Confirm withSave.
Notes:
During the processing period the message "Processing object (Escape to cancel):xx" (number of the element being processed) is displayed in the status bar.
Pressing Esc followed by confirmation stops the processing and no source file is
created.
Errors
The only error that can arise is insufficient disk space available. If this happens, an
error message is displayed.
The generation of the source file in progress is aborted.
357
Import/Export
Importing variables
Introduction
The Import variables function can be accessed in local mode and in connected
mode, with the PLC in Stop mode.
It supports insertion of a data file into the application (%M, %S, %K, %X, E/S, SFB,
EFB, DFB) from the variables editor.
Managing
conflicts
Procedure
Action
Open the variables editor from the application browser by double clicking with
the left mouse button on one of the data families, or via the Contextual menu
select the command Open.
Notes:
358
Import/Export
During the processing period the message "Processing object (Escape to cancel):xx" with xx the number of the element being processed is displayed in the status bar.
Pressing Esc causes the abort after restoring the current variable, the variables already restored are kept.
Errors
359
Import/Export
General points
TXT is the chosen format, using tabs as separators. Provision is made for this save
format in the EXCEL tool.
However, when reading these files in EXCEL, it must be indicated to EXCEL that the
tabulation character is to be interpreted as a separator (standard principles of file import into EXCEL).
How to export
variables in
EXCEL format
Action
In the Structure View of the Application Browser double click on the Variablesdirectory.
Click on open.
Result: a variables window appears.
Pl7user
FIRST screen
Name:
Type:
Save
360
Cancel
All types
Choose the export destination directory and in the Type field select: "Text
(separator: tabulations *TXT)".
Import/Export
How to import
variables in
EXCEL format
Action
In the Structure View of the Application Browser double click on the Variablesdirectory.
Click on open.
Result: a variables window appears.
Pl7user
test. TXT
Name:
test. TXT
Type:
Open
Cancel
Dialog
Choose the directory from which the import should be carried out and in the
Type field select: "Text (separator: tabulations *TXT)".
361
Import/Export
Procedure
Action
Left click on the module to be exported or position the cursor over it using the
arrow keys.
Using the contextual menu or the File menu or using the keys Shift+F10 select
the commandExport.
Select the disk and/or directory where the file is to be saved (PL7user is the
default directory).
Enter a file name in the Name field (the source file is of the type *.FM)
Notes:
Exporting a functional module is prohibited if an associated section, event or Grafcet
module is being modified.
362
Import/Export
Exporting a
functional
module with
runtime
screen(s)
Exporting a
functional
module with
animation
table(s)
The source file NomMod.FM contains the source of each animation table contained
in the functional module.
Exporting the functional module is authorized if no animation table is being modified.
The Export procedure is identical to that described above.
363
Import/Export
l importing the sections, events and Grafcet modules making up the module,
l and importing the functional submodules making up the functional module.
The short name and the function name are exported and then restored at the time
of import.
If a section, event, Grafcet module, or functional sub-module making up the imported functional module already exists with the same name, the software allows you to
enter a new name.
The Import function can be accessed in offline and online mode, with the PLC in
Stop mode.
Two import procedures are available:
Procedure for
importing
without
reassignment
364
Action
Using the Contextual menu, the File menu or the Shift+F10 keys select the
Import command.
Import/Export
Note:
As only one Grafcet section is allowed in the MAST task, importing a module containing a Grafcet section is prohibited if a Grafcet section already exists.
Procedure for
importing with
reassignment
Action
Using the Contextual menu, the File menu or the Shift+F10 keys select the
Import command.
Note:
For more information on the wizard, see "Importing a functional module using the
wizard" (See Importing a functional module using the wizard, p. 366).
Importing a
functional
module with
animation
table(s)
The contents of the file NAME.FM containing the source of each animation table in
addition to the information linked to the functional module is imported.
The possible conflicts are dealt with in the section Importing animation table(s), p.
371.
If the procedure with reassignment is selected then:
l it is impossible to reassign a variable which is only present in an animation table,
l reassigned variables are also reassigned for the animation tables which contain
them.
Importing a
functional
module with
runtime
screen(s)
365
Import/Export
When importing with reassignment, if you want assistance check the box Open
with wizard. This tool guides you through the reassignments.
Detailed below are the different Tabs in the tool.
Directory Tree
Tab
Supports the modification of the different elements. The source name is quoted as
a prefix to the new name: Source Name => Target Name.
The entry is enabled by a double left click on the object, confirmed by the Enter
key, cancelled by the Esc key.
The different elements are:
l Functional Module:
366
Import/Export
l Events:
Addresses Tab
Presents the symbols and addresses of the functional module and supports modification of the name of the different elements.
The entry is enabled by a double left click on the object, confirmed by the Enter
key, cancelled by the Esc key.
The family field supports the selection of the different imported objects:
DFB Tab
Indexed object.
Extract bits from indexed object.
Indexed extract bit.
Table.
Indexed table.
Presents the DFB instances which are declared in the functional module.
The entry is enabled by a double left click on the object, confirmed by the Enter
key, cancelled by the Esc key.
The different elements are:
l Comment:
l The comment associated with a DFB instance in the table can be displayed
and modified in the Comments field.
l The comment is written on a single scrollable line. It can contain a maximum
of 508 characters.
l Type, Source Name, Target Name:
l Type: indicates the type of a DFB.
l Source Name: indicates the source name of the instance.
l Target Name: supports the modification of the target name of every instance.
1. The name is made up of a maximum of thirty-two alphanumeric characters
(A..Z and 0..9) and underscore (_), the first character obligatorily being a
letter.
2. The Target name of the new instance must be unique, that is, no Target
symbol nor other instance of Target DFB, nor any DFB type can have the
same name.
l Ordering DFBs:
l In alphabetical order by the DFB type.
l In alphabetical order by the Source name of the instances.
367
Import/Export
External Calls
Tab
Presents the calls to the SRs from the functional module, and the calls to the Macrosteps not imported with the functional module (see directory tree).
The entry is enabled by a double left click on the object, confirmed by the Enter
key, cancelled by the Esc key.
The different calls are:
l Source Call:
l Target Call:
Correspondence
File Zone
This file in text format contains all the information concerning the reassignments carried out in the different tabs described above.
This information is that defined in the tabs:
l Directory Tree.
l Addresses.
l DFB.
l External Calls.
WARNING
The correspondence information is specific to the functional module analyzed. It is strongly recommended that you save your work to disk before exiting the "IMF" function, as once it is closed, all the work carried
out on the functional module is lost.
Failure to observe this precaution can result in severe injury or
equipment damage.
The commands available in the "Correspondence Files" zone are:
l Save:
l Allows you to store in a file the reassignments carried out up to that time.
l Retrieve:
368
Import/Export
The Export function can be accessed in local mode and in connected mode, with the
PLC in Run or Stop mode.
It supports export of:
l a single animation table via:
l the application browser,
l the animation table editor.
l a set of animation tables via:
l the application browser,
Rules
Exporting an animation table via the animation table editor or via the application
browser is only possible if the table is not being modified.
Exporting a set of animation tables via the application browser is only possible if no
animation table editor is open in modification mode.
The export can be interrupted at any moment by pressing the Escape key. After
confirming this, the export is stopped and no source file (*.TAB) is created.
Action:
Select the File/Export command, then the Export window is displayed on the
screen.
Confirm withSave.
369
Import/Export
Exporting a set
of animation
tables via the
application
browser
Select the File/Export command, or from the contextual menu the Export
command, then the Export window is displayed on the screen.
Exporting one
animation table
via the
application
browser
Step:
Confirm withSave.
Action:
Select the File/Export command, or from the contextual menu the Export
command, then the Export window is displayed on the screen.
370
Errors
Action:
The only error that can arise when processing an Export is insufficient disk space
available. If this happens, an error message is displayed.
Import/Export
The Import function can be accessed in offline mode and in online mode, with the
PLC in Run or Stop mode.
It is used to import the following via the application browser:
l a single animation table,
l a set of animation tables.
Rules
When importing, if there is an identity problem between the name of the imported
table and a table already existing in the application, a dialog box appears offering
the option of renaming the table being imported.
When importing, only the addresses are imported but not the symbols. Therefore,
the imported animation table is slaved the applications existing symbols database.
The import can be aborted at any moment by pressing the Escape button and after
confirming this, the import is stopped and the animation table being imported is not
imported.
For a source file containing several animation tables, the imported tables are not deleted.
Importing a table
or a set of
animation tables
via the
application
browser
Select the File/Import command, or from the contextual menu the select the
Import command. The Import window is displayed on the screen.
Action:
371
Import/Export
Errors
When importing, if the animation table contains a variable that is not configured in
the application, a dialog box indicating the problem is displayed, giving the option:
l of either ignoring the variable and continuing the import,
l or of interrupting the import so that the table being imported is not imported, but
the tables already imported are not deleted.
If, when importing, the source file contains:
l a reference to a DFB type that does not exist in the application, then a dialog box
is displayed indicating the conflict, giving the option:
l of either ignoring the variable and continuing the import,
l or of interrupting the import so that the table being imported is not imported,
but the tables already imported are not deleted.
l a reference that does not exist in the application, but whose DFB type does exist,
then a dialog box is displayed indicating the conflict, and giving the option:
l of either ignoring the variable and continuing the import,
l or of interrupting the import so that the table being imported is not imported,
but the tables already imported are not deleted.
372
Import/Export
How to export a
runtime screen
(or a family)
Action
In the Application Browser in the structure view double click on the Runtime
screens directory.
Result:
Ecrans dexploitation
Ecrans
Messages
Objets
Ecran
ACCUEIL
3 - Lisez_moi
1 - Ecran_accueil
INFORMATIONS SYSTEME
7 - Bit systmes
6 - Grafcet
DOSAGE_PRODUITS
2 - Ecran_ controle
0 - Dosage_Melange_Produits
DIAGNOSTIC_APPLICATION
8 - Surveillance_malaxeur
COMPORTEMENT DFB
4 - Ecran_comportement_DFB
5 - Informations_sur_mise_au_point_DFB
Right click on one of the runtime screen items or on a family directory (example
here: Home, Information system).
373
Import/Export
How to export a
runtime screen
(or a family)
Action
Select the Export command.
Result:
Exporter des crans
Exporter vers
Parcourir...
c:\PL7USER
Slection des crans
Ecran
ACCUEIL
Lisez_moi
Ecran_accueil
Copie de Ecran_accueil
INFORMATIONS SYSTEME
7 - Bit systmes
Exporter
374
Annuler
Choose the directory from which you wish to import the screen or the family of
screens.
Import/Export
PL7 can be used to import runtime screens or runtime screen families into your applications.
The Import function can be accessed in offline mode and in online mode, with the
PLC in Run or Stop mode.
How to import a
runtime screen
(or a family)
Action
In the Application Browser in the structure view double click on the Runtime
screens directory.
Result:
Ecrans dexploitation
Ecrans
Messages
Objets
Ecran
ACCUEIL
3 - Lisez_moi
1 - Ecran_accueil
INFORMATIONS SYSTEME
7 - Bit systmes
6 - Grafcet
DOSAGE_PRODUITS
2 - Ecran_ controle
0 - Dosage_Melange_Produits
DIAGNOSTIC_APPLICATION
8 - Surveillance_malaxeur
COMPORTEMENT DFB
4 - Ecran_comportement_DFB
5 - Informations_sur_mise_au_point_DFB
Right click on one of the runtime screen items or on a family directory (example
here: Home, Information system).
375
Import/Export
How to import a
runtime screen
(or a family)
Action
Select the import command.
Result:
Importer des crans
Importer depuis
Parcourir...
c:\PL7USER
Slection des crans
Ecran
ACCUEIL
Ecran_accueil
Importer
Annuler
Choose the directory from which you wish to import the screen or the family of
screens.
Exporting a
standard format
DFB type
376
The Export function can be accessed in local mode and in online mode, the PLC in
Stop.
Import/Export
Action
Select the disk and/or directory where the file must be saved using the pulldown menu In.
Comments:
Export from the DFB type editor is authorized whether DFB type is enabled or not.
Only an enabled DFB type can be exported from the application browser.
Export of a
binary format
DFB type
The Export binary function can be accessed in local mode and in online mode, the
PLC in Stop.
Carry out the following actions:
Step
Action
Left mouse click on the DFB type or put the cursor over it using the arrow keys.
From the context menu or using the keys Shift+F10 select Export binary.
Select the disk and/or directory where the file must be saved using the pulldown menu In.
Comment:
Export is possible if the DFB type is enabled.
377
Import/Export
Importing a DFB
type in binary
format
Importing a DFB
type in binary
format
378
Action
Left mouse click on the directory DFB Type or position the cursor over it using
the arrow keys.
Using the Contextual menu or the File menu or the keys Shift+F10 select the
command Import.
Action
Left mouse click on the directory DFB Type or position the cursor over it using
the arrow keys.
Import/Export
Specific cases
It is possible that the DFB type to be imported is already present in the application.
Three cases are possible:
l The DFB type present in the application is protected:
l In this case the import is impossible.
l The DFB type present in the application is not protected and not instanced:
l A dialog box offers to replace, rename, cancel the import of the DFB type.
l The DFB type present in the application is not protected but instanced:
l If the interfaces are identical, a dialog box offers to replace, rename or cancel
the import of the DFB type.
l If the interfaces are different, the import is impossible. It is then necessary to
delete the instances first.
379
Import/Export
Exporting an application
Introduction
The Export an application function can be accessed in local mode and in connected
mode, with the PLC in Stop mode.
Exporting an
application
without DFB
Exporting an
application with
DFB
Step
Action
On the File menu select the command Export an application, or from the directory Station using the Contextual menu or using the keys Shift+F10 select
Export an application.
Select the disk and/or the directory where the file is to be saved using the pulldown menu In.
Confirm withSave.
Exporting an application only takes into account the enabled DFB types.
Two cases are possible:
l Non protected DFB(s):
l All the contents of the DFB(s) are saved in the resulting export file *.FEF.
l Protected DFB(s) or DFB(s) exported from PL7-Junior:
l Only the names of the DFB type are saved in the resulting file *.FEF.
l The binary format of the DFB(s) (*.UFB) must also be exported (see Exporting
a DFB type (See Export of a DFB type, p. 376)).
In the two cases, the Export procedure is identical to that described above.
Exporting an
application with
animation tables
Exporting the application includes all the animation tables contained in the directory
Animation tables in the application browser.
The source file of the application (NomAppli.FEF) contains the source of the animation tables.
The Export procedure is identical to that described above.
380
Import/Export
Exporting an
application with
operating
screens
381
Import/Export
Importing an application
At a Glance
The Import application function can be accessed in offline and online mode, with the
PLC in Stop mode.
The Import application function involves:
l redefining the inputs/outputs,
l finding and replacing modified objects,
l initializing the station with the new application obtained.
Importing an
application
without DFBs
Importing an
application with
DFBs
Action
Using the Contextual menu, the File menu or the keys Shift+F10 select the
command Import an application.
Click on OK.
The function Import an application with DFB is only accessible in offline mode.
There are two possible scenarios:
l Non protected DFB(s):
l Their contents which are saved in the *.FEF are imported in the same way as
the rest of the application.
l The Import procedure is the same as that described above.
l Protected DFB(s):
l When Importing, a dialog box asks for the pathname of the binary file(s)
(*.UFB) in order to import them.
Carry out the following actions:
382
Step
Action
Using the Contextual menu, the File menu or the keys Shift+F10 select the
command Import an application.
Import/Export
Step
Action
Click on OK.
Using the Find drop-down menu, enter the name of the disk and/or directory
where the first type of DFB in the (*.UFB) list is located.
Confirm withImport.
The application import incorporates all the animation tables contained in the file
NAME.FEF.
If any non configured variables are present in the application, a list appears allowing
the user to modify the current configuration and continue with the import.
The Import procedure is identical to those described above.
Errors
383
Import/Export
The FNES file (Input/Output Neutral File) generated by an export can only be used
with a single PLC.
It contains the description of all the symbolized Inputs/Outputs, except for discrete
Inputs/Outputs when all the Inputs/Outputs are described (symbolized or not).
This functionality is only accessible in local mode.
This functionality is not accessible (menu grayed out) if a modification is being carried out in the editor and vice versa, during the execution of an Export, no other action is possible in the editor.
Only the software PL7 Pro allows access to the Export/Import FNES functionality.
Procedure
Action
From the Station directory on the Contextual menu or using the File menu or
the keys Shift+F10, select Export/Import FNES+Export FNE.
Select the destination directory and indicate the name of the file (*.FNE),
Click on Save.
Notes:
The export can be interrupted by the user using the Escape key, in this case, no FNE
file is exported.
The default directory offered is that on the Customize Options/Source directory
menu, subsequently, the offered directory will always be the last entered (for the current PL7 session).
Errors
The errors that can arise when processing an Export are insufficient disk space
available or a problem retrieving data.
An error message is displayed and the process is interrupted. If this happens, no file
is generated.
384
Import/Export
Importing a FNES file (Input/Output Neutral File) allows you to increment the applications symbols database, but does not modify its configuration data in any way.
Inserting symbols into an existing symbols database involves managing the following conflicts:
l Address conflict:
l The symbol to be read already exists in the symbols database, but represents
a different address.
l Symbol conflict:
l Comment conflict:
385
Import/Export
Procedure
Action
From the Station directory using the Contextual menu, the File menu or the
Shift+F10 keys, select Import/Export FNES + Import FNE.
Select the source directory and give the file name (*.FNE).
l
l
l
Notes:
The import can be aborted by pressing the Escape key.
The import is aborted after restoring the current object, but the objects that have already been imported remain.
The directory proposed by default is that specified in the Options/Customize/
Source directory menu. Subsequently, the proposed directory will always be the
last entered (for the current PL7 session).
If several PLCs are present in the file, a message is displayed giving the user the
possibility of consulting the list of PLCs or of canceling the import.
If the user chooses to continue the import, the list of associated applications and processors is displayed.
Errors
386
18
Introduction
Subject
Whats in this
Chapter?
Topic
Page
General
388
390
Advanced configuration
396
387
General
At a Glance
The Uni-telway tool is used to configure the operating parameters of the Uni-Telway
driver depending on the PLCs terminal port characteristics.
How to configure
the UNITELWAY
driver
The following table describes the procedure for configuring the UNITELWAY driver.
Step
Action
FPW
FPW
Configuration
OK
388
Step
5
Action
Click on the Configuration button.
Result: The dialog box below appears:
Configuration UNI -TELWAY - UNTLW01
Fichier
Edition
Port COM
?
Vitesse (bauds)
Enregistrer
COM1
300
9600
COM2
600
19200
COM3
1200
38400
COM4
2400
57600
4800
115200
Param...
Auto adaptation
(en secondes)
Ouvrir
Par dfaut
Modem
Matre
Adresse UNI-TELWAY
Base
Configure:
l the communication port,
l the transmission speed,
l the UNITELWAY address.
Click on Save.
Nombre
389
COM Port
Baud rate
Save
COM1
300
9600
COM2
600
19200
COM3
1200
38400
COM4
2400
57600
4800
115200
Param
Auto adaptation
(in seconds)
Open
By default
Modem
Master
UNI-TELWAY Address
1
Base
Description of
the COM Port
zone
Number
This zone allows you to select the terminal serial port (COM1 to COM4), to be used
for Uni-telway communication. The default value is COM1 (COM2 on TELEMECANIQUE FTX or CCX terminals).
Use the other COMs according to the availability on your hardware.
The Param. button makes the following dialog box appear:
UNI-TELWAY Configuration- Port
Automatic Configuration
I/O Address
Auto
Interrupt
Auto
OK
Cancel
By default
RS485 Port
This allows you to force the hardware configuration of the selected serial port. By
default, the configuration is determined automatically by the driver at start up.
Note: apart from with the generally marginal use of serial link cards or internal modems which do not comply with the normal values used for the serial ports hardware configuration, it is advisable to select Automatic configuration. When this
box is ticked, you no longer have access to I/O address, Interrupt and RS 485 Port.
390
Description of
the Save button
Save button:
is used to save the Uni-telway driver configuration.
The Save button appears in the following dialog box:
UNI-TELWAY Configuration- Save
Save configuration file (DUNTLW.00?)
Dynamically reinitialize driver (in the memory)
OK
Cancel
391
Function
Saving a configura- The configuration of the Uni-telway driver is saved in a configuration file
tion file
on disk (usually DUNTLW.001 in the xwaydrv directory). This file is
(DUNTLW.00?
read by the driver when the computer boots up. The modifications will
therefore be acknowledged the next time the computer is started.
Dynamically reinitialize the driver (in
memory)
Description of
the Open button
The configuration is directly described in the driver memory. Modifications are acknowledged immediately by the driver.
Dynamic reinitialization is impossible:
l if the driver is not loaded into the memory (at installation, for example),
l if the modifications relate to parameters that cannot be dynamically
modified (the COM port, for example),
l if the driver is being used (if the PL7 is connected, for example).
OK
Cancel
392
Element
Function
The configuration of the Uni-telway driver is read in a configuration file on disk (usually DUNTLW.001). From this, you can view
and modify the drivers initial configuration (read upon start-up).
Description of
the Default
button and the
Modem button
OK
Telephone number
HAYES Initialization
Cancel
ATV1E0B0F0&M0X4&E0&D2D
By default
Function
Connection by
MODEM
Telephone
number
HAYES Initialization
Is used to define the HAYES command string emitted by the driver in order
to initialize the MODEM each time it connects.
Note: Consult the documentation of your MODEM to ensure that it is initialized correctly. By default the MODEM connection is disabled.
393
Description of
the Master
button
UNITELWAY master
Polled slaves
Base
Number
Cancel
31
By default
100
The Uni-telway master check box is used to select the protocol management in
master mode on the PC.
The Base and Number fields respectively are used to input the first slave and the
number of slaves on the PC which may or may not need to be scanned. The default
values are base 1 and number 31.
With Polled Slaves the Base will inform the master of the slave address from which
it will start to scan and the Number will be the number of slave addresses to scan.
With Reserved Slaves (not polled), these are the addresses that the PC reserves
for applications using the Uni-telway driver which transmit to the slaves. The Base
will therefore be the first address and the Number will depend on the application using the driver (with PL7, Number=3). These addresses must not be used by a slave.
The Time Out field gives the polling response time in milliseconds.
Note: it is not advisable to enter a value lower than the 100ms default value, because of the PCs timing constraints (high CPU consumption for low timeouts). By
default, master mode is disabled.
394
Ad0=1
Ad1=2
Ad2=3
Slave 1
Ad0=4
Ad0=5
Slave 2
Ad0=6
Ad0=7
Ad0=8
Slave 3
Ad0=9
Ad0=10
Slave4
395
Advanced configuration
At a Glance
How to access
advanced
configuration for
the Uni-telway
driver
Action
From the configuration window click on File then select Advanced configuration, as shown in the following window:
Configuration UNI -TELWAY - UNTLW01
Fichier Edition ?
Enregistrer
Ctrl+E
Port
COM
Vitesse (bauds)
Ouvrir
Ctrl+O
300
9600
COM1
Configuration Avance
Ctrl+A
600
TousCOM2
paramtres par Dfaut
Ctrl+D19200
1200
38400
COM3
Quitter
COM4
Param...
2400
57600
4800
115200
Auto adaptation
(en secondes)
Enregistrer
Ouvrir
Par dfaut
Modem
Matre
Adresse UNI-TELWAY
Base
Nombre
Parit
Sans
Impaire
Paire
Types de cable
Tous types
TSXSCA72
TSXSCA72+
TFTXCBP02
RS232
Power Management
Dvalider lAPM en connect
396
Bits de donnes
7
8
Bits de
1
2
OK
Annuler
Par dfaut
Divers
COM share
Hold COM
Use VCD
Read
Enable FIFO
NUM PLC
Link TimeOut
-1
RXTX Delay
-1
Ack TimeOut
1000
CAUTION
Advanced parameters may only be modified by special instruction from
the software using the Uni-telway driver or under the supervision of the
technical support department of Schneider Automation SA.
Failure to observe this precaution can result in injury or equipment damage.
397
398
19
Presentation
Subject of this
chapter
Whats in this
Chapter?
Topic
Page
General
400
402
Advanced Configuration
406
399
General
At a Glance
The FIPWAY tool is used to configure the operating parameters of the terminals
FIPWAY driver.
How to configure
the FIPWAY
driver
The following table describes the procedure for configuring the FIPWAY driver.
Step
Action
UNITELWAY Driver
XWAY Test
FPW
FPW
Configuration
OK
400
Step
5
Action
Click on the Configuration button.
Result: The dialog box below appears:
Configuration FIP FPC 10 - Par dfaut
Fichier
Edition
Adresse FIPWAY
Instance driver
Mode FIPWAY
Rseau
Station
31
Enregistrer
FIP01
Ouvrir
FIP02
Par dfaut
Adresse FIPIO
Mode FIPIO
Point de raccordement FIPIO
63
Configure:
l the FIPWAY operating mode and address,
l the driver instance,
l the FIPIO operating mode and connection point.
Click on Save.
401
Edit
FIPWAY address
Instance driver
Save
FIP01
FIPWAY mode
Network
Station
31
Open
FIP02
By default
FIPIO Address
FIPIO Mode
FIPIO connection point
63
Description of
the FIPWAY
Address zone
This zone is used to select the FIPWAY operating mode (the driver is selected on
the FIPWAY network), as well as the network parameters and associated stations.
Network gives the network number and Station gives the station number.
The default values are Network: 0 and Station: 31.
Description of
the FIPIO
Address zone
This zone is used to select the FIPIO operating mode (the driver is selected on a
FIPIO bus) for the driver, as well as the associated Connection point The default
connection point is 63.
Description of
the Driver
instance zone
This zone is used to select the driver instance to be modified. In most cases only
one FPC10 card is installed on the computer for FIP communication. Thus, only the
FIP01 driver instance will be used. However, if a second FPC10 card is installed, a
second driver instance FIP02 is necessary.
402
Description of
the Save button
Save button:
is used to save the FIP FPC10 driver configuration.
The save button makes the following dialog box appear:
FIP FPC10 Configuration - Save
Save a configuration file (DFPWAY.00?)
Dynamically reinitialize the driver (in the memory)
OK
Cancel
Element
Function
The FIP FPC10 driver configuration is saved on disk in a configuration file (usually DFPWAY.001). This file is read by the
driver when the computer boots up. Modifications are taken
into account the next time the computer is booted up.
The configuration is written directly to the driver memory. Modifications are acknowledged immediately by the driver.
Dynamic reinitialization is impossible:
l if the driver is not loaded into the memory (at installation, for
example),
l if the modifications apply to parameters which cannot be
dynamically modified (for some advanced parameters for
example).
l if the driver is being used (if the PL7 is connected, for example).
403
Description of
the Open button
OK
Cancel
Function
Open a
configuration file
(DFPWAY.00?)
Read current driv- The configuration is read directly in the driver memory. From this you can
er configuration
view and modify the drivers real time configuration. This selection is de(in memory).
activated if the driver is not loaded into the memory (at installation, for example).
404
Description of
the Default
Button
405
Advanced Configuration
At a Glance
How to access
advanced
configuration for
the FIPWAY
driver
Action
From the configuration window click on File then select Advanced configuration, as shown in the following window:
Management properties of XWAY drivers
XWAY Manager
FPC10 Driver
UNITELWAY Driver
XWAY Test
FPW
FPW
Configuration
OK
16
I/O Address
210h
Interrupt
RBUF
IRQ 3
ABUF
IRQ 5
IRQ 10
IRQ 11
IRQ 15
IBUF
Page align
PRUC
Transfer mode
Programmed I/O mode
OK
Cancel
DMA Mode
DMA Channel
WorldFIP
By default
Channel 5
Channel 6
Channel 7
The I/O Address fields, the Interrupt, Transfer Mode and DNA Channel zones
are used to adapt the driver configuration to the FPC10 card hardware configuration. Modify these values if you modify the hardware configuration of your
FPC10 card in relation to the factory configuration.
406
CAUTION
Significant risks
The other advanced parameters may only be modified by special instruction from the software using the FIP FPC10 driver or under the supervision of the technical support department of Schneider
Automation SA.
Failure to observe this precaution can result in injury or equipment damage.
407
408
OS Loader
20
Introduction
Subject of this
chapter
Whats in this
Chapter?
Topic
Page
410
412
Downloading an OS
413
414
415
409
OS Loader
This software is used to update the operating system on the TSX Micro and TSX
Premium PLCs by a download via the terminal port.
It also gives the option of reinstalling a previous version of the OS.
The functions of
the OS Loader
410
OS Loader
How to access
the OS Loader
Action
Prt
411
OS Loader
How to access
the OS version
display
Action
Rfrence Commerciale
TSX 57352
Type Mtier
CPU
Variante Matrielle
VL
3.7
IE
88
OK
412
OS Loader
Downloading an OS
Preliminary
operations
Before installing the new operating system on the PLC, you are advised to:
l copy the contents of the CD-ROM containing the OS into a hard disk directory
and work from this directory (downloading time optimized),
l consult the Readme.txt file document on the CD-ROM.
Disconnect the PLC from all networks before downloading.
The Uni-telway driver must be installed on the terminal and must be the only resident
driver.
Dedicated features of the TSX Micro: set the "Write Project" micro-switch (situated in the battery recess), into the OFF position. When the download is complete, put
the micro-switch back into the ON position.
How to select an
OS
Downloading a
new OS
Action
Select the drive containing the OS CD-ROM (or the hard disk directory to which
it has been copied).
Action
413
OS Loader
Communication errors are caused by certain events (loss of connection, power outage).
These errors can be classified into two types:
l minor,
l fatal.
Minor errors
Fatal errors
414
OS Loader
Action
Cannot load
Disconnect the unit which is reserving the PLC.
the binary file to be loaded Warning : the application will be lost when the OS is loaded.
is incompatible with the
application in the PLC
415
OS Loader
416
Windows
21
Presentation
Subject of this
chapter
Whats in this
Chapter?
Topic
Page
418
419
421
422
423
424
425
427
428
429
430
417
Windows
PL7 online help describes the set up of various software editors in a sequential fashion. It provides detailed information on:
l users access rights,
l PL7 general information (setting up an application, addressing bit objects and
words, memory management, etc.)
l PL7 language instructions (functions, syntaxes, operands),
l using PL7 (programming, debugging, diagnostics),
l TSX Micro and Premium application-specific functions (Process control, Upcounting, Weighing, etc.).
Access mode
using PLC
418
Windows
Illustration of the
browser
Index Find
Close
Cancel
419
Windows
Accessing the
browser
Contents tab
Step
Action
Select the Index command from the ? menu or click on the icon ?
? .
Index tab
Step
Action
Select the Find ... command from the ? menu or click on the ?
? icon then select
the Index tab.
Find tab
420
Step
Action
Windows
Contextual Help is used to directly access information from the selected element.
Accessing the
Contextual Help
Action
? icon,
Select the Whats this? command from the ? menu or click on the ?
Select the element for which you require technical information (menu, screen, toolbar, etc.).
Step
Action
421
Windows
Organization of
workspace
windows
You can open several windows at the same time on your PC.
Example: Configuration editor, MAST task section, FAST task section, etc.
In order to quickly reorganize all the open windows on the screen, select the PL7
Window menu and click on the appropriate sub-menu.
The following table shows you the different sub-menus and their functions:
Sub-menu
Function
Cascade
Arranges the open windows so that the title bar of each of them is visible.
Tile Horizontal- Tiles the open windows side by side so that they are all visible horizontally.
ly
Tile Vertically
Tiles the windows side by side so that they are all visible vertically.
Arrange Icons
Note: To quickly access one of the open windows, select its name at the bottom of
the Windowmenu.
Modification of
the applications
directory and the
working
directory
422
When PL7 opens an existing application, it copies it into the working directory; all
modifications are made on this copy which must be saved using the File Save
command in the application archive directory.
The working directory disk and the application directory are defined at installation
and can be modified with the Option Custom command. The modifications will
take effect after the next PL7 session.
Windows
Combination of keys producing the same effect as a command using the mouse.
The screen displays the keys to press to activate the required function from the keyboard: you just need to type ALT + the underlined letter for the menus and the buttons and only the underlined letter for the sub-menus.
Illustration
PL7 PRO
Tools
New...
Open
Exit
PL Options ?
RUN
STOP
STOP
?? ??
Ctrl+Q
1 Demo5725.stx
To open the File menu you must type ALT+F, and to open the sub-menu New... type
N.
423
Windows
The following keys or combination of keys can be used to select the menus and the
commands.
This table shows the keys or combinations of keys and their functions:
Press
to..
ALT or
F10
Select the first menu from the menu bar or cancel the selection.
ALT +
character
key
Choose the menu whose number or underlined letter corresponds to the one
that you are typing.
ENTER
A character key
ESC
424
l
l
Windows
To work in a dialogue box you can use various keys or combinations of keys.
The following table shows the keys or combinations of keys and their functions:
Press
to..
TAB
Go from one option to another (from left to right and from top to bottom).
SHIFT+TA
B
ALT + char- Select the option or the group whose number or underlined letter corresponds
acter key
to the one you are typing.
An arrow
key
move the cursor from selecting one option (e.g.: button) to another in a
group of options,
or move the cursor to the left, right, up or down in a list or text field.
HOME
END
Page Up
and Page
Down
ALT+Page
Down
Open a list.
SPACE
l
l
l
CTRL+/
(forward
slash)
CTRL+\
(back
slash)
SHIFT+ arrows
SHIFT+HO
ME
SHIFT+EN
D
425
Windows
Press
ENTER
426
to..
l
l
l
ESC or
ALT+F4
Arrow keys
Moving the cursor or insert point into the text fields or entry fields.
Windows
The following table shows the keys or combinations of keys and their functions:
Press
Go back
DEL
to..
l
l
l
l
SHIFT+DEL
SHIFT+INS
Paste the text from the clipboard into the active window.
CTRL+INS
SHIFT+Z
427
Windows
The following keys can be used in most Windows applications, but they do not necessarily work everywhere you can select text or in all applications. All the following
selections start at the insert point. If a text is already selected, the keys cancel the
selection.
The following table shows the keys or combinations of keys and their functions:
Press
To select or deselect..
SHIFT+Page Up
SHIFT+Page Down
SHIFT+HOME
SHIFT+END
428
CTRL+SHIFT+HOME
CTRL+SHIFT+END
Windows
To work in the windows or theProgram management group, you can use various
keys and combinations of keys.
The table below shows the keys or combinations of keys and their functions:
Press
to..
F2
Rename an element.
F3
CAP + DEL
ALT+Enter
CTRL+A
Select all.
F5
429
Windows
Description
Print management:
l takes care of printing the document while you continue to work on other Windows
applications,
l indicates problems if an error occurs,
l prints the documents on a local or network printer.
Note: It is possible to print several documents at a time or one document after the
other. The documents are then placed in a queue which is used to verify printing
information.
How to install a
printer
430
Action
Click on Run.
Click on Parameters.
Click on Printers.
Click on add a printer and follow the instructions of the Add printer assistant.
Glossary
A
Animation table
Table created by the user or created contextually from within a language editor or
an operating screen.
In connected mode allows you to view the development of the PLCs variables and
to force the values when debugging.
ASCII
Auto Run
Function which allows you to automatically execute the application program on the
PLC at initialization.
B
BIT
Block functions
431
Glossary
l
l
l
l
l
Breakpoint
Timer,
Monostable,
Up/down counter,
Drum,
Register.
C
Comment
A comment of 508 characters can be associated to each address even if the latter
does not have a symbol, from within the variables editor.
Comment for ST
language
Constants
Memory unit (Bit, Word, Dword, etc.) whose contents cannot be modified by the program being executed.
CPU
CU
432
Glossary
D
DFB
The DFB types (Derived Function Blocks) are function blocks which can be programmed by the user in ST or LD language.
Using these DFB types in an application:
l simplifies the design and input of the program,
l improves the readability of the program,
l facilitates its debugging,
l decreases the amount of code generated.
PL7 Pro software is needed to create a DFB type.
DFB instance
This regards a copy of a DFB type when the latter is called from within a language
editor.
The instance has a name. Input/output interfaces, public and private variables are
duplicated (one duplication per instance, the code is not duplicated)
A DFB type can have several instances.
Documentation
Contains all the information on the application, the documentation is printed after being put together and is used for maintenance purposes.
It contains information regarding:
l hardware and software configuration,
l the program,
l the DFB types,
l the variables and the animation tables,
l the cross references.
When putting the documentation together, it is possible to include only certain headings, if the user so wishes.
Driver
Program which informs the operating system of the presence and characteristics of
a peripheral.
E
Events
433
Glossary
F
FAST task
Task activated periodically (the period controlled in the configuration of the processor) used to execute a part of an application with superior priority to a MAST (master) task.
Flash EPROM
FNES
Function
Functions delivered with PL7 and accessed from the Tools/Library menu.
The user has only to parameterize these functions. He can develop others with the
help of a development kit SDKC which is an option of PL7.
Function view
View allowing you to see the program part of the application by means of functional
modules created by the user (see definition Functional module).
Functional
module
A functional module is a grouping together of program elements (sections, subroutines, macro-steps, animation tables, operating screens) intended to carry out an
automation function.
A functional module can itself be broken up into functional modules of a lower level,
these modules taking on, in relation to the main function, one or several automation
sub-functions.
G
Grafcet
434
Grafcet language.
Grafcet language conforms to "Sequential Function Chart" language (SFC) of the
IEC 1131-3 standard.
Grafcet allows the operation of sequential automation to be represented graphically
and in a structured manner.This graphical description of the automated sequential
performance and the different situations which arise is carried out with the help of
simple graphical symbols.
Glossary
I
Instructions for
ST language
An instruction can be either simple (Assign, Increment, Call SR) or control structure (IF, WHILE, FOR, REPEAT...). The character ; is obligatory at the end of each
instruction.
L
Label
A label (optional) allows you to find a statement or a rung in a program module and
is required to allow a jump after a GOTO instruction.The following syntax %Li:with i
between 0 and 999.
The label is positioned at the beginning of the statement or rung and can only be
assigned to a single statement or rung within the same program module.The order
of label address is not important, it is the input order of the statements or rungs which
is taken into account by the system at scanning.
Ladder
Rung language.
A program written in rung language is composed of a series of rungs executed sequentially by the PLC.
LIST
M
Macro-step
Mono task
Multi task
435
Glossary
O
Operating screen
This is a tool integrated into software applications PL7-PRO and PL7-PRODYN from
version 3.0 onwards. It is intended to facilitate the operation of an automated process. The end-user controls and monitors the operation of the installation and in
case of a problem, he can act quickly and easily.
P
Protection
Function preventing the reading of the contents of a program module (read protection), or the reading and modifying of the contents of a program module (read/write
protection).
Protection is confirmed by a password.
R
RS 232C
Communication series standard which defines among others the following service
voltage:
l a signal of +12V indicates a digital 0,
l a signal of -12V indicates a digital 1.
However detection to thresholds of +3V and 3V is allowed in case of a weakened
signal.
Between these two bounds, the signal will be considered invalid.
RS 232 links are quite sensitive to interference.The standard recommends not exceeding 15metres in distance and 9600 bauds (bits/sec) maximum.
RS 485
Run
Function which allows you to execute the application program on the PLC.
436
Glossary
Rung
A rung is entered between two potential bars in a Ladder editor and is composed of
a group of graphical elements joined to each other by horizontal or vertical links.The
maximum dimensions of a rung are 16 lines and 11 columns (for PLCs TSX/PMX/
PCX 57), or 7 lines and 11 columns (for PLCs TSX 37) split into two zones:the test
zone and the editing zone.
S
Section
Program module belonging to a task (MAST, FAST) which can be written in a language chosen by the programmer (Structured Text, Ladder, List, Grafcet).
A task can be made up of several sections, the order of execution of the sections
within the task corresponds to the order in which they were created. This order can
be modified.
ST
Statement
Step
Stop
Function which allows you to stop the execution of the application program on the
PLC.
Subroutine
Program module belonging to a task (MAST, FAST) which can be written in a language chosen by the programmer (Structured Text, Ladder, List).
A subroutine can only be called by a section or another subroutine (nesting) belonging to the task in which it is registered.
Symbol
437
Glossary
It allows you to personalize a PLC object in such a way as to facilitate the maintainability of the application, it is used on the PLC if the user wants to.
T
Task
Group of sections and subroutines, executed cyclically or periodically for the MAST
task or periodically for the FAST task.
A task has a level of priority which is linked to the input and output.
Time Out
Exceeding delay.
Stopping of the application or deconnection following a too-long period of inactivity.
Transition
V
Variable
438
Memory unit of a type (Bit, Word, Dword, etc.) whose contents cannot be modified
by the program being executed.
B
AC
Index
A
Access to a subroutine, 163
Access to PL7, 47
Accessing a statement or instruction list, 154
Accessing a subroutine, 185
Accessing the configuration, 85
Adjustment of the application specific
functions, 305
Animating the program, 285
Animating variables, 314
Animation of variables, 310
Application browser, 102
Application opening, 49
Assisted entry of a function in List, 161
B
Backing up, 60
Breakpoint, 297
C
Comments, 229
Comparing applications, 58
Configuration editor, 28
Connections, 20
Counter/ down counter, 241
Create section, 105
Creating a DFB instance, 265
Creating a DFB type, 261
Creating a functional module, 248
Creating a Grafcet module, 203
Operate modes manual 9/2000
D
Debugging, 35
Debugging functional modules, 306
Designing a Grafcet program, 196
Detaching/Deleting functional modules, 251
DFB debugging, 308
DFB Diag error messages, 329
Display variables, 235
Displaying variables, 127, 157, 179
Documentation, 334, 337
Downloading an OS, 413, 414
Drum, 241
E
Editing a section, 111
Editing a sub-program, 111
Editing an event, 111
Entering a DFB instance, 268
Eprom Flash Back up, 59
Event, 110
439
Index
F
FIPWAY Configuration, 400, 406
Forcing analog inputs
TSX Micro, 303
TSX Premium, 304
Function block, 182
Function blocks and DFB instances in
Ladder, 139
Function modules, 246
Functional module debugging, 250
Functional module export, 362
Functional module import, 364
L
Ladder Editing, 30
Library function (ST editor), 183
Limitation of the OS Loader, 415
Link configuration, 390, 402
List Editing, 31
List of forced bits, 317
Grafcet configuration
TSX 37, 82
TSX 57, 99
Grafcet debugging, 288
Grafcet graphic objects, 198
Memory Usage, 63
Modification of the program in Run mode,
284
Modifying a network of contacts, 122
Modifying a Structured Test program, 176
Modifying Grafcet programs, 216
Modifying section order, 112
Modifying variables, 316
Module call stack, 326
Module configuration
TSX 37, 78
TSX 57, 94
Module/channel diagnostics, 323
Monostable, 240
440
P
Parametrizing the function blocks, 239
PL7 address, 62
PL7 Security, 46
Presymbolization of variables, 232
Print management in Windows, 430
Index
TSX 57
module configuration, 96
U
Uni-telway Configuration, 388
Uni-telway configuration, 396
V
Variables editor, 29
Variables in EXCEL format, 360
R
Register, 241
Replacing a variable, 143, 164, 186, 219
Runtime screens, 113
W
Windows
short cut keyboard, 429
short cut keyboards, 424, 425
Working with animation tables, 312
Saving an application, 53
Sending a command to the PL7, 65
Series 7 timer, 240
Short cut keyboard, 427, 428
Software configuration
TSX 37, 81
TSX 57, 98
Software installation, 21
Sorting variables, 234
Specific Ladder input, 121
Step by step mode, 300
Structure of a List program, 152
Structure of an ST program, 174
Structured language editor (ST), 32
Symbols, 229
T
Timer, 240
Transferring a program from PC, 55
Transferring data, 57
TSX 37
hardware configuration, 86
module configuration, 80
supply configuration, 88
441
Index
442