Manaual Software Fst4 Full
Manaual Software Fst4 Full
Manaual Software Fst4 Full
Software package
FST
Version 4
Volume 1
Programming in
Statement List and
Ladder Diagram
Manual
en 0403NH
[682 297]
Contents and general instructions
Editor . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . M. Holder
Original . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . de
Edition . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . en 0403NH
Designation . . . . . . . . . . . . . . . . . . . . . . . . P.BE-FST4-B1-DE
1. Scope of use
2. Copyright note
III. Warranty
License Agreement
7. Festo does not guarantee that the software will satisfy all
applications and purposes intended by the user/purchaser,
specifically that it will run trouble free and is compatible with
all other used programs.
The responsibility for correct selection and the consequences
of using the software in the environment selected by the user
and also the thus intended and achieved results therefore
lies with the user/purchaser himself. The same applies to the
written material accompanying the software. Use of the pro-
grammed software does not, therefore, exempt you as the
customer from the obligations and responsibility to observe
and comply with computer and security-related conditions
and also a comprehensive function test.
V. Safety Guidelines/Documentation
Warranty and liability claims in conformity with the aforemen-
tioned regulations (items III. and IV) may be raised only if the
user has observed the safety guidelines of the documenta-
tion in conjunction with the use of the machine and its safety
guidelines. The user himself is responsible for ensuring that
our software package is compatible with the machine
employed.
Contents
Festo terms and conditions for the use of software packages . . . . . . . . . . . . . . . . . . . III
Designated use . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . XV
Safety regulations . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . XV
Intended readership . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . XVII
Service . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . XVII
Notes on the use of this manual . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . XVII
Important user instructions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . XVIII
Current information on FST 4.1 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . XX
Contents of the software package: . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . XXI
Requirements for the PC . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . XXI
Conventions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . XXII
Product-specific terms and abbreviations . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . XXIII
C. Index . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . C-1
Designated use
Safety regulations
The user must ensure that nobody has access to the position-
ing range of the connected actuators. The danger area must
be made inaccessible by means of suitable measures such as
protective screening and warning signs.
Warning
Depending on the function of the machine/system, the
manipulation of signal states can cause serious physical
injury and damage to property.
Exercise extreme caution when using the Change func-
tion in order to avoid damage.
Caution
Incorrect parameterising can cause physical injury and
damage to property.
When setting the parameters, always observe the
instructions in the CPX system description and/or the
description for each device or module.
Caution
The command interpreter (CI) contains commands that
reorganise or delete parts of the memory. This destroys
existing data.
Only use CI commands if you know their effects!
Note
The online display always shows the signal status valid in
the process image. You should therefore observe the fol-
lowing when Forcing:
Forced input statuses are transferred to the process
image and therefore detected by the control. These are
visible in the online display.
Forced output statuses are not transferred to the pro-
cess image and therefore not detected by the control.
They are therefore not shown in the online display.
Note
If you globally disable or enable forces or globally delete
the channel-oriented force settings (Force table), all signal
statuses constrained by forces may also be rendered in-
valid or valid respectively.
Intended readership
Service
Please consult your local Festo service centre if you have any
technical problems.
Danger categories
This manual contains instructions on the possible dangers
which may occur if the product is not used correctly. These
instructions are marked (Warning, Caution, etc.), printed on a
shaded background and marked additionally with a picto-
gram. A distinction is made between the following danger
warnings:
Warning
This means that failure to observe this instruction may
result in serious personal injury or damage to property.
Caution
This means that failure to observe this instruction may
result in personal injury or damage to property.
Please note
This means that failure to observe this instruction may
result in damage to property.
Pictograms
Information:
Recommendations, tips and references to other sources of
information.
Accessories:
Information on necessary or sensible accessories for the
Festo product.
Environment:
Information on environment-friendly use of Festo products.
Text markings
Note
Please note the current information is in the file
README.TXT in the main directory on the CD-ROM.
FEC Standard
FEC Compact
PS1.
FED Designer
Help
Function key F1 takes you straight to a context-based Help
page.
a CD-ROM,
this manual.
Pentium-compatible PC with:
30 MB hard-drive memory,
CD-ROM drive,
Conventions
[File] [New...] Menu entries appear in square brackets, e.g. the command
[Project new ...] opens a new project in the menu [File].
Term/abbreviation Meaning
Allocation list List of all operands used in the project. A symbolic operand name and
comment can be entered for each absolute operand.
Command Interpreter (CI) Part of the PLC operating system which accepts and processes
commands via a communication interface.
Executive part STL program that contains only one executive part of an incomplete
sentence. Conditions that start with IF and an executive part that starts
with THEN are omitted.
I Digital input
I/O modules Collective term for modules which provide digital inputs and outputs
(input modules and output modules)
I/O scripts Files that enable the hardware configuration of the controller in use to
be replicated.
Ladder diagram (LDR) Graphic-based PLC programming language for which the program
instructions are based on the principle of electrical circuits.
Parallel logic program STL program consisting of pure STL sentences, which is completely
processed in cycles (like a standard LDR program).
O Digital output
Term/abbreviation Meaning
Operands Operating resources and internal memory elements of a PLC/IPC.
These include inputs, outputs, flags, indexes etc.
Process image The process image is part of a controllers system memory. At the start
of the cyclical program, the signal states of the input assemblies are
transferred to the process image for the inputs. At the end of the
cyclical program, the process image for the outputs are transferred to
the output assemblies as the signal state.
Real-time clock Independent of the supply voltage to the PLC/IPC and always delivers
the correct time and date.
Runtime library Contains several I/O scripts and drivers for the supported controller
types.
Step program STL program in which one or several STL sentences are grouped and
structured into individual steps. Program branches (jumps) enable
certain steps to be skipped.
Chapter 1
Contents
Contents of this chapter This chapter provides an overview of the components and
functionality of the FST software. It contains basic informa-
tion on:
FEC Compact
FEC Standard
PS1 Professional
deinstall FST.
Note
If a different version of FST is already installed, deinstall
this software before installing the new version
(see Section 1.1.2).
Welcome
Devices and external CPX terminal with integrated Front End Controller is supported
tools that are also FED Designer
supported
Diagnosis Support for breakpoints (provided the runtime system supports the
connected control)
Miscellaneous Integrated Web Browser for displaying the Start page of the connected
control (uses MS Internet Explorer functions)
Search function for simple selection of IP address
Projects can be conveniently sent by email
Message window: is now a docking window
1 2 3
6
7
Title bar As with most Windows applications, the left side of the title
bar contains the system menu field that you can use to open
the system menu corresponding to the window. The right
side of the title bar contains the symbols Minimize, Maxi-
mize and Close. You can use these symbols to reduce the
FST program window to its symbol, toggle between full
image and window display or finish working with the FST
software.
Menu bar The menu bar is located at the top edge of the FST program
window below the title bar. Clicking on the menu names
opens the menu. Alternatively, you can open a menu by
pressing the ALT key and the corresponding code letter at
the same time. This menu is underlined in the menu title.
The menus offer the following commands:
[Edit] Undo, clipboard commands (cut, copy etc.), find and replace, select all
[View] Opens various internal editors such as record list editor, I/O configuration, PLC
settings, displays message window, shows and hides various symbol bars
[Insert] Inserts new programs and modules into the project and new entries into the active
window, e.g. in the driver configuration
[Program] Manages control programs and prints the contents of the active window
[Online] Commands for communication between FST and the connected control
[Extras] Changes FST settings, manages the FST library, configures and selects external tools
Toolbar The standard position of the icon bar is below the menu bar.
However, it can be also be dragged onto the workspace as a
separate window.
Workspace In this area, you can work with the various windows of the
FST software.
Project window In the project window, you can manage and configure all
features of your control project.
Program window You can edit your programs by opening the corresponding
program window.
Icon for a window To improve the overview, you can also reduce individual
windows in the workspace to an icon.
Status bar The status line is located at the top edge of the FST program
window. The status bar contains the following information:
1 2 3
2 Number of the current line and number of lines or entries in the active
document
3 These areas indicate the active key functions (see Table below)
Fig. 1/6: Status bar
Commands in Description
the [Window]
menu
[Close] Closes the active document and/or program window. If the document contains
unsaved changes in the active window, the relevant prompt will appear. You can
also close FST windows using the Close button in the title bar of the
corresponding window.
[Tile Horizontal] Splits the document window equally from top to bottom
[Tile Vertical] Splits the document window equally from left to right
[Arrange Icons] Minimises the windows to icons at the lower edge of the FST program window.
[1 ..., 2 ...., 3 ... ] A list of names for the opened windows is shown in the bottom section of the
menu [window]. A tick indicates which window is active. Clicking on a window
name activates that particular window.
The window edge Position the mouse pointer at an edge or corner of the win-
dow and it will turn into a double arrow. You can now hold
the left mouse button down and move the edge or the
corner of the window to change its size.
Picture scroll bars The picture scroll bars are located at the bottom and right
edges of a window. They are shown only if the window con-
tent will not fit into the workspace for this window size.
The picture scroll bar shows the horizontal and vertical posi-
tion of the window content. Move the position of the window
content by holding the mouse button down or clicking on the
buttons.
Commands in Description
the [Edit] menu
[Cut] 1) Deletes selected objects from the current window and places them on the
clipboard. The previous clipboard content is lost.
[Copy] 1) Copies selected objects from the current document to the clipboard.
[Paste] 2) Inserts the contents of the clipboard to the current document at the selected
position.
[Delete] 1) Deletes selected objects from the current document. The data are not copied to
the clipboard.
[Find...] Opens the Find... dialog that enables you to search for text in the current
document.
[Global find...] Opens the Global find... dialog that enables you to search for text throughout
the entire project.
[Replace...] Opens the Replace... window that enables you to replace text in the current
document.
1 Multiple-column 3
list field
2
2 Column header
3 Buttons with
other commands
1
[Help] menu
Information on various topics can be selected using the fol-
lowing commands in the [Help] menu:
Tabs Description
Chapter 2
Contents
Contents of this chapter This chapter provides an overview of the basic functions
featured in the FST software.
Configure Proceed as follows to set the directory path for the higher-
project directory order project directory and apply general FST settings:
Field Description
Project directory Higher-order directory (folder) to which the individual FST projects
are saved in their own directories.
Prompt for Allocation List When a new operand is entered into a LDR or STL program, a window
entries opens to enable it to be entered into the record list at the same
time.
Add symbol/operand to Indicates the symbolic name of the operand and the allocation list
automatic comment comment in the LDR and STL program.
Docking Project Window 1) Enables the project window to be fixed to the left or right side of the
FST program window
Note
If you wish to use DOS Tools, e.g. FST fieldbus configura-
tors, the project directory must not contain long file names
(max. 8 characters) or spaces.
Note
Projects created for FST 3.x cannot be used until converted
to FST 4.x. You should therefore use a directory that does
not contains projects created for FST 3.x.
.\PROJECTS
4. Now select the controller type for the new project and
enter a comment.
Note
You can also save your own, project-related files in the
project directory. You must, however, select file names that
are not used by FST as otherwise these files may be over-
written.
Note
Each project contains in its directory a file named
PROJECT.FW4, which contains the current project
settings (e.g. comment and controller type). Never make
manual changes to this file.
Field Description
Created Indicates the date and time on which the project was
created and its author.
Icon Operation
Open project
Delete project
Note
A project update is not possible if:
programs have been added or removed,
the driver configuration has been changed.
When you select the [Project] [List Project File] menu com-
mand, the content of the last created project file is displayed
in the message window. This file is transferred as the result of
preparing the project for downloading (compiling) to the con-
troller. The display provides useful information for trouble
shooting.
You can print all or just certain parts of the current project.
The documents are printed on a standard printer configured
under Windows. The print settings for your standard printer
can be configured in the corresponding Windows dialog.
Title Page The title page contains the project name, information on FST version, date,
time and the name of the user.
Documentation The project documentation is printed only if the PROJECT.TXT file exists in
the current project. If you have changed the name or extension of the file,
you must print with the same editor you used to edit the file.
Program and Module The program list shows all programs and modules in a sorted list with
Overview comment. The programs selected for downloading are tagged with a star.
Program and Module File size, date and other information on the program and/or module.
Properties
Programs, CMPs, CFMs Source code for the program and modules
(Source Code)
Log Files The result of the last compilation for each program/module compiled in the
project. The original rung for each imported program/module.
Cross Reference List The cross reference list contains the operands used in the programs with
lines/rungs for the occurence in a sorted list. The database for creating the
cross-reference list is created when the programs are compiled. The
cross-reference list can therefore be printed only if the project has been
compiled.
2. Select the project parts you wish to print and confirm with
OK. The printing operation will then start.
A header and footer are printed on each page (apart from the
title page). The header contains the project name, comment,
controller type and name of the project part on the page. The
footer contains the page number and print date.
Print to file
You can use the Print STL line numbers checkbox in the
bottom section of the window to prevent line numbers in STL
programs from being printed out.
If you set narrower margins than permitted for the printer, the
printout will be incomplete.
Note
The hardware in a FST project must be correctly configured
so that all cards, modules and functions used within the
project occupy the correct input and output addresses.
2.3.1 Hardware configuration for PS1, FEC Standard and FEC Compact
the switch position for each I/O card to be set for clear
identification. A specific I/O area of the process is
assigned internally.
Editing functions
The sequence of entries can be changed by cutting and past-
ing. The corresponding functions appear in the Edit menu
or context menu. They always relate to the selected entries.
Items are always pasted before the selection or, if nothing is
selected, at the end of the list. The number of entries is dis-
played in the status line.
Note
Configuration changes cannot be cancelled using the [Edit]
[Cancel] command. If the configuration contains a I/O card,
the file for which does not exist in the FST library, the mis-
sing file is shown in brackets []. If the I/O configuration
contains unknown cards, the project cannot be down-
loaded into the project.
Field Description
Window/area Description
Configuration table Tabulated display of the hardware configuration. For each module, module
position, type and start addresses of the occupied I/O address area are
displayed in columns.
Tab. 2/7: Windows and areas of the hardware configurator for the CPX terminal
[Editor] (Offline mode) A dot in front of the [Editor] command indicates Editor ac-
tive (Offline mode). All context menu commands relate to
the illustrated nominal configuration.
Saving actual If you have connected a CPX terminal with FEC to your PC,
configuration as you can upload its configuration, address mapping and
nominal configuration parameterisation and use as the nominal configuration.
Proceed as follows:
1 Active online
connection is
displayed in the
title line
1
Actual nominal If required, you may compare the nominal and actual con-
comparison figurations. You can select which data are to be used as the
nominal configuration:
1 Module position 1 2 3 4 5
with checkbox
column
2 Nominal
configuration
3 Actual
configuration
4 Information on
the differences
5 Button for
calling-up further
information on
the differences
Note
Configuration changes cannot be cancelled using the
[Edit] [Undo] command.
Arrange the modules from left to right in line with the physical
sequence on your CPX terminal.
Catalog If the catalogue is closed, you can open it using the [View]
[Catalog] command or the [Catalog] command in the context
menu.
Checking configuration
Reset configuration
All parameters and the address mapping can be restored to
the factory settings.
2. Select the settings you wish to reset and confirm with OK.
Options Description
Valves 32 ... 63
The CPX terminal also provides system data, module data and
diagnostic data.
Group Description
Once a dialog has been opened, you can view and change its
parameters.
Fig. 2/28: CPX system settings (in this case, online mode)
Index Description
System Data Shows important CPX terminal system data and contains the Clear Force
(online only) table button (immediately deletes all channel-specific force settings).
System Parameters Enables system parameters to be changed and contains the Defaults button
(resets the displayed settings to factory settings).
Trace parameters Enables diagnostic memory parameters to be changed and contains the
Defaults button (resets the displayed settings to factory settings).
System Status Displays the group diagnostic message and contains the Trace button
(online only) (displays the content of the diagnostic memory).
Index Description
Module Displays important module data and number of occupied input addresses.
Parameters Enables module parameters to be changed and contains the Defaults button
(resets the displayed settings to factory settings).
Diagnosis Displays the module diagnostic data and contains the Trace button (displays the
(online only) content of the diagnostic memory).
Force Mode Enables channel-specific Force settings to be changed and contains the Clear
(online only) table button (immediately deletes the displayed force settings).
[Defaults] Resets all parameters of the tab to Resets all parameters of the tab to
the factory setting. the factory setting.
[OK] Parameter changes are applied to Parameter changes are used for the
the current nominal configuration current nominal configuration and
and the dialog is closed. the dialog is closed.
3. Select the tab for the parameter type (see also Tab. 2/11
and Tab. 2/12).
Caution
Incorrect parameterising can cause physical injury and
damage to property.
When setting the parameters, always observe the
instructions in the CPX system description and/or the
description for each device or module.
5. In online mode:
If you want to transfer the settings you have made,
confirm with Apply or OK.
The new parameter settings will then be transferred to the
connected device.
In offline mode:
If you wish to apply the new settings to the nominal
configuration, confirm with Apply or OK.
Refresh In online mode, you can upload the configuration and para-
meters again using the [Refresh] command in the context
menu.
Button Description
Note
Configuration changes cannot be cancelled using the [Edit]
[Undo] command. They are saved immediately!
Note
Any drivers contained in the configuration for which
descriptions do not exist in the FST library are shown in
brackets []. The settings for this driver are displayed (if
present), although cannot be changed. If the driver con-
figuration contains an unknown driver, the project cannot
be downloaded.
Viewing and changing View and change the properties for the selected drivers as
driver properties follows:
Press the DEL key or select the [Edit] [Delete] menu com-
mand or select the [Delete] command from the context
menu.
Reset Specifies whether on stop, all programs are to be reset or simply Active
Programs halted via the start/stop switch and/or whether on start, all halted
programs are to be continued or only P0 is to be continued and/or
restarted via the start/stop switch (see also Tab. 5/26).
If an error occurs and an error program is not present, all programs
are reset irrespective of the setting.
Select this option if you do not want, as well as activating the P0
program, all programs to be stopped (halted). Reactivate
programs when the start/stop switch is set to Start (rising
edge).
When a start signal is received, all halted programs are continued
via the online control panel or the R CI command. Use the RPO
CI command if you want to continue only the program 0.
Stop Program Specifies the program to be started via the start/stop switch or the 0
online control panel when the system stops. The stop program (no stop
enables a system to be moved to a safe operating status in the event program)
of a stop. It is not started if the controller is stopped by an error (see
info. under Error Program).
Programs 1 to 63 are permissible. 0 denotes No stop program.
Please note that a restart is possible when the stop program is still
active, e.g. via a corresponding lock in the start program, such as:
STEP
Wait until stop program 42 has finished
WHEN N P42
THEN NOP
Error Output Indicates whether an output is to be set in the event of an error. If Inactive
this is the case, enter the output to be used into the input field.
It is not checked whether a physical output card is configured
for this output.
As long as the error is still present, the error output is not reset.
Error Program Specifies the program to be started in the event of an error (see 0
also Section 5.5.2). Programs 1 to 63 are permissible. 0 denotes (no error
No error program. program)
Reset Outputs 1) Only for PS1, FEC Standard and FEC Compact 1): Active
Specifies whether all outputs are to be reset when:
the start/stop switch is set to Stop (negative edge)
the S CI command is executed
an error occurs and no error program is present
1) With the CPX terminal, this setting is set via the idle mode parameter.
2.5.2 Drives
Make the settings for the drives of your controller in the Drives
tab of the Controller Settings dialog (see also Section 2.5).
Project File Drive on which the project file is to be stored in the con- CPX-FEC: B
troller. FEC Compact: B
FEC St
Standard:
d d B
Startup Batch Drive on which the STARTUP.BAT start batch file is to be HC0X: B
stored in the controller. This is executed automatically on HC1X: C
start. HC2X: C
FST Kernel Drive on which the FST main program runtime is to be stored CPX-FEC: A
in the controller. FEC Compact: A
FEC Standard: A
HC0X: A
HC1X: A
HC2X: C
2.5.3 Options
Controller Number of the serial port on the controller that is to be used by CPX-FEC: 0
COM Port the FST PLC operating system for CI communication. FEC Compact: 0
FEC Standard: 0
HC0X: 0
HC1X, HC2X: 1
Note
Do not forget the password! The password is generally
saved in the connected device. Password protection re-
mains active even when a dialog device is active. It is not,
however, connection-oriented. Password protection can be
activated or deactivated equally by all communication
partners.
Online password allocation: Password can be permanently changed or deleted via the online
with the online control panel control panel or the CI command. 1)
(see section 2.9.2) Password protection is activated:
by CI command when the project is restarted (e.g. Power OFF/ON). 1)
(see section 5.6.10) via the online control panel or CI command.
Store password in the project: Password is transferred and permanently stored in the project on
in the Password tab with the downloading. Changes via the online control panel or CI
Controller settings command therefore have only a temporary effect.
(see Fig. 2/37) Password protection is activated:
when the project is restarted (e.g. Power OFF/ON).
via the online control panel or CI command.
1) The passwort is then only stored residually if operands are also stored residually
(see also Section 5.1.1).
Stop project before Specifies whether an active project in the controller is to be Inactive
download halted before download.
Download source Specifies whether all sources required to restore the project are Inactive
files to be stored in a ZIP file in the controller. The downloaded sources
can be restored using the [Online] [Upload Project] menu
command.
Download modified Specifies whether the driver files are to be transferred to the Active
driver files control.
Deactivate this function if you want to avoid overwriting driver
files already present in the controller, if, for instance, they were
downloaded using a different FST version.
These settings do not affect their respective settings as the
configuration data are stored in the project file.
Symbolic operands You can specify any symbolic name for the operand. If, for
instance, output O5.3 switches a motor on and off, you can
define this output in your programs as MotorOn. Symbolic
operands can be assigned to absolute operands in the al-
location list.
The name must not contain more than 9 characters and must
start with a letter or an underscore (_). Any combination of
letters, numbers and the underscore can then follow; spaces
are not permitted. A valid, absolute operand is not permitted
as a symbolic operand.
Word number
Character for Word
Character for operand type (in this case O for Output)
Bit number
Dieresis
Word number
Character for operand type (in this case O for Output)
Note
Changes to the allocation list cannot be cancelled using
the [Edit] [Undo] command. They are saved immediately!
Field Description
Absolute Operand Type and address of the operand (e.g. O2.4 or FW1 etc.)
Symbolic Operand Any symbolic designation of the operand must not consist of more than 9 char-
acters (e.g. MotorOn). The first character must be a letter or an underscore (_).
Spaces and the following characters are not permitted: \ / : * ? . < > |.
Comment Brief explanation on the operand; must not contain more than 36 characters.
New items can be entered into the allocation list even when a
program is being entered (see Sections 3.2.2 and 4.2.3).
You can also create and edit the allocation list using a table
editor, e.g. Excel. Select the area to be copied and/or insert
location and use the cut, copy and paste functions in the
[Edit] menu, either in FST or the table editor program.
You can use the Strings Editor to edit the initialisation strings
for the STRINGS driver.
Note
All strings from the initialisation file are shown, even when
there are more than were entered into the STRINGS driver.
If you change the file name for the strings in the settings for
the STRINGS driver, the entries from the old file are not auto-
matically transferred. If you want to transfer the strings, use
the clipboard functions in the Edit menu.
Special characters
Special characters are shown by combining two characters,
the \ and one other. The following special characters are
possible:
64 programs
Note
Observe the following regulations when creating programs
or modules.
Only program 0 is automatically activated at system
start.
If you create a program that already exists, the old one
is overwritten following a prompt.
If you create a program with the same number but a
higher version number, a copy of the previous version is
automatically transferred providing the programming
language is consistent.
CI commands RB and RF use the local operands of
program P63. You should therefore avoid using this
program number if you want to call modules via CI
command.
Field Description
Type Program
CMP stands for program modules (sub-routine with or without steps)
CFM stands for function modules (sub-routine without steps)
Version FST can manage up to 9 different versions of a program. Only one version can be
downloaded.
Comment To aid program identification, you can enter descriptive text on the program here
(max. 255 characters).
*) Only program 0 is automatically activated at system start.
Note
There is a separate library for each controller type. The
corresponding directory is configured automatically. If you
wish to change the controller type at a later date, you must
reimport the modules from the library for the current
controller type.
1 Only with
modules:
Parameter index 1
Index Description
Parameters *) Enables a brief informative text on the input and output parameters of the
(modules only) module to be entered or indicates this information.
*) This information is used internally to enter module calls into a program.
Note
When a program or module is deleted, the corresponding
file is removed from the data carrier.
Make sure that you no longer need the file. If necessary,
create a backup copy beforehand (e.g. by exporting).
or
or
Note
Prior to compilation, the relevant program is saved auto-
matically.
The result of the compilation is also entered into the error list
for the program (for the program properties in the Log File
tab, see also Section 2.8.4).
1 Selected
programs and
modules
or
RS232 port
RS232 link Controller and computer are usually linked in series via the
RS232 port. This involves creating a simple point-to-point
link with a zero modem cable via the COM port on the com-
puter and the COM port on the controller.
Select the COM port on the controller from the PLC settings
(Controller Settings) in the Options tab. The default setting
is the RS232 port on the central unit of the controller (COM or
COM1).
TCP/IP link You can set-up a TCP/IP link with an Ethernet cable via the
Ethernet connection. The TCP/IP link has several advantages
over the serial connection, e.g. higher transfer speed and
the option of linking several controllers and PCs together in
one network.
Note
If you change settings for the online link, all opened online
windows will close automatically.
Project Name of the current project in the controller, if none is shown, no project has
been downloaded.
Error Error status of the controller with brief description. The following are displayed:
General errors: <Error number><Program number><Step number> 1) 2)
CPX error (42): <42><CPX error number><Module number> 3)
I/O error (11, 12): <Error no.>,<255>,<No. of input or output word>
Memory Indicates the memory currently available compared with the memory available after
the driver and the runtime system were downloaded
Access Indicates via the buttons with the locks whether the controller is password-
protected (see Tab. 2/26).
1) If the program has no steps (e.g. LDR programs), step 0 is displayed.
2) Further information on the general FEC errors appears in Section 5.5.5.
3) Information on CPX errors appears in the CPX system manual.
Switch Description
Stop project; all programs are deactivated and all outputs rest
in dependence of the PLC settings.
Halt project; program processing is interrupted. All active programs are halted
in dependence of PLC settings.
Remove project from the working memory of the controller; the project and all drivers
are stopped. If you want to reactivate the project, you must reload it or boot the
controller.
Buttons
Password protection
If the controller is password-protected, you must enter a
password to obtain full access to change the operands. The
dialog for entering passwords is offered at login.
Changing the update You can set the waiting time between two requests for the
speed online display. The set Update Speed is effective in all
online windows of the same type, e.g. in all online display
windows.
Setting online display Multi-bit values can be displayed in the following formats:
format
hexadecimal.
User defined list In the User defined index, you can group together a list of
operands for the display. The error word (EW) or the error
status (E) are also permitted.
Festo fieldbus The Festo Fieldbus index indicates which users are
present when the index is first activated on the fieldbus. If
the configuration in the master has been changed, activate
Refresh Display from the context menu to update the user
list.
Strings The Strings tab enables you to view and change the
strings.
If you wish to use strings in a FST IPC project, you must enter
and parameterise the STRINGS driver in the driver configura-
tor (see Volume 2).
Note
For technical reasons, it may not be possible to display or
change, either partly or completely, strings with special
characters in the online display. This applies specifically to
the following special characters: \0, \a, \n, \r, \11, \14.
Use these special characters in the online display to
prevent the strings being manipulated.
Goto operand
In the online display, you can skip to an operand.
Warning
Depending on the function of the machine/system, ma-
nipulation of signal states can cause serious physical in-
jury and damage to property.
Exercise extreme caution when using the change func-
tion in order to avoid damage.
1. Move the mouse pointer over the current value and select
the [Modify Operand] command from the context menu.
Depending on the operand type, a corresponding dialog
will appear for modification, e.g.:
Forcing inputs Forcing an input does not change the input signal and can
also not be observed on the corresponding status LED. The
logical status of the input is modified internally and in some
cases has an effect on the program. The forced input status
is transferred to the input process image. The online display
therefore shows the forced input signal.
Note
The online display always shows the signal status valid in
the process image. You should therefore observe the fol-
lowing when forcing:
Forced input statuses are transferred to the process
image and therefore detected by the controller. These
are visible in the online display.
Forced output statuses are not transferred to the pro-
cess image and therefore not detected by the controller.
They are therefore not shown in the online display.
Note
If you globally disable or enable forcing, all signal statuses
enforced by forcing may be immediately rendered invalid
or valid respectively.
If the current force settings are not known, you should first
create a clear starting status for the forcing, e.g. by deleting
all channel-oriented force settings.
Globally deleting force The online display enables the channel-oriented force
values settings to be globally deleted for the entire controller.
Note
If you globally delete the channel-oriented force settings
(force table), all enforced signal statuses immediately be-
come invalid. All signal statuses from the process image
are again valid.
Note
With the CPX terminal, the global deletion of force values
returns the following channel-specific module parameters
to their factory settings:
Force mode: 0 (forcing disabled for this channel)
Force state: 0 (force value for this channel 0)
With the CPX terminal, forcing can also be enabled using the
hardware configurator (see Section 2.3.2). Further informa-
tion on forcing with the CPX terminal appears in the CPX sys-
tem manual.
Changing force values Change the force values of inputs and outputs as follows:
1. Move the mouse pointer over the current value and select
the [Modify Operand] command from the context menu.
Depending on the operand type, a corresponding dialog
will appear, e.g.:
Note
With the CPX terminal, the deletion of a force value returns
the following channel-specific module parameters to their
factory settings:
Force mode: 0 (forcing disabled for this channel)
Force state: 0 (force value for this channel 0).
1 Path name 1 2
(current folder)
2 Function bar
3 Transfer status
(red = transfer
running)
4 Transfer status
(green = transfer
complete)
5 Status line
5 4
Fig. 2/64: FST file transfer window
The status line in the window indicates the size of the se-
lected file, the overall size of all files and the free memory
area on the drive.
Details View with details; file name, file size and created date displayed as list
Change view
The Details and List buttons can be used to toggle
between the views as required. The Update button en-
ables you to upload and display the current directory
again.
If you want to change the drive, select the new one from
the selection box on the function bar.
During the data transfer operation, the red lamp in the status
line illuminates and the current transfer status is displayed.
To cancel the current data transfer, click on Stop.
1. Select the required file and press the DEL key or click on
the Delete button.
You can call up web pages in your controller using the web
browser integrated into FST. Requirement:
Opening the web browser Open the integrated web browser as follows:
Update Update view (current web page is uploaded and displayed again)
Start page 1) Display Main.htm stage page, if present. Display Index.htm standard
homepage, if Main.htm is not present.
1) The web server driver already contains standard HTML pages. The standard homepage is called
Index.htm. Call the homepage you generate yourself Main.htm.
I/O scripts The I/O scripts enable the hardware configuration of the
controller in use to be replicated. For the CPX terminal, FST
contains a special hardware configurator (see Section 2.3.2).
No I/O scripts for this type are therefore managed in the
runtime library.
Managing runtime library You can use FST to conveniently manage the runtime library.
You can:
You must open the runtime library before you can make
changes.
Note
Changes made in the FST library affect all projects. If you
deinstall I/O scripts or drivers that are already being used
in projects, you can no longer download these projects to
the controller without re-installing the I/O scripts and
drivers.
The I/O scripts are managed in the FST Library dialog in the
IO Modules index (see Fig. 2/67). The multi-column list field
indicates the installed I/O scripts (I/O cards) for the selected
controller type. Meaning:
Column Description
File File name of the I/O script (I/O scripts have the file
name extension *.IOD)
Installing a new I/O script Open the runtime library and then install a new I/O script as
follows:
1. From the list field, select the controller type for which you
would like to install an I/O script.
Extracting an I/O script Open the runtime library and then extract an I/O script as
(copying) follows:
Deinstalling I/O scripts Delete a selected I/O script from the library as follows:
Column Description
Installing drivers Open the runtime library and then install a new driver as
follows:
1. From the list field, select the controller type for which you
would like to install a driver.
Extracting drivers Open the runtime library and then extract a driver as
(copying) follows:
De-installing drivers Delete the selected driver and all corresponding modules
from the library as follows:
Only the first 25 calls are entered into the Extras menu.
Opening management Open the dialog for managing the program calls as follows:
dialog
Icon Operation
Run tool
Field Description
Release COM Ports Select this option if the external tool uses the same serial port as FST.
When the external port has been called, it then occupies the serial port.
While this port is active, FST cannot use it to set-up a link.
Reload project Current project is closed prior to the external tool being called and
reopened when the tool is terminated.
Changes to the external tool in the project are then directly visible.
If you select this option, after the external tool is terminated, the current
project is re-opened so that changes made via the tool are visible. The
option is valid only if Minimise FST main window has also been selected.
Macro Description
<<<ALLPROJECTS>>> Higher-order project directory; presides over the directories containing the
projects, e.g. C:\FST4\PROJECTS
Macro Description
<<<#2>>> (obsolete) x
Chapter 3
Contents
Contents of this chapter This chapter describs the functions of the STL editor and the
options of the STL online display. The STL editor is used to
create your user programs. The STL online display enables
you to display status information and also display and
change operand values while the controller program is
running.
Step program
(stepwise program execution, see Section 3.3.1)
The white display field of the STL tab displays the name
and size of the selected font.
Use ELSE instead of Check this option if you want to use the STL keyword ELSE
OTHRW instead of OTHRW. The default is OTHRW.
STL shortcut The STL shortcut facility offers direct access to STL key-
words. The shortcut features one button for each keyword.
Click to insert the required keyword at a current position.
OTHRW/ELSE Introduces an alternative run part that is run when the condition under IF is not
satisfied.
AND, OR, EXOR, N Logical linking of single-bit or multi-bit operands and constants
SHL, SHR Shift all bits in the multi-bit accumulator one position to the left (SHL) and/or
to the right (SHR)
ROL, ROR Rotate all bits in the multi-bit accumulator one position to the left (ROL) and/or
to the right (ROR)
NOP No operation
You can use the INS key to toggle between insert and
overstrike mode. If insert mode is set, ON appears in
the status line.
Comments
You can make comments in your STL program in one of two
ways:
Example
Long comments You can enter long comments via an entire line. They begin
with a double quotation mark.
Example
1 Table header
Fig. 3/5: Selecting from the allocation list
You can change the width of the columns in the table header
using the mouse. Each column of the window is sorted alpha-
betically by clicking on the column header. Clicking again
reverses the sorting sequence.
If you have not yet imported the required module into the
project, click on Import... (for further information on im-
porting, see Section 2.8.2).
Clipboard
The editor supports the Windows clipboard for copying text.
Program text can be copied or moved between other Win-
dows applications.
All the text can be selected using the [Edit] [Select All]
menu command.
Use the DEL key or the [Delete] menu command if you wish to
delete the current selection without copying it to the clip-
board.
2. Enter the text you are looking for in the Searching for
field and the new text in the Replace with field and set
the search options.
If after closing the dialog you want to find the same text
again, select [Edit] [Find next] or press the F3 key. The pro-
gram will search for the previous found text without opening
the dialog.
Global find
The [Global Find...] command searches for text or operands in
all programs of the entire project. Only the program source
texts are searched.
Undo changes
You can undo program changes one-by-one.
To undo all changes made since the last save, close the
program without saving it.
Note
Changes are automatically saved without a prompt if you:
change the program properties
compile the program or the project.
Printing
In order to print the current status of the program source
in the active editor window, select [Program] [Print...].
STL sentence The STL sentence forms the bottom level of a STL program.
Each STL sentence may comprise a condition part and must
comprise an executive run part.
Condition part Contains the logical and/or arithmetical links. The condition part always starts
with IF. If the programmed links deliver the result true, the instructions in the
executive part of the sentence are executed.
Executive part Contains the actions to be executed. The executive part begins with THEN and
is run only if the condition part delivers the result true.
Example
STEP<label>
IF SWITCH1 Condition part
AND SWITCH2 ...
THEN SET LAMP1 Executive part
OTHRW SET HORN ...
IF Condition part
THEN ... Executive part
STL programs can be broken down into steps using the step
instruction. These programs are then referred to as step pro-
grams. Programs without step structure are referred to as
parallel logic programs. The following table provides an over-
view of the possible structures:
Step program Program that is broken down into sections (STEPS). Up to 255 steps (1...255)
are possible. If the program cannot move onto the next step, the instructions
for the current step are executed cyclically (stepwise program execution).
Parallel logic pro- Program consisting of pure sentences without step structure. The entire pro-
gram gram is run cyclically.
Executive part Program that consists only of an executive part and contains no condition part.
You can mark each step with a symbolic step label. The jump
instruction (JMP TO step label) enables program branching.
Example
STEP label1
IF I1.0
THEN SET F1.5
OTHRW RESET F1.5
STEP label2
THEN RESET F0.0
IF F1.5
THEN SET O0.7
SET F0.0
OTHRW SET O0.0
JMP TO label1
STEP label3
IF F0.0
AND I0.0
THEN SET O0.4
STEP label4
...
Example
Example
SET F0.0
RESET O1.0
LOAD V50
AFTER TW7
SET T7
CMP2
...
STL structure
Example
STEP setup
...
...
...
THEN JMP TO setup
The program only moves forwards from one step to the next if
in the last sentence of the step a THEN or OTHRW instruction
was executed.
IF IF instruction
Example
Example
Example
...
THEN SET O1.0
OTHRW RESET O1.0
Condition part
In the condition part, you can create complex conditions.
You can use the logical links indicated below to link single-bit
or multi-bit operands in the condition part (see also Section
A.2.5).
Example
IF I1.0
AND I1.1
THEN SET O1.0
OTHRW SET O1.7
OR OR link
Example
IF I1.0
OR I1.1
OR I1.7
THEN SET O1.0
OTHRW SET O1.7
Example
IF I1.0
EXOR I1.1
THEN SET O1.0
OTHRW SET O1.7
NOP No operation
Example
IF NOP
THEN SET F1.0
N Negation
Example
IF N O1.0
THEN JMP TO Init
Executive part
Example
Example
You can use the logical links indicated below to link multi-bit
operands bitwise in the condition part (see also Section A.2.5).
JMP TO Jump to
Example
STEP label
IF I1.0
THEN SET O1.0
JMP TO Start
...
...
STEP Start
...
Special functions
The SWAP instruction swaps the high-value byte for the low-
value byte in the multi-bit accumulator.
Example
First the multi-bit must be loaded and then any SHIFT instruc-
tion can be executed.
Example
STEP 10
IF I1.0
THEN LOAD I1.1
SHIFT O1.1 swap F0.0
SHIFT O1.2 swap O1.1 <-> O1.2
SHIFT O1.1 swap O1.2 <-> O1.3
SHIFT O1.4 swap O1.3 <-> O1.4
STEP 20
IF N I1.0 wait until input
is deactivated
THEN JMP TO 10 repeat
Example
Example
This instruction has the same effect as SHL except that the
highest-value bit is pushed completely to the left out of the
accumulator and reaccepted as an overflow to the right as the
lowest-value bit.
Example
Example
Example
CPL 2s complement
Example
IF ( R32
< V0 )
THEN LOAD R32
CPL
TO R22
Arithmetical instructions
INC Increment
Example
IF I1.3
THEN INC R9
DEC Decrement
Example
IF I2.2
AND N I3.6
THEN DEC R9
Operation Description
+ Addition
Subtraction
* Multiplication
/ Division
= Comparison: equal
Example
IF ( FW0
= V1234 )
AND ( R1
<> V0 )
THEN...
Module calls
Example
IF I1.2
THEN CFM 0 Realtime clock:
Set clock
WITH V4 Hour, 0..23, (FU32)
WITH V30 Minute, 0..59, (FU33)
WITH V0 Seconds, 0..59, (FU34)
WITH V0 Hundredths of secs, 0..99,
(FU35)
You can use the online control panel to start, stop or halt the
entire project.
On denotes 1 signal.
Executing a cycle
To execute only one step of the program shown in the
online display, select the [Execute one Cycle] command
from the context menu. The program will then run a PLC
cycle.
Breakpoints
Note
To set breakpoints, a runtime main program Version 2.26
or higher is required. The CI terminal shows you, for
example, the version in use (see also Fig. 2/65). With older
versions, the functions described below are not available.
For test purpose, you can set breakpoints in the online dis-
play. The program is then halted and is not continued until
the next start command.
Temporary Yellow bar The program is breaked at the defined point and the break-
(Only once) point is then automatically deleted.
Permanent Red bar The program is breaked at the defined point without the
(Always) breakpoint being automatically deleted.
Break after Break after The program is breaked after the cycle is
Next Cycle Each Cycle executed.
Icon Operation
Chapter 4
Contents
Contents of this chapter This chapter describes the functions of the LDR editor and
the options of the LDR online display. The LDR editor is used
to create your user programs. The LDR online display en-
ables you to display status information and also display and
change operand values while the controller program is run-
ning.
1 2
3
7
6 5 4
1 2
LDR tab:
the tie line between the condition part and the executive
part (see also Fig. 4/2)
2 4
3 5
1 Extended
selection
(dotted triangle)
LDR shortcut bar The LDR shortcut bar offers direct access to all LDR
elements.
Multi-bit operations
Counter box
Timer box
Jump
Other symbols
Rung number LDR programs consist of rungs. These are tiled vertically
and can be separated by a tie line. Each rung is tagged on
the left side with a continuous number. The numbers are
assigned automatically.
Jump labels For each rung, one jump label can be entered (max. 9 char-
acters or figures). A maximum of 255 jump labels per pro-
gram are possible. The input field for the jump label is lo-
cated adjacent to the rung number.
Rung comment For each rung, you can enter a multi-line comment
(see Fig. 4/7).
2 2 2
1 Input field for absolute or symbolic 2 Input field for operand comment
operand
1 Table header
Fig. 4/10: Selecting from the allocation list
You can change the width of the columns in the table header
using the mouse. Each column of the window is sorted alpha-
betically by clicking on the column header. Clicking again
reverses the sorting sequence.
Clipboard
The editor supports the Windows clipboard for copying text.
An internal clipboard is used to copy graphic elements. copy
or move text or LDR symbols or entire rungs within the FST
software. Text can also be copied or moved between other
Windows applications.
Use the DEL key or the [Delete] menu command if you wish to
delete the current selection without copying it to the clip-
board.
Find/Replace/Global find
As when working with the STL editor, you can also find and
replace strings in the LDR editor, e.g. operands and
comments. Further information can be found in Find... and
Replace and Global Find... in Section 3.2.2.
Undo changes
You can undo program changes one-by-one.
To undo all changes made since the last save, close the
program without saving it.
Note
Compiling a project or running a syntax check on the
program saves all changes.
Zoom function
A picklist in the symbol bar enables you to control the size in
which a LDR program is to appear on the screen. Possible
values range between 25 % and 400 %. Individual values of
between 10 % and 500 % can be entered manually. The de-
fault value for all objects is 100 %.
The zoom function is available only in the LDR Editor. The set
zoom level is saved in the project as a property. Changes in
size do not affect the printout.
Contacts
Contacts request signals from inputs, outputs and other
single-bit operands. A distinction is made between closer and
opener. In the FST software, closers are shown as two vertical
lines in parallel (| |). Openers (|/|) are generated by negating
(/) a closer. The single-bit operand to which the request is to
be made is entered directly above the contact symbol.
Request for 1 signal A present 1 signal is transferred to the right if the operand
(Closer) reports 1 signal. Otherwise, a 0 signal is transferred.
Request for 0 signal A present 1 signal is transferred to the right if the operand
(Opener) reports 0 signal. Otherwise, a 0 signal is transferred.
<> Unequal to
Coil symbols
Coils represent the outputs of the controller via which the
actuators are addressed following processing of the input
signals. When programming a PLC/IPC, you can influence all
single-bit and multi-bit operands via the corresponding coil
symbols. Coils are shown in brackets ( ). The selected oper-
ation is displayed in the bracket (see Tab. 4/4). The operand
to which the operation is to relate is entered directly above
the coil. The following operations are available:
Single-bit operation
Multi-bit operation
DECREMENT With a rising edge on the condition part, the value of the
(Decrement) operand is decreased by 1 (implicit edge detection).
INCREMENT With a rising edge on the condition part, the value of the
(Increment) operand is increased by 1 (implicit edge detection).
Boxes
Operations in the executive part besides those shown by coils
(see Section 4.3.2) are shown by a box. The following oper-
ations are possible:
Multi-bit operations
Counter
Timer
Module call.
All actions defined by a BOX in the executive part are run with
an rising edge of the link result.
Multi-bit operations
Words are processed by multi-bit operations. The operands in
Festo PLC/IPCs are organised into 16 bit wide words. Each
word consists of two bytes (8 bits per byte). The multi-bit
operations can be sub-divided into:
SHL Shift to left All bits of a multi-bit operand are shifted to the
left; right bit becomes 0
SHR Shift to right All bits of a multi-bit operand are shifted to the
right; left bit becomes 0
ROL Rotate to left Moves all bits left and accepts the bit pushed
out the left as a low-value bit.
ROR Rotate to right Moves all bits right and accepts the bit pushed
out the right a a highest-value bit.
Counter
Timer
Module call
Jump
You can use the online control panel to start, stop or halt the
entire project.
On denotes 1 signal.
Executing a cycle
To execute only one step of the program shown in the
online display, select the [Execute one Cycle] command
from the context menu. The program will then run a PLC
cycle.
Breakpoints
Note
To set breakpoints, a runtime main program Version 2.26
or higher is required. The CI terminal shows you, for
example, the version in use (see also Fig. 2/65). With older
versions, the functions described below are not available.
For test purposes, you can set breakpoints in the online dis-
play. The program is then halted and is not continued until
the next start command.
Temporary With LDR none The program is halted at the defined point and the break-
(Only once) point is then automatically deleted.
Permanent With LDR none The program is halted at the defined point without the
(Always) breakpoint being automatically deleted.
Break after Next Cycle Break after Each Cycle The program is halted after the cycle is executed.
Chapter 5
Contents
Contents of this chapter This chapter provides an overview of the functions featured
in the FST PLC operating system.
Further information Extra functions of the PLC operating system can be added by
downloaded drivers and modules.
w word number
b bit number
Operands
Note
The table below shows the maximum address range sup-
ported by FST. Information on any controller-specific devi-
ations can be found in the documentation on the controller
in use.
Inputs 256 possible input words (0...255), each with 16 bit (0...15),
can be addressed either as word or bit.
Input bit
Syntax Iw.b
Iu.w.b *)
Operations Request
*) Only with fieldbus systems
Input word
Syntax IWw
IWu.w *)
Operations Compare
*) Only with fieldbus systems
Output bit
Syntax Ow.b
Ou.w.b *)
Output word
Syntax OWw
OWu.w *)
Flag 10,000 flag words (0...9999), each with 16 bit (0...15), can
be addressed either as words or bits.
Flag bit
Syntax Fw.b
Flag word
Syntax FWw
Index
Syntax Rw
Timer There are 256 timers (0...255) available. All can be pro-
grammed in LDR either as pulse (T), delayed switch-on
(TON) or delayed switch-off (TOFF) timers. Only pulse timers
(T) are available in STL.
Timer word
Syntax TWn
Timer preset
Syntax TPn
Pulse timer=Tn
Syntax Cn
Counter word
Syntax CWn
Counter preset
Syntax CPn
Constants Constants are designated with V and must lie within the
permissible value range.
Constants
Syntax Vn
Function units There are 256 function units (FU) available. Of these, 7
(FU32 to FU38) are used to transfer parameters. The remain-
der can be used as required.
Function units
Syntax FUn
Program and program The program and program status operands provide informa-
status tion on the status of the corresponding program.
Program (single-bit)
Syntax Pn
Syntax PSn
0 0 Inactive
0 1 Reserved
Error status and The error status specifies whether an error is present.
error word The error word contains any fault number.
Syntax E
Values 0: No error
1: Error
Error word
Syntax EW
Values 0: No error
> 0: Error number
Initial execution flag The initial execution flag is 1 for a programs first run and
then automatically resets to 0.
Operations Request
5.2 Multi-tasking
after a step has been at the end of a program at the end of the program
processed and after a jump has been
executed
Example
Step 1 Rung 1
Rung 2
Rung 3
Step 2 Rung 5
...
Step 3
Example in STL
STEP Call
IF I0.1
THEN SET P2 Activate program 2
RESET P4 Deactivate program 4
Example in LDR
The LDR symbols --( )-- (assignment) and --( / )-- (negation)
cannot be used to activate and deactivate a program. They
are not permitted for the P operand.
Example 1
Program 0
Program 4
Program 0
Program 3
Program 4
Program 0 ... etc.
Example 2
Program 0 Step 1
Program 4 Step 1
Program 0 Step 2
Program 4 Step 2
Program 0 Step 3
Program 2 Step 1
Program 4 Step 3
Program 0 ... etc.
= <Type>,0,<Status>,<Step number>
With FST, you can use the PLC settings (see Section 2.5) to
influence the runtime behaviour of your control. You can, for
example:
Note
The start/stop input is active only if the start/stop switch
of the controller (where present) is set to Start.
Phase Action
Power on Level-sensitive
After bootup
Start 1) Online control panel Continue halted programs Continue halted programs
CI command R (RUN) Start P0 if active Start P0 if active
The Run LED of FEC and HC0X controllers displays the current
status of the program processing.
A new error is entered into the error word if this has a value of
zero, i.e. no error has previously occurred. This means that
only the first error is saved, later ones are ignored.
With the CPX terminal, you can set the required signal status
in the event of a fault by parameterising (Fail safe parameter-
ising).
The error word and error output are deleted by deleting the
active project in the controller (Y command) or downloading a
project. Starting or stopping the project or individual pro-
grams (via CI or start/stop switch) does not delete the error.
If the error program has been defined in the PLC settings, the
linker checks whether the program exists. Function module
F21 does not perform this check. If a non-existent program is
selected, the system responds as if no error program had
been defined.
0 No error
6 Program 0 should have been started but is Create and download Program 0.
not present.
9 Program cannot be started due to an error Check project and reload. A driver should
in the project file PROJECT.RUN. be used although not loaded or a driver is
loaded but cannot be used because the
relevant conditions are not satisfied. The
required driver hardware may not be
present or is incorrectly configured.
Possibly insufficient working memory in
the controller.
11 I/O card faulty, short circuit at output or Replace I/O card, clear short circuit no
no power supply. connect power supply.
12 I/O card not found Check I/O card; check switch position on
the card and in the I/O configuration.
14 Driver to be started not found. A required Integrate driver, set parameters correctly
driver cannot be found or cannot run due in driver configuration and check
to an initialisation error. The correct hardware.
environment (hardware, parameters) may
not exist for the driver.
Drivers and modules may cause errors that are not described
here. Information can be found in the documentation for the
corresponding driver (see Volume). Drivers usually generate
error numbers that are calculated as follows:
Driver number * 100 + x
Note
The FST contains a Terminal Emulator (see Section 2.9.6)
that enables you to send manual CI commands to the Com-
mand Interpreter. The term Command is used below to
mean both command and instruction.
Serial port The serial port on the controller to be used by the CI for
communication can usually be set under Controller
Settings in the project.
Caution
With CPU Module HC16: The integrated COM port does not
feature a FIFO. With high CPU utilisation, CI commands
may be lost.
With high CPU capacity utilisation, use the CI only in com-
bination with an external serial port (COM2 or COM3).
HC2X 1 Integrated COM port (default) or COM1 on a CP3x module, if the integrated
COM port has been deactivated
TCP/IP If the correct FST drivers are installed, the CI can also be
accessed via additional COM ports or TCP/IP.
Note
Please note that some functions of the additional CI ports
are limited.
Caution
The command interpreter (CI) contains commands that
reorganise or delete parts of the memory. This destroys
existing data.
Only use CI commands if you know their effects!
Login with FST All online functions of the FST use the CI. You can also send
manual CI commands via the CI terminal integrated into FST
(see Section 2.9.6).
Login with Terminal or The CI is registered on a connected terminal after either DC4
Terminal Emulator (Control T) has been entered or a hardware break has been
transferred. Any command currently being processed is
cancelled.
DC4 (Ctrl T)
Method Description
1 When BREAK is received, the speed is changed in cycles twice to 9600 baud and
once to 2400 baud. This is the default method.
3 2400 baud is always set (advisable with slow modem connections and when using
Field PC Net alias MpRAM).
4 When BREAK is received, the speed is changed in cycles three times to 2400 baud
and twice to 2400 baud.
FST knows these new login methods and will try to modify
them. The login methods can also be set with function mod-
ule COM1METH (see Volume 2).
X<CR>
5.6.4 CI command
Command structure Each CI command has a defined input format. These include:
a command letter
R<RN> Index
V Baud rate
Z<CN> Counters
CI response The table below shows the response from the CI to valid and
invalid CI commands:
CI command CI response
Command <Command> \r
D Display
Input
>DA0.1
Output (example)
>DA0.1=0
>
Display commands
Response:
=D for displaying decimal without sign
=S for displaying decimal with sign
=H for displaying hexadecimal
The final two values denote the numbers and step numbers of
the selected module.
M Modify
Input
>MAW1=255
Ouput
>MAW1=255
Input
>MAW1
Output (example)
>MAW1=255:
The CI reports the current value. After the colon, you can
enter the new value and confirm by pressing <CR>.
Modify commands
Note
MV=56000 is not valid on FEC and HC0X controllers.
B Break
R Run
RB<Number>[,<FU32>[,<FU33>[, ...
[,<FU37>[,<FU38>]]]]]]]
Note
The command uses the local function units of Program
P63, which should be reserved for this purpose.
=<FU32>,<FU33>,<FU34>,<FU35>,<FU36>,<FU37>,<FU38>.
RB7,14,,9=4712,103,0,0,0,0,0
RF<Number>[,<FU32>[,<FU33>[, ...
[,<FU37>[,<FU38>]]]]]]]
Note
The command uses the local function units of Program
P63, which should be reserved for this purpose.
=<FU32>,<FU33>,<FU34>,<FU35>,<FU36>,<FU37>,<FU38>.
S Stop
Note
The force input/output command is not available on all
controller types. The following controller types support
this feature:
CPX-FEC, HC20 and HC1X;
FEC Standard, FEC Compact and HC0X, from operating
system version 2.25 upwards.
Result:
=0: Forced to 0
=1: Forced to 1
=N: Not forced
=0: Forced to 0
=1: Forced to 1
=N: Not forced
Result:
=0: Forced to 0
=1: Forced to 1
=N: Not forced
=0: Forced to 0
=1: Forced to 1
=N: Not forced
=0: Forces to 0
=1: Forces to 1
=N: Do not force
=0: Forces to 0
=1: Forces to 1
=N: Do not force
Y Initialising
Caution
The Y! command deletes all project data and drivers from
the RAM memory.
5.6.10 Password
LX Password protection on
(logout)
LX<Password> Password protection off
(login)
!<DN><Command>
Example:
>!3D12=Festo
>
>RP0
>DP0=0,0,3,2,0,0
>
Input
>RP0;DP0
Output (example)
>RP0;DP0=0,0,3,2,0,0
>
>DR0=432
>DMW16=0
>DE0.3=1
Input
>DR0,MW16,E0.3
Output (example)
>DR0,MW16,E0.3=432=0=1
>
Mass display
Commands used to display values can be suffixed with a
minus sign. 16 successive values are then shown as a mass
display. This display method is also valid for bit operands.
>DR1=0
>
>DR1-=0=0=0=0=0=0=0=0=0=0=0=0=0=0=0=0
>
5.7 Miscellaneous
The FST PLC operating system uses DOS drives to save the
project files and drivers. The drives to be used can be speci-
fied in the PLC settings for the project or in the driver settings
in the driver configuration. Different drives are available on
the various controllers.
CPX-FEC B: 1) 800 KB 3)
A: 2) 3)
A: 2)
A: 2)
A: 2)
1) The start-up file STARTUP.BAT automatically generated by the FST is also stored here.
2) Drive A is reserved for system files. User files cannot be stored.
3) With CPX-FEC, the following drivers do not occupy memory on Drive B, as they are already saved to
Drive A in the factory. TCPIP drivers, Web Server drivers, MODBUS drivers.
CPX-FEC 450 KB 1)
HC0X 290 KB
HC1X 430 KB
1) When TCP/IP drivers, Web Server drivers and MODBUS drivers are
loaded, there is still 250 KB of memory available. These drivers
are preselected as standard for new projects.
Appendix A
Contents
Contents of this chapter This chapter provides an overview of the possible STL and
LDR operations.
The drivers and modules supplied with the FST runtime li-
brary provide a host of other operations. Detailed information
on this can be found in Volume 2.
Example
IF I1.0 If I0.1 = 1
THEN SET O1.0 then set O0.1
Example
With a positive edge at Input I0.1, the output O0.1 is set with saving.
Otherwise, the status of the output is not influenced.
Example
IF I1.0 If I0.1 = 1
THEN RESET O1.0 then reset O0.1
Example
With a positive edge at Input I0.1, the output O0.1 is reset with
saving. Otherwise, the status of the output is not influenced.
Example
STEP 10
IF I1.0
THEN LOAD I1.1 load I1.1 to EBA
SHIFT O1.1 swap EBA and O1.1
SHIFT O1.2 swap EBA and O1.2
SHIFT O1.3 swap EBA and O1.3
SHIFT O1.1 swap EBA and O1.4
STEP 20
IF N I1.0 wait until input
is deactivated
THEN JMP TO 10 repeat
Example
STEP 1
IF N I1.0 If I1.0 = 0
THEN RESET O1.0 Reset O1.0
JMP TO 1
OTHRW SET O1.0 Set O0.1
JMP TO 1
Example
STL In STL, the LOAD instruction can be used to load the value of
a single-bit operand to the single-bit accumulator. Any
number of single-bit operations can then be applied to the
single-bit accumulator. To conclude, the result is transferred
to the target operands by the TO instruction.
Example
NOP No operation
Example
IF NOP
THEN SET F1.0
Example
N Negation
Input Output
1 0
0 1
Example
STEP 1
IF N I1.0 If I0.1 = 0
THEN SET O1.0 Set O0.1
JMP TO 1
OTHRW RESET O1.0 Reset O0.1
JMP TO 1
LDR In the LDR, the negation (/) can be carried out at the contact
symbol (see rung 1) and at the coil (see rung 2).
Example
The AND link links together two or more expressions. The link
result is true if all AND-linked expressions are true.
0 0 0
0 1 0
1 0 0
1 1 1
Example
IF I1.1 If I0.1 = 1
AND I1.2 And I0.2 = 1
THEN SET O2.0 Set O2.0
OTHRW RESET O2.0 Reset O2.0
Example
Inputs I0.1 and I0.2 are AND-linked. The link result is assigned
directly to O0.1 (in this case, non-saving).
OR OR link
0 0 0
0 1 1
1 0 1
1 1 1
Example
IF I1.1 If I0.1 = 1
OR I1.2 OR I0.2 = 1
THEN SET O1.5 Set O0.1
Example
0 0 0
0 1 1
1 0 1
1 1 0
Example
IF ( I0.1 If I0.1 = 1
AND N I0.2 ) And I0.2=0
OR ( N I0.1 Or I0.1 = 0
AND I0.2 ) And I0.2=1
THEN SET O0.1 Then set O0.1
Example
0 0 1
0 1 1
1 0 1
1 1 0
NOT OR link
This link is equivalent to an OR link with negation (/) at the
output. The link result is 1 (true), if 1 all condition elements
deliver a 0 signal.
0 0 1
0 1 0
1 0 0
1 1 0
0 0 1
0 1 0
1 0 0
1 1 1
STL In STL, the LOAD instruction can be used to load the value of
a multi-bit operand to the multi-bit accumulator. Any
number of multi-bit operations can then be applied to the
multi-bit accumulator. To conclude, the result is transferred
to the target operands by the TO instruction.
Example
IF I0.1
THEN LOAD V12 Source operand
+ FW1 add FW1
TO R0 Target operand R0
A.2.2 Transferring value from the multi-bit accumulator (TO, STL only)
Example
With a rising edge at Input I0.1, the value of the source operand (in
this case CW1) is transferred to the target operand (in this case R1).
A.2.4 Arithmetical operations (+, -, *, /, <, <=, =, >=, >, < >, INC, DEC)
Note
An overrun cannot be requested.
STL The four basic calculation methods can be used in the condi-
tion part and the executive part.
If the operation is used in the condition part, the result can
be compared with a third operand.
If the operation is used in the executive part, the result can
be transferred to the target operand with the TO command.
IF...
THEN LOAD ( CW1 Load couter word CW1
+ CW2 ) Addition with CW2
TO R30 Transfer to R30
CW1 and CW2 are added. The result is transferred to Register 30.
LDR With a rising edge of the link result, the value of the multi-bit
operand located at the top on the input (left) is loaded to
the multi-bit accumulator and then added to the lower multi-
bit operand. The result is transferred to the target operand
on the output (right).
Example
Operation Description
STL LDR
STL Operations INC and DEC can be used only in the executive
part and are applied directly to the indicated mutli-bit
operands.
Example
IF ...
THEN INC R9 Increase Register 9 by 1
IF ...
THEN DEC R9 Decrease Register 9 by 1
Example
IF ...
THEN LOAD R9 Load Register 9 to the
multi-bit accumulator
+ V1 add 1
TO R9 Transfer result to
Register 9
LDR With a rising edge of the link result, the value of the indi-
cated multi-bit operand is incremented (I) or decremented
(D).
Example
Off
and (V15)
becomes
STL The AND link of multi-bit operands can be used in the condi-
tion part and in the executive part.
If the operation is used in the condition part, the result can
be compared with a third operand. If the operation is used
in the executive part, the result can be transferred to the
target operand with the TO command.
IF ...
THEN LOAD ( R1 Load Register 1
AND R2 ) AND link with R2
TO R10 Transfer to R10
LDR With a rising edge of the link result, the value of the multi-bit
operand located at the top on the input (left) is loaded to
the multi-bit accumulator and then AND linked to the lower
multi-bit operand. The result is transferred to the target op-
erand on the output (right).
Example
See Example STL AND in the Executive Part. However, the opera-
tion is carried out only with a rising edge of the link result.
Off
and
becomes
Off
and
becomes
Swaps the contents of the low byte and the high byte in the
multi-bit accumulator (see Fig. A/4).
Off
becomes
Example
IF I0.1
THEN LOAD FW0 Source operand FW0
SWAP
TO OW0 Target operand OW0
If there is 1 signal at Input I0.1, the flag word FW0 is loaded to the
multi-bit accumulator. Here, the higher value and lower value byte
are swapped. The result is transferred to output word OW0.
LDR With a rising edge of the link result, the value of the source
operand located at the top on the input (left) is loaded to
the multi-bit accumulator. Here, the contents of the low byte
and the high byte are swapped (see Fig. A/4). The result is
transferred to the target operand on the output (right).
Example
See Example STL. However, the operation is carried out only with
a rising edge of the link result.
Example
LDR With a rising edge of the link result, the value of the source
operand located at the top on the input (left) is loaded to
the multi-bit accumulator. Here, BINARY is converted to BCD
display (see Fig. A/8) The result is transferred to the target
operand on the output (right).
Example
See Example STL. However, the operation is carried out only with
a rising edge of the link result and Register R1 is used as the clipbo-
ard.
Off
becomes
Example
IF I0.1
THEN LOAD FW0 Source operand FW0
SHL
TO OW0 Target operand OW0
If there is 1 signal at Input I0.1, the flag word FW0 is loaded to the
multi-bit accumulator. The content of the multi-bit accumulator is
then shifted by one bit space to the left. The result is transferred to
output word OW0.
LDR With a rising edge of the link result, the value of the source
operand located at the top on the input (left) is loaded to
the multi-bit accumulator. The content of the multi-bit accu-
mulator is then shifted by one bit space to the left. The re-
sult is transferred to the target operand on the output
(right).
Example
See Example STL. However, the operation is carried out only with
a rising edge of the link result.
Off
becomes
Off
becomes
Example
IF I0.1
THEN LOAD FW0 Source operand FW0
INV
TO OW0 Target operand OW0
If there is 1 signal at Input I0.1, the flag word FW0 is loaded to the
multi-bit accumulator. Here, the higher value and lower value byte
are swapped. The result is transferred to output word OW0.
LDR With a rising edge of the link result, the value of the source
operand located at the top on the input (left) is loaded to
the multi-bit accumulator. Each bit is inverted here
(see Fig. A/8). The result is transferred to the target operand
on the output (right).
Example
See Example STL. However, the operation is carried out only with
a rising edge of the link result.
Off
becomes
Example
LDR With a rising edge of the link result, the value of the source
operand located at the top on the input (left) is loaded to
the multi-bit accumulator. The 2s complement is inverted
here (see Fig. A/8). The result is transferred to the target
operand on the output (right).
Example
See Example STL. However, the operation is carried out only with
a rising edge of the link result.
C0 ... C255 Counter status Single-bit operand that shows whether the counter is
activated or deactivated.
1: Counter is activated
0: Counter is deactivated (stopped or expired)
If the counter status (Cnn) is set to 1) the corresponding
counter word automatically resets to 0. This applies also
if the counter was already active.
The counter status (Cnn) is automatically reset to 0, if:
the counter word reaches the forward values of the
counter preset
the counter word is counted back to 0 on backwards
counting.
CP0 ... CP255 Counter preset Multi-bit operand that contains the counter preset:
with forwards counter, the final value
with backwards counter, the start value
CW0 ... CW255 Counter word Multi-bit operand that indicates the current status of the
counter.
1) nn represents the address of the counter (0...255).
Forwards counter
Backwards counter
Count
The following count functions are available:
Decrement (DEC, D)
IF I0.0
AND N C3
THEN LOAD V100 Final value 100
TO CP3 Counter preset
SET C3 CW3 becomes 0
...
Example: Count
IF ...
THEN INC CW3 Increment
... counter word 3
or
...
THEN DEC C3 Increment
... counter word 3
Example: Count
Count
The following count functions are available:
Decrement (DEC, D)
IF I0.0
AND N C3
THEN SET C3 Activate counter 3
CW3 becomes 0
LOAD V100 Final value 100 to
TO CW3 Load counter word
CW3 becomes 100
...
Example: Count
IF ...
THEN INC CW3 Increment
... counter word 3
or
...
THEN DEC C3 Increment
... counter word 3
Example: Count
T0 ... T255 Timer status Single-bit operand that indicates whether a timer is
TON0 ... TON255 1) active or inactive (see also Tab. A/48).
TOFF0 ... TOFF255 1) (Pulse timer, If Timer (Tnn) 2) is active, the corresponding timer
switch-on or presetting is loaded to the timer word before the
switch-off timer is started. This applies also if the timer was
delayed timer) already active.
When the timer (Tnn) is deactivated, it is halted.
The timer word is automatically reset to 0.
The timer (Tnn) is automatically deactivated when the
timer word has reached 0.
TP0 ... TP255 Timer Multi-operand, which contains the runtime of the timer
pre-selection in 0.01 s increments.
Permitted runtime: 0.00s ... 655.35s 3)
TW0 ... TW255 Timer word Multi-bit operand that contains the current runtime of
the timer.
1) Valid only in LDR
2) nn represents the address of the counter (0...255).
3) Instead of an absolute time value in seconds, the content of any multi-bit operand (e.g. IW0) can
be loaded to the timer preset. Its content is automaically multiplied by a cycle time of 0.01 s and
the result used as a timer preset.
Types of timer
In STL, you can use timers as pulse timers. In LDR, timers can
also be used directly as switch-on and switch-off delay timers.
The type of timer is determined in LDR by using the relevant
operand for the timer status.
1 1
0
4
nnn,nn [s]
2
0 [s]
5
1
3
0
6
STL Before a timer can be used, its timer preset must be initia-
lised by a value consistent with the required time period.
This initialisation only has to be repeated if the time value is
changed. The timer preset must be reloaded at every timer
restart. Timer presets can be loaded either with a constant
or with the content of a multi-bit operand (e.g. Register,
input word, flag word etc.).
Alternative 1
...
IF I0.1
AND N T7 Timer inactive?
THEN LOAD V520 5.2 s
TO TP7 Load timer preset
SET T7 Start timer
...
Alternative 2
...
IF I0.1
AND N T7
THEN SET T7
WITH 5.2s
...
...
IF N T7
THEN RESET O0.0
...
LDR The timer is initialised by the timer box. For a pulse timer,
enter an operand for the timer status (Tnn). When the link
result has an rising edge, the timer box carries out the fol-
lowing operations:
The output for the period (5.2 secs) determined by the timer preset
is activated by a pulse on the Input I0.0. The opener in the first rung
prevents the timer from restarting, if it is already active.
the timer word reaches the value 0. The timer has then
expired (TONnn=1, TWnn=0).
1 1
0
4
nnn,nn [s]
2
0 [s]
5
1
3
0
6
the timer word reaches the value 0. The timer has then
expired (TOFFnn=0, TWnn=0).
1 1
0
4
nnn,nn [s]
2
0 [s]
5
1
3
0
6
IF I1.2
THEN CMP 3 Copy flag word area
WITH V10 No. of first source
flag word (FU32)
WITH V20 No. of first target
flag word (FU33)
WITH V10 No. of flag words
(FU34)
Example
With a rising edge to I0.0, CMP 3 is called. When called, 3 values (10,
20, 10) are transferred as the input parameters.
JMP TO Jump to
Example
STEP label
IF I1.0
THEN SET O1.0
JMP TO Start
...
STEP Start
...
Example
Appendix B
Contents
[List Project File] Displays the content of the last project file to
be created (see Section 2.2.10).
[Change Update Enables you to view and modify the delay time
Speed...] between the individual online requests
(see Fig. 2/59).
Appendix C
Contents
C. Index . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . C-1
C.1 Index
A
Abbreviations
Product-specific . . . . . . . . . . . . . . . . . . . . . . . . . . . . . XXIII
Absolute operands . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2-70
Activate password protection for online access . . . . . . . 2-96
Actual-Nominal-Comparison . . . . . . . . . . . . . . . . . . . . . . 2-41
Allocation list . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2-69
Automatic allocation list entry . . . . . . . . . . . . . . 3-11 , 4-15
Changing allocation list entry . . . . . . . . . . . . . . . . . . . 2-73
Comment . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2-73
Deleting an allocation list entry . . . . . . . . . . . . . . . . . . 2-74
Editing regulations . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2-72
Print . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2-74
AND . . . . . . . . . . . . . . . . 3-27 , 3-30 , 4-13 , 4-24 , A-11 , A-22
Archive
Project . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2-23 , 2-30
Archiving . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2-30
ASSIGNMENT . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4-21 , A-7
Autostart . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2-67
B
Backup . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2-30
Backwards counter . . . . . . . . . . . . . . . . . . . . . . . . . . . . . A-41
BID . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-33 , 4-23 , A-28
Boxes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4-22
Breakpoint list . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-45
Breakpoints . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-41 , 4-29
C
Catalog . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2-44
CFM . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-37 , A-52 , A-53
Change operand value . . . . . . . . . . . . . . . . . . . . . . . . . . 2-103
Change password in the controller . . . . . . . . . . . . . . . . . 2-98
Change programm call . . . . . . . . . . . . . . . . . . . . . . . . . . 2-125
Change update speed . . . . . . . . . . . . . . . . . . . . . . . . . . 2-100
Changing address mapping . . . . . . . . . . . . . . . . . . . . . . . 2-48
Changing parameters . . . . . . . . . . . . . . . . . . . . . . . . . . . 2-52
Checking configuration . . . . . . . . . . . . . . . . . . . . . . . . . . 2-46
CI . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-31
CI Commands . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-35
Break (B) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-46
Command letter . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-36
Command structure . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-35
Display (D) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-39
Driver-specific commands . . . . . . . . . . . . . . . . . . . . . . 5-52
Init (Y!) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-50
Linking . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-53
Modify (M) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-43
Parameters . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-36
Run (R) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-46
Stop (S) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-47
Clipboard . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-16 , 4-17
Close
Close project . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2-17
CMP . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-38 , A-52 , A-53
Coil . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4-21
Command Interpreter . . . . . . . . . . . . . . . . . . . . . 2-113 , 5-31
Command interpreter
Login . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-33
Comparison box . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4-20
Compile
Compile all . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2-20
Module . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2-89
Program . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2-89
Project . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2-20
Compiling
Program and module . . . . . . . . . . . . . . . . . . . . . . . . . . 2-89
Condition part . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-20
Configure online link . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2-92
Constants . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-12
Contact . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4-19
Context menus . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1-15
Controller COM Port . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2-64
Copy
Hardware configuration . . . . . . . . . . . . . . . . . . . . . . . . 2-31
Project . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2-18
Counter . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4-25
Counter box . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4-11
Counters . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-11 , A-37
CPL . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-34 , 4-23 , A-35
Create
Program . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2-79
Create backup copy . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-19
D
D . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . A-20
De-archive
Project . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2-30
De-archiving . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2-30
De-install drivers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2-123
Deactivate password protection for online access . . . . . 2-96
DEB . . . . . . . . . . . . . . . . . . . . . . . . . . 3-34 , 4-13 , 4-23 , A-30
DEC . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-35 , A-20
DECREMENT . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4-21
Deinstall
FST . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1-6
I/O script . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2-120
Deinstalling FST . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1-6
Delete
Driver . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2-59
File . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2-112
Files from the controller . . . . . . . . . . . . . . . . . . . . . . . 2-109
Module . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2-86
Program . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2-86
Programs and modules . . . . . . . . . . . . . . . . . . . . . . . . 2-86
Project . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2-18
Delete project bevore download . . . . . . . . . . . . . . . . . . . 2-67
Deleting module . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2-46
Designated use . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . XV
Documentation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2-25
Download
File . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2-112
Files to the controller . . . . . . . . . . . . . . . . . . . . . . . . . 2-109
Project . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2-21
Sources . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2-23
Download modified driver files . . . . . . . . . . . . . . . . . . . . 2-68
Download source files . . . . . . . . . . . . . . . . . . . . . . . . . . . 2-68
Driver
Configuration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2-55
Number . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2-55
Open configurator . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2-56
Properties . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2-58
Drivers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2-62 , 2-117
E
Error handling . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-24
With error program . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-26
Without error program . . . . . . . . . . . . . . . . . . . . . . . . . 5-25
Error output . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2-62
F
Fault number . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-28
Festo fieldbus . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2-101
File transfer . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2-109
Find and replace . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-17 , 4-17
Flag . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-8
Forcing . . . . . . . . . . . . . . . . . . . . . . . . . . 2-105 , 2-107 , 5-48
Fowards counter . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . A-38
FST installation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1-4
FST Kernel . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2-63
Function modules . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2-78
Function units . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-12
G
Global find . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-18
Globally change
Force values . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2-108
Globally deleting
Force values . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2-107
H
Hardware configuration
Actual-Nominal-Comparison . . . . . . . . . . . . . . . . . . . . 2-41
Changing address mapping . . . . . . . . . . . . . . . . . . . . . 2-48
Changing entry . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2-35
Deleting an entry . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2-35
For PS1, FEC Standard and FEC Compact . . . . . . . . . . 2-32
For the CPX terminal . . . . . . . . . . . . . . . . . . . . . . . . . . . 2-36
Saving actual configuration as nominal configuration 2-39
Hardware configurator
Catalog . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2-44
Changing parameters . . . . . . . . . . . . . . . . . . . . . . . . . . 2-52
Checking configuration . . . . . . . . . . . . . . . . . . . . . . . . 2-46
Deleting module . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2-46
Generating the nominal configuration . . . . . . . . . . . . 2-43
Inserting module . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2-44
Resetting configuration . . . . . . . . . . . . . . . . . . . . . . . . 2-47
Help . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1-19
I
I . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . A-20
I/O scripts . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2-117
Icon bar . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1-12
IF . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-26
Import
Module . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2-81
Programs . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2-81
Programs and modules . . . . . . . . . . . . . . . . . . . . . . . . 2-81
Important user instructions . . . . . . . . . . . . . . . . . . . . . . . XVIII
INC . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-35 , A-20
INCREMENT . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4-21
Index . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-8
J
JMP TO . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-30 , A-54
Jump . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-30 , 4-26 , A-54
Jump labels . . . . . . . . . . . . . . . . . . . . . . . . . 3-30 , 4-13 , A-54
K
Key functions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1-13
L
Ladder diagram . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4-4
LDR
Fundamental principles . . . . . . . . . . . . . . . . . . . . . . . . . 4-4
M
Macros . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2-127
Manage drivers in the runtime library . . . . . . . . . . . . . 2-121
Manage I/O scripts in the runtime library . . . . . . . . . . 2-119
Manage runtime library . . . . . . . . . . . . . . . . . . . . . . . . . 2-117
Memory
For project files and drivers . . . . . . . . . . . . . . . . . . . . . 5-55
Memory for project files and drivers . . . . . . . . . . . . . . 5-55
Working memory for programs and drivers . . . . . . . . 5-56
Menu bar . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1-11
Menu commands
[Extras] menu . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . B-11
[Help] menu . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . B-12
[Insert] menu . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . B-7
[Online] menu . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . B-9
[Program] menu . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . B-8
[Project] menu . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . B-3
[View] menu . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . B-6
[Window] menu . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . B-12
Menu [Edit] . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . B-4
Module
Module calls . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-37
Module library . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2-81
Module call . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4-25 , A-52
Module properties . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2-51
N
N . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-28 , A-10
NEGATED ASSIGNMENT . . . . . . . . . . . . . . . . . . . . . . . . . 4-21
Nested program selection . . . . . . . . . . . . . . . . . . . . . . . . 5-19
New compared to FST 4.02 . . . . . . . . . . . . . . . . . . . . . . . . 1-7
Nominal configuration . . . . . . . . . . . . . . . . . . . . . . . . . . . 2-43
NOP . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-28 , A-9
Notes on the use of this manual . . . . . . . . . . . . . . . . . . . XVII
O
Online
STL online display . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-39
Online control panel . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2-95
Online display . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2-99
Online Help . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1-19
Online mode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2-91
Open
Driver configurator . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2-56
Hardware configurator . . . . . . . . . . . . . . . . . . . . . . . . . 2-31
Open project . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2-16
Program . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2-88
Program or module . . . . . . . . . . . . . . . . . . . . . . . . . . . 2-88
Open CI terminal . . . . . . . . . . . . . . . . . . . . . . . . 2-113 , 2-115
Open online control panel . . . . . . . . . . . . . . . . . . . . . . . . 2-95
P
Parallel logic program . . . . . . . . . . . . . . . . . . . . . . 3-21 , 3-23
Password . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2-65
Setting by CI . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-51
Password protection . . . . . . . . . . . . . . . . . . . . . . . 2-65 , 2-97
Pictograms . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . XIX
Picture scroll bars . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1-14
Print
Allocation list . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2-74
Driver configuration . . . . . . . . . . . . . . . . . . . . . . . . . . . 2-59
Font . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2-29
Hardware configuration . . . . . . . . . . . . . . . . . . . . . . . . 2-35
Margin . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2-29
Project . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2-26
Project parts . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2-26
STL program . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-19
Print format
Settings . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2-29
Program
Programs . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2-78
Reset programs . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2-61
Program and program status . . . . . . . . . . . . . . . . . . . . . 5-13
Program modules . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2-78
Program properties . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2-80
Program window . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1-12
Project
Clean Up . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2-25
Close project . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2-17
R
Refresh . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2-53
Rename
Project . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2-18
RESET . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-29 , 4-21 , A-5
Reset outputs . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2-62
Resetting configuration . . . . . . . . . . . . . . . . . . . . . . . . . . 2-47
Retentive operands . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-15
ROL . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-32 , 4-23 , A-32
ROR . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-33 , 4-23 , A-32
S
Safety regulations . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . XV
Saving actual configuration as nominal configuration . 2-39
Selecting a graphic element . . . . . . . . . . . . . . . . . . . . . . . 4-8
Selecting in the LDR editor . . . . . . . . . . . . . . . . . . . . . . . . 4-8
Selecting with the keyboard . . . . . . . . . . . . . . . . . . . . . . . 4-9
Selecting with the mouse . . . . . . . . . . . . . . . . . . . . . . . . . 4-9
Send a CI command . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2-114
Serial port . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-31
Service . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . XVII
SET . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-29 , 4-21 , A-4
Set display format . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2-101
Set/change the password . . . . . . . . . . . . . . . . . . . . . . . . 2-96
Setting password through the online control panel . . . . 2-98
Settings
For downloading . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2-67
PLC settings . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2-60
SHIFT . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-31 , A-6
SHL . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-32 , 4-23 , A-30
Shortcut bar . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4-10
SHR . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-32 , 4-23 , A-32
Single-bit operands . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2-70
T
Task change . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-17
TCP/IP . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-32
TCP/IP link . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2-91
Test online link . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2-94
Text markings . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . XIX
THEN . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-26
Time behaviour
Time behaviour at start of sequence . . A-46 , A-49 , A-51
Timer . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4-25 , 5-9 , A-44
Title bar . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1-11
TO . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-29 , A-8 , A-17
Types of timers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . A-45
U
Undo changes . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-18 , 4-18
Update
Project . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2-22
Project file content . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2-24
Upload
File . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2-111
Files from the controller . . . . . . . . . . . . . . . . . . . . . . . 2-109
Project . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2-23
Sources . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2-23
W
Window edge . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1-14
WITH . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-38
Working memory
For programs and drivers . . . . . . . . . . . . . . . . . . . . . . . 5-56
Workspace . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1-12
Z
Zoom function . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4-18
0310d