B&R PLC Programming
B&R PLC Programming
User's Manual
TABLE OF CONTENTS
Chapter 3 Introduction
1. Software Start Up 3-3
2. Initial Parameters upon Start Up in the
PROgramming SYStem 3-5
2.1. Defining new Start Up Parameters 3-5
2.2. Language 3-6
2.3. Mnemonics 3-6
6. Funktionsplan-Programmierung 4-55
6.1. Allgemeines 4-55
6.2. FUB-Übersichtsmenü 4-56
6.3. Aufruf schon geladener FUB’s 4-57
6.4. Laden von FUBs von Festplatte oder Diskette
4-58
6.5. Editieren von FUBs 4-59
6.6. Löschen eines FUB’s 4-60
Kapitel 5 Anweisungsliste
1. Allgemeines 5-3
2. Aufruf des AWL-Editors 5-4
3. Aufbau des AWL-Editors 5-4
4. Eingabezeile 5-6
4.1. Einfüge-Modus 5-6
4.2. Zeilennummer / Programmschrittnummer 5-8
4.3. Kommentarzeile 5-9
4.4. Label 5-9
4.5. Befehlsfeld 5-10
4.6. Negation und
erweiterte (extended) Adressierung 5-11
4.7. Adreßvorwahl 5-12
4.8. Adresse 5-13
4.9. Klartextfeld 5-16
4.10. Kommentarfeld 5-16
5. Funktionen im AWL-Editor 5-17
5.1. Softkey-Funktionen 5-17
5.2. Weitere Funktionen 5-19
5.3. Ausstieg aus dem AWL-Editor 5-19
6. Editierfunktionen aus der Kommandozeile 5-20
6.1. Ersetzen / Tauschen (CHAN) 5-20
6.2. Globales Tauschen/Ersetzen (GLOBCHAN) 5-24
6.3. Suchen (FIND) 5-25
6.4. Suchen und Auflisten (FINDL)
User's Manual B&R PROgramming SYStem Contents-6
TABLE OF CONTENTS
Kapitel 6 Klartext-Editor
1. Allgemeines 6-3
2. Aufruf des KTZ-Editors 6-4
3. Aufbau des KTZ-Menüs 6-4
4. Funktionen im KTZ-Editor 6-6
4.1. Softkey-Funktionen 6-6
4.2. Weitere Funktionen 6-7
4.3. Ausstieg aus dem KTZ-Editor 6-7
5. Editierfunktionen aus der Kommandozeile 6-8
5.1. Verschieben (MOVE) 6-8
5.2. Kopieren (COPY) 6-8
5.3. Löschen (DELETE BLOCK) 6-9
Kapitel 7 Tabellen-Editor
1. Allgemeines 7-3
2. Aufruf des TAB-Editors 7-3
3. Aufbau des TAB-Menüs 7-4
4. Funktionen im TAB-Editor 7-6
4.1. Softkey-Funktionen 7-6
4.2. Weitere Funktionen 7-7
4.3. Ausstieg aus dem TAB-Editor 7-7
5. Editierfunktionen aus der Kommandozeile 7-8
5.1. Verschieben (MOVE) 7-8
5.2. Kopieren (COPY) 7-8
5.3. Löschen (DELETE BLOCK) 7-8
6. Tabellenprogrammierung 7-9
6.1. Datenformate 7-9
6.2. Aufruf von Tabellen 7-11
6.2.1. Aufruf in der AWL 7-11
6.2.2. Aufruf in KOPs 7-12
7. CLEAR - Löschen einer Tabelle 7-12
Kapitel 9 Drucken
1. Aufruf des Druckermenüs 9-3
2. Aufbau das Druckermenüs 9-3
2.1. Ausbaustufe A 9-3
2.2. Ausbaustufe B 9-4
2.3. Ausbaustufe C 9-4
3. Das Menüfeld 9-6
3.1. Editieren des Menüfeldes 9-6
3.2. Drucken von ... 9-7
3.3. Weitere Menüoptionen 9-15
4. Drucken von Programmen oder Programmteilen 9-17
5. Ausgabe auf den Bildschirm 9-19
5.1. Allgemeines 9-19
5.2. Ausgabe von Programmen oder Programmteilen
9-19
5.3. Querverweisliste 9-19
6. “Drucken” in eine Datei 9-20
7. Schnittstelle definieren 9-20
Anhang C Zusatzeinrichtungen
1. LEARN - Funktion C-3
1.1. Starten der Aufzeichnung einer LEARN-Datei
C-3
1.2. Beenden der Aufzeichnung C-3
1.3. Aufruf (Wiedergabe) einer LEARN-Datei C-4
1.4. Format einer LEARN-Datei C-4
2. PROVIT-Emulationen C-6
2.1. PROVIT 1000 - Tastaturemulation C-6
2.2. PROVIT 500/600 (MAESTRO) Emulation C-9
2.2.1. Einschränkungen C-10
2.2.2. Softwaremäßiges Ändern
des Zeichensatzes - Esc P c x0 ... xn C-10
2.2.3. Zeichensätze aus einer Datei lesen C-11
3. Aufbereitung des Programm-Abbildes
für EPROM-Programmer C-13
4. MS-DOS Environmentvariablen C-15
4.1. Test auf parallele Online Schnittstelle ausschalten
C-15
4.2. Verwendung eines anderen Parallelports C-15
4.3. Laden eines anderen Tastaturtreibers C-16
4.4. Druckausgabe in eine Datei C-16
4.5. Varianten der MAESTRO Terminalemulation
C-17
4.6. Anwenderspezifische Dateien C-17
4.7. Temporäre Dateien C-17
4.8. EMS-KTZ Verwaltung C-18
Anhang D Fehlermeldungen
FATAL-ERROR-Fehlermeldungen D-3
Anhang E Stichwortverzeichnis
CHAPTER 1
GENERAL INFORMATION
1. GENERAL
The efficiency of the PLC-System has been enhanced by the user-friendliness of the Programming
System and the available Standard Software. With the PROgramming SYStem B&R offers a unique
software package for MS-DOS that is efficient and comfortable to operate.
All B&R PLC's, from the MINICONTROL to the MULTICONTROL, can be programmed with the
B&R PROgramming SYStem. The PROgramming SYStem is also multilingual, leaving the
programming language used, completley up to the user. The B&R PROgramming SYStem has
unlimited resources when it comes to solving problems with ladder diagrams (LAD), function
blocks (FBK), logic diagrams (LD) or statement lists (STL). The PROgramming SYStem also has
no problems mixing programming languages in a programm.
The B&R PROgramming SYStem speaks many languages and can switch between German,
English, Italian, Spanish and French with a single command. Naturally the PROgramming SYStem
User's Handbook is also just as flexible when it comes to languages.
THE PC
The B&R PROgramming SYStem will run with any IBM AT/XT compatible Personal Computer
(with MS-DOS Version 2.11 or above), including battery operated laptops and Portable ATs to the
powerful System 2 Office computers. For speed efficiency in Online-operation, data is sent at 60
Kbaud through CENTRONICS interfaces and special cabel to the PLC. For Online work with more
than one processor from the same programming unit, Two Port Interface Modules are available.
FBK-EDITOR
The FBK Editor enables the user to create his/her own application-specific function blocks. The
first step establishes the form of the module, i.e., the number of inputs and outputs. The
functionality of the FP is then programmed with an STL-program. Naturally the FBK Editor also
permits the editing of standard modules and their modification to meet specific requirements.
DATA TABLES
Data tables are constant data records that the user can access. Input is handled by a comfortable
Data table Editor. Decimal, binary, hexadecimal and ASCII number formats can be mixed within a
table or even within a row of a table. Tables are components of the application program and are
stored in the non-volatile protected application program storage.
PROGRAM DOCUMENTATION
Particular attention was devoted to the documentation capabilities of the B&R-PROgramming
SYStem. Comments can be written at any location in a program, in STL as well as LAD/FP/LP.
The program printout contains the complete program documentation, including cross references,
symbol tables, function modules and symbol assignments.
DEBUGGING
A number of powerful tools are available to aid in locating errors. The STL debugger permits the
stepwise execution of STL programs, the setting of break points, and the use of trace functions. The
LAD debugger inversely displays set contacts and superimposes current values within the scope of
function blocks. The utilization of windows gives the advantage of simultaneous monitoring of
multiple processors.
PROgramming SYStem level C differentiates between the PG1000 and PG-PC Modes.
Starting the software in PG1000 Mode provides complete compatibility between the PG1000 and
the PC generated programs. This enables the exchange of programs or program sections between
PC and PG1000 via serial interface.
Switching from
PG1000 to PG-PC Mode A B C PG1000 CP80 PG-PC PC80
● ● ●
The large number of additional functions enable much more efficient and comfortable
programming with a personal computer (sequence charts, logic diagrams,...)
Programs or macros generated in PG-PC Mode can be loaded and used only in this working mode.
They are not compatible with PG1000 Mode.
Prerequisites
It is necessary for the user to know the basic facts about his/her personal computer and the B&R
control system (MULTI, MIDI or MINICONTROL) to utilize this manual properly.
For more detailed information about the operating system of the PC, refer to the corresponding user
manual.
For more detailed information about the control system, refer to the relevant hardware manuals
(distributed by B&R) or contact a B&R engineer.
Chapter 3 - INTRODUCTION TO USAGE: is a start with the basics and fundamentals and a good
introduction to the B&R PROgramming SYStem .
Chapter 4 - Chapter 10 - is a reference guide for users with a certain amount of basic knowledge
with regard to programming software. These chapters comprise detailed descriptions of
all programming options and softkey functions.
Chapter 11 - ONLINE PROGRAMMING OVER A MODEM describes all necessary functions for
programming a B&R-controller over a modem.
Chapter 12 - ONLINE INTERFACES lists the various hardware possibilities, and connections
involving your PC and the B&R-controller.
Technical Appendix - This chapter is a reference for all commands and instructions necessary for
programming.
This user's manual describes three distinct levels of the PROgramming SYStem in conjunction with
their operation possibilities, and this table shows which operation function fits into which
expansion level respectivley.
Expansion levels:
• Level A
• Level B
• Level C
Operation:
• PG1000 Mode, CPU Type A
• PG1000 Mode, CPU Type B
• PC Mode, CPU Type A
• PC Mode, CPU Type B
A B C PG1000 CP80 PG-PC PC80 CPU Typ A ... CP30, CP31, CP40, CP41
● ● ● NTCP3#, PP40
CPU Typ B ... CP60, CP80,
NTCP6#, PP60
Example:
● ● ● ● ●
Logic plan programming is available in all three levels, A, B and C, and exists in the PG-PC and
PC80 operations. Logic plan programming is impossible in PG1000 mode.
Important Note
Particularly important notes are framed to stand out on the page and attract attention.
Key Designation
All keys are shown in square brackets []:
Key Description
Engl. Germ.
If two keys must be pressed simultaneously, then the two key symbols are connected by a "+" sign.
Text which must be entered directly into the programming device is printed in bold face and
italics.
Example: CLEAR
Abbreviations
The abbreviations used in this user's manuel are:
Operating Commands
While the cursor is in the command line, all function key commands can be entered directly from
the keyboard.
CHAPTER 2
INSTALLATION
Before installing the software, be sure you have the following requirements:
- Floppy Drive 5¼" (360 kByte or 1,2 MByte) or 3½" (720 kByte or 1,44 MByte)
- 640 kBytes RAM; of which at least 553 kBytes (565.840 Bytes) must be avail-
able. If necessary programs like FDO, CHAD, Device Drivers (e.g.: Mouse
driver), loaded character sets (DOS 3.X) must be deleted to achieve this free
space.
If these prerequisites apply, the software can readily be installed on the hard disk.
- For printing:
V24 serial interface COM 1
or parallel port
Expansion levels without Centronics Online Interface with Centronics Online Interface
The software is always delivered with the “User's Manual B&R PROgramming SYStem”.
4. PORTABLE PC-CONFIGURATION
One very important step in having a problem free B&R PROgramming SYStem is the proper
configuration in the PC's setup menu. With the wrong configuration, the B&R PROgramming
SYStem will run only partially or not at all.
SYSTEM SETUP
- Performance - - Memory -
Resume Mode = Boot Total = 1024 KB
BIOS = RAM Conventional = 640 KB
CPU Sleep Mode = Disable Hard RAM = 0 KB
HDD Auto Off = Disable EMS = 0 KB
Display Auto Off = Disable Extended = 256 KB
- Communications -
- System - Serial A = COM1
System Speaker = On Serial B = COM2
Battery Alarm = On
Extended FDD = ( A:, B: ) Parallel PRT = Bidirectional Port
- Display -
Display Type = ( Enhanced Color, Standard Color, Monochrome )
Internal EGA = Enable
Internal Display = ( 8*14, 8*16 )
Gray Scale Mode = Off
Auto Gray Scale = Off
Instruction
The selections "HDD Auto Off" and "Display Auto Off" must stay set to "Disable".
a:setup[↵]
b:setup[↵]
From this point on you will be guided by menu's. Here the screen displays the language menu and
from here the language choice for conversation to and from the PC is made.
The [F7] HELP key will bring down the help text for the language selection of the PROgramming
SYStem.
a
b
c
d
e
f
The PROgramming SYStem sets a default path of C:\PG but with the F1 option you can set up a
path to suit your system.
[F2] INSTALL:
The INSTALL program is installed on the hard disk, and will configure the PROgramming SYStem
to be utilized properly. The files necessary to configure the software, are at the same time
copied to the chosen destination path, in the directory (C:\PG).
The directory listed in the destination path is set up automatically by the installation program.
To set up the screen and keyboard the menus SCREEN CONFIGURATION and KEYBOARD
CONFIGURATION are chosen respectively.
Screen configuration:
The menu for the SCREEN CONFIGURATION looks like this. The function keys in this menu are
allocated as follows:
The desired screen driver is selected by means of the function keys. The selected screen driver is
displayed in inverse video, and the configuration is installed on the hard disk.
When the correct driver has been chosen the keyboard must be configured. The installation
program automatically switches to the KEYBOARD CONFIGURATION menu:
Keyboard configuration:
configuration menu:
The keyboard language is chosen, by pressing the respective function key. The selected keyboard
language is displayed in inverse video, and the configuration is installed to the hard disk.
With the screen and keyboard configuration completed, the files from the setup disk are copied to
the hard [Link] then the software will ask for the second diskette. The following message will
blink on the screen
After the second diskette is inserted the installation can be continued by pressing the enter/return
↵] key.
[↵
When all files are copied to the hard disk a message is displayed on the screen regarding the PC-
setup menu and the COM-2 interrupt (online interface). This message is the same as is displayed
when the [F4] REMARKS function key is pressed from the main menu.
After pressing any key, the [Link] file can be changed. Two modifications are made if to
the file if needed.
If the two system files [Link] and [Link] on your hard disk have been changed,
the following message will appear on the screen.
At this point, pressing any key will bring you back to the main menu.
[F4] Remarks:
The key brings down a piece of text explaining a bit about running a failure free PROgramming
SYStem and also shows some installation information (PC setup menu and COM 2 port interrupt).
The [F5] is only used to now to change the screen if a wrong key has been pressed before. If this is
the case F5 will bring you back to the screen configuration menu where another choice can be
made.
The selection made previously is shown in inverse video. By pressing the corresponding function
key a new screen driver will be installed. The chosen item will be displayed in inverse video.
The [F8] function key will take you back to the main installation menu.
By pressing the [F6] function key, a new keyboard driver can be installed. This function should
only have to be used if you have made an incorrect entry the first time around. If you must change
the keyboard driver, press [F6] and the following menu will be displayed on the screen.
The previously selected keyboard is shown in inverse video. By pressing the function key that
corresponds to the keyboard of your choice, the new driver will be installed and the selection will
be displayed in inverse video.
The [F7] function key gives a larger selection of keyboard drivers to choose from.
[F7] HELP
A help text will be displayed giving a short description of the [F1] - [F8] function keys and what
they do.
Note:
The installation has created the following directories:
Default Directory: (Working software Directory): PGDEF
Standard Directory: (Directory for Standard function blocks): PGSTD
User Directory: (Directory for your own function blocks): PGUSER
The setup program looks for the file path of the old B&R PROgramming SYStem. When the
program is found you are asked if the [Link] file should be over written.
By pressing [N] you can give the new [Link] file another name.
With [↵↵], the [Link] file is over written. From this point on the process is exactly like a new
installation.
The INSTALL program is called from MS-DOS with the following command:
The configuration starts just like the installation with the language menu from the INSTALL
program showing on the screen.
From the menu, select the language you would like to communicate with the PC in.
After choosing the language, the installation menu from the INSTALL program is displayed:
[F1] Configuration
The screen and keyboard can be reconfigured from the SCREEN CONFIGURATION and
KEYBOARD CONFIGURATION menus. These menus are exactly the same as the software
installation setup menus (Pg.8&9 of this chapter). When the proper drivers are selected, the
program copies the files to the correct destination directory. When the copy process is finished,
pressing any key will bring you back to the installation menu.
Both of these functions are exactly the same as in the setup program (Pg. 11).
This function installs the B&R standard software. The installation is explained more precisely in
the Users Manual / Standard software, (Volume 1, General)
[F4] Remarks:
This is a short text giving information on how to run a failure free B&R PROgramming SYStem
and some operation requirements (PC setup and COM 2 interrupt).
[F7] HELP:
[F8] EXIT:
7. USABLE PC-VERSION
For a usable PC version you must have the following files:
Language dependent files:
[Link] .... Command names and function keys text
[Link] .... Error messages
[Link] .... Other messages
[Link] .... Status test messages
[Link] .... Function block FBK - Outline - Text
[Link] .... Title screen with parameters
Normal data files:
[Link] .... Keyboard definition
[Link] .... OPCODE-Data table
[Link] .... EDITOR-Parameters, Field length and attributes
[Link] .... Control strings for B&R Mnemonics
EDITOR.CT0 .... Control strings for MOTOROLA Mnemonics
[Link] .... Function key definition
PRV_AEGA.DEF .... Output code definition for MAESTRO-Emulation
(EGA-Graphics card)
PRV_AVGA.DEF .... Output code definition for MAESTRO-Emulation
(VGA-Graphics card)
Program:
[Link] .... Device drivers for ONLINE, SERIAL, CRT, KBD, ...
[Link] .... PG-Software
Modem:
Modem operation files:
[Link] [Link] [Link] [Link]
[Link] [Link] [Link]
Screen masks for Modem operation in the PG\MASK\PG directory:
[Link] [Link] [Link] [Link]
[Link] [Link] [Link] [Link]
[Link] [Link] [Link] [Link]
[Link] [Link] [Link] [Link]
[Link] [Link] [Link] [Link]
[Link] [Link] [Link]
Files created by PC-PG (These files can be deleted without loss of data).
V_MEM.TMN .... Temporary memory for <UNDO>
V_MEM.TM1 .... Files in temporary memory
V_MEM.TM2 .... STL-Programs
[Link] .... Window configuration
CHAPTER 3
INSTRUCTIONS
At the top, left of your screen “MEMSIZE: XXXX paragraphs” is displayed. The number of
paragraphs must be at least 3000 for the PROgramming SYStem to run. If not enough memory is
available the program is ended with FATAL ERROR 9.
f
b
g
c
d
e
The opening menu screen gives the following information:
c) Command line: The command line is where all operating commands for the
PROgramming SYStem are given.
d) Blinking cursor: Shows the point, that the next character can be placed on the
screen.
e) Softkeys: At the bottom of your screen eight function keys are shown.
These keys are for the most important operating commands
that should have to call while working in the PROgramming
SYStem.
Level A:
Level B:
Level C:
Upon startup of the B&R PROgramming SYStem, certain parameters can be set.
1)
These parameters can only be used on the same drive that the PROgramming SYStem is
installed.
2.5. DEFAULT-DIRECTORY
This parameter sets the desired Default Directory. When a program or program part is loaded or
saved this is the directory that is used. If no parameter is set then the program assumes c:\pgdef to
be the Default Directory.
1)
Only possible in Level C.
2.6. USER-DIRECTORY
The User Directory that you would like to use is selected with this parameter. This directory is used
when a program or program part is loaded or [Link] this start parameter is not set up, the program
assumes c:\pguser to be the User Directory.
Syntax: C:\PG\> run pg02 udir=<Directory> [↵]
2.7. STANDARD-DIRECTORY
This parameter sets the Standard Directory that you wish to [Link] Standard FBK's are
automatically loaded to this directory. If no parameter is set, the program assumes c:pgstd to be the
Standard Directory.
In the directory of c:\prosys the usa file must have the extension .sym. The
SYM file [Link] will be loaded.
If the file holding the STDSYM parameters does not exist, the PROgramming SYStem will start up
nevertheless and no error message will be shown.
Parameter: <FNAME> ...Drive + Path+ File name; If no path is given the directory
\PG\ is searched
The file [Link] is loaded to the directory c:\pg and called from it as well.
Note:
During the Programming SYStem installation a separate parameter file is created, which is
↵]. The [Link] File looks like this:
activated by starting the program with pg [↵
C:
cd C:\PG
run pg02 PAR=[Link]
cd ..
The parameter file [Link] contains these Parameters:
mnem=b&r
stdsym=gr
Command Function
↵]
MOTOROLA [↵ Switch to MOTOROLA® Mnemonics
↵]
B&R [↵ Switch to B&R Mnemonics
MIXM [↵↵] Displayed in MOTOROLA® Mnemonics and
Input in B&R Mnemonics
↵]
MIXB [↵ Displayed in B&R Mnemonics and
Input in MOTOROLA® Mnemonics
↵] Language options
LANG <LANGUAGE> [↵
↵]
PC [↵ Switch from PG1000 to PG-PC Mode
Switch from CP80 to PC80 Mode
↵]
CP80 [↵ Switch from PG1000 to CP80 Mode
Switch from PG-PC to PC80 Mode
↵]
CP40 [↵ Switch from CP80 to PG1000 Mode
Switch from PC80 to PG-PC Mode
↵]
DDIR <\PATH> [↵ Default-Directorie options
↵]
SDIR <\PATH> [↵ Standard-Directorie options
↵]
UDIR <\PATH> [↵ User-Directorie options
After switching from PC mode to PG1000 mode you can not switch back. Working
in PG1000 mode is only possible if the PROgramming SYStem has been started in
this mode or with the command NEW. (PG 1000 only operates if the PROgramming
SYStem has started with it.)
↵]
Enter in the command line: MOTOROLA [↵
3. KEYBOARD
3.1. ESC-KEY
This key is used quite often. Pressing the [Esc] puts you in the nest higher menu or breaks out af a
currently running command.
If the keyboard that you have does not have an [Esc] key the [5] key in the number
block replaces it.
The function keys [F9] and [F10] bring up alternate softkey functions that are used by holding the
[F9] or [F10] key down and pressing the function key corresponding to the desired command.
Example: The start of the PROgramming SYStem shows the following softkey functions:
By pressing [F9]
By pressing [F10]
3.3. RESET-KEY
If you need to momentarily break into a currently executing program, a RESET key is available on
the programming device keyboard. To take a look at where the keys are situated on your keyboard
the illustrations on page 3-14 and 3-15 should provide an answere.
If your keyboard has no number block, the RESET keys are [F11] nad [F12]. When the keyboard
has both a number block and function keys either can be used. If you are running the B&R
PROgramming SYStem on a TOSHIBA laptop computer the RESET keys are [Sys Req] and [Prt
Sc] keys, situated in the top right corner of the keyboard.
The RESET key functions differently depending on how the Online Interface is utilized:
AT-KEYBOARD XT-TASTATUR
Reset key for Reset key for Reset key for Reset key for
Window 1 Window 2 Window 1 Window 2
+
Scroll
Lock
PgDn
PgUp
3
9
Del
,
2
8
5
Num
Lock
Home
End
1
7
Ins
0
PrtSc
*
~
#
Caps
Lock
}
]
+
@
=
’
[
{
?
/
_
-
:
;
P
>
.
0
)
L
O
<
,
9
(
K
I
M
8
*
J
U
N
7
&
H
Y
B
6
^
G
T
V
%
5
F
R
C
4
$
D
E
X
3
£
S
W
Z
2
"
A
Q
/
|
1
!
Alt
Ctrl
Q W E R T Y U I O P Ü * Pg Dn 7 8 9
Delete End
@ +~ Home Pg Up
+
A S D F G H J K L Ö Ä ’ 4 5 6
#
> Z X C V B N M ; : _ 1 2 3
< | µ , . - End Pg Dn
Enter
,
EUROPIAN-KEYBOARD
Window 2
Window 1
Print Pause
Num Caps Scroll
Screen Scroll Lock Lock Lock
Sys Rq
Lock Break
Window 1
~ ! @ # $ % ^ & * ( ) _ + Page
Backspace Insert Home Num -
/ *
Reset key for
´ 5 6 9 - = Up Lock
1 2 3 4 7 8 0
Q W E R T Y U I O P { } | Page 7 8 9
Tab Delete End
[ ] \ Down Home PgUp
+
A S D F G H J K L : " 4 5 6
Caps Lock Enter
; ’
US-KEYBOARD
Z X C V B N M < > ? 1 2 3
Shift Shift
, . / End PgDn
Enter
0 ,
Window 2
3-15
Chapter 3 INTRODUCTION
All commands controlled by the function keys are also entered in the command [Link] a
command is entered in the command line from the keyboard, the function key allocation is changed
Example: By entering STL in the command line the function key commands change:
[↑] or [↓] SEQC 1), STL, SYMB or TAB-Editor, moves one line up or one line
down. (depends on which editor the commands are entered in).
[PgUp] SEQC 1), STL, SYMB or TAB-Editor, moves to the next page up.
[PgDn] SEQC 1), STL, SYMB or TAB-Editor, moves to the next page down.
[Ctrl] + [↑] or [↓] Input line (The line that is displayed inversley in the editor)moves up
or down one line.
[Ctrl] + [Del] Command line is deleted
[Ctrl] +[Alt] + [↑] or [↓] Repeats the previous command (up to 10 commands are stored).
[Alt] + [TAB] Tabulator line turned off.
[↵] Depending on the editor the cursor will go to the chosen input line.
1)
Dies ist nur in den Ausbaustufen A und B möglich.
5. TABULATORS
Tabulators are utilized in the following editors: STL, SYMB and TAB-Editor.
To set the tabs place the cursor in the desired position and with the following key combinations ...
tabulator set
current curtsor position
The tabulator line can be switched on directly from the command line. However it is impossible to
set or remove tabs from it.
6. WINDOW TECHNIQUES
With the "WINDOW" command you can position and size the windows
Command: ↵]
[F10] + [F7 WINDOW] [↵
Both window are displayed, according to the last set position and size.
Window 1
Window 2
Softkey allocation:
Note: The B&R PROgramming SYStem stores all window size and position changes
automatically in a file called [Link], so that the last changes made are the start
up parameters for your windows.
[F5 EEPROM] If a program hasn't yet been saved to the PROM-user memory, it can still be
done without going back into the STL. By pressing [F5 EEPROM], the
EEPROM menu wil be displayed.
8. SYSTEM-RESET
A warm start (reboot) can be done by pressing the [CTRL], ALT] and [DEL] keys at the same time.
This causes the MS-DOS operating system to start again.
To avoid a SYSTEM RESET occuring by accident the operating system asks the following
question:
SYSTEM RESET
<F10> to CONFIRM
If the operating system does not restart, you must press any other key to carry out the procedure.
9. PROGRAMMING TRANSFERS
BETWEEN PG1000 AND PC
It is possible in Level C to transfer programs from the PG1000 to the PC in PG1000 mode or
programs in the PC (in PG1000 mode) can be transfered to the PG1000.
9.1. SWITCHING
A B C PG1000 CP80 PG-PC PC80
FROM PG1000 TO PC ● ●
1) Make connection from PG1000 (serial interface) to PC (serial interface COM 1) (cable
BRKAPC-0)
The program loaded by the PG1000 can be processed. Also the additional functions of the PC-mode
can be used, when switching to the PC mode when entering the command PC .It is very important
to remember, that it can't be switched back to the PG1000 mode.
Note: The STL instructions of ladder diagrams are inserted to the PC after the last
existing program END . If t he field is filled with NOP's, there might not be
enough program memory.
Remedy: Delete unnecessary ENDs in the PG1000 before the transfer.
2) ↵] command to PG1000.
Enter LIBM [↵
If a program written in the PG-PC mode is found, the following question is displayed in the
messageline:
With [Y] or [N] the user can decide, if he/she should quit the current transfer or go ahead to
the PG1000 mode.
This is the name given by the user that is indicated in the command line when you call up the
PROgramming SYStem. This name is set as a default for every new start or every time the
command NEW is [Link] also defaults when you use "PROGRAM 01"for window 1 and
"PROGRAM02"for window2.
...printed on documentation
Parameter: For <Date>, text can be entered that is 8 characters long. No letters may be used.
The default setting after the start up of the PROgramming SYStem, e.g. after the
command NEW the date is shown in the following format
Year
Month
Day
[Link]
Example: 91.04.25
The program date is, just as the program name, saved with the program, transfered in the PLC and
printed.
Function: The entire program of the current window is deleted. The following default values
are set:
To prevent an accidential program deletion, the following question is displayed in the command
line:
Parameter: After the input of ONL different <interface> possibilities are offered in the
softkey line:
Function: Selection and definition, of the online interface that should be applied, for
programming a PLC.
Mode
Command PG1000 PG-PC Memory Module
Function: Call up and execution of the MS-DOS command interpreter. The PROgramming
SYStem is not terminated, and remains in the PC work memory.
1) ↵]
DOS [↵
Accessing the MS-DOS interpreter. The MS-DOS input prompt appears. All MS-
DOS commands and other application programs can be executed on this level, if the
remaining PC work memory is sufficient.
The MS-DOS command interpreter can be exited with the EXIT command.
2) ↵]
DOS "command" [↵
↵]
DOS "COPY C:\project\*.prg a:" [↵
Function: If the cursor is located in one of the editors, the text insert mode is either turned on
or off with this key combination.
Text insert mode on: When entering text with the keyboard, the existing text is not
overwritten, but moved to the right.. The newly entered text is inserted.
Text in sert mode off: When entering text with the keyboard the existing text is
overwritten beginning at the cursor position.
Example: A program part, beginning at label LIST should be printed to the line number 1000 .
The followimg line is to be entered:
↵]
[F10] + [F1 PRINT] [F1 PROG] [F1 FROM] "LIST" [F2 TO] 1000 [↵
If the STL program line should be accessed to edit the STL, "LIST" has to be
entered in the command line.
CHAPTER 4
SEQUENCE CHART / LADDER DIAGRAM
LOGIC PLAN / FUNCTION PLAN
1. GENERAL INFORMATION
The B&R PROgramming SYStem offers the possibility of writing in a graphic programming
language. This programming mode has the advantage, of visualizing "abstract" STL commands
making them clearer and easier to look at. This programming mode is comparable with the design
of a circuit diagram. The user doesn't necessarily need to know the functions of STL commands.
This chapter explains four important PROgramming SYStem functions, that are part of the graphic
programming:
- Sequence Chart
- Ladder diagrams are easier to read than STL programs. Especially, when a
program should be changed and processed after a lengthy period of use.
- In the ladder diagram status test, contact status and internal memory
locations are visualized. This makes control of a running program possible
and is a great support for error detection.
With definition of a name An existing or a newly defined SEQC with the name entered is
called and displayed on screen.
A sequence chart with the name $PRG is absolutely necessary in expansion levels
A and B. This sequence chart $PRG corresponds with the main program, from
which all ladder diagrams and additional sequence charts are called.
e
f
window number
program name
SEQC name
program date
last SEQC line
number of free user commands
programming mode
b) Line numbering:
The SEQC editor is numbered from 0 to 49 on the left side of the screen. In a SEQC a maximum of
50 LAD calls can be located. If this is not sufficient, an SEQC can be called up instead of an LAD.
d) Column numbering
The SEQC editor input field is divided into 16 columns (0 - 15). LADs or a different sequence chart
can always be called in column 1. The graphic illustration of a call occupies column 1 to 3. A
comment can be entered in any location that is not occupied with a call.
In expansion levels A and B after pressing [Esc] in a numbered line, a command line in the SEQC
editor is displayed. Here all PROgramming SYStem operator commands can be entered.
e) Message line
In the message line all messages, that apply to the operator, are displayed. These are error
messages that are caused by the user because of inorrect operation. Messages that require an input
of parameters, can also be displayed.
f) Softley line
In the softkey line the functions [F1] - [F7] of the SEQC editor are offered.
If the cursor is located in the command line of the expansion levels A or B, the SEQC $PRG or the
last processed SEQC is displayed on screen. In this case the function keys are provided with the
most important PROgramming SYStem operating commands.
[F1 CALLS]
With this function ladder diagrams, sequence charts or statement list subprograms (only in
expansion level C) can be accessed. Only if the cursor is positioned in column 1, can a call be
made. When this key is pressed, the following figure is displayed in the current input field (the
linethat the cursor is in):
blinking cursor
The blinking cursor is in a four-character input field. The user can now enter a name with a
maximum length of four characters. The name must start with a letter.
If a name is entered, to which no ladder diagram, SEQC program, or sequence chart exists, the call
is marked with a “*”.
[F2 EDIT_BLK]
In order to edit an existing call, it must be first selected. This is possible in two different ways:
[F2 EDIT_BLK] + [❖] or
[Alt] + [❖]
● [F1 DEL_PIC]
Deletes the call from the SEQC. The softkey line is reset again.
● [F2 EDIT_BLK]
With [F2 EDIT_BLK] + [❖] or [Alt] + [❖] a different call can be selected.
[❖]
● By pressing one of the four cursor keys, the selected call is exited and the softkey
line is switched back again.
A line in the SEQC input field is deleted with this function. If a call or comment has been inserted
in this line, it can't be deleted.
With this function a line in inserted in the SEQC input field. As soon as a call or comment is in line
49, the following error is displayed in the message line:
[F5 PRINT]
00 LAD1
01 LAD2
02 LAD3
[F6 TEXT]
In order to make an operation or program editing possible later on, it is important to create clear
and comprehensive documentation for the program. For this purpose comments can be entered with
the function [F6 TEXT]. After pressing the function key, text can be entered beginning at the
current cursor position. The text input is terminated with [↵].
[F7 ***]
With this function a call is marked, so that it is not considered during the program processing. This
is necessary for example, if certain program parts should not be executed during the program test.
Before pressing [F7 ***] the cursor must be located to the left of the respective call. The call is
marked with “***” and is deactivated. Repeating this procedure activates the call and it is included
in the program execution again.
A sequence chart with the name $PRG must be available. If not, an error message is
displayed after the program start:
E051 INVALID BRANCH
This error message is also displayed, when an invalid call is entered.
b) Expansion Level C:
If sequence charts are used in expansion level C, they must be called up like subprograms
in the SEQC editor.
Example: JSR xxxx xxxx.... SEQC name
"Calls", that are entered in a sequence chart, are automatically transformed when exiting the
sequence chart. A transformed sequence chart can look like this:
The main program, from which the program is called, is quit with the command
"END".
With the operating command CLEAR a SEQC can be deleted. If this command is entered to the
command line, the function key allocation changes:
With the selection of [F7 SEQC], input of a SEQC name and confirming with [↵] the respective
SEQC is deleted.
[Ctrl] + [Esc] Exitsfrom the SEQC editor to the command line, and changes after the last
access are not considered. The SEQC is not translated.
For ladder diagram programming all conventional contact symbols (NC and NO contacts,...) can
optionally be connected.
A 9 character name (symbol) can be assigned to all contacts that are used in the ladder diagram,
making it much easier to read.
B&R PROgramming SYStem gives the possibility to mix programming of ladder diagrams, logic
plans and function plans. For this reason it is possible to resolve the most complex tasks in a
clearly arranged representation.
Without the definition of a name, the LAD, that was processed last, is called and displayed. If no
LAD exists, the following error message is displayed:
e
f
Window number
Program name
LAD name
Program date
Last line in the LAD
Current cursor line
Current cursor column
Programming mode
b) Line numbering
In every LAD created, a maximum of 50 lines are available. The LAD editor is numbered from 0 to
49 on the left side of the screen.
In the LAD editing field all connections and contacts are inserted and represented graphically. For
LAD documentation, comments can be entered as well.
After accessing a LAD, the cursor is located in line 0 / column 0. Within the editing field the cursor
can be moved by means of [❖].
d) Column numbering
e) Message line
In the message line, messages concerning user errors or messages requiring the input of parameters
are displayed.
f) Softkey line
In the softkey line, the most important commands of the LAD editor are offered on function keys
[F1] to [F8]. [F9] serves as a shift key for further functions.
Allocations
All paths are started in the column 0 with input allocations (load commands) and ended with
output allocations in column 15. Input and output allocations are presented differently.
Input allocation Output allocation
The remaining columns are used for the creation of connections and the installation of logic and
function blocks.
Path
In the ladder diagram the horizontal lines are called PATHS. These paths are provided with an 8
bit value contrary to “digital transmission”.
Address preselections
The following address preselections are possible in an LAD:
I Digital Input S Start Timer
O Digital Output T 1 bit Signal elapsed time
F Flag (1 bit memory) P Peripheral module
R Register (8 bit memory) G Global RAM in the PP601)
# Immediate constant value B Block memory in the PP601)
The input of these address preselections makes the call of a contact possible.
1)
Only possible in the PC80 mode
In the SYMB editor (chapter 6 SYMBOL EDITOR) a 9 character symbol can be allocated to every
address used in the LAD editor, displayed under the contact in the LAD. Reading and understand-
ing a LAD is made easier, like the following example shows:
With [F9] + [F1 SYMB MODE] it is switched to the symbol mode. By again pressing this key
combination, the display mode is exited. So it can be selected between two address representations:
2) Address display above the contact and SYMB display under the contact
A contact can also be called up with the direct input of a symbol. The advantage is, that the user
doesn't have to remember a lot of addresses. A contact is simply called up with the key [K], after
which a 9 character input field for the SYMB is displayed above the contact:
With the function key [F9] the occupancy of the softkey line is switched and additional contacts are
offered:
With the function keys any contacts and connections, that can be used in the LAD editor, are accessible.
With the [Esc] key the contact input menu can be exited. The softkey line is switched back and the
most important LAD functions are displayed again.
CONTACT OVERVIEW
Temporary Storage in a
F3 Horizontal Connection F3 * Flag or Counter
Contact
Representation:
If the contact is not located in the first or last column, it is loaded in the defined
memory location and is connected in AND relation with the status of the path.
If the contact is in the last column, the status of the path is saved under the
defined address (Output allocation). The contact has a different appearance in
the right column:
Call: - Exiting the contact input menu with [Esc], to get into the main menu.
- [F9] + [F2] <address preselection> <address> [↵]
- [F9] + [F2] [F3 SYMB_INP] <symbol assignment> [↵]
[F9] + F2
Function: With this function a path is made from the current cursor position to the last
column and in the last column a contact is automatically assigned for an output.
If this contact is in the last column, the value of the path is negated and stored in
the defined memory location.
Horizontal Connections
Representation:
Function: This function is used, to draw a horizontal path or to delete an existing path.
Vertical Connection
Representation:
Function: The connection is made to the left/right of the cursor up to the next path. With
the same function an existing connection to the next horizontal path is deleted.
Restrictions: This contact can be called up in the last column of the LAD in connection with 1
bit addresses (F, O, S).
Function: The terminated memory location is set to “1”, if the low value bit of a path is
“1”. The application of [L] is only recommended in connection with [U].
Restrictions: This contact can be called up in the last column of the LAD in connection with
1 bit addresses (F, O, S).
Function: The connected memory location is set “0”, if the low value bit of the path is
“1”. The application of [U] is only recommended in connection with [L].
Function : If a least significant bit of a path changes status from “0” to “1”, this contact
gives a pulse with the length of exactly one program cycle “1”.
Note: An edge-flag must be defined for this function, that can't be changed by
the program in another location. If positive edge generation is used more
often, a new flag must be distributed every time.
Function: If the least significant bit of the path changes its status from “1” to “0”, this
contact gives a pulse that is exactly one program cycle long “1”.
Note: For this function an edge flag must be defined, that may not be changed
by the program in a different location. If negative edge generation is used
more often, a different flag must be defined every time.
Function: If the least significant bit changes its status, this contact gives a pulse, that is
exactly one program cycle long “1”.
Note: For this function an edge-flag must be defined, that may not be changed
by the program in a different location. If the edge generation is used
more often, a different flag must be distributed every time.
Temporary Storage
Representation:
Function: The path connections are stored in the specified address. The status of the path
does not change.
Exclusive-OR Relation
Representation
Function: The existing result of a path is connected in exclusive Or relation to the contents
of the defined memory location.
Address Contact
Representation:
Function: This contact is used, to connect the address of a memory location to a function
block. I.e.: The address is submitted to the FBK, not the contents of the memory
location.
[F9] + F6 [AL A B
●
C
●
PG1000 CP80 PG-PC
● ● ●
PC80
●
Label contact
Representation:
Function: This contact is used, to connect the address of a label to a function block. It is
used for example for the connection of tables to the FBKs.
Note: A label may have a maximum length of four characters and must start
with a letter.
Conditional Branch
Representation :
Note: <LABEL> may have a maximum length of four characters and must start with a
letter.
In the line, where the second LABEL is entered, no additional contact may
be entered.
Function: A conditional branch is allowed with the input of a label in a path. The branch is
executed, if the path is not zero. (In the above example, line 9 is not executed
any more.)
Example:
The input I 001 is connected with the input I002 in AND relation and the result is assigned to the
output O 010. The corresponding STL program is as follows:
LDAA I 001
ANDA I 002
STAA O 010
Example:
The input I 001 is connected to the input I 002 in OR relation and the result is assigned to the
output O 010. The respective STL program is as follows:
LDAA I 001
ORAA I 002
STAA O 010
In order to subsequently change and process ladder diagrams several editing functions are avail-
able. When shifting the softkey line with the [F9] key the following functions are offered:
Delete Column
Command: - [F9] + [F3 DEL_CLMN]
- [Del]
Function: The contact or path segment in which the cursor is located, is deleted. The
cursor is moved to the left by one position.
Insert Column
Command: - [F9] + [F4 INS_CLMN]
- [Ins]
Function: A line draw (one column wide) is inserted in the path. The contacts to the right
of the cursor are moved to the right. The cursor must be located on a contact, or
directly to the left of a contact, to be able to perform this function.
Delete Line
Command: - [F9] + [F5 DEL-LINE]
- [Ctrl] + [Del]
Function: The line in which the cursor is positioned, is deleted.
Insert line
Command: - [F9] + [F6 INS_LINE]
- [Ctrl] + [Ins]
Function: The line in which the cursor is positioned, is moved down. A line is inserted in
the current cursor position.
SRCH_FUNCTION
Command : - [F9] + [F7 SEARCH]
Function: With this function the softkey line allocation is changed. Different possibilities
are offered, for which criteria the user can search:
[F1 CONT] After locating a contact, the search for other addresses can be continued
by pressing this key.
[F3 SRCH_UP] The search goes from the current cursor position to the top.
[F4 SRCH_DWN] The search goes from the current cursor position to the bottom.
To continue the search procedure in a new direction, the function key
[F1 CONT] must be pressed. The current search direction is marked by
the text in the soft key line that is displayed in inverse video.
[F7 END] The search is ended with this function key.
A search mask appears, in which the desired symbol must be entered. After quitting with
[↵] the LAD is searched for the defined SYMB from the current cursor position to the end.
If no contact exists, that is identical to the specified search mask, the following message is
displayed:
When a contact with the corresponding SYMB is located, the LAD cursor is positioned on
the contact.
A search mask appears, where the desired FBK name must be entered. After quitting with
[↵] the LAD is searched for the defined FBK from the current cursor position to the end.
If no FBK exists, that is identical with the search mask, the following message is displayed:
If a FBK is found, it is displayed in inverse video. With [F7 END] the user gets back to the
LAD editor. The FBK is still displayed in inverse video, and the LAD editor is positioned in
the FBK editor mode (more information is given in this chapter, section 6.5. Editing FBKs).
A search mask is defined, in which the desired label must be entered. After quitting with
[↵] the LAD is searched for the specified label from the current cursor position to the end.
If no label exists, that is identical with the defined search mask, the following message is
displayed:
Exchange-Function
Command: - [F9] + [F8 CHANGE]
Function: Searches for an address (address part), to be exchanged with another address
(address part) of your choice.
Two masks must be defined for this function; the search and exchange mask:
Search mask: Input of the address (address part), that should be exchanged
Exchange mask: Input of the address (address part), that should be inserted.
After the input of both masks is ended with [↵], the address that is identical with the search
mask is searched for. The search procedure begins from the cursor position, downwards, to
the end of the LAD.
Be sure to include spaces in the address. If no address exists, that is identical with the
specified search mask, the exchange procedure is interrupted.
When locating an address, the LAD cursor is positioned there, and the allocation of the
softkey line is changed:
[F1 CONT] The located address is not exchanged by the exchange mask and the
search for the next address is continued.
[F3 EXCHANGE] The located address is exchanged by the exchange mask, and the
search for the next address is continued.
[F3 REST] All addresses, that are identical with the search mask, are replaced by the
exchange mask without any questions.
[F7 END] With this function key the exchange procedure is interrupted.
3.8. DOCUMENTATION
In order to make subsequent editing and processing of the program possible, it is important, to
create clear and comprehensive documentation for the program. The clearer and the more definite a
document is, the more understandable and efficient the program will be, even after several years.
- Structured Programming
Any comment can be allocated with this function on every LAD position, where no contact, path,
FBK or logic block is located.
The entry of comments is terminated with [↵], and the input mode for the LAD is displayed again.
With this function, the last selected LAD is printed. This print out can be used for correction, since
a copy is easier to read, than the display on screen. Also, the user has complete documentation in
hand.
Example:
I 000 O 010
02 | | (U)
NOT OUT Motor
-----------------------------------------------------------------------------
05 * Motor off, if object passed the light barrier!
-----------------------------------------------------------------------------
08 * Motor on, if supply is required!
* Motor is not turned on, if an object is located in the
range of the light barrier.
09
-----------------------------------------------------------------------------
12
13>>END
03
O 010 O 011
14 | | ( )
Motor Lamp M1
In all expansion levels of the PROgramming SYStem a LAD can be called from a SEQC. Detailed
information on the LAD call from a SEQC is given in this chapter in 2. SEQUENCE CHARTS
(SEQC-Editor)”.
In expansion level C calling a LAD from a STL is also possible. The following command must be
inserted in the desired location of the STL program:
With the operating command CLEAR a LAD can be deleted. If this command is entered in the
command line, the softkey allocation line is deleted:
With the selection of [F6 LAD], input of a LAD name and confirmation with [↵] the respective
LAD is deleted.
[Ctrl] + [Esc] Exits the LAD editor into the command line. The changes since the last
access are not considered. The LAD is not translated new.
The contacts and connections in the LAD are displayed at “logic 1” in inverse video or as double
line. Active values are displayed in the function blocks.
The LAD status test is an important device for the installation of programs and for error detection.
4) If a status test is running in the other window, the following error message is
displayed:
↵]
4.2.2. LDMO <NAME> [↵
Command: ↵]
LDMO <NAME> [↵
Function: 1) The menu of the LAD status test is called. The program is not transferred to the PLC
CPU.
2) If the program has been changed since the last status test, it is realized by the
PROgramming SYStem. The following warning is displayed in the message line:
If [N] is entered or the program in the PG is not identical with the one in the PLC,
an error message is displayed:
3) If a STL status test is running in the other window, the following error message is
displayed:
4) When calling LDMO without entering a name, the last used LAD status test is
called.
c 1
d 3
e
f
a) Status line is identical to the LAD editor status line.
b) Line numbering
In every LAD created, a maximum of 50 lines are available. The left part on the screen is num-
bered from 0 to 49.
d) Column numbering
PG1000-mode The LAD is divided into 8 columns (00 to 07).
PG-PC-mode The LAD is divided into 16 columns (00 to 15).
e) Message line
In the message, line messages concerning user errors or messages requiring the input of parameters
are displayed.
f) Softkey line
In the softkey line, the most important functions of the LAD status test are offered on the function
keys [F1] to [F8].
[F1 MODE_ALL]
All contacts and paths used in the ladder diagram are represented in inverse video or as a double
line according to their logic states .
All other active values (in function blocks) are displayed as numbers (the display format can be
selected).
[F2 MODE_FBK]
Only the active values, that are used in the function blocks, are displayed. The logic states of the
contacts and the path are not displayed.
With this representation , no time for the graphic illustration is required. This display mode is used,
if active values, that rapidly change, should be displayed by FBKs.
[F3 MODE_CON]
Only the logic states of the contacts are displayed. Active values and status of the path are not
considered for the representation.
With the function keys [F4] to [F7] different display formats for active values can be selected:
[F7 BINARY] The display of active values is binary. It is only possible to display a
value with a maximum size of one byte in the binary format. If the
value is higher than one byte it is displayed in the hexadecimal
format.
F1 MODE_ALL F2 MODE_FBK
[F8 LM_EDIT]
With this function, memory locations can be displayed and changed in the LAD status test.
The user also gets information about the CPU, operating system and the currently running program.
a
b c
a) Symbol display
In this field the symbol allocation of the address, in which the cursor is positioned, is displayed.
1) address field
2) display field
3) input field
A full description of the usage of status fields is given in chapter 5 STATEMENT LIST section
“7. STL Status Test”.
c) Module information
This three-line display field contains the following information:
additional information
A = arithmetic processor
S = serial interface
These logic blocks are included in the LAD and can be combined optionally with all LAD ele-
ments.
For the call of a logic block, the softkey line is switched by pressing the function key [F3 LOGIC_BK],
which is offered in the LAD editor. The softkey line allocation is changed:
With the function keys [F1 AND], [F2 OR] and [F3 EXOR] the desired logic block can be selected.
If the cursor is for example in line 1/column 1, one of the following logic blocks will be displayed
on screen:
With the [Esc] key it can be switched back to the softkey line. The usual functions for the LAD
editor appear.
Key FUNCTION
Key combination
[F4] If the cursor is in the logic block, a vertical connection up to the next
[V] path is created directly left of the logic block.
[F5] If the cursor is in the initial page, a vertical connection up to the next
[Ctrl] + [V] path is created directly right to the logic block.
Key FUNCTION
Key combination
[F9] + [F3 BLK_LFT] The selected logic block is moved to the left by one column.
[Del]
[F9] + [F4 BLK_RT] The selected logic block is moved to the right by one column.
[Ins]
[F9] + [F5 INS_LINE] The selected logic block is expanded by one line. The cursor must be
[Ctrl] + [Ins] positioned on the input page for this function.
When exiting the block with the [❖] keys the LP editing mode is exited. The usual allocation of the
softkey line in the LAD editor appears.
- mathematics function
- communication
These FBKs are included in the LAD and can be combined with all LAD elements.
In the expansion level A only the standard function blocks of B&R are loaded and
included in the LAD.
Pressing the function key [F4 FBK] opens the FBK overview menu for a FBK call. This overview
displays the FBKs, that have already been loaded in the application program.
b
c
d
a) FBK Overview
All FBKs, that are used in the program, are listed in this overview. If the FBK list is longer than
one screen page, it can be leafed through with [↑], [↓], [PgDn] or [PgUp].
For easier recognition of an FBK, a short information line about the respective FBK is displayed.
This short information is defined by the creation of a FBK (only possible in expansion level C,
chapter 10 CREATING FUNCTION BLOCKS ).
b) Input line
With the input of an FBK name, a desired FBK can be loaded without selecting [❖]. The input is
terminated with [↵].
c) Message line
In the message line messages concerning user errors or messages requiring the input of parameters
are displayed.
f) Softkey line
In the softkey line the most important functions are offered on keys [F1] to [F5].
KEY FUNCTION
↑]
[↑ Selection of a FBK from the FBK overview. '
↓]
[↓
[F5 DISP_FBK] The selected FBK is displayed, to check if the desired FBK corre-
sponds.
[Esc] leads back to the FBK overview menu.
[Esc]
Exiting to the LAD editor.
KEY FUNCTION
[F1 FBK_STD] Loading a standard FBK for the standard library. After pressing this
function key, the standard FBKs, that are located in the directory
\PGSTD (standard directory) are displayed. FBKs, that are not
marked as standard FBKs by B&R, are not listed and can't, for this
reason, be read.
[F2 FBK_USER] Loading an FBK from the user library. After pressing this function
key, all FBKs are displayed, that are located in the directory
\PGUSER (user directory).
Key FUNCTION
[F1 NEXTDIR] If the cursor of the FBK overview menu is located in a directory, this
directory is opened. The contents of this directory are displayed. This
function corresponds with the DOS-command “cd <directory
name>”.
[F2 PREVDIR] The previous directory is changed and its contents are displayed. [F2
PREVDIR] corresponds with the DOS command “cd ..”.
With [↑], [↓], [F4 LOAD_FBK] and [F5 DISP_FBK] a FBK can be selected and loaded from the
current drive the same as calling existing FBKs.
If a FBK is selected in one of these ways , the allocation of the softkey line changes:
Key FUNCTION
Key combination
[F2 CHNG_ADD] The addresses of private memory locations can be changed. Every
change must be terminated with [↵].
If an FBK has more private memory locations, these can be selected
with [❖].
This mode is exited with [Esc].
[F8 SRCH_FBK] + According to which of the [v] keys is pressed, the next FBK is
❖]
[❖ searched for in the respective direction. The located FBK is displayed
❖]
[Ctrl] + [❖ in inverse video, and can be edited.
The FBK editing mode is exited and the FBK is displayed normally
❖]
[❖ again.
STL listings of FBKs that can't be used in the LAD, can be located in the working memory. The
FBK is also listed in the FBK overview menu and could be included again in a LAD. If such FBKs
are not required any more, valuable memory is occupied.
The STL listing of a FBK can only be deleted from the STL in the expansion level C .
In order to delete a STL listing of a FBK from the STL, the start address and the end address must
be known. With the operating command DELETE BLOCK or [F9] + [F7 DELETE] [F7 BLOCK]
the specified range is deleted from the STL. The description of this command is given in chapter 5
STATEMENT LIST.
CHAPTER 5
STATEMENT LIST PROGRAMMING
The most complicated programming problems can be solved with status list programming - either
with B&R specific, German command abbreviations or with MOTOROLA® -mnemonics. STL is
more than assembler programming. The command block includes elementary processing commands
as well as complex floating point calculation routines, that are integrated as default in all B&R
systems.
Advantages: - Creating memory and time optimization programs is possible with the help
of STL-programming.
- STL programs must be documented more extensively than the LAD, because
the graphic representation of the LADs is already part of the docu-
mentation.
In this chapter basic knowledge of STL commands are required because only the
STL editor is described. A summary of the STL commands is given in Appendix
B.
Command: ↵]
[F1 STL] <LN/LB> [↵
After confirming the command input with [↵], the STL editor is displayed. The input cursor
(blinking cursor) is located in the command line.
With the input of a line number (LN) or a label (LB), the respective line of the STL editor is
performed inverse (=input line of the STL editor). If no parameter follows the STL command, the
line that was previously processed in the STL is described inverse.
By pressing [↵↵] in the command line the cursor is positioned to the input line of the STL editor. If
something needs to be changed or inserted in a certain STL line, the input cursor can be set to the
respective line with the input of <LN/LB> [↵↵].
c
d
e
window number
program name
program date
time
programming mode
free application memory
number of
used labels
b) Input line
STL commands and comments can be entered in this line. The input line is divided into several
editing fields.
c) Command line
The command line serves for the input of operating commands. The most important commands are
also available with the function keys from [F1] to [F8].
d) Message line
Messages, that apply to the operator are displayed. A wrong command or bad operation causes an
error message to be displayed. Messages that demand parameter inputs can also be displayed.
e) Softkey line
In the softkey line the STL editor functions are offered on the keys [F1] - [F8].
With the keys [F9] and [F10] the occupancy of the softkey line is changed and additional functions
are offered.
insert mode
line number
comment line
label
command
negation / indirect addressing
address preselection
address
symbol allocation
comment
If the character “>” is in this position, the STL editor is in the insert mode. A new line is inserted
with every return [↵].
If the insert mode is activated, pressing the return key [↵] will move the STL one line up and the
next line can be edited.
With the key combinations [Ctrl] + [Ins] an “NOP” line is added and [Alt] + [Ins] a comment line
is inserted. The insert mode is started in both cases.
If the key combination [Alt] + [Ins] is pressed instead of [Ctrl] + [Ins] a comment
line is inserted between the line 2 and 3:
The insert mode is activated in both cases. This is identified by the character “>”.
Insert mode can be exited by pressing [↑], [↓], [PgUp], [PgDn] or [Esc].
1) Numbering in the PG1000 and PG-PC modes (CP40) succeeds after lines.
2) in the CP80 and PC80 modes (CP60, CP80) the line number is not displayed, but
the program step number (number of used bytes) is displayed. The numbering
proceeds in irregular intervals, since every command does not have the same
opcode length.
Comment lines supply the program documentation. Lines that are marked by the character “*” as
comment lines, don't have an individual line number. These are assigned to the succeeding program
line as a head line and, for this reason, have the same line number.
The assembler mnemonics for the processor commands are entered in this 4 character long field.
Optionally B&R or MOTOROLA® mnemonics can be used.
Every input is checked for errors. If the wrong mnemonics are entered, an error message will be
displayed and the command field can not be exited.
The negation can not be applied with all addresses. It is only possible for 1 bit addresses.
The following address preselections are defined:
I digital input
O digital output
F flag (1-bit-memory)
S start timer (1 bit signal to start a time)
T timer (1 bit signal of the terminated time)
The negation occurs by pressing the key [N]; the cursor must be located in the address
preselection field. By pressing the [N] key again, the negation is made inactive. If a certain
address was negated, the respective field is marked by an “N” :
This addressing method is only possible in connection with registers (R), index registers (X, Y) and
stack pointers (U, !).
When using this addressing method, the address to which the command refers, is taken out of the
memory location (2 byte) that was defined by the address preselection and the address.
Extended addressing results from pressing the key [[]; the cursor must be located in the address
preselection field. A repeated pressing of the key [[] will end this addressing procedure. The extended
addressing is displayed in the respective field by the “[” character.
Example: LDAA R 0100 load accumulator A with the contents of R 0100.
LDAA [ R 0100 load accumulator A with the contents of the memory location,
as well as a 16 bit address located in R 0100 and R 0101.
E I digital input
A O digital output
C R register (8 bit memory location)
M F flag (1 bit memory location)
F S start timer (1 bit signal to start time)
Z T timer (1 bit signal of the terminated time )
P P peripheral address
G G global-RAM in the PP60 (available only in the PC80 mode)
(extended dual port RAM area)
B B block memory in the PP60 (available only in the PC80 mode)
# # immediate
I X index register X
Y Y index register Y
U U user-stack pointer
! ! system-stack pointer
Some statements exclude one or several address preselections. But if an inadmissible address
preselection is entered, a respective error message is displayed.
4.8. ADDRESS
The address of the desired memory location is entered in the address field. This address field may
be up to 17 characters long according to the entered address preselection. Advanced zeros must not
be entered.
rack address
slot number
channel number
I 035
rack address
slot number
channel number
O 024
R R 0000 - R 7167
F F 000 - F 799
S,T
hardware times S 000 - S 3E7 > with bus control
S 000 - S 3F7 > without bus control
T 000 - T 3E7 > with bus control
T 000 - T 3F7 > without bus control
rack address
slot number
time number
S 1E5
T 1E5
software times S D00 - S D63 Time duration must be
T D00 - T D63 defined with individual commands.
time number
S D56
T D56
P P 0xr CPU programs: x ... slot
r ... register
P 000 - P 3FF PP-programs: the consequence of
individual P-addresses is different accord-
ing to the peripheral processor used.
B B 0000 - B 4095
G G 0000 - G 4095
decimal “ ”
1 byte-value # 000 to # 255
2 byte-value # 00000 to # 65535
hexadecimal “$”
1 byte-value # $00 to # $FF
2 byte-value # $0000 to # $FFFF
binary “%”
1 byte-value # %00000000 to # %11111111
2 byte-value # %0000000000000000 to # %1111111111111111
ASCII “'”
1 byte-value # 'x to # 'x
2 byte-value # 'xx to # 'xx
A SYMB can have a length of up to 41 characters. According to the selected representation the
entire SYMB or only the first 14 characters are displayed. With [F6 SYMBLEN] it can be switched
between both possibilities.
The display on the screen depends on the selected method of representing the symbols.
symbol comment
full length If the SYMB is longer than 14 characters, the comment begins with a
distance of two characters next to the SYMB, otherwise a maximum
of 39 characters is displayed.
5.1. SOFTKEY-FUNCTIONS
If the cursor is positioned in the input line of the STL editor, the function keys are allocated as
follows:
[F1 STL]
By pressing this function key the STL editor is exited and the cursor is set to the command line.
The PROgramming SYStem requires the input of a line number or a label:
[F2 SYMB]
By pressing this function key the STL editor is exited and the cursor is set to the command line.
The PROgramming SYStem requires the input of an address:
[F3 TAB]
By pressing this function key the STL editor is exited and the cursor is set to the command line.
The PROgramming SYStem requires the input of a table name:
[F4 UNDO]
The STL editor is provided with a LIFO-storage (Last-In-First-Out), in which the last 10 deleted
lines or characters respectively are stored. With the function [F4 UNDO] these are inserted in the
text at the cursor position.
With this function e. g.: up to 10 lines can be cut out (deleted with [Ctrl] + [Del]) and inserted
again at any position in the program.
[F5 SYMBINP]
In the STL editor, symbols can be assigned directly with this function (maximum length of
41 characters). The input or change is terminated with [↵].
This function is called from program lines, that are provided with the addresses I, O, R, B, G, F, P,
S or T. If a wrong SYMB is entered in a line, the following error message is displayed:
The SYMB is changed or remains the same according to the needs of the user . The cursor is set to
the next program line.
If a SYMB display is limited to 14 characters, the input of longer SYMB text is moved to the left
and only the 14 section of text is displayed. The SYMB appears full length in the message line.
[F6 SYMBLEN]
According to the selected representation mode, the entire SYMB or only the first 14 characters are
displayed on the screen. With [F6 SYMBLEN] it can not be switched to the active representation
method.
[F7 RECALL]
If an existing program line is changed, the original line can be recalled with this function, if the
changes are not terminated with [↵].
[Ctrl] + [PgUp] position cursor to the first program line (STL beginning)
[Ctrl] + [PgDn] position cursor to the last program line (STL end)
[Alt] + [↑] or [↓] move input line to the top/bottom screen margin
[Tab] or [⇑] + [Tab] set cursor to the next right/left input field of the input line
[@]
[F2 SYMB] <ADR> [↵] Exit the STL editor and call up the SYMB editor.
[F3 TAB] <TNAME> [↵] Exit the STL editor and call up the TAB editor.
By pressing the function key [F9] the allocation of the softkey's is changed:
By pressing [F9] + [F1 CHAN] or directly inputting CHAN, different functions are offered in the
softkey line:
[F1 EXCHA] All program lines, within the user defined limits are searched, and compared with
the two search masks, that are to be exchanged. If a search mask corresponds with
the program line, it is replaced by the other mask.
This procedure is applied, for example, in the exchange of modules. The following
masks must be defined for an exchange of the input card in slot 4 and the input card
in slot F:
[F3 EXCHA?]This function is the same as the one just described [F1 EXCHA] with a difference.
With every exchange an inquiry is displayed in the message line:
The user can now decide whether or not the exchange is to be executed:
[F1 YES], [↵↵] or [Y] exchange
[F2 No] or [N] the program line remains the same
[F7 END] or [Esc] function interrupted
[F2 REPLA] All program lines, within the user defined limits are searched, and compared with
the first search mask entered. If this corresponds with the program line, this line is
then replaced by the second search mask.
This procedure is, for example, used to change the slot on modules. The following
masks must be defined to change the input card in rack 0 from slot “6” to slot“ A”:
[F4 REPLA?] This function is the same as the one described above [F2 REPLA] with the differ-
ence, that with every replacement an inquiry is displayed:
The user can now decide whether or not the replace function is executed:
↵] or [Y]
[F1 YES], [↵ replace
[F2 NO] or [N] the program line remains the same
[F7 END] or [Esc] function interrupted
CHAN EXCHA
CHAN REPLA
CHAN EXCHA?
CHAN REPLA?
↵]
[↵ global replacing; the entire STL is
searched (except LADs).
↵]
[F1 FROM] <LN/LB> [F2 UP_TO] <LN/LB> [↵ The STL is searched in the specified
range.
↵]
[F2 UP_ TO] <LN/LB> [↵ The STL is searched from the current
input line to the specified program line
<LN/LB>.
↵]
[F1 FROM] <LN/LB> [F3 #] <NR> [↵ The STL is searched <NR> lines
beginning with the specified line <LN/
LB>.
↵]
[F3 #] <NR> [↵
The STL is searched <NR> lines
beginning with the current input line.
Change of symbols
After ending the function CHAN, the following question is displayed in the message line:
changed
addresses
original
addresses
[Y] With the function exchange all SYMBs, with a corresponding address to both
entered masks, are exchanged. Even the SYMBs, with addresses that are not used in
STL, are changed.
The function CHAN does not effect the STL of ladder diagrams.
After the input of GLOBCHAN in the command line the function key allocation is changed as
follows:
[F1 EXCHA] All program lines are searched and compared with the two entered search masks to
be exchanged. If the search mask corresponds with the program line, it is replaced
by the other mask.
[F2 REPLA] All program lines are searched and compared with the first entered search mask. If
it corresponds with the program line, the located line is replaced by the second
search mask.
Example: The input card in rack 0 / slot 5 is exchanged with the input card in rack 1 / slot 1.
In order to change the addresses in the program the following search masks are to be
entered:
Search range
The definition of a search range occurs just as with the function CHAN (page 5-20).
Search mask
After confirming the input with [↵] the user is asked to enter a search mask:
label
STL-commands
negation/ extended addressing
address preselection
address
Spaces in the search masks are not noticed during the search process. When the input of the mask is
terminated with [↵] the search is started.
The line number of the program line, that is compared with the search mask, is displayed in the
message line. If a program line is located that corresponds with the search mask, the search
procedure is interrupted. The softkey allocation changes and the following question appears in the
message line:
key function
[F1 CONT] The next line that is identical to the search mask is searched.
[Y]
[F3 CORR] The search procedure is interrupted and the cursor is set to the found
line.
[F7 END] The search procedure is interrupted and the cursor is set to the com-
[N] mand line.
[Esc]
If no program line was found, that is identical to the search mask, the search procedure is ended
and the cursor is set to the command line.
Example: In the range, line 200 to label LAB2, all registers R1000 - R1999 should be
searched:
Command : ↵]
[F9] + [F2 FIND] [F1 FROM] 200 [F2 UP_ TO] LAB2 [↵
SEARCH MASK and SEARCH RANGE are defined like Search [F9] + [F2 FIND] function.
6.5. COPY
A defined program range can be copied and moved to another position in the program with this
function.
The range that should be copied, is entered like the search range for CHAN (see page 5-20). After
the definition of the desired range the function key allocations are changed:
With [F1 TO] <LN/LB> or TO <LN/LB> the destination address is specified. After confirming
with [↵] the entered block is copied.
Without the definition of a destination address and confirming with [↵] the specified range is
copied to the cursor position.
If a program part is copied, in which labels are present, all lines are copied up to the first doubled
label. An error message is then displayed and the cursor is positioned to the program line where the
first double label exists:
This program line can be optionally edited. If another label was distributed, the copying process
can be continued with [↵].
Program parts that include protected lines (FBK, SEQC, LAD), can not be copied. An error
message is displayed:
6.6. MOVE
A specified program range can be moved to another position in the program with this function.
The function key allocation changes after the input of:
[F9] + [F5 MOVE]
The range that needs to be moved, is defined like a search range with CHAN (see page 5-20). After
the definition of the desired range the function key allocations are changed:
The destination address is entered with [F1 TO] <LN/LB> or TO <LN/LB>. The specified block is
moved after pressing [↵].
Without the definition of a destination address and confirmation with [↵] the specified range is
copied to the current cursor position
Only [F7 BLOCK] refers to the presently active editor; the other functions files (programs, tables,
SYMBs, macros, LADs, ASCII-files) can be deleted from the active disk drive. These functions are
described in chapter 8 “load, save, ...”.
The function key allocations are changed after the input of [F7 BLOCK]. A program range, to be
deleted, must be defined. This range is defined like the search range of the function CHAN.
After confirming the input with [↵] the defined range is deleted.
Registers, flags, inputs etc. can be displayed in freely selectable number formats and be changed
for testing purposes. The user gets an exact image of the control and software operating status.
7.2.1. RUN
Command: ↵]
RUN [↵
Function: 1) The program is checked for completion of the label table (compared to RNT-
command). If the label table is not complete or if the maximum branch width is
exceeded, the program is not transferred to the PLC and an error message is
displayed:
E051 INVALID BRANCH
2) The program is transferred to the RAM of the PLC program and started no
matter if a program is stored in EEPROM (CP40, CP41, NTCP33, NTCP34,
PSCP35) or PROM (CP60, CP80, NTCP63, NTCP64, PSCP65).
7.2.2. STAT
Command: ↵]
STAT [↵
Function: 1) The STL status test menu is called up. The program is not transferred in the
PLC-CPU.
2) If the program was changed after the last status test, this is considered by the
PROgramming SYStem. The following warning is displayed in the
message line:
W233 MAKE PROGRAM INFO ( Y / N ) ?
[Y] program in the PLC and PG are compared.
[N] process is interrupted.
If [N] is entered or the program in the PG is not identical with the one in the PLC ,
an error message is displayed:
E179 PROGRAM IN CPU AND PG DIFFERENT !
c
h
d
e
window number
program name
program date
time
programming mode
free application memory
number of
used labels
b) Symbol field
In this field, symbol assignments of the address are displayed, that are defined in the status field, in
which the cursor is positioned.
c) Status field
In this screen area up to 14 status fields can be applied.
A accumulator A (AA)
B accumulator B (AB)
X index register X
Y index register Y
U user stack pointer
DP direct page register
NCZ flags: N ... negative flag
C ... carry flag
Z ... zero flag
! system stack pointer
f) STL field
The processor status and the program register can be displayed before or after the processing of a
line.
g) Softkey line
In the softkey line the most important commands of the STL status test are offered.
h) Module information
In this field the following information is displayed:
additional information
A = arithmetic processor
S = serial interface
If a status field requires more space because of the selected display format, the next field is used.
address preselection
address
number of bytes
display format
definition field
display field
input field
Address preselection
The possibilities for address preselection are:
I, O, F, R, P, S, T, B, G
Address range
The possible address range for a certain address preselection, is given in section “4.8. Address”.
Number of bytes
The maximum number of bytes depends on the defined address preselection and the selected
display format.
$ % ' ^ I A F P no characters
for 8 bit memory location 1-4 1 1-8 1-8 1-4 1-4 42) 22) 1-4
(R, P, B, G)
1)
These values are possible for the address preselection, but it is not very useful to apply them for
1 bit memory locations.
2)
These values are automatically set, if the respective number format is set. This display format is
only relevant in connection with 8-bit memory locations.
x This number format is not efficient for the address preselection.
Display Format
In this field the number format is shown, in which the contents of the defined memory location
should be displayed. 9 different formats can be selected.
If the number format in an existing status field is changed, the conversion to the new format occurs
automatically. If necessary, the number of bytes is changed.
format characters
decimal no character
hexadecimal $
binary %
ASCII '
low value bit ^
integer I
absolute with sign A
floating point F
pointer P
Decimal format
Character: no character
If no characters are entered in the display format field or the existing
characters are deleted, the decimal format is selected.
Number of bytes: 1 to 4
Restrictions: 2, 3 or 4 byte values are only useful with 8 bit memory locations.
1 0 to 255 (2 8-1)
2 0 to 65535 (216-1)
3 0 to 16777215 (224-1)
4 0 to 4294967295 (232-1)
Hexadecimal format
Character: $
Number of bytes: 1 to 4
Restrictions: 2, 3 or 4 byte numbers only useful with 8 bit memory locations.
Representable number range:
1 0 to FF
2 0 to FFFF
3 0 to FFFFFF
4 0 to FFFFFFFF
Binary Format
Character: %
Number of bytes: 1
Representable number range: 00000000 to 11111111
ASCII Format
Character: '
Number of bytes: 1 to 8
1-8 bytes are represented as ASCII-characters. In the display field they
appear in the left, where the left character is respective of the contents of
the first memory location.
Restrictions: This display format is only useful when applied with 8 bit memories.
Bitwise representation
Character: ^
Number of bytes: 1 to 8
Restrictions: Only the bit with the lowest value is taken into account in the memory
location.
This representation is favourable for the control or change of the status
of digital input and output cards.
Example: Representation of the
states of the digital input
I 0 4 8 8 ^
cards rack 0 / slot 4. The
inputs 8 to F should be 0 1 1 0 1 0 1 1
displayed:
I 048
I 049
I 04A
I 04B
I 04C
I 04D
I 04E
I 04F
Integer Format
Character: I
Number of bytes: 1 to 4
-128 (-27)
1 byte integer 2's-complement to
7 0 127 (27-1)
-32768 (-215)
2 byte integer 2's-complement to
(= integer short) 15 87 0 32767 (215-1)
-2147483648 (-231)
4 byte integer 2's-complement to
(= integer long) 31 24 23 16 15 87 0 2147483647 (231-1)
Absolute Format
Character: A
Number of bytes: 1 to 4
±(0 to 127)
1 byte absolute S absolute amount ±(27-1)
7 0
±(0 to 32767)
2 byte absolute S absolute amount
±(215-1)
(= absolute short) 15 87 0
Numbers from -9.22 * 10-18 to +9.22 * 10-18 except 0 can not be displayed, and
are processed like 0.
Pointer Format
Character: P
Number of bytes : 2
Restrictions: The application of this format is only useful for the contents of 8 bit
memory locations.
X YYY
cursor
←] or [→
[← →] The cursor can be moved freely to the left and to the right.
If the cursor is moved left/right out of the status field, it is set in the next
status field.
[↓ ↑]
↓] or [↑ The address of the memory location of the active status field is decreased or
increased respectively.
❖]
[Ctrl] + [❖ The cursor is set to the field “address preselection” of the status field
selected with [❖].
❖]
[Alt] + [❖ The cursor is set to the input field of the status field selected with [❖].
[Ctrl] + [Del] The active status field is deleted and the cursor is set to the left status field.
↵]
[↵ If the cursor is located in the definition field, the definition is ended and the
cursor is set to the right status field.
If the cursor is in the input field, the input is terminated and the entered
values are transferred to the control.
When transferring multiple byte values, without stopping the PC it asks, if
the data should be transferred asynchronously:
On newer system module versions (CP40: from V. 3.20; CP80: from V. 3.10)
the data transfer is executed in the END-routine - the transfer occurs in this
case without inquiry (synchronous)!
input cursor
LN / LB A B NCZ
[→] or [←] The cursor can be moved in the fields LN/LB, A, B and NCZ.
[Esc] Ending the edit procedure of the program register. The values entered by the
user are saved.
By pressing the function key [F2 BRKEDIT], the cursor is set to the break point line:
If the program is stopped on a defined breakpoint, this is displayed in the processor status by the
word “HALT”. In the STL field the line, in which the program was stopped, is displayed inverse:
Cursor
The STL can be moved up / down with the cursor keys [↑] / [↓].
By pressing again [F3 STL] on the right side of the selected program line the program registers are
displayed (AA, AB, X, Y1), U1), DP 1), NCZ, SZ instead of SYMB and comment). The line is marked
by the character “<” on the left, i.e.: the contents of the program register is displayed before the
execution of the selected program line:
The function [⇑] + [F3 STL] displays the states of the individual program register after the
execution of the selected program lines. The line is marked on the left by the character “>”.
If the line, selected with the cursor, is not executed, periods are displayed instead of program
register contents:
1)
Only in the PC80-mode
The status of the control remains the same, i.e. output states are not put back but remain in the
current state.
With the single step operation program assignments can be individually executed (by pressing a
key). This operation is used for error detection and for error limitation.
The just processed program line is displayed with the program register:
With the function [⇑] + [F7 S-STEP] the number of the single step operations, which need to be
executed, can be entered. On screen an input request appears on the right top:
With the function [Alt] + [F7 S-STEP] the program of a subprogram jump is stopped after the jump
in the subprogram.
8. ADDITIONAL FUNCTIONS
8.1. RNT
Command: ↵]
RNT [↵
Function: The program in the current window is checked for missing labels and for exceeding
of the maximum branch width.
Result: If a branch instruction exists, that refers to an absent label or to an exceeding of the
maximum branch width, the input cursor is set to the respective line and the
following error message is displayed:
If the label in the program was properly utilized, the test is ended with the following
message:
W023 RNT OK
The RNT-checking occurs automatically when transferring the program with RUN.
Incomplete programs can not be transferred to PLC.
8.2. RUN P
Command: ↵]
RUN P [↵
Function: This command is the same as the RUN-command, with the difference, that the
program transfer to the PLC is protected. I.e.: The program can not be loaded to the
PLC with LOAD PLC any more.
Function: 1) The program that is located in the RAM in the PLC is programmed to the
PROM-memory.
2) After accomplished programming of the PROM the program is executed from
the PROM-memory.
window-
number
module
Information information
for the user
Display
window of the
selected
function
Messages for
the user
[F6 CONT] If the PLC-CPU is in the HALT-state, the program in the PLC is continued.
[F7 RESET] The PLC is stopped and transferred into a defined base state.
EEPROM Programming
(CP40, CP41, NTCP33, NTCP34, PSCP35)
From the EEPROM-menu on your programming
device the [F1 PROGRAM] command will initiate
the PLC-CPU to program the EEPROM of the EE32
with the program stored in RAM. EEPROM
programming can also be performed while an
application program is running.
An EEPROM-program memory does not need to be
deleted, it can simply be overwritten with the new
program. The data in the EEPROM is non-volatile.
During EEPROM programming, the following is to
be considered:
- The PLC should not be turned off.
- The WE/WP-switch of the EE32 must be set to WE (Write Enable).
Function: The program that is located in the RAM, is loaded in the working memory of the
PC. The program can be edited with the PROgramming SYStem.
1) After the function call it is first checked if the control is in the HALT-state:
a) PLC in the HALT-mode: the program is immediately loaded back into the PC.
b) PLC in the RUN-mode: In the message line the following enquiry is displayed:
2) When loading a program the programming mode in the PC is set, in which the
program was created.
NOTE:
Comments, symbol assignments, ladder diagrams and function plans are not loaded
↵] during the program copy.
back. They weren't transferred to the PLC with RUN [↵
Command: ↵]
P-VERS [↵
After this function input program information is displayed in the 25th line on screen:
program name
program date
module series
module type
program runs in:
RAM or PROM
additional information
A = arithmetic processor
S = serial interface
operating system:
version number
version date
memory module type
PLC status
Command: ↵]
XFER [↵
Function: After entering XFER [↵ ↵], information about the module type and the running
program are displayed (compare command P-VERS). The softkey allocation is
changed:
[F1 XFER] The application program is transferred to the RAM without interrupts of the
program running in the PROM of the CPU (PP). The procedure is running com-
pletely in the background. All control functions of the processor module remain the
same. For this reason the transfer can last up to a few minutes, depending on the
program length.
After ending the transfer the program is still executed in the PROM, until the user
switches manually to RAM. The command XFER allows no RESET, i.e. no
memory locations, flags or outputs are set back.
NOTE:
Outputs, that were set by the old program (PROM) and that can't be processed by the
new program and that are not processed any more , remain set.
The first scan flag is not set by the first cycle of the new program.
If the processor is in the HALT state, the following error message is displayed:
If the program of the CPU (PP) runs in the RAM, the following error message is displayed:
CHAPTER 6
SYMBOL EDITOR
Symbols are names that are assigned to input, output, or memory location addresses . The user can
use either the physical address or the symbol name. The PROgramming SYStem automatically and
interactively fills in the missing information.
Symbols are an important part of documentation since the symbolic name gives information about
the purpose and function of input, output or memory location.
Symbols can be given for addresses with the following address codes:
I, O, R, F, P, S, T, B, G
A symbol name may be used only once! If you try to assign the same SYMB again, an error
message appears:
address code
address
If there is sufficient EMS memory (at least 128 Kbytes), a total of 8100 symbols can be assigned.
You must request the use of EMS memory with an environment variable (B&R$EMS=ON).
The SYMB editor appears after the command has been entered with [↵]. The cursor (blinking
cursor) is in the command line.
If you enter an address <ADDR>, that line in the SYMB list is displayed in inverse video (= entry
line for the SYMB editor). If no address is given after the command [F6 SYMBOLS], the line of
the last address worked on (R0000 if SYMB editor was just called) is inverse.
If you press the [↵] key, the cursor moves to the entry line of the SYMB editor. If you would like
to enter or change something in another line of the SYMB editor, you can position the cursor there
by entering <ADDR> [↵].
If the cursor is located in the entry line, you can return to the command line with [Esc].
c
d
e
window number
program name
program date
time
number of
SYMBs in use
max. number of
symbols possible
b) Entry line
Symbols can be entered in this line to the left and right of the address in the same line:
- to the left of the address a symbol of up to 9 characters can be entered that will be
displayed in ladder diagrams.
- to the right of the address a symbol of up to 41 characters can be entered which will be
displayed to the right of the address in the STL
If the cursor is located in the command line, it is moved to the entry line by pressing [↵].
c) Command line
The command line is for entering operating commands. The most important commands are also
available by function key.
d) Message line
In the message line, messages are displayed that concern the operator. These are error messages
that can be the result of an operator error, but messages that prompt the user to enter parameters
may also appear.
e) Softkey line
In the softkey line the functions of the SYMB editor are presented on keys [F1] to [F7].
[F1 S_LIST] By pressing this function key, you exit the SYMB editor and the cursor moves to the
command line. The PROgramming SYStem requests a line number or a label:
After you have completed the entry with [↵], the STL editor is called again.
[F2 SYMBOL] If you press this function key, you exit the SYMB editor and the cursor moves to
the command line. The PROgramming SYStem requests an address.
After you have completed the entry with [↵], the SYMB editor is called again.
[F3 TAB] If you press this function key, you exit the SYMB editor and the cursor moves to the
command line. The PROgramming SYStem requests the name of a data table:
After you have completed the entry with [↵], the TAB editor is called again.
[F4 UNDO] The SYMB editor has an LIFO memory (last-in-first-out) that stores the last 10
SYMBs or characters deleted. The function [F4 UNDO] calls these to the cursor
position in the text.
[F7 RECALL] If you have altered a symbol and you would like to call back the original, you can
use this function to do so, provided the change has not yet been completed with [↵].
[Alt] + [↑] or [↓] Move entry line to upper or lower border of screen.
[Tab] or [⇑] + [Tab] Move cursor to the left/right side of the address.
[Ctrl] + [←] or [→]
↵]
[F3 TAB] <TNAME> [↵ Exits the STL editor and calls up the TAB editor.
5.1. MOVE
With this function the SYMBs of a specified address range can be moved to another place.
The function [F9] + [F6 MOVE] in the SYMB editor is basically the same as the one in the STL
editor. When specifying the area to be moved, no line number or label is given, just start, end, and
destination address.
Example: The SYMBs from address R0000 to R0099 are moved to R1300 to R1399 with the
command:
[F9] + [F6 MOVE] [F1 FROM] R0000 [F2 UP_TO] R0099 [F3 TO] R1300
↵]
[↵
5.2. COPY
With this function the SYMBs of a specified address range can be copied to another place.
The function [F9] + [F5 COPY] in the SYMB editor is basically the same as the one in the STL
editor. When specifying the area to be copied, no line number or label is given, just start, end, and
destination address.
Example: The SYMBs of the addresses from I 000 to I 03N are copied to I A00 to I ADN with
the following command:
↵]
[F9] + [F5 COPY] [F1 FROM] I000 [F2 UP_TO] I03N [F3 TO] IA00 [↵
Because copying would cause symbols to be used more than once, the following message appears:
SYMB already assigned to X YYY
The cursor is simultaneously placed in the line of the first SYMB that appears twice so that it can
be changed. Only after a SYMB is given that does not already exist can the next SYMB be
changed.
This procedure can be interrupted at any time with the [Esc] key.
Copying is only worthwhile if the SYMBs you would like to use in another address range are nearly
the same (e.g. just one character is different).
5.4. FREE
Command: ↵]
FREE <ADDR/SYMB> [↵
Argument: For <ADDR>, either an address code, a complete address, or a symbol can be
entered.
Valid address codes: I, O, R, F, S, T, P, B, G
Complete addresses: I 000 to I 3FN
O 000 to O 3FN
R0000 to R7167
F 000 to F 799
S 000 to S 3F7
T 000 to T 3F7
P 000 to P 3FF
B0000 to B4095
G0000 to G4095
Symbol: Any valid symbol is allowed.
Symbols that contain spaces must be written between quotation
marks ("SYMB").
Function: Search for addresses without symbols. The search begins at the address indicated
<ADDR>.
If a free address is found, the cursor is moved to the free SYMB field of that
address.
Example: The search for the first digital input containing no SYMB is started with the
command:
↵]
↵] or FREE I [↵
FREE I000 [↵
The cursor is moved to the first line of the input address that contains no SYMB.
CHAPTER 7
DATA TABLE EDITOR
Tables are constant data blocks, which can be accessed by the application program. Entries are
made by using a comfortable table editor. The number formats decimal, binary, hexadecimal and
ASCII can be optionally mixed within a table or line. Tables are components of the application
program and are stored in the non-volatile application program memory of the PLC.
Parameter: <TNAME> has a maximum length of 4 characters; the first character has to
be a letter.
After quitting the command input with [↵] the TAB editor appears. The input cursor (blinking
cursor) is in the command line.
With the input of the table name <TNAME> the corresponding table is called or created anew.
Without the definition of a name the last processed table is called up.
If the cursor is in the input line, the [Esc] key will return it to the command line.
c
d
e
b) Input line:
Input mode
Line number
Comment line
Editing line
>
Insert mode: If the character “>” is in this position, the TAB editor is in the insert mode.
Pressing [↵] inserts a new line. If the insert mode is not turned on, the table
is moved up one line, by pressing the [↵] key, and the next line can be
edited.
The insert mode is turned on, with [Ctrl] + [Ins] or [Alt] + [Ins].
The insert mode is turned off, if either [↑], [↓], [PgUp] or [PgDn] is
pressed.
Comment line: If the character “*” is at this position, the line is marked as comment line.
Blank TAB-lines are marked with a “*” automatically.
:
:
15*This is a comment line!
16 23,%01110,$1AF0,'TEXT' *comment
:
:
c) Command line:
The command line serves for the input of operating commands. The most important commands are
available with the function keys.
d) Message line
In the message line messages concerning user errors or messages requiring the input of parameters
are displayed.
e) Softkey line
In the softkey line important functions for TAB editing are offered on keys [F1] - [F7].
[F1 S_LIST] Pressing this function key will exit the SYMB editor and the cursor is set to the
command line. The PROgramming SYStem requires the input of a line number or a
label:
After terminating the input with [↵] the STL editor is called.
[F2 SYMBOLS] By pressing this function key the SYMB editor is exited and the cursor is set in
the command line. The PROgramming SYStem demands the input of an address:
After terminating the input with [↵] the SYMB editor is called.
[F3 TAB] By pressing this function key the SYMB editor is exited and the cursor is set to the
command line. The PROgramming SYStem requires the input of a line number or a
table:
After terminating the input with [↵] the STL editor is called.
[F4 UNDO] The TAB editor is provided with a LIFO storage (Last-In-First-Out), where the last
10 deleted lines or characters are stored. By pressing [F4 UNDO] these are inserted
in the text at the cursor position (last character deleted is first character inserted).
[F7 RECALL] If a TAB line has been changed, the original line can be recalled with this
function, if the changes were not terminated with [↵].
1)
The insert mode is turned off.
2)
The insert mode is turned on.
↵]
[F2 SYMB] <ADDR> [↵ Exits the TAB editor and calls the SYMB editor.
5.1. MOVE
With this function any line in a table can be moved to a different position.
The function [F9] + [F6 MOVE] in the TAB editor is basically identical to the same function in
the STL editor. To define the range to be moved a line number is entered.
5.2. COPY
With this function lines of a table can be copied to a different position.
The function [F9] + [F5 COPY] in the TAB editor is basically identical to the same function in the
STL editor. To define the range to be copied line numbers are given.
Example : The lines 0 to 10 are copied with the following command and inserted at line 30:
↵]
[F9] + [F5 COPY] [F1 FROM] 0 [F2 UP TO] 10 [F3 TO] 30 [↵
The function [F9] + [F7 DELETE] [F7 BLOCK] in the TAB editor is basically identical to the
same function in the STL editor. To define the range to be deleted a line number is entered.
↵]
[F9] + [F7 DELETE] [F7 BLOCK] [F1 FROM] 15 [F2 TO] 30 [↵
6. TABLE PROGRAMMING
Decimal
Characteristics: none
Number of bytes: 1 to 3
The PROgramming SYStem reserves the correct number of bytes for the value entered in
memory:
1 byte: 0 to 255 (2 8 - 1)
2 byte: 256 to 65535 (2 16 - 1)
3 byte: 65536 to 16777215 (2 24 - 1)
Hexadecimal
Characteristic: $
Number of bytes: 1 to 3
The PROgramming SYStem reserves the correct number of bytes for the value entered in
memory:
Binary
Characteristic: %
Number or bytes: 1 to 3
The PROgramming SYStem reserves the correct number of bytes for the value entered in
memory:
1 byte: %0 to %11111111
2 byte: %1 00000000 to %11111111 11111111
3 byte: %1 00000000 00000000 to %11111111 11111111 11111111
ASCII
Characteristics: ' (before and after the ASCII character)
The length of the text between the characters “'.....'” is optional. Every ASCII character
occupies one byte.
The input of the values in different formats can be mixed! It is important, that the separation
character “,” is inserted between individual values.
Example:
When calling a table with JSR, the address of the first byte is returned to index register X and the
length of the table to accumulator AB. If the table is longer than 255 bytes, the length of the table
is submitted to double accumulator AD. The length, that is submitted, corresponds with the actual
number of data bytes in the table. The table header of 15 bytes is not contained.
:
JSR TAB1
LDAA X 000 load the first data byte
:
:
LDXL TAB1
LDAA X 015 load the first data byte
:
Tables can be connected to a function block in a ladder diagram. The call of the table is made with
the label contact ( F6 [AL ).
Example:
A TAB can be deleted with the operating command CLEAR. If this command is entered in the
command line, the allocation of the function keys changes:
By selecting [F3 TAB] and entering the TAB name terminated with [↵], the respective TAB is
deleted.
CHAPTER 8
LOADING, SAVING, ...
Function: With this function the drive is chosen for using commands like SAVE or LOAD
where a drive name is needed in the file name.
For the <Drive Name> you can give any name that the operating system of your PC
knows. For example A for a floppy disk drive and C for your hard disk drive.
A PATH is not only restricted to one directory, but can contain several
subdirectories as well.
E.g.: DDIR \PROJECT\TEST [↵]
Function: This command determines the exact search path for the loading and saving of
programs or program parts.
The commands DDIR, SDIR and UDIR refer to the current designated drive. The
search paths of other drives are not altered in any way. For every drive, three search
paths can be defined.
If no start parameters are indicated when the PROgramming SYStem is started, the directories that were
automatically set up when the software was installed are used.
The procedure for setting other directories when starting the PROgramming SYSstem is described in
Chapter 3, INTRODUCTION.
Function: With this function, entire programs or program parts (tables, ladder diagrams,
symbol lists, STL macros, ...) can be saved on diskette or hard disk.
After you have entered [F8 SAVE], you will be asked to indicate the file name under which you
would like to save the program or program part.
For <FNAME>, you can enter a file name either with or without the full path. If you do not
indicate the entire path, the file is saved in the default directory.
NOTE: The file name must be up to 8 characters long without extension. The B&R
PROgramming SYStem automatically adds on the extension.
After the file name has been entered, the softkey line is altered:
only in extension C
only in extensions B and C
Function: With this function certain STL, TAB, or SYMB parts can be saved as macros.
These macros can be used again later (e.g. in other programs).
After you have entered [F8 SAVE] <FNAME> [F5 MACRO] the softkey line is altered:
You can enter, directly or by function key, whether a part of a STL, a TAB, or a SYMB is to be
saved as a macro. After you have made the selection, the softkey line is altered:
Now you must define the range that is to be saved as macro. The beginning and the end of the
range are defined by the following entries:
Confirm the range definition you want to save with [↵] and it will be saved as a macro.
Example: The STL lines 100 to 300 are to be saved under the file name TEST in the default
directory. This can be done in several different ways.
[F8 SAVE] TEST [F5 MACRO] [F5 S_LIST] [F1 FROM] 100 [F2 UP_TO] 300 ↵]
[↵
[F8 SAVE] TEST [F5 MACRO] [F5 S_LIST] [F1 FROM] LAB1 [F2 UP_TO] 300 ↵]
[↵
[F8 SAVE] TEST [F5 MACRO] [F5 S_LIST] [F1 FROM] 100 [F3 #] 201 ↵]
[↵
Set the current entry line in the STL editor to line 100:
↵]
[F8 SAVE] TEST [F5 MACRO] [F5 S_LIST] [F2 UP_TO] 300 [↵
↵]
[F8 SAVE] TEST [F5 MACRO] [F5 S_LIST] [F3 #] 201 [↵
Note: If TAB, LAD, or subroutine calls exist in the STL macros, the TABs, LADs and
subprograms are not saved with the macro.
Symbols and comments within the macro area are saved as well.
You can select whether to save an entire TAB or a part of a SYMB in ASCII format by direct entry
from the keyboard or by function key. After you have made your entry, the softkey line is altered:
The PROgramming SYStem asks you to enter The PROgramming SYStem asks you to
the STL area, which is defined in the same enter the table name <TBL_NAME>.
way as when saving macros. Confirm your ↵] and the TAB
Confirm your entry with [↵
↵] and the defined STL area will
entry with [↵ <TBL_NAME> will be saved under the file
be saved under the file name [Link]. name [Link].
Command: ↵]
[F7 LOAD] [F1 PROG] <FNAME> [↵
Function: The program [Link] is loaded from the default directory. The last edited
program is deleted from memory.
A path can be entered with the file name. With the input of the following command in the command
line, the program [Link] is loaded from the drive A, directory \PROJECT1:
[F7 LOAD] [F1 PROG] A:\PROJECT1\TEST [↵ ↵]
If no filename is entered or the defined program doesn't exist, all files with the extension “.PRG” in
the default directories or the defined path are displayed. The desired program can be selected and
loaded from the directory with the cursor and function keys.
The following information is displayed by files/directories:
Number current number of the displayed files or directories
File [Link] file name (with extension = mode) or directory name
Size file size in byte; display, if directory: <DIR>
Date date of the last change
Comment information, if the file can be loaded by the PROgramming
SYStem:
no comment - can be loaded
no B&R-file - can not be loaded
- also valid for directories
Window number
Drive
Directory
Function
Key FUNCTION
[F2 PREVDIR] The previous directory is changed and its contents displayed. [F2
PREVDIR] is equivalent to the DOS command “cd ..”.
[F6 SELECT] The program, that is selected with the [❖] keys is loaded (the respec-
↵]
[↵ tive line is displayed in inverse viedeo).
Command: ↵]
[F7 LOAD] [F2 SYMBOLS] <FNAME> [↵
Function: The SYMB [Link] is loaded from the default directory.
A path can be entered in additon to the file name. When entering the following command in the
command line the SYMB [Link] is loaded from the directory \PROJECT1 on the current
drive:
↵]
[F7 LOAD] [F2 SYMBOLS] \PROJECT1\TEST [↵
If no file name is specified, or if the defined SYMB doesn't exist, all files with the extension
“.SYM” in the default-directories or the defined path are displayed. The desired SYMB can be
selected or loaded from this directory with the cursor or function keys (see [F1 PROG]).
All SYMBs that existed in memory before the loading procedure, are deleted from the memory.
SYMBs, that were created and stored without EMS-SYMB management, can easily be loaded, if
the EMS-SYMB is turned on.
A B C PG1000 CP80 PG-PC PC80
Command: ↵]
[F7 LOAD] [F3 DATA_TBL] <TBL_NAME> <FNAME> [↵
Function: The SYMB [Link] is loaded from the default directory. The loaded table is
provided with the defined name <TBL_NAME>.
A path can be entered with the file name. With the input of the following command to the com-
mand line, the TAB [Link] is loaded from the root directory of the current drive:
↵]
[F7 LOAD] [F3 DATA_TBL] \TEST [↵
If no file name is defined, or if the specified TAB doesn't exist, all files with the extension “.TAB”
are displayed in the default directory or the defined path. The desired TAB can be selected and
loaded of the this overview with the cursor and the function keys. (see [F1 PROG]).
If a table with this name <TBL_NAME> exists already, an error message is displayed:
E040 NAME USED FOR DATA TABLE
If a label is entered for <TBL_NAME>, that is already used in the program, the following error
message is displayed:
E022 NAME USED AS LABEL
With the function keys a STL, TAB or SYMB macro can be selected. After entering one of these
three possibilities, the user is requested to enter a file name <FNAME>.
A path can be defined with the file name. With the input of the following command in the com-
mand line, the TAB macro [Link] is loaded from the directory \TEST on dirve A:
↵]
[F7 LOAD] [F4 MACRO] [F3 DATA_TBL] A:\TEST\TEST [↵
If no file name is defined, or if the specified macro doesn't exist, all files with the extension
“.MTA”(TAB-Macro), “.MSY” (SYMB-Macro) or “.MSL” (STL-Macro) in the default directories or
the specified paths are displayed. The desired macro can be selected and loaded from the directory with
the cursor and function keys (see [F1 PROG]).
The selected macro is inserted before the TAB, SYMB or STL editor location, that is defined with
[F1 TO]. If no parameter [F1 TO] <ADDR/LINE/LAB> was specified, the macro is inserted
before the current input line of the respective editor.
If a macro should be loaded to a position, where this is impossible, the following error message is
displayed:
E145 MACRO LOAD NOT ALLOWED
This occurs, for example, if an attempt to load a STL macro and insert it between protected lines of
a LAD, is made.
Macro Level
A B C
SYM ● ● ●
TAB ● ●
STL ●
If the STL macro contains labels, that are already available in the program, the following picture is
displayed on screen:
window number
path and macro name program date
time number of STL lines
without the new macro
number of used
labels
Display
doubled Labels
Input new
Labels
The user now has to change all double labels. This menu can only be exited with [F6 EXIT] or
[Esc], if all labels were changed.
In LIFO storage (Last-In-First-Out) the 10 last deleted characters are stored, which can be inserted
again in the cursor position with the function [F4 UNDO].
If the SYMB-marcro contains symbols, that were already used once, the following message is
displayed:
W140 SYMBOL USED FOR X YYY
The cursor is simultanously positioned on the first double SYMB, so it can be changed.
With the [Esc] key, the procedure can be interrupted any time.
Command: ↵]
[F7 LOAD] [F5 LAD] <FNAME> [F1 TO] <LAD_NAME> [↵
Function: The LAD [Link] is loaded from the default directory and entered in the
existing program with the LAD name <LAD_NAME>.
A path can be defined with the file name. With the input of the following command in the com-
mand line, the LAD [Link] is loaded from the directory \PROJECT1 on the current dirve:
↵]
[F7 LOAD] [F5 LAD] \PROJECT1\TEST [F1 TO] <LAD_NAME> [↵
If no file name is defined or the specified LAD doesn't exist, all files with the extension “.LAD” in
the default directory or the specified paths are displayed. The desired LAD can be selected and
loaded of the overview with the cursor and function keys (see [F1 PROG]).
To load a LAD, a LAD name must be defined, that is not yet used as label in the program. The new
LAD gets the name <LAD_NAME>. After the loading process the LAD editor is called. The loaded
LAD is displayed.
In order to load a LAD, a name must be defined, that is not yet used in the program. If a LAD is
already existing in the program with the defined name <LAD_NAME> or a label with the same
name, an error message is displayed:
If labels (conditional branches) are used in the loaded LAD, that are available elsewhere in the
program and the LAD editor is exited with [Esc], the following error message is displayed:
E065 LABEL ALREADY USED OUTSIDE THIS LADDER
Command: ↵]
[F7 LOAD] [F6 EMSSYMB] <FNAME> [↵
A path can be defined in with the file name. With the input of the following command in the
command line, the SYMB [Link] can be loaded from the directory \PROJECT1 on the
current drive:
↵]
[F7 LOAD] [F6 EMSSYMB] \PROJECT1\TEST [↵
If no file name is defined or if the specified SYMB doesn't exist, all files with the extension
“.EMS” in the default directories or the defined paths are displayed. The desired SYMB can be
selected and loaded from the directory with the cursor and function keys (see [F1 PROG]).
All SYMBs that existed in memory before the load procedure are deleted from memory and
replaced by the one selected.
A file with the extension “*.EMS” was saved until the SYMB editor was open. It can only be
loaded in the PROgramming SYStem, if the SYMB editor is turned on, otherwise an error message
is displayed:
Function: This function offers the possibility of including SYMB lists and table data, that were
created with external programming systems (CAD systems, editors, ...) in an existing
program.
A path can be defined with the file name. With the input of the following command in the command
line the SYMB [Link] can be loaded from the directory \PROJECT1on the current drive and it can
be inserted in the current input line of the SYMB editor:
↵]
[F7 LOAD] [F8 ASCII] [F2 SYMBOLS] \PROJECT1\TEST [F1 TO] <ADDR>[↵
If no file name is defined, or if the specified LAD doesn't exist, all files with the extension “.ASY”
(ASCII-SYMB) or “.ATA” (ASCII-TAB) in the default directories or in the defined path are displayed.
The desired ASCII file can be selected from the directory with the cursor or function keys (see [F1
PROG]).
The load process is performed interactively, i.e.: the PROgramming SYStem checks every sentence of
the SYMB or the TAB for logical errors and offers the possibility to the user, to immediately eliminate
an error (within the SYMB or TAB editor) or to interrupt the load process with the [Esc] key.
4.1. SYMB-DATA
File name extension: *.ASY
Data format:
The file is organized in “sentences”. Every sentence ends with control characters carriage
return <CR> and line feed <LF> ($0D and $0A).
The first sentence can also be a mnemonic identification.
For every SYMB address one sentence is necessary.
Mnemonic identification:
Since for the address preselction in the B&R PROgramming SYStem different characters,
according to the defined mnemonic, are valid, the identification must be stored in the file.
If the first sentence in the file is a “B&R<CRLF>”, the B&R address preselections are
valid. If the file starts with a SYMB address, the PROgramming SYStem interprets the
address preselections as MOTOROLA® mnemonics.
The PROgramming SYStem switches the mnemonic mode during the load procedure.
4.2. TAB-DATA
File name extension: *.ATA
Data format:
The file is organized in “sentences”. Every sentence ends with control characters <CR> and
<LF> ($0D and $0A).
For every TAB line one sentence is necessary.
Comment line
*Commentline.......
Data line:
Data.... [*Comment]
The valid data formats are exactly listed in “chapter 7 TABLE-EDITOR”. If, for example,
a table is created in the text editor, it is important to observe the data formats!
Command: ↵]
[F9] + [F6 DIR] <PATH> [↵
↵]
[F9] + [F6 DIR] <File type> <PATH> [↵
Any directory path (\DIR1\DIR2\...\) including a drive name can be entered for <PATH>.
Without the specification the current drive is accessed.
Files with certain extensions can be displayed with the additional parameter <File type>. After the
input of [F9] + [F6 DIR] the softkey line is changed:
With these function keys one of the following extensions can be selected:
Example: Display of all programs in the directory \PROJECT1 on the disk in drive A:
After terminating with the [↵] key the following picture is displayed:
Window number
Selected drive; if no drive is selected, the current
dirve is accessed.
Path name
Key FUNCTION
[F1 NEXTDIR] If the cursor is located in a directory (marked <DIR>), this directory
is opened. The contents of this dirctory are displayed. This function
corresponds with the DOS-command “cd <directory name>”.
[F2 PREVDIR] The previous directory is changed and its contents are displayed. [F2
PREVDIR] corresponds with the DOS-command “cd ..”.
1 DIRECTORY: A:\PROJECT\
Nr.: [Link] Size Date comment
0001 HAUS <DIR> 91-04-10 no B&R file
0002 FREI <DIR> 91-04-10 no B&R file
0003 FLIESS <DIR> 91-04-10 no B&R file
0004 [Link] 12924 90-10-11
0005 [Link] 15708 90-10-11
0006 [Link] 16977 90-10-11
0007 [Link] 16987 90-10-11
0008 [Link] 1271 90-10-12
0009 [Link] 1468 90-10-12
0010 [Link] 4353 90-10-12
0011 [Link] 22074 90-10-12
0012 [Link] 22423 90-10-12
0013 [Link] 24095 90-10-12
0014 [Link] 30164 90-10-12
0015 [Link] 1646 90-10-22
0016 [Link] 24450 90-10-23
0017 [Link] 3193 91-01-24
0018 SEQC_01.PRG 2626 91-02-21
0019 SEQC_TEST.PRG 2626 91-02-21
0020 A_SEQC.PRG 4470 91-03-05
0021 [Link] 49377 91-03-05
0022 LAD_BSP.PRG 5656 91-03-13
0023 [Link] 3498 91-03-14
0024 BSP_FBK.PRG 8771 91-03-15
0025 CP_80BSP.PRG 1280 91-03-19
0026 CP_40BSP.PRG 1280 91-03-19
0027 BSP_ERS.PRG 2202 91-03-21
0028 BSP_CHAN.PRG 3804 91-03-21
Command: [F9] + [F5 COPY] [F7 DISK] <File type> <FNAME1> [F1 TO] <FNAME2>
↵]
[↵
Function: It is possible to copy functions with this function. The parameter <FNAME1> and
<FNAME2> can also be included in a complete path name and drive name. If only a
file name is specified, the defined file is searched or stored in the default directory
of the current drive.
Example: The STL macro MACRO1 in the default directory on the current drive (hard disk)
should be copied to drive A with the same name:
↵]
[F9] + [F5 COPY] [F7 DISK] [F5 MACRO] [F5 S_LIST] MACRO1 [F1 TO] A:\MACRO1 [↵
Command: ↵]
[F10] + [F5 RENAME] <File type> <FNAME1> [F1 TO] <FNAME2> [↵
Attention: If the drive name and the path are completely entered, these definitions must be
identical for both file names. Only the file name can be changed.
↵]
[F10] + [F5 RENAME] [F5 MACRO] [F5 S_LIST] A:\MACRO1 [F1 TO] A:\MACROX [↵
Command: ↵]
[F9] + [F7 DELETE] <File type> <FNAME> [↵
<File type> ... Description on page 8-19
Function: It is possible to delete files with this function. The parameter <FNAME> can also
have a comlete path name and a drive name. If only a file name is specified, the
defined file is searched for and deleted from the default directory.
Command: ↵]
FORMAT <drive name:> [↵
Function: It is possible to format disks with this function.
↵]
FORMAT A: [↵
CHAPTER 9
PRINTING
Command: ↵]
PMEN [↵
↵]
[F10] + [F1 PRINT] [↵
↵]
[F10] + [F2 LIST] [↵
After one of the commands listed above has been given, the printer menu appears.
2.1. LEVEL A
2.2. LEVEL B
2.3. LEVEL C
Window number
Menu name
Program date
Time
Status line
Title
Menu field
Softkey line
Title: A text can be entered in this field (e.g. project name, date, etc.).
This text can be printed on every page as a heading.
After the PROgramming SYStem has been started this Text field is defined as
follows by default:
blinking
cursor
The cursor is moved to the desired position for text entry with the [❖] keys. The "-
"
characters can be replaced by any ASCII characters.
Menu field: Various printing options can be set in this menu field:
- What is to be printed?
- Interface selection
- Selection of character set
- Layout
[F8 EXIT] or [Esc] The print menu is exited. The paramters and values
set by the user are retained.
If the cursor is located in the text field for the title, all ASCII characters that can be represented can
be entered. All of the functions for processing the text, like [BkSpc], [Ins], [Del] etc., are
available.
If the cursor is located in a selection field, only certain keys are accepted:
[Y] The menu point is activated and the cursor is moved to the next
selection field.
[N] The menu point is deactivated and the cursor is moved to the next
selection field.
↵]
[↵ The menu point is not altered. The cursor is moved to the next
selection field
[0] ... [9] Entry of decimal values where allowed (lines/page, characters/
lines).
[→ ↓]
→] or [↓ The cursor is moved to the next selection field.
[← ↑]
←] or [↑ The cursor is moved to the previous selection field.
↑] In the baud rate selection field the next higher value is set.
[Ctrl] + [↑
↓] In the baud rate selection field the next lower value is set.
[Ctrl] + [↓
If this menu point is activated with [Y], the entire STL program is printed. The LAD translations
are not printed.
STL lines containing NOP commands are not shown on the printout. The following line is inserted
for every block of NOP lines:
Example:
If this menu point is activated with [Y], all of the tables in the program are printed out.
Example:
TABLE:TIN2
If this menu point is activated with [Y], all of the labels in the program are printed out.
- STL labels
- LAD names
- TAB names (marked with T)
Example:
If this menu point is activated with [Y], the text defined in the text field of the print menu is
printed as the heading on every page. In addition to the specified text, an information line is
printed on every page and a table of contents is printed on the last page.
Example:
This text is printed on
----------------------------------------------
every page.
Heading
Text specified by user.
Any text can be entered.
----------------------------------------------
PROJECT: NETWORK DATE: 91.04.11 Page: 001 Information line that
accompanies each
*** PROGRAM *** heading and contains the
00000 JSR IN 01540 following information:
00001 JSR COMM 01430 • program name
00002 JSR OUT 00005 • program date
00003 JSR WRT 00021 • page number
00004 END
00005 *
00005 *
If this menu point is activated with [Y], all addresses with SYMBs assigned to them are printed out
with the symbols.
Example:
*** ASSIGNMENTS ***
The SYMB for the LAD is to the left of the address, and the SYMB for the STL to the right.
If this menu point is activated with [Y], all of the sequence charts in the program are printed out.
Example:
00 TEST
01 HIGH
If this menu point is activated with [Y], all of the ladder diagrams in the program are printed out.
Example:
19 Multiplication
1 * 1 Byte
F 100
20 | | ENABLE MULA
1
R0000
21 | | OP1
DISPL. 0 1
R0001 F 101
22 | | OP2 ACTIVE ( )
1 1
#00000 R1000
23 | | SIGNED RESULT ( )
1 2
[Y] In LADs, addresses are printed above the ladder and SYMBs below it.
[N] In LADs only the SYMBs above the ladder are printed out. If there is no SYMB defined,
the address is printed (see SYMB mode in "Symbols Editor - Chapter 4).
If this menu point is activated with [Y], a list of all of the LADs in the program is printed out.
Example:
If this menu point is activated with [Y], a list of all of the FBKs in the program is printed out.
Example:
When activating this menu with [Y] all existing address cross references in this line are listed to
the next LAD line.
Example:
The LAD-XREF is only printed if the menu item “ladder diagrams” is activated.
Since the LAD-XREF is printed next, on the right to the LAD, a printer that can print at least 132
characters / line is required. The corresponding font (e.g.: condensed font) must be set directly on
the printer.
To print a LAD-XREF a LAD is divided into blocks. A block consists of all components, that are
directly connected with each other by a connecting line (vertical and horizontal). Comments are
assigned to the subsequent block, except a comment still starts within the lower block limit. A
space remains between the blocks.
The LAD-XREF contains all addresses with their long SYMBs, that are used in a block. All address
locations are given in the entire program, on which the memory location is changes. The following
references are possible:
The LAD-XREF next to a block is divided in maximal 3 parts, that are separated from each other
by a dotted line:
P A R T 1
..............................................
LAD block P A R T 2
..............................................
P A R T 3
Example explanation:
Part 1: In this section all memory location addresses of which the contents is
loaded, are listed, (load command: all contacts with the angular contact
symbol:
| | ).
Part 2: In this section all memory location addresses are listed, that are present in a
FBK (internal memory locationds) and of which the contents within a block
is changed (intermediate storage with address specification: contacts with
the following symbol: (*) ).
Part 3: In this section all output addresses (contacts in the last column) and
locations, where they were changed, are listed.
All LADs that are marked with a “*”, are references to the corresponding LAD.
When activating the menu item with [Y] the cross reference list is printed. This list consists of two
parts:
1) Address list with specification of the following data:
2) Label list with specification of the following data:
Example:
LABL LN/*TAB*
Reference 1 Reference 2 Reference 3 ...
LABL
:
ADR1 *TAB*
CMPH 38
LAD1/01 FBK LAD2/01 FBK LAD3/01 FBK
CMPR 23
10 BEQ 16 JMP 20 JMP
LDA1 117
$PRG/00 LAD
MIN 212
LAD1/25 >LTN
NEW 158
LAD2/00 >> LAD2/35 >>
While activating the menu item with [Y] all STL transfers of all LADs are printed. While printing
the LAD Code, the function “program” must also be selected with [Y].
Page beginning
The option activation with [Y] effects a page feed after the print of the selected menu item.
Line / Page
At this location the maximum number of lines per page is entered. According to the setting of this
value, the PROgramming SYStem formats the printer output.
Characters / Line
At this location the maximum number of characters per line is entered. According to the setting of
this value, the PROgramming SYStem formats the printer output.
Parallel
[Y] The print comes from the paralle interface LPT1.
[N] The print comes frome the serial interface COM1 corresponding with the set baud
rate.
Baud Rate
If the cursor is in the input field for the baud rate, the desired baud rate for the serial interface can
be set with the key combination [Ctrl] + [↑] or [↓]. The following baud rates are possible:
PC Output Record
[Y] The PC output record is applied.
[N] The ASCII output record is used.
19 Multiplication
1 * 1 Byte
F 100
20 | | ENABLE MULA
1
R0000 F 102 F 103
21 | | OP1 |x| (*)
DISPL. 0 1
R0001 F 101
22 | | OP2 ACTIVE ( )
1 1
#00000 R1000
23 | | SIGNED RESULT ( )
1 2
If [↵] is pressed immediately after the input of [F10] + [F1 PRINT], the printer menu is called up.
[F1 PROG]
A B C PG1000 CP80 PG-PC PC80
● ● ● ● ● ● ●
Printing a STL program or STL program parts. The STL transfer from LADs is not printed out.
After the input of [F1 PROG] the user is asked to set the program range, that should be printed. The
softkey line is changed:
↵]
[↵ The entire STL program is printed.
FROM <LN/LB> TO <LN/LB> [↵↵] The specified range is printed.
↵]
[F1 FROM] <LN/LB> [F2 To] <LN/LB> [↵
TO <LN/LB> [↵↵] The STL range beginning with the
↵]
[F2 TO] <LN/LB> [↵ current input line up to the specified
program line <LN/LB> is printed.
FROM <LN/LB> NUM <NR> [↵↵] Beginning with the specified line <LN/
↵]
[F1 FROM] <LN/LB> [F3 NUM] <NR> [↵ LB> <NR> lines are printed.
NUM <NR> [↵↵] Beginning with the current input line
↵]
[F3 NUM] <NR> [↵ <NR> lines are printed.
After pressing [↵] the specified range is printed out. When the print procedure is finished, the
message “List / Print ended” is displayed on screen. The cursor is positioned in the
command line again after pressing any key.
All outputs, that are possible on a printer, can also be displayed on screen. The instruction [F10] +
[F2 LIST] is equivalent to the already explained PRINT command.
After the input of [F10] + [F2 LIST] [↵ ↵] the printer menu is displayed. With the selection of the
desired items in this menu the program or program parts are printed.
The following menu item settings do not influence the display on screen:
• page start
• parallel (interface)
• PC output record (only the PC output record is used, not the ASCII output
record)
• baud rate
• character / page
Also the screen display of program parts and the definition of the print range with the commands
LIST PROG, LIST SYMB, LIST TAB and LIST LAB are handled the same as the PRINT
command.
It is possible to transfer all print commands, that refer to a printer in a file. This can not be done
directly from the PROgramming SYStem. It must be defined before the program start by a MS-
DOS environment vaiable.
Before the start of a B&R-PROgramming SYStem the following must be entered in the MS-DOS
input line:
<file name> is the name of the file, in which all print outputs occur. An entire
path, including the disk drive specification, can be entered.
To delete this environment variable, the following command is entered to the MS-DOS input line:
7. DEFINE INTERFACE
A B C PG1000 CP80 PG-PC PC80
● ● ● ● ● ● ●
The selection of the interface and baud rate for a serial interface is described in 3.3. ADDITIONAL
MENU OPTIONS. The setting can also be performed with the commands in in the command line:
• PAR [↵] ↵]
Selection of a parallel interface LPT1 as printer interface.
• SER [↵ ↵]
Selection of a serial interface COM1 as printer interface.
• BAUD <Baud-Rate> [↵ ↵]
Creating the baud-rate for the serial interface.
The following values can be entered for <baudrate> :
300, 600, 1200, 2400, 4800, 9600, 19200
CHAPTER 10
ESTABLISHMENT OF FUNCTION BLOCKS
An extensive collection of standard functions blocks is available at B&R. These standard FBKs
support the user in program creation and shorten software development time.
In expansion level C there is additionally the possibility of defining and programming new function
blocks with the FBK editor. The user can create individual, problem specific function blocks.
In the first step the block form is specified - the number of inputs and outputs. In the second step
the FBK function is defined with a STL program.
The B&R standard software collection includes efficient function blocks, that are divided in clearly
arranged groups according to their function.
Group Contents
4. Operating panels FBKs for Input/Output programs for operator panels as well as the
operation of the graphic panels.
10. Communication FBKs for the coupling with other systems (Siemens, Modbus, A-B, ...)
Group
Package
1 2 3 4 5 6 7 8 9 10-1 10-2 10-3 10-4 11 12
1 ● ● ●
2 ● ● ● ● ● ● ●
3 ● ● ● ●
4 ● ● ● ●
5 ● ● ● ● ●
6 ● ● ● ●
7 ● ● ● ●
8 ● ● ● ●
9 ● ● ● ●
Model numbers:
1 SWSPSSTD01-x SWPLCSTD01-x
2 SWSPSSTD02-x SWPLCSTD02-x
3 SWSPSPID01-x SWPLCPID01-x
4 SWSPSPOS01-x SWPLCPOS01-x
5 SWSPSCOM01-x SWPLCCOM01-x
6 SWSPSDRV01-x SWPLCDRV01-x
7 SWSPSDRV02-x SWPLCDRV02-x
8 SWSPSDRV03-x SWPLCDRV03-x
9 SWSPSDRV04-x SWPLCDRV04-x
2.1. PREPARATIONS
Before a new FBK is defined and programmed, it is necessary to design it first on paper with all
inputs and outputs exactly, to avoid subsequent changes and redefinition of a created FBK.
A FBK is included in LAD 1), in which the inputs and outputs are connected. This part of the ladder
diagram is translated to the STL:
• Input submittal
• FBK program call
• Output submittal
LAD
LAD-STL Submit
FBK STL-translation Input
of LAD’s parameters
Outputs
Inputs
Call up
FBK-STL
Submit
Output
parameters
FBK-STL
1)
Chapter 4, section 6. Function plan programming
A FBK uses, according to the input and output definition in the FBK editor, internal and/or private
memory locations. In this memory location the input parameters are submitted to the FBK program
which also returns the output parameters to the same memory location.
The internal memory location is in the system memory of the PLC, that can not be accessed by the
B&R address preselections.
FBK-STL call:
The FBK program can now read and work using the indicated addressing of the
input parameter (➁) and store with the indicated addressing of the output parameter
(➂).
Schematic structure:
The parameters that is defined by the user is submitted to this memory location, (FBK-definition
editor). No internal memory locations are required.
The submittal of input/output parameters is the same as the submittal of internal memory locations.
Note: Private and internal memory locations can be mixed with the definition
of the inputs and outputs. I.e. the parameter submittal ensues according
to the FBK definition either in private or internal memory locations.
4. MENU STRUCTURE
Window number
Editor-Name
FBK-Name
Program data
Time Mode
FBK-size/ Cursor position
Programming
Mode
Status line
Editor field
Message line
line 1
line 2
line 3
addi-
tional
lines
• comment and short comment (short statement about the FBK function)
• input page (number and size of the inputs)
• output page (number and size of the outputs)
Message line In the message line messages concerning user errors or messages requiring the input
of parameters are displayed.
5. FBK DEFINITION
If a new FBK is defined, a standard FBK with two inputs and one output is displayed after calling
it up with FBK <NAME> [↵ ↵].
Comment field
Cursor
This comment line is displayed in the FBK overview (when loading FBKs) next to the FBK names
and is printed out with the FBK list.
After pressing the [↵] or [↓] key the cursor is positioned in the field for the short comment.
This text is displayed in the LAD together with the FBK (only in PC-mode!).
After pressing the [↵] or [↓] key the cursor is positioned at the first input.
address part
address preselection
Address preselection or address don't need to necessarily be specified. Possible definitions for
inputs/outputs are:
b v .... A b-byte value is submitted to the memory range. This value is stored in a
memory location with the address preselection v and its complete address is
entered in the LAD during the FBK call.
If an immediate-value (#) is distributed in the FBK definition, nothing can be connected at this
input. The defined value is exclusively submitted to the FBK program.
The address preselection must be defined, to exit the definition field. Possible input definitions are:
A v .... The memory location address with the address preselection v is submitted to
the FBK program. The complete address of this memory location must be
entered in the LAD during the FBK call.
A v aaaa The memory location address v aaaa is submitted to the FBK program.
No contact or path can be connected with this input. The predefined address v aaaa
is submitted to the FBK program. The addressing ensues either entirely in the FBK
definition or partially during the call of a FBK in a LAD.
The following possibilities are available, to submit an input to the label. Either “L”, “N” or “T”
can be entered instead of “x”:
x The label address is submitted to the FBK program in the internal memory
range. The label name must be entered in the LAD when calling the FBK.
x > The label address is submitted to the FBK program in the internal memory
range. A label contact must be connected to this input in the LAD. Other
contacts are not permitted by the PROgramming SYStem.
x NAME The label address NAME is submitted to the FBK program in the internal
memory range. NAME is specified by the FBK definition and can not be
changed any more, when calling the FBK in the LAD. NAME may have a
maximum length of 4 characters. The first character must be a letter.
“L”, “T” and “N” have the same function. They can be applied by the user for the structuring of the
program. E.g.:
At inputs “x” and “x NAME” no label contact can be connected. The predefined
label NAME is submitted to the FBK program. .The label definition ensues either
completely in the FBK definition or when calling a FBK in a LAD.
● ●
4 characters
● ●
6 characters
The cursor must be at the position, where a line should be inserted or deleted.
[Ctrl] + [Esc] Exits the editor in the command line without consideration of any changes made
since the beginning.
After exiting with [Esc] the PROgramming SYStem creates or changes the FBK header in the STL.
This FBK header contains all information, that is required by the user for the creation of a FBK
program.
The STL subprogram of the FBK is to be inserted with the label FBKN. The input/output parameter
must be submitted according to the information given in the FBK header. Index register X contains
the start address of the range in system memory, to which the parameters are submitted.
Example:
The most significant byte is located on a lower address in multi byte values.
Important
The internal memory range may not be used for data storage, since this range is used by the
system. So it is not guaranteed, that the memory contents won't change during the next program
execution.
This is to be considered especially concerning outputs. All output states, submitted to the internal
memory range by the FBK program, absolutely must be processed. The contacts, connected to FBK
outputs, could otherwise accept undefined states.
After terminating all changes and exiting the FBK editor the first LAD is automatically called, in
which this FBK is installed. The respective FBK is displayed in inverse video (on a colored screen
the FBK is displayed with red background) and the softkey line allocation is altered.
The FBK displayed in inverse video has to either be deleted from the LAD or be replaced by the
newly defined FBK. This procedure is repeated by all “old” existing FBKs in the LAD. Only if no
old FBK is available in a LAD, can the lad be edited and changed.
By exiting the first LAD with [Esc], the next LAD is called, where an old FBK still exists.
This is repeated until all original FBKs, that are available in the program, are deleted or replaced
by a new FBK.
If all inputs/outputs of a FBK are redefined, in most cases the pertinent STL
program must be changed as well.
CHAPTER 11
ONLINE PROGRAMMING VIA MODEM
1. INTRODUCTION
The application program memory module with networking capabilities and built-in modem
interface (briefly referred to as "the modem interface" in this manual) allows you to make a remote
diagnosis of PLC processors with the B&R PROgramming SYStem. Up to 16 PLC processors
(CPUs and parallel processors) can be monitored or programmed on-line with the programming
device. However, you must distinguish between two operating modes1):
You require a B&R PROgramming SYStem version higher than 5.4 for on-line programming via
the modem interface. This version contains some new instructions for the on-line programming via
modem:
The B&R PROgramming SYStem from version 5.4 upwards presently only supports the RS232
links to the busmaster (modem interface with node number 0). An on-line link via a modem
interface with the node numbers 1 to 15 is only supported through the busmaster's RS485 interface.
FEATURES
The modem on-line link provides you with the same features to intervene in the PLC as those in a
direct link between PC and PLC. All operational commands that require an existing on-line link can
be used:
In addition, there is also the possibility that the modem interface monitors the PLC and forwards
alarm messages to a superior station, which will then protocol these messages and, if necessary,
take remedial action in the PLC.
1)
See section 12 "Online Interfaces"
2. MODEM SETTINGS
Command: ↵]
MODEM [↵
Function: This command calls up the "modem settings" menu. In this menu you enter the
specific parameters of the modem that is connected to the PC.
Preliminary setting of the modem configuration with standard parameters for CCITT-compatible
modems.
This function is not supported by the B&R PROgramming SYStem version 5.4.
[F2 HAYES]
Preliminary setting of the modem configuration with the standard parameters for HAYES-
compatible modems (AT instruction set).
[F3 ~]
This function key allows you to place the "~" character (wait) at your current cursor position. This
character makes the modem wait 0.5 seconds before executing the next command.
[F5 TERMINAL]
Enter the terminal emulation for operating the modem directly through the keyboard. After calling
up this function, the screen is cleared and the cursor is placed on the left hand-side at the top of the
screen.
If you press... [Y] the entered data are accepted and saved to the user configuration file;
If you press... [N], [F8 EXIT] or [ESC] the menu "modem settings" is exited without
writing the data into the user configuration file.
2.2.1COMMANDS
Initialization String of max. 40 characters with which the modem is initialized in each
Command: dialing process or when the standby menu is entered.
Dialing: Dialing command consisting of max. 30 characters for initiating the dialing
Command: process.
Dialing end: String of max. 30 characters that is sent to the modem at the end of each
Command: dialing process.
Hang-up: String of max. 30 characters that makes the modem disconnect from an
Command: existing link.
1)
The function of each control character is outlined in the modem´s operating manual.
If you press....
Parity: If the [↵] key is pressed while the cursor is placed on this field, a window is opened
in which the following features can be selected with the cursor keys [up],
[down]:
If you press....
Data bits: The number of data bits is selected with the following keys:
Stop bits: The number of stop bits is selected with the following keys:
2.2.3. MESSAGES
Response OK: This response is not used by the B&R PROgramming SYStem.
Response Error: This response is not used by the B&R PROgramming SYStem.
Connect Message: If a link is established with another modem, the modem connected to the PC
sends a "connect message". This message contains the baud rate with
which the link is established with the remote modem.
[Y] The PC's COM1 interface is parameterized with the baud rate
contained in the "connect message".
[N] The baud rate of the COM1 interface is not changed. This is only
possible in modems that are able to communicate with the remote
modem in another baud rate than with the PC.
1) Set the AT instruction set, because it is presently the only one supported by the B&R
PROgramming SYStem. Usually you can select between the AT and the CCITT
instruction set in a modem.
a) Main line
b) Extension
a) 8 Data bits
b) No parity
c) 1 Stop bit
a) Pulse dialing
b) Tone dialing
6) Check the connection PC - Modem by means of the terminal emulation that is built into
the B&R PROgramming SYStem ([F5 TERMINAL] in the menu "modem
configuration"). Enter the modem commands directly (e.g. dialing commands,
hang-up, ...) in order to check the link. If necessary, make alterations
to the modem parameters.
Example: After entering AT (the AT command for attention) in the terminal emulation,
the modem should respond with OK:
3. DIALING DIRECTORY
Command: DIAL [ ↵]
Function: This command calls up the "Dialing directory" menu. This menu allows you
to enter up to 200 station names with the respective telephone numbers,
establish (DIAL) and terminate (HANG-UP) links.
After entering DIAL[↵] in the command line, the following menu appears:
Select the desired number with the cursor keys [up], [down] or [PgUp], [PgDn]. The inverse entry
can be edited, altered, newly entered or "invoked" through the modem connected to the PC.
[F1 REVISE]
Input or change of an entry. If this function is selected, a window is opened in which the "name"
and "telephone number" fields can be altered:
Number to dial
Wait for dialing tone (free-line signal)
Pause (R8)/Long pause
Ground key
Pulse dialing
Tone dialing
0123456789W,>PT Hayes-AT
0123456789:=>PT CCITT
Example: Tone dial the number 09989 7602 521 through an AT-modem from an extension (get
main line first with "0" and wait for free-line signal dialing tone) and pause
between area code, number and extension:
T0W09989,7602,521
1)
The function of each control character is outlined in the modem´s operating manual.
[F2 SEARCH]
Search for an entry. After pressing [F2 SEARCH], a window is opened:
The user can now enter a search mask according to which a search is made. The mask is compared
with the name and telephone number. The first entry found is shown in inverse video. The dialing
directory is searched from NO. 001 to 200. If necessary, the search begins again at the first entry.
No difference is made between upper case and lower case characters.
If no entry was found with the mask, the following error message is displayed:
STATION 1 092388836
8. Station P2
Co. Salmond STAT0911
[F3 ERASE]
The selected entry is deleted from the directory. If this function was selected, the user is asked for
a confirmation:
[F4 GOTO]
Select the entry with the desired number. When calling up this function, a dialogue window appears
in which the desired number can be entered (1 to 200):
[F5 DIAL]
The B&R-PROgrammingSYStem tries to establish a link with the selected number (telephone
number). A window is opened in which the modem's last message is displayed. The dial process
can be interrupted at any time by pressing [F8 EXIT] or [ESC]. After the link has been established
successfully, the program automatically switches to the menu "node list".
4. NODE LIST
Command: ↵]
ONL COM1 [↵
Function: After entering ONL in the command line, the assignment of the softkey line is
changed:
After entering [F3 COM1] and [↵] the program tries to establish a link to the PLC
(modem interface) through the PC's COM1 interface. In modem operation it is
necessary to establish the respective telephone link (command: DIAL) first before
calling up the node list, as otherwise the following error message is displayed:
Node number
Status of the link
Node overview
Node number:
Up to 16 CPUs or parallel processors can be linked within a network by means of the modem
interface. The node number is set on the modem interface through a turn switch (see section 12
Online Interfaces).
Node information:
3) PLC ERROR
PLC is out of order.
4) PLC DISCONNECTED
The on-line connection between the modem interface and the PLC is either not inserted
properly or out of order.
5) Information on the program that is currently being executed in the PLC is equivalent to
the information line that is sent in the command P-VERS 1).
Select the displayed stations with the cursor keys [up] or [down]. The station is displayed inversely
on the screen.
1)
See section 5 "STATEMENT LIST PROGRAMMING", 8.5 P-VERS - Information on the PLC program.
[F1 LOGIN]
The B&R-PROgrammingSYStem logs into the selected station. It should be proceeded as follows:
1) If the safety callback is active, the user is asked in a dialogue window to select one of
the two callback numbers when a link is established via the modem.
[F1 CALLBACK]
Call back with the selected number (see also [F5 CALLBACK]).
The B&R-PROgrammingSYStem switches into the STANDBY-mode and waits for the
callback from the modem interface. The last message from the modem is
shown in a window on the screen. You can leave the STANDBY-mode at
any time by pressing [ESC] or [F8 EXIT].
After a successful callback and the establishment of the link, the program switches back
to the station overview mask and displays all stations.
2) If the password check system is active, the user is asked in a window to enter his
password. If a wrong password was entered, the following message is
displayed:
If the password was correct, the character "*" for "logged in" is displayed in the station
overview.
3) If none of the safety systems is active, the node is marked by the "*" character as
"logged in".
[F2 LOGOUT]
Log out from the selected station.
After logging out from the master (node number 0), all slaves are automatically logged off (node
numbers 1 to F). Then the link is interrupted.
[F3 UPDATE]
All the information on the stations (status of links, node information) is updated. This function is
used, for example, when the station overview is called up with ONL COM1 [↵]. For runtime
reasons, the node information can only be updated if the PLC status has changed.
[F4 S-EEPROM]
Call up the menu for entering the parameters in the S-EEPROM (serial EEPROM in the modem
interface). The following menu appears.
For further details on this menu, please see "5. Programming the S-EEPROM".
[F5 CALLBACK]
Initiate a callback from the modem interface. After activating this function, the user is requested in
a window to enter the callback string:
If the function key [F5 CALLBACK] is pressed, the link is interrupted, the B&R-PROgramming-
SYStem switches over to standby and waits for the callback. The last message from the modem is
displayed in a window on the screen. The standby mode can be left at any time by pressing [F8
EXIT] or [ESC]. After the callback and the successful establishment of a link, the program
switches back to the node list, which displays all stations. A CALLBACK is only possible if...
[F6 SELECT]
The marked node is selected for the current window. The window number is displayed on the right
hand-side next to the node number. A node that has already been selected for the same window is
marked by "*"; the on-line link of this node is terminated.
All functions of the B&R-PROgrammingSYStem in the respective window now refer to this node
(e.g. RUN, DEBUG, hardware reset,....).
[F9] or [F10]
The assignment of the softkey lines can be changed with these two function keys.
S-EEPROM Defective
This message will be displayed as long as the S-EEPROM Password Protection Active
is Station is protected by a password.
not programmed by the user or if the S-EEPROM is
defective. S-EEPROM Programming Error
There was an error in programming the S-EEPROM.
Alarm Active
An alarm is imminent. Programming S-EEPROM
S-EEPROM is programmed.
Safety Callback
Link was established by safety callback with one of the two Callback Protection Active
callback numbers stored in the modem interface. A safety callback will be made when a login is made at this
station.
Callback
Link was established through a normal callback with the PROM Version
number entered in the B&R-PROgrammingSYStem. The modem's operating system version
After the link is disconnected, a hardware reset is carried out in the PLC. The PLC
remains in a halted condition (it behaves as if an on-line cable were attached).
After the link is terminated, a hardware reset is carried out in the PLC. However, the
PLC is started again (it behaves as if no on-line cable were attached).
3) Default
The PLC remains in the condition in which it was at the time when the link was
disconnected.
[F1 PROGRAM]
Transfer the settings to the modem interface and store them in the S-EEPROM.
Select one of the menu items with the cursor keys [up], [down], [left] and [right]. The function is
called up with the [↵] key.
[F1 PROGRAM]
The S-EEPROM is programmed with the new or altered parameters. Programming the S-EEPROM
takes approx. 10 secs. After pressing [F1 PROGRAM] the following message appears:
This menu item allows you to alter an existing password or to add a new one. After selecting the
menu item "password option" with the cursor keys [up], [down], [left] and [right] and confirming it
with [↵], a window for entering and altering the passwords is opened:
For each of the two user levels one password with a maximum length of ten characters can be
entered.
Enter/alter password:
The entry is made "blind", i.e. the screen does not show the password entered by the user.
[F1 PROGRAM]
The S-EEPROM is programmed with the new or altered passwords. The cursor has to be located on
one of the confirmation fields when this function key is activated. If this is not the case, the
following error message is displayed:
If another password was entered than in the field "password class x", the B&R-
PROgrammingSYStem issues the following error message:
The programming of the S-EEPROM takes approx. 10 secs. Depending on which password was
changed, one of the following messages is issued:
Hardware Reset 2 -
XFER 2 -
LOAD PLC 2 -
Program S-EEPROM 2 -
1 Call only possible for information purposes
Change Passwords 2 Passwords of both user levels can be changed
1 Only passwords of user level 1 can be
changed
Functions in the Debug Mode
Display memory locations 1/2 -
Change memory locations 2 -
Edit register [F1 REGEDIT] 2 -
Stop program [F4 STOP] 2 -
Continue program [F5 CONT] 1/2 -
Edit breaks [F2 BRKEDIT] 2 -
STL debug mode [F3 STL] 1/2 -
Single steps [F7 S-STEP] 2 -
Trace [SHIFT] + [F7 S-STEP] 2 -
Reset [F6 RESET] 2 -
The parameter for the safety callback can be entered or altered in this menu item. After selecting
the menu item "callback parameter" with the cursor keys [up], [down], [left] and [right] and the
respective confirmation with [↵], a window is opened for entering or altering the parameters.
[ESC]
Closes the window and returns to the menu "S-EEPROM Parameters".
Select and alter any one of the parameters with the cursor keys [up] or [down].
* Safety callback
* Termination of the link
Practical example: A system with several PLC stations sends messages and alarms via the
modem interface to a master station, which logs these messages and, if
necessary, initiates certain reactions to them.
This menu item allows you to enter and alter the parameters for handling an alarm . After selecting
the menu item "alarm handling" with the cursor keys [up], [down], [left] and [right] keys and
confirming it with [↵], a window is opened for entering and altering the parameters:
[ESC]
Closes the window and returns to the menu "S-EEPROM parameters".
Select and alter any one of the parameters with the cursor keys [up] or [down].
1) Type of CPU:
Enter the type of CPU (CP40/CP80) to which the modem interface is connected.
9) Alarm parameters:
Send parameters for alarm string of item 8). The parameters 10) to 16) are only used
if there is a malfunction in the PLC or a defective on-line link to the PLC.
Otherwise, the alarm parameters defined in the PLC are used (see 6.1 Alarm
parameters).
[ESC]
Closes the window and returns to the menu "S-EEPROM parameters".
1) Type of modem:
Set the type of modem: C CCITT
H Hayes-AT
4) Baud rate:
If the [↵] key is pressed when the cursor is placed on this field, the following baud
rates can be selected with the cursors keys [up] or [down]:
5) Number of rings:
If the modem is called, the <number> of rings is waited until the modem goes off
hook to establish the link.
[ESC] Closes the window and returns to the menu "S-EEPROM parameters".
Select and alter one of the 3 parameters with the cursor keys [up] or [down]:
[ESC] Closes the windows and returns to the menu "S-EEPROM parameters".
Select and alter one of the 7 parameters with the cursor keys [up] or [down]:
3) Buffer-0:
4) Buffer-1:
5) Buffer-2:
6) System:
7) Baud rate:
If the [↵] key is pressed when the cursor is placed on this field, the following baud
rates can be selected with the cursors keys [up] or [down]:
When pressing...
... [F8 EXIT] or [ESC] the window for selecting the baud rate is exited
without accepting the selected value.
6. STANDBY OPERATION
Command: STANDBY [↵]
The B&R-PROgrammingSYStem opens a window in which the current file name is shown. Any
incoming alarms are stored in this file. The file name can be changed. If no file name is entered (or
the current file name is deleted), the incoming alarms are not stored in a file.
The file name can be entered with path name and drive. If the path name is not entered, the file is
automatically stored in the directory in which the B&R-PROgrammingSYStem was installed
(usually: C:\PG).
[F1 STANDBY]
Activate the actual standby mode. The window for entering a file name is closed and the window
"last message" is opened. This window shows the last message from the modem to the B&R-
PROgrammingSYStem. The B&R-PROgrammingSYStem then waits for the following events:
* Message from the modem: connect message, i.e. the link was established successfully.
* Termination of the standby mode by pressing [F8 EXIT] or [ESC].
* Alarm callback
* Safety callback
* Normal callback
* Call cannot be identified
Alarm callback
1) The alarm string is displayed on the screen and, if desired, written to an alarm file.
Safety callback
1) If at the same time an alarm is imminent, it is treated like an alarm callback.
Normal callback
1) If at the same time an alarm is imminent, it is treated like an alarm callback.
2) The modem is not initialized, as this was already done in the previous dialing process.
After the callback was received, the standby mode is exited and the program switches to the menu
station overview.
Remark:
For the operation in the standby mode the modem connected to the PC must be set to the
auto answering mode, i.e. the modem must go off-hook automatically. For example, this
can be deterined within the modem initialization settings (modem configuration). The
command for setting this mode is described in your modem's manual.
Remark: The memory areas for the dual-port RAM and the alarm parameter must
not overlap!
xxxxxxx0 no alarm
xxxxxxx1 alarm
Rxxxx + 0 x x x x x x x d0
If the PLC intends to send an alarm to the modem interface, it first has to set bit 0 from Rxxxx + 1
to logical 0, as the modem interface will otherwise not recognize the alarm message.
Possible errors: - Alarm call was unsuccessfully terminated / Establishment of link not possible
- Alarm was not confirmed by remote station
- Link was terminated during the transmission of the alarm string
Alarm parameters
Slave node transmits via own RS232:
0xxxxxxx Yes
1xxxxxxx No (sends via RS485 to busmaster)
Rxxxx + 3
Rxxxx + 4
These three registers contain the alarm parameters. These parameters must be defined by the user
within the PLC program (see "5.3 Alarm handling").
In these three registers the PLC hands over the address and the length of the alarm message string.
Hence, the PLC is able to supply a certain text to the modem interface according to the respective
alarm. The modem interface, on the other hand, can send this message to a remote station via an
established link (alarm callback).
Command:
xxxxx00 No command/Acknowledgement from PLC
xxxxx01 Load through dual-port RAM
xxxxx10 Send through dual-port RAM
xxxxx11 Log book function
x x x x x x d1 d0
Rxxxx + 0
Rxxxx + 0
Source-/Destination address
d7 d6 d5 d4 d3 d2 d1 d0
Logbook entry
d7 d6 d5 d4 d3 d2 d1 d0
The log book entry consists of the three parts length, type and entry.
Example: Normal callback from an extension (get main line with 0 and wait for dial tone);
tone dial the number 09989 7602 521 with an AT modem and pause between area
code, number and extension.
Tone dial
Get main line
Wait for dial tone
Area code
Pause
Number
Pause
Extension
Nibbel
01
02
03
04
05
06
07
08
09
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
The dial string is coded as follows: Contents
D 4 0 D 7 0 9 9 8 9 A C 7 6 0 2 A C 5 2 1 F F F F F F F F F
1) If the length of the coded telephone number is precisely 15 bytes (= 30 nibbles) no end-of-string character
($FF) is added.
The log book entry in the PLC would look like this:
Load via dual-port RAM: The modem interface can require the PLC to save a certain memory
area (source address) of the PLC to the dual-port RAM. The
modem interface independently collects these data after the
acknowledgement by the PLC and can ....
.... send these via the RS232 (via modem or directly) to a PC.
.... send these via the RS485 to the busmaster.
Send via dual-port RAM: The modem interface can save data received via the RS485 or RS232
to the PLC's dual-port RAM and inform the PLC about the
destination address of these data.
These two functions allow an "error-protected" exchange of data with the PLC. A superior system
(PC, MAESTRO,...) can request data from an PLC and send these to an other one. This exchange of
data can be protected by safety callback.
Remark:
As the modem accesses the PLC's dual-port RAM through the normal debug mode
functions (this takes place every 10 msecs in one of the PLC's timer interrupt routines),
there is an effective baud rate of 200 baud.
CHAPTER 12
ONLINE INTERFACES - HARDWARE
1. GENERAL INFORMATION
In order to be able to communicate with the programming device, all CPUs are equipped with an
ONLINE interface. There are various possibilities for the establishment of an ONLINE connection
between the programming device and the PLC:
Note:
In this chapter the abbreviation "PD" will be used in place of the term PROGRAM-
MING DEVICE.
If the CENTRONICS ONLINE interface is used together with battery supplied Laptops
(e.g.: Toshiba T1200, T1600, T3100SX), the interface has to be supplied externally (e.g.: B&R
power supply BRPS220904-0).
LED indicates, whether an external
voltage supply is connected.
connector for the external voltage supply.
The CENTRONICS ONLINE interface is connected with the PD interface of the PLC (labelled PG)
by means of the ONLINE cable BRKAOL5-1:
Note: When the PC is switched on/off, the CENTRONICS ONLINE interface must
be disconnected from the PLC.
User program memory module with Modem interface, for the connection of CCITT- or
HAYES-Modems serial RS232 interface, serial RS485 interface, online interface, node-
number switch and status-LED
RAM/EEPROM module for CPU/PP modules equipped with a 6303-Processor (CP30, ECEE32MP-0
CP31, CP40, CP41, NTCP3# and PP40), 16 KB RAM, 16 KB EEPROM
Flash PROM module for CPU/PP modules equipped with a 6809-Processor (CP60, CP80, ECFP128MP-0
NTCP6#, PP60), Flash PROM memory for 42 KB of application program and 52 KB of
application data memory
Instead of an user program memory module (EE32, EP128, FP128, ...), the module is plugged into
the processor module. The processor also supplies the modem interface with the required voltage.
4.3. GROUNDING
On the bottom of the module the Modem interface is provided with a flat mounting clip. During
operation, this mounting clip has to be connected with the grounding terminal strip by using a very
short wire (at least 0.75 mm2 cross section). In the case of MULTICONTROL, MIDICONTROL
and M264 systems the grounding connection is attached to the bottom mounting screw of the
processor module. In the case of MINICONTROL systems the grounding connection is attached to
the ground terminal of the power supply module.
Ground connection
is made to the
bottom mounting
MEMORY screw
4.4. INTERFACES
The Modem interface is equipped with three serial interfaces. The pin configuration of the RS485
and RS232 interfaces is imprinted on the left side of the housing of the Modem interface:
Connection to the
Online interface
RS232 interface
to the Modem or
programming device
The 9-pin DSHELL connector is connected with the Online interface of the
processor module (CPU or PP). For this purpose, one of the following
Online cables can be used:
BRKAOL-0 3 m length
BRKAOL-3 0.3 m length
By means of the electrically isolated RS485 interface, up to 16 processor modules (CPUs or PPs)
can be connected in a two-wire network. The desired processor module can be selected via a
selection function in the B&R PROgramming SYStem.
RS485
Connection Function
1 DATA
2 DATA
3 GND
4 DATA
5 DATA
The upper or lower DATA/DATA connections can be used alternatively. The ground (GND) need
not be connected. For the network, a two-wire line may be sufficient. If a shielded cable is used,
the cable shield is to be connected to the ground (GND) at both ends.
The programming device (PC, COM1) or a Modem can alternatively be connected to the RS232
interface.
Pin Function
1 GND
5 2 DTR
9
3 TXD
4 RXD
5
6
1 6
7 DSR
8
9 CTS
PLC with
Modem-Interface
RS485-NETWORK
max. 1200 m
max. 10 m
max. 16 PLC Processors
in an RS485-Network
PLC with
Modem-Interface
The operation without Modem may be advantageous, if several PLCs, which are locally separated
way and/or difficult to access, should be programmed from a central programming device.
1 5
GND GND
3 2
TXD RXD
4 3
RXD TXD
2
DTR
7
DSR
This mode of operation is used for the remote diagnostic analysis via telephone and Modem. The
programming device at place A is connected to the first Modem, and the second Modem at place B
to the Modem interface in the processor module.
Diagram:
PLC with
Modem-Interface
RS485-NETWORK
max. 1200 m
PLC with
Modem-Interface PLC with Programming
RS232 RS232 device
Modem-Interface Modem Modem
(PC)
max. 10 m max. 10 m
max. 16 PLC Processors
in an RS485-Network
PLC with
Modem-Interface
Site B Site A
CCITT-Description
1 7
GND 102 Signal ground
2 20
DTR 108 Data terminal ready
3 2
TXD 103 Transmitted data
4 3
RXD 104 Recieved data
7 8
DSR 109 Recieved line signal detector
9 6
CTS 107 Data set ready
3 4 56
Node number switch
012
789A
EF
BCD
In the case of CPUs or PPs equipped with a 6303 processor (CP30, CP31, CP40, CP41, NTCP3#,
PP40), the status LED is green. In the case of CPUs or PPs with a 6809 processor (CP60, CP80,
NTCP6#, PP60), the status LED is red.
C 000
Online connection
Grounding connection
5. ACCESSORIES
5.1. CABLE
COMPAQ interface
PD interface
connected directly
to PP or NTCP6#
1
PD
3
4
6
7
8
PD/IF * 1 1 PD/IF
* 2 2
* 3 3
The configura- * 4 4
tion (*) of the user * 5 5
interface IF can be * 6 6
taken from the * 7 7
* 8 8
description of the * 9 9
PP## and the * 10 10
NTCP6#. * 11 11
* 12 12
* 13 13
Reset RET (GND) 14 14
RXD RET 15 15
TXD RET 16 16
Reset 17 17
RXD 18 18
TXD 19 19
* 20 20
* 21 21
* 22 22
* 23 23
* 24 24
* 25 25
5.3.4. Connection
Schematic structure:
The 9-pin DSHELL connector is connected to the PD interface of the PC or the PLC:
Depending on the fact whether the adapter is connected to the ONLINE interface of a PC or to the
PLC, the switch located on the adapter must be in the right position:
protection cap of
the FOL interface
In order to be able to connect the FOL cable to the FOL interface (FOL = Fibre Optic Link), the
protection cap has to be removed first.
External supply
By using the connection cable, which is included in the scope of delivery, the FOL adapter can be
supplied with an external voltage (in most cases an industrial voltage of 24 VDC). In addition,
B&R offers the power supply BRPS220904-0.
Wattage 3,6W
APPENDIX A
SUMMARY - OPERATING COMMANDS
GENERAL INFORMATION
The following explanations give an overview of the operating commands of the PROgramming
SYStem:
<NAME>
<TBL_NAME> 4 character long name, the first character must be a letter.
<LAD_NAME>
<range> a range must be defined for block operations (e.g.: COPY, MOVE, ...):
#LOFF# ↵]
[↵ The LEARN mode is switched off. C-3
B&R ↵]
[↵ Switch to B&R mnemonics 3-11
BAUD ↵]
<Baud rate> [↵ Sets the baud rate for the serial interface. Valid baud 3-11
rates are:
300, 600, 1200, 2400, 4800, 9600, 19200
COPY <range> <destination> Copy STL, SYMB or TAB ranges and insert them in 5-27, 6-8,
a certain position (destination). 7-8
DISK <File type> <FNAME1> TO <FNAME2> [↵ ↵] 8-20
The file <FNAME1> is copied and provided with the
name <FNAME2>.
CP40 ↵]
[↵ Switch from CP80 to PG1000 mode or from PC80 to 3-11
PG-PC mode.
CP80 ↵]
[↵ Switch from PG1000 to CP80 mode or from PG-PC 3-11
to PC80 mode.
DATA_TBL ↵]
[↵ Call of the DATA_TBL editor and the last processed 7-3
table.
↵]
<TBL_NAME> [↵ Call of an already existing table or a new defined
DATA_TBL with the specified name <TBL_NAME>.
DATE ↵]
<program date> [↵ The current program date is replaced by the 3-25
<program date> .
DDIR ↵]
<PATH> [↵ The default directory of the current drive is set to 8-4
<PATH> .
DEBUG ↵]
[↵ S_LIST status test call. 5-31
DELETE ↵]
<File type> <FNAME> [↵ Delete the file <FNAME>. 8-21
↵]
BLOCK <range> [↵ Delete STL, SYM or TAB ranges. 4-60,5-29,
6-9,7-8
DIR ↵]
<File type> <PATH> [↵ Display of the directory contents <PATH>. 8-18
Files with definite extensions can be displayed with
the parameter <file type>. If this parameter is not
specified, all existing files are displayed.
Without entering <PATH> the contents of the default
directory are displayed.
DOS ↵]
[↵ Call of the MS-DOS command interpreter. 3-27
With the command EXIT it can be returned to the
PROgramming SYStem.
↵]
"Command" [↵ Executes a MS-DOS command "command" and
automatically returns to the PROgramming SYStem.
DRIVE ↵]
<Drive name> [↵ The current drive is changed to <drive name>. 8-3
DUMPS ↵]
<FNAME> [↵ A PLC program is stored as MOTOROLA S-record C-10
file under the name FNAME.S .
EEPROM ↵]
[↵ EEPROM menu call. 5-49
END ↵]
[↵ quits the PROgramming SYStem. 3-20
EXE ↵]
<[Link]> [↵ The LEARN-File <[Link]> is executed. C-4
FBK ↵]
<NAME> [↵ Accesses the FBK definition editor for the definition 10-8
of the FBK with the name <NAME>.
FIND ↵]
<range> [↵ Searches STL program lines, that correspond with the 5-24
specified search mask.
If no <range> is specified, the entire STL program is
searched.
FINDL ↵]
<range> [↵ All program lines that correspond with the specified 5-26
search mask, are listed on screen.
FINDP ↵]
<range> [↵ All program lines that correspond with the specified 5-26
search mask, are printed.
FORMAT ↵]
<Drive name:> [↵ Formats the disk in the specified drive. 8-21
FREE ↵]
<ADDR/SYMBOLS> [↵ Searches for addresses that are not allocated with 6-9
symbols, beginning with address <ADD/SYM>. If no
start address is entered, the search starts at R 000.
GLOBCHAN ... Global exchange/replace with all addresses in the entire 5-23
S_LIST program including the LAD translation.
↵]
EXCHANGE[↵ All program lines are changed and compared with two
defined search masks. If a search mask corresponds
with a program line, it is replaced by the other mask.
↵]
REPLACE[↵ All program lines are searched and compared with the
first defined search mask. If it corresponds with the
program line, it is replaced by the second mask.
LAD ↵]
[↵ Call of the last processed LAD. 4-13
↵]
<LAD_NAME> [↵ Call of the LAD with the name <LAD_NAME>.
LANG ↵]
<Language> [↵ selection of the dialogue language: 3-11
GR German
USA English
F French
ITA Italian
SP Spanish
LARGE ↵]
[↵ Program memory definition on 4766 program lines. 3-26
LDMO ↵]
[↵ Call of the last LDMO. 4-44
↵]
<LAD_NAME> [↵ LDMO call (LAD with the name <LAD_NAME>).
LIST ↵]
[↵ Call of the printer menu, where the screen display is 9-3, 9-19
defined.
↵]
SYM <range> [↵ Output of the SYMBOL range. If no <range> is 9-19
define, all SYMBOLs are output.
↵]
LAB [↵ Output of a list of all labels that are used in the 9-19
program .
↵]
PROG <range> [↵ Output of the specified S_LIST range. If no <range> 9-19
is entered, the entire S_LIST is distributed.
↵]
DATA_TBL <TBL_NAME> [↵ Output of the table <TBL_NAME>. If no DATA_TBL 9-19
name is specified, all tables are distributed.
↵]
PG1000 [↵ The PROgramming SYStem switches to the PG1000 3-22
mode and waits until the programming device
PG1000 submits a program through the serial
interface to the PC.
↵]
PLC [↵ The program that is in the PLC RAM, is loaded in the 5-52
work memory of the PC.
↵]
PROG <FNAME> [↵ The program <FNAME> is loaded. The program in 8-9
the memory is deleted.
↵ ] The table <FNAME> is loaded and the loaded table
TAB <TBL_NAME> <FNAME> [↵ 8-11
receives the name <TBL_NAME>.
MAESTRO ↵]
[↵ Emulation of a PROVIT 500/600 with ext. ASCII- C-9
keyboard.
MOVE ↵]
<range> <destination> [↵ Move a S_LIST, SYMBOL or DATA_TBL range. 5-30, 6-8,
7-8
NAME ↵]
<Program name> [↵ The current program name is replaced by <program 3-24
name> .
NEW ↵]
[↵ Deleting the program in the current window, that is in 3-25
the PC working memory.
ONL ↵]
<interface> [↵ Selection of the online interface that should be used, 3-26
to program a PLC:
P-VERS ↵]
[↵ Information display about the program in the PLC. 5-23
PAR ↵]
[↵ Selection of the parallel interface as printer interface. 9-20
PMEN ↵]
[↵ Call of the printer menu, where it is defined, what 9-3
should be printed.
PRINT ↵]
[↵ Call of the printer menu, where it should be defined, 9-3,9-17
what needs to be printed.
↵]
SYMBOL <range> [↵ Print of the defined SYM range. If no <range> is 9-18
entered, all SYMBs are printed.
↵]
LAB [↵ Print of a list of all labels used in a program. 9-18
↵]
PROG <range> [↵ Print of the specified S_LIST range. If no <range> is 9-17
entered, the entire S_LIST is printed.
↵]
DATA_TBL <TBL_NAME> [↵ Table print out <TBL_NAME>. If no TAB name is 9-18
entered, all tables are printed.
RENAME ↵]
<File type> <FNAME1> TO <FNAME2> [↵ 8-21
Rename the file FNAME1 to FNAME2.
RNT ↵]
[↵ The program in the current window is checked for 5-48
missing labels and exceeding of the maximum
branch width.
RUN ↵]
[↵ The program is transmitted to PLC RAM and started. 4-11,5-30
The S_LIST status test is called.
RUN P ↵]
[↵ This command is the same as the RUN command, 5-48
with the difference, that the program is protected
when submitted to the PLC. I.e.: The program can not
be loaded to the PLC with LOAD PLC.
S_LIST ↵]
[↵ S_LIST editor call. C-3
↵]
<LINE/LAB> [↵ The input line is set to the specified S_LIST line 4-5
<LINE/LAB>.
SAVE ↵]
[↵ The entire program is saved with the name, that was 8-5
previously defined with a SAVE or LOAD command.
↵]
<FNAME> ASCII SYMBOL <range> [↵ 8-8
Store a SYMBOL range in ASCII format.
<FNAME> ASCII DATA_TBL <TBL_NAME> [↵ ↵] 8-8
Store a DATA_TBL range in ASCII format.
↵]The ladder diagram <LAD_NAME> is saved.
<FNAME> LAD <LAD_NAME> [↵ 8-6
↵]
<FNAME> SYMBOL [↵ All defined symbols are saved. 8-6
↵]
<FNAME> MACRO S_LIST <range> [↵ 8-7
The defined S_LIST range is saved as a macro.
↵]
<FNAME> MACRO SYMBOL <range> [↵ 8-7
The defined SYMBOL range is saved as a macro.
↵]
<FNAME> MACRO DATA_TBL <range> [↵ 8-7
The defined SYMBOL range is saved as a macro.
↵]
PG1000 <Mnemonics> [↵ Submits a program to the PG1000. There are two 3-23
possibilities for <Mnemonics> :
• INTER (MOTOROLA-Mnemonics)
• GERMAN (B&R Mnemonics)
↵]
<FNAME> PROG [↵ The entire program is saved. 8-6
↵]
<FNAME> DATA_TBL <TBL_NAME> [↵ 8-6
The table <TBL_NAME> is stored.
SDIR ↵]
<PATH> [↵ The standard directory of the current drive is set to 8-4
<PATH>.
SER ↵]
[↵ The serial interface COM1 is defined as printer 9-20
interface.
SEQCHART ↵]
[↵ SEQCHART editor call and call of the last edited 4-5
SEQCHARTs.
↵]
<NAME> [↵ Call of an existing or new SEQCHART with the 4-5
specified name <NAME>.
SMALL ↵]
[↵ Program memory definition on 2719 program lines. 3-26
SYMBOL ↵]
[↵ SYMBOLS editor call. 6-4
↵]
<ADDR> [↵ The input line is set to a particular address.
TERM ↵]
[↵ PC can be used as input terminal for the operation of C-6
a PROVIT 900/1000.
UDIR ↵]
<PATH> [↵ The user directory of the current drive is set to 8-4
<PATH>.
WINDOW ↵]
[↵ Window definition menu call. 3-18
XFER ↵]
[↵ Program submittal to the PLC, without interruption of 5-55
the program running in the PLC.
XREF ↵]
[↵ Output of a list of all cross references on screen. 9-19
APPENDIX B
STL-INSTRUCTIONS
SYNTAX EXPLANATIONS
The STL instruction overview includes various information:
The table is divided into two pages, i. e. the left and the right page belong together. To increase the
readability of the STL overview, the left and the right page were provided with “consecutive
numbers”.
Left Page
Mnemonics Mode
Cont.
PG1000
Operation
PG-PC
CP80
PC80
Nr. Motorola B&R short
Right page
2 1/3 1/1 ❍ ❍ ❍ ❍ ❍ ❍
■ available at 6303
Mnemonics Mode
Cont.
PG1000
Operation
PG-PC
CP80
PC80
Nr. Motorola B&R short
2 1/3 1/1 ❍ ❍ ❍ ❍ ❍ ❍
8 7/- 3- ■ ● ● ❍
12 1/2 1/1 ● ● ● ● ● ●
13 1/2 1/1 ● ● ● ● ● ●
14 1/4 1/2 ● ● ● ● ✕ ●
15 3/3 2/2 ❍ ❍ ❍ ❍ ❍ ❍
16 -/5+ -/4 ❍ ❍ ❍
17 3/3 2/2 ❍ ❍ ❍ ❍ ❍ ❍
18 -/5+ -/4 ❍ ❍ ❍
19 3/3 2/2 ❍ ❍ ❍ ❍ ❍ ❍
20 -/5+ -/4 ❍ ❍ ❍
23 3/3 2/2 ❍ ❍ ❍ ❍ ❍ ❍
24 -/5+ -/4 ❍ ❍ ❍
25 3/3 2/2 ❍ ❍ ❍ ❍ ❍ ❍
26 -/5 +
-/4 ❍ ❍ ❍
27 3/3 2/2 ❍ ❍ ❍ ❍ ❍ ❍
28 -/5 +
-/4 ❍ ❍ ❍
29 3/3 2/2 ❍ ❍ ❍ ❍ ❍ ❍
30 -/5 +
-/4 ❍ ❍ ❍
31 3/3 2/2 ❍ ❍ ❍ ❍ ❍ ❍
32 -/5 +
-/4 ❍ ❍ ❍
33 1/25 1/3 ● ● ● ● ● ●
34 1/3 1/2 ❍ ❍ ▼ ❍ ❍ ▼
35 1/3 1/2 ❍ ❍ ❍ ❍ ❍ ❍
Mnemonics Mode
Cont.
PG1000
Operation
PG-PC
CP80
PC80
Nr. Motorola B&R Short
36 CLR CLR C 00 ➱ M ❍ ❍ ❍ ❍
37 CLRA CLA 00 ➱ A ❍ ❍
38 CLRB CLB 00 ➱ B ❍ ❍
39 CMPA CMP V A-M ❍ ❍ ❍ ❍
40 CMPB VB B-M ❍ ❍ ❍ ❍
41 COM K M ⊕ #$FF ➱ M (Negation) ❍ ❍ ❍ ❍
42 COMA COA KA A ⊕ #$FF ➱ A (Negation) ❍ ❍
43 COMB COB KB B ⊕ #$FF ➱ B (Negation) ❍ ❍
44 CPX VR X - M:M+1 ❍ ❍ ❍ ❍
45 CPX# VRK X - M:M+1 ❍ ❍ ❍ ❍
46 CPY VY Y - M:M+1 ❍
47 CPY# VYK Y - M:M+1 ❍
48 DAA DK Decimal adjust of A ❍ ❍ ❍ ❍
49 DEC DEC D M-1➱M ❍ ❍ ❍ ❍
50 DECA DA A-1➱A ❍ ❍ ❍ ❍
51 DECB DB B-1➱B ❍ ❍ ❍ ❍
52 DES DS SP! - 1 ➱ SP! ❍ ❍ ❍ ❍
53 DEX DR X-1➱X ❍ ❍ ❍ ❍
54 EIM EIM M ⊕ IMM ➱ M ❍
55 END END End of Program, ❍ ❍ ❍ ❍
start program line 0000
56 EORA EXO E A⊕M➱A ❍ ❍ ❍ ❍
57 EORB EB B⊕M➱B ❍ ❍ ❍ ❍
58 EXG EXG r8 r8 or r16 r16 ❍
59 INC INC M+1➱M ❍ ❍ ❍ ❍
60 INCA IA A+1➱A ❍ ❍ ❍ ❍
61 INCB IB B+1➱B ❍ ❍ ❍ ❍
62 INS IS SP! + 1 ➱ SP! ❍ ❍ ❍ ❍
63 INX IR X+1➱X ❍ ❍ ❍ ❍
64 JMP SPI J Unconditional jump ❍ ❍ ❍ ❍
65 JSR SPU JU, JS Jump to subroutine ❍ ❍ ❍ ❍
66 LDAA LAD L M➱A ❍ ❍ ❍ ❍
67 LDAB LB M➱B ❍ ❍ ❍ ❍
68 LDD LD M:M+1 ➱ D ❍ ❍ ❍ ❍
69 LDK LDK M:M+1 ➱ D ❍ ❍
37 1/2 1/1 ▼ ▲ ▼ ▼ ▲ ▼
38 1/2 1/1 ▼ ▲ ▼ ▼ ▲ ▼
42 1/2 1/1 ● ● ▲ ● ● ▲
43 1/2 1/1 ● ● ▲ ● ● ▲
45 3/4 3/3 ❍ ❍ ❍ ❍ ❍ ❍ ❍ ● ● ● ● ● ● ● ●
47 -/4 -/3 ● ● ● ● ● ● ● ● ● ● ● ●
48 2/2 1/1 ● ● ● ● ● ●
50 1/2 1/1 ● ● ❍ ● ● ❍
51 1/2 1/1 ● ● ❍ ● ● ❍
52 1/6 1/2 ❍ ❍ ❍ ❍ ❍ ❍
53 1/6 1/2 ❍ ● ❍ ❍ ● ❍
54 7/- 3/- ■ ● ● ❍
55 ● ● ● ● ● ●
58 -/7 -/2 ❍ ❍ ❍
60 1/2 1/1 ● ● ❍ ● ● ❍
61 1/2 1/1 ● ● ❍ ● ● ❍
62 1/6 1/2 ❍ ❍ ❍ ❍ ❍ ❍
63 1/6 1/2 ❍ ● ❍ ❍ ● ❍
69 3/3 3/3 ❍ ❍ ❍ ❍ ❍ ❍ ❍ ● ● ● ● ❍ ● ● ❍
PG1000
Operation
PG-PC
CP80
PC80
Nr. Motorola B&R Short
73 3/3 3/3 ❍ ❍ ❍ ❍ ❍ ❍ ❍ ● ● ● ● ❍ ● ● ❍
74 3/3 3/3 ● ● ❍ ● ● ❍
76 3/3 3/3 ● ● ● ● ● ● ● ● ● ● ● ❍
77 -/3 -/3 ● ● ❍
78 -/4+ -/2+ ● ● ● ● ❍ ❍ ❍
79 -/4+ -/2+ ● ● ● ● ❍ ❍ ❍
80 -/4+ -/2+ ❍ ● ● ● ❍ ● ❍
81 -/4+ -/2+ ● ● ● ● ❍ ● ❍
83 1/2 1/1 ▼ ● ● ▼ ● ●
84 1/2 1/1 ▼ ● ● ▼ ● ●
85 1/4 1/2 ▼ ● ● ▼ ✕ ●
86 7/11 1/1 ❍ ❍ ● ❍ ● ●
87 1/2 1/1 ❍ ❍ ❍ ❍ ❍ ❍
88 7/- 3/- ■ ● ● ❍
91 4/5 3/3 ❍ ❍ ❍ ● ● ❍ ● ● ❍
92 -/5+ -/2 ❍ ❍ ❍ ❍ ❍ ❍
93 4/6 1/2 ❍ ❍ ❍ ❍ ❍ ❍
94 4/6 1/2 ❍ ❍ ❍ ❍ ❍ ❍
95 5/7 1/2 ❍ ❍ ❍ ❍ ❍ ❍
96 -/5+ -/2 ❍ ❍ ❍ ❍ ❍ ❍
97 3/6 1/2 ❍ ❍ ❍ ❍ ❍ ❍
98 3/6 1/2 ❍ ❍ ❍ ❍ ❍ ❍
99 4/7 1/2 ❍ ❍ ❍ ❍ ❍ ❍
Mnemonics Mode
Cont.
PG1000
Operation
PG-PC
CP80
PC80
Nr. Motorola B&R Short
134
User's Manual B&R PROgramming SYStem B-13
APPENDIX B Overview of STL Instructions
B&R Mnemonics
Motorola Mnemonics
Motorola B&R Short Motorola B&R Short Motorola B&R Short
APPENDIX C
ADDITIONAL INSTALLATIONS
1. LEARN - FUNCTION
With the LEARN-function any sequence of key combinations can be recorded and repeated later.
There is the possibility to record a sequence of commands that are needed more often, and to return
those with the input of a command.
Function: The LEARN mode is turned on. All subsequent keys operations are written in the
defined FNAME file.
A path can be entered with the file name ( drive and directory). If no path is defined,
the LEARN file is stored in the directory configured when the PROgramming
SYStem was installed. (default setting for the software installation: C:\PG)
Function: All key operations, that are stored in the specified file FNAME are returned accord-
ing to the record.
A LEARN file can also be defined as start parameter for the PROgramming SYStem
(chapter 3 INTRODUCTION).
If the character “*” is in the LEARN file, all subsequent characters in the same line are interpreted
as comment.
If both characters “\“ and “*” are directly submitted to the PROgramming SYStem, these have to
be entered in decimal format:
\ ... \092
* ... \042
All remaining control characters CR, LF, ESC etc. are to be entered in decimal form.
On the following page all keys with the corresponding decimal values are listed in a table.
2. PROVIT EMULATIONS
The terminal is connected to the PC COM1 interface with one of the following cables:
• BRKAPC-1
• BRKAPC-3
Command: ↵]
TERM [↵
Function: After the input of this command in the command line the screen is cleared and the
cursor is set to the top left corner.
The displayed functions can only be called in connection with the [⇑] key:
⇑] + [F1 EXIT]
[⇑ Exit the terminal mode back to the command line of the
PROgramming SYStem.
⇑] + [F2] to [F8]
[⇑ Adjusting the baud rate of the interface COM1.
Note:
PC and PROVIT 900/1000 baud rates must correspond.
The function key allocation without simultaneous operation with [⇑] is the same as the softkey
allocation of the PROVIT 900/1000 (displayed on the terminal).
The sofkey functions and the operations of the PROVIT 900/1000 are to be found in:
If the PROVIT function [F5 SAVE] or [F4 LOAD] is called, three alternatives are offered in the
softkey line of the PROVIT terminal:
All files of the default-directories with the extension *.PRV (for selecting [F1 MASK] or [F2
TEXT]) or *.PBK (for selecting [F3 B-UP]) are displayed on screen:
Load
The desired file can be selected with the [❖] keys. After pressing [↵] the selected file is loaded
from diskette or hard disk into PROVIT. During the load procedure the following message is
displayed:
--- LOAD active --- Length: xxxx Bytes xxxx ... file length
Store
A file name with a length of up to 8 characters may be defined. After pressing the [↵] key, the
screen, the global texts and the 28 pictures are stored with the specified file name on disk or hard
disk. During the storage procedure the following message is displayed:
--- SAVE active --- Length: xxxx Bytes xxxx ... File length
Key FUNCTION
[F1 NEXTDIR] If the cursor is set to a directory (marked by <DIR>), this directory is
opened. The contents of this directory are displayed. This function is
the same as the DOS command “cd <directory name>”.
[F2 PREVDIR] The previous directory is changed and its contents are displayed. [F2
PREVDIR] is the same as the DOS command “cd ..”.
↵]
[↵ The file selected with the [❖] keys (the corresponding line is dis-
played in inverse video in the overview) or the files with the defined
file name (without extension) is loaded/stored.
If the load or storage function should apply to a different drive, the PROVIT emulation must be
exited. A different drive can be set in the command line of the PROgramming SYStem with the
command DRIVE <drive name> [↵ ↵].
If an existing file name is selected for storage, the following message is displayed on screen:
Function: Emulates a PROVIT 500/600 with external ASCII keyboard. The PC keyboard
layout is the same as the ASCII keyboard.
After inputting this command in the command line the screen is deleted and the
cursor is set in the top left corner.
The displayed functions can only be called by simultaneously pressing the [⇑] key:
⇑] + [F1 EXIT]
[⇑ Exits the terminal mode into the command line of the PROgramming
SYStem.
⇑] + [F2] to [F8]
[⇑ Adjusts the COM1 interface baud rate.
Note:
The baud rates of PC and PROVIT must correspond.
The following PROVIT control characters are supported during terminal emulation (beginning from
PROgramming SYStem Version 5.00):
2.2.1. Restrictions
Display resolution: The 24 x 40 or 12 x 40 display resolution characters are simulated by
character repetition and additional blanks.
Bars, Rectangles: The creation of bars, rectangles and special chatacters is not directly
possible, but can be done by redefining, positioning and outputting
certain characters. .
The values x 0 to xn contain the bit pattern of the new character. The terminal emulation expects,
according to which graphic card is used, either 14 bytes (EGA) or 16 bytes (VGA).
The original PC output record is loaded back with this escape sequence. All character redefinitions
are canceled.
If the environment variable B&R$FDEF is set in the file defined, the output record is loaded back.
EGA PRV_AEGA.DEF
VGA PRV_AVGA.DEF
The definition file of the output record is an ASCII file, that has to correspond with a certain
format. The base format is:
<n>
<cc>
<x0> <x1> ... <x n>
<cc>
<x0> <x1> ... <x n>
:
:
:
<n> The EGA card requires a resolution of 14x8 pixels for one character and the VGA
card needs 16x8 pixels. Corresponding to the installed card, the decimal value 14 or
16 must be enterd.
<cc> The output code, that needs to be redefined, in decimal.
<x0 > to <xn> Character definition bytes. 14 or 16 hexadecimal values, that are divided by the so
called “white spaces” (blanks, tabs or line feed) depending on which card is in-
stalled.
* Comments are marked with this chatacter. All subsequent chatacters to the line end
are comments. This character must not be at the beginning of a line (see example).
Blank lines Blank lines are definitely ignored.
In a character definition file, a maximum of 256 (0 to 255) characters can be
defined.
Example:
******************************************************************************
* PROSYS PROVIT 600 EMULATION - OUTPUT RECORD A
******************************************************************************
14 * number of character definition bytes
*** Character definition *************************************************
148 * corner top left
00 00 00 00 00 00 1F 1F 18 18 18 18 18 18
* 12345678
* 01: ........ = 00
* 02: ........ = 00
* 03: ........ = 00
* 04: ........ = 00
* 05: ........ = 00
* 06: ........ = 00
* 07: ...xxxxx = 1F
* 08: ...xxxxx = 1F
* 09: ...xx... = 18
* 10: ...xx... = 18
* 11: ...xx... = 18
* 12: ...xx... = 18
* 13: ...xx... = 18
* 14: ...xx... = 18
******************************************************************************
149 * corner top right
00 00 00 00 00 00 F8 F8 18 18 18 18 18 18
* 12345678
* 01: ........ = 00
* 02: ........ = 00
* 03: ........ = 00
* 04: ........ = 00
* 05: ........ = 00
* 06: ........ = 00
* 07: xxxxx... = F8
* 08: xxxxx... = F8
* 09: ...xx... = 18
* 10: ...xx... = 18
* 11: ...xx... = 18
* 12: ...xx... = 18
* 13: ...xx... = 18
* 14: ...xx... = 18
******************************************************************************
150 * corner bottom left
18 18 18 18 18 18 1F 1F 00 00 00 00 00 00
* 12345678
* 01: ...xx... = 18
: :
: :
Note:
The file is easier to survey and read if comments are added.
Function: A PLC program can be stored in the PROgramming SYStem with the command
DUMPS as MOTOROLA S-Record file. This record file can now be copied with an
EPROM programmer, that has knowledge of MOTOROLA S-Records.
After entering DUMPS the PROgramming SYStem demands the definition of a file
name:
A 8 character long file name <FNAME> with drive name and path can be entered,
which should be stored in the record file. If no drive name and path is defined, the
file is stored in the default directory of the current drive.
Record type S0
S0 is the Start record, and has the following format:
S0 bb yyyyyyyy xx
Record type S1
S1 is a Data record, that starts at a 16-bit load address with the following format:
S1 bb aaaa ddddddddddddddddddddddddddd xx
Record type S9
S9 is the End record and has the following format:
S9 bb yyyyyyyy xx
B&R offers a small, compact EPROM Programmer, that consists of three components: program-
ming device, adapter for memory modules and software. These are available with the following
model numbers:
The environment variables are set or deleted respectively with the DOS command set:
Environment variable:B&R$LPT1=NO
Function: The PROgramming SYStem quits testing the parallel online interface.
Function: To operate the parallel interface BRKAOL5-1 from a different parallel port,
the base address of the interface and the interrupt used must be submitted to
the PROgramming SYStem with the variables that are listed above.
set B&R$LPT_OVER=0378
set B&R$LPT_IRQ=5
1)
More information about the base address and IRQ of the parallel port is given in the User' Manual of the PC
or is available from the dealer.
Function: The PROgramming SYStem loads the defined keyboard driver <file name>.
↵]
set B&R$KBD=[Link] [↵
Parameter: <File name> ... max. 8 character file name with path.
Function: All prints of the PROgramming SYStem are by-passed to the file <file
name>
(Chapter 9 PRINT, 6. "printing" in a file).
Environment variable:B&R$CDEF=ON
Function: If this environment variable is set, a software redefinition of the chatacters in
the terminal emulation is possible.
Environment variable:B&R$FDEF=ON
Function: If this environment variable is set, the output record is loaded from two
definition files.
Example: ↵]
set B&R$NET=c:\user1\private\ [↵
Example: The temporary files will be installed on the virtual disk e:\ (RAM disk):
set B&R$NET=e:\ [↵ ↵]
Function: The SYMBOLs of the PROgramming SYStem are installed and controlled in
the EMS memory. At least 128 KBytes must be free in the EMS memory and
a respective driver must be installed.
Requirements
- EMS memory expansion must be available in the PC. At least 128 KBytes must be
available for the PROgramming SYStem to be able to control 8100 SYMBOLs. The
following configurations are basically necessary, to use EMS:
The EMS which can be used in your computer is explained in the PC description.
APPENDIX D
ERROR MESSAGES
3 LAD_CALL no stack.
4 SYMBOL overflow V_MEM.
↵]
C:\> cd \pg [↵
↵]
C:\PG\> copy a:\[Link] [↵
↵]
C:\> cd \pg [↵
↵]
C:\PG\> copy a:\[Link] [↵
↵]
C:\PG\> copy a:\[Link] [↵
8 Program name is missing.
↵]
C:\> cd \pg [↵
↵]
C:\PG\> copy a:\[Link] [↵
12 LAD_COM no stack
13 free
14 V_MEM.TMN can't be opened (undo-buffer)
↵]
C:\> cd \pg [↵
↵]
C:\PG\> copy a:\[Link] [↵
17 Not sufficient space for virtual files (at least 300.000 bytes)
Symbols C
#LEARN# C-3 Cable 12-12, 12-17
#LOFF# C-3 COMPAQ Portable III - Control 12-18
CP80 - FOL Adapter 12-19
FOL Adapter - FOL Adapter 12-19
A Modem-Interface « Modem
Modem-Interface « Programming Device
12-13
12-12
Abbreviations 1-10 Programming Device - Control 12-17
Absolute Format 5-41 CALLBACK 11-16, 11-18
Active Values 4-47 Callback Parameter 11-25
Adapter CCITT 11-4
FOL Adapter 12-21 Centronics ONLINE Interface 12-5
ONLINE Adapter 12-20 CHAN 5-20
Address 5-13 Changing the Configuration 2-13
Address Contact 4-30 Changing the Configuration 2-13
Address Preselection 4-16, 5-12 Characters per Line 9-15
Alarm address in PLC 11-28 CLEAR 4-12, 4-42, 7-12
Alarm Callback Number 11-28 COM1 Interface 11-7
Alarm Option 11-27 Command Field 5-10
Alarm Parameters 11-29, 11-39 Command Line 3-16
AND Relation 4-34 Command Mnemonics 3-6
ASCII-Files 8-17 Comment Field 5-16
ASCII Format 5-39 Comment Line 5-9
AT Keyboard 3-14 Conditional Branch 4-33
Auto Answer Mode 11-38 Conditional Latch 4-23
Auto Baud Rate Detect 11-8 Conditional Unlatch 4-24
Connect Message 11-8
Connections 4-18
B AND 4-34
Exclusive-Or 4-29
B&R 3-11 OR 4-34
B&R ONLINE Interface 12-7 Connections
BAUD 9-20 horizontal 4-21
Baud Rate 9-15,11-7 vertical 4-22
Binary Format 5-39 Contact 4-19
Bitwise Representation 5-40 Contacts 4-18
Breakpoint Definition 5-45 Address Contact 4-30
Conditional Branch 4-33
Breakpoint Line 5-34
Conditional Unlatch 4-24
Busmaster Timeout 11-33 Conditional Latch 4-23
Contact 4-19
Exclusive-Or Connection 4-29
B&R$PRINTFILE=<File name>
B&R$SCREEN=COL
9-20, C-16
C-17
H
B&R$VIRT=<Directory> C-17 Hang up 11-13
EPROM Programmer C-13
HAYES 11-5
Error Detection 1-5
Hexadecimal Format 5-39
Error Messages 3-3, D-3
Horizontal Connection 4-21
ESC-key 3-12
European keyboard 3-15
Exchange 5-20 I
Exchange, global 5-24
Exclusive-Or Connection 4-29 Insert Mode 5-6
EXE C-4 Input Allocations 4-16, 4-19
Extended Addressing 5-11 Input Commands 1-10
Input Line of the STL Editor 5-6
Install Program 2-13
F Installation 2-1
Installation on the Hard Disk 2-6
FATAL ERROR Messages D-3 New Installation 2-6
FBK 10-8 Substituting with a new Software Release 2-12
FBK-Definition 10-10 Integer Format 5-40
FBK-Definition Editor 10-8 Internal Memory Locations 10-6
FBK-Definition Field 10-11 Internal Timeout 11-32
FBK-Editor 1-4,10-8 Interrupt Command List 11-20
FBK-Programming, Basics 10-5
FIND 5-25
FINDL 5-27 K
FINDP 5-27
Floating Point Format 5-41 Keyboard 3-12
FOL Adapter 12-21 AT-Keyboard 3-14
ESC-Key 3-12
FORMAT 8-22
Europe-Keyboard 3-15
Format of a LEARN File C-4
Function keys 3-12
FREE 6-9 RESET-Keys 3-13
Function Plan 1-4 US-Keyboard 3-15
Function Plan Programming 4-55 XT-Keyboard 3-14
Function Key 3-12 Key Designation 1-9
G L
Global Exchange/Replace 5-24 Label Contact 7-12, 4-31
GLOBCHAN 5-24 Label Field 5-9
Label Name 3-28
LAD
Ladder Diagram
1-3, 4-13
1-3
M
Ladder Diagram Programming 4-13 MAESTRO C-9
LAD Cross Reference List 9-11 MIXB 3-11
LAD Status Test 4-43 MIXM 3-11
LANG 3-11 Mnemonics 3-6, 5-10
Languages in PROgramming SYStem 3-6 Model numbers
LARGE 3-26 B&R ONLINE Interface 12-7
Latch 4-23 Cable 12-17
LEARN - Function C-3 Centronics ONLINE Interface 12-5
LEARN-File FOL Adapter 12-21
Call when Starting PROgramming SYStem 3-9 ONLINE Adapter 12-20
File Format C-4 Power Supply 12-24
PROgramming SYStem 2-4
Levels 3-3,1-8, 2-4
Standard Software 10-4
LDMO 4-44
User Program Memory Module
Line Number 5-8 with Modem-Interface 12-9
Lines per Page 9-15 MODEM 11-3, 11-4
Link Establishment 11-8, 11-13 MODEM Online Interface 12-9
Link Interruption 11-13 Modem-Interface 11-3
LIST 9-3, 9-19 Modem Settings 11-9
DATA_TBL 9-19 Modem Configuration 11-4
LAB 9-19
Modem Parameters 11-30
PROG 9-19
Module Information 4-49, 5-35
SYMBOL 9-19
Load 8-9 MOTOROLA 3-11
LOAD 5-53, 8-9 MOTOROLA S - Record File C-13
ASCII 8-16 MOVE 5-30, 6-8, 7-8
DATA_TBL 8-11 MS-DOS Command Interpreter 3-27
EMSSYMB 8-15
LAD 8-14
MACRO 8-12 N
PG1000 3-22
PLC 5-53 NAME 3-24
PROG 8-9 Negation 4-20, 5-11
SYMBOLS 8-11 Negative Edge Generation 4-26
Log Book 11-41 NEW 3-25
Logic Blocks 4-51 Node Information 11-15
Logic Plan 1-4 Node List 11-14
Logic Plan Programming 4-51 Node Number 11-15
Login 11-16 Node Number Switch 12-14
Logout 11-17
O LARGE
LIST
3-26
9-3, 9-19
OR Connections 4-34 DATA_TBL 9-19
LAB 9-19
ONL 3-26
PROG 9-19
B&R0 3-26
SYMBOLS 9-19
COM1 3-26, 11-3, 11-14
LOAD 8-9
LPT1 3-26
ASCII 8-16
ONLINE Adapter 12-20 DATA_TBL 8-11
ONLINE Interfaces EMSSYMB 8-15
B&R 12-7 LAD 8-14
Centronics 12-5 MACRO 8-12
MODEM Online-Interface 12-9 PG1000 3-22
Operating Command Summary A-1 PLC 5-53
Operating Commands 1-10, A-1 PROG 8-9
#LEARN# C-3 SYMBOLS 8-11
#LOFF# C-3 MAESTRO C-9
B&R 3-11 MIXB 3-11
BAUD 9-20 MIXM 3-11
CHAN 5-20 MODEM 11-3, 11-4
CLEAR 4-12, 4-42, 7-12 MOTOROLA 3-11
COPY 5-28, 6-8, 7-8 MOVE 5-30, 6-8, 7-8
DISK 8-21 NAME 3-24
CP40 3-11 NEW 3-25
CP80 3-11 ONL 3-26
DATA_TBL 7-3 B&R0 3-26
DATE 3-25 COM1 3-26, 11-3, 11-14
DDIR 3-11, 8-4 LPT1 3-26
DEBUG 5-32 P-VERS 5-54
DELETE 8-22 PAR 9-20
BLOCK 4-60, 5-30, 6-9, 7-8 PC 3-11
DIAL 11-3, 11-10 PMEN 9-3
DIR 8-19 PRINT 9-3, 9-17
DOS 3-27 DATA_TBL 9-18
DRIVE 8-3 LAB 9-18
DUMPS C-13 PROG 9-17
EEPROM 5-50 SYMBOLS 9-18
END 3-20 RENAME 8-22
EXE C-4 RNT 5-49
FIND 5-25 RUN 4-11, 5-31
FINDL 5-27 RUN P 5-49
FINDP 5-27 S_LIST 5-4
FORMAT 8-22 SAVE 8-5
FREE 6-9 ASCII 8-8
FBK 10-8 DATA_TBL 8-6
GLOBCHAN 5-24 LAD 8-6
LAD 4-13 MACRO 8-7
LDMO 4-44 PG1000 3-23
LANG 3-11
TERM
Terminal Emulation
C-6
11-5
W
Text Insert Mode 3-27 Wait Character "~" 11-5
Time base WINDOW 3-18
Alarm scanning/Online 11-28 Window Definition 3-18
Alarm scanning/Slaves 11-28 Window Techniques 3-18
U X
UDIR 3-11, 8-4 XFER 5-55
Unlatch 4-24 XT-Keyboard 3-14
UPDATE 11-17 XREF 9-19
US-Keyboard 3-15
User-Directory 3-8, 8-4
User Level 11-22, 11-24
V
Version Number 3-3
...of CP60/80 System Module 3-3
...of PROgramming SYStem 3-3
Vertical Connection 4-22
APPENDIX F
PROGRAMMING SYSTEM CHANGES
VERSION 5.50
CHAPTER 2 - INSTALLATION
The next few pages show configuration menus for programming devices which are offered by
B&R.
- Toshiba T1200
- Toshiba T1600
- Toshiba T3100e
- Toshiba T5200 with PC-Interface
- Toshiba T5200 with Toshiba-Interface
Parameters to be used for trouble free operation of the B&R PROgramming SYStem are printed
within the configuration in bold !
- Communications -
- System - Serial A = COM1
System Speaker = On Serial B = COM2
Battery Alarm = On
Extended FDD = ( A:, B: ) Parallel PRT = Bidirectional Port
- Display -
Display Type = ( Enhanced Color, Standard Color, Monochrome )
Internal EGA = Enable
Internal Display = ( 8*14, 8*16 )
Gray Scale Mode = Off
Auto Gray Scale = Off
Instruction
The selections "HDD Auto Off" and "Display Auto Off" must stay set to "Disable".
Time: 09:55:02
Date: Fri Dec 20, 1991
Cyl H Sec Cap
Hard Disk Setting: Type 11 615 4 17 20
Base Memory: 640KB
Extended memory: 0.0MB
Expanded memory: 0.0MB + 384KB
Internal Kybd Type: 84 Keys
Plasma Font Type: Single
Plasma Font Set: Standard
Display Card: Internal CGA (80*25)
Expansion Card: Toshiba modem
Printer Port Type Output
Time: 09:55:06
Date: Fri Dec 20, 1991
4 Not Used 3
CHAPTER 3 - INTRODUCTION
NOTE:
A label must begin with a letter and is up to four characters long.
The number of labels is restricted to max. 1499. When labels are deleted (e.g. by
editing a program line and deleting a label field), they remain in the PROgramming
SYStem memory. This memory area only becomes free after a Run-Test (RNT) or a
RUN is executed.
Operation commands such as LIST, RUN, COPY, MOVE etc. can also be used as label names.
These names can be used freely in the STL editor. To enable these label entries in the command
line, you must insert the name between quotation marks .
Example: To save a program part from the label LIST until line 1000 as a macro the following
line must be entered:
↵]
[F8 SAVE] <FNAME> [F5 MACRO] [F1 FROM] "LIST" [F2 UP_TO] 1000 [↵
To go directly to the STL program line with the label LIST for STL editing, you
must enter "LIST" in the command line.
X -128 to X +127
Step sequencer:
If a CP40 program uses a step sequencer and is translated to CP60/CP80 mode, care should be
taken that steps which are not used in the step sequence are not executed with RTS but with JMP
instead. In using the 1 byte command RTS, step sequencing is no longer guaranteed. With the 3
byte command JMP <LABEL> and an RTS with the <LABEL>, the step sequence functions
correctly again. .
Program in CP40: Program in CP80:
a) Status line:
NOTE:
A label must begin with a letter and is up to four characters long.
The number of labels is restricted to max. 1499. When labels are deleted (e.g. by
editing a program line and deleting a label field), they remain in the PROgramming
SYStem memory. This memory area only becomes free after a Run-Test (RNT) or a
RUN is executed.
Command: ↵]
DEBUG [↵
Function: The debug menu is called. The program is not sent to the PLC-CPU.
If anything is wrong with the PLC connection (programming device interface defect,
online cable not connected etc.) the following corresponding messages can be
displayed:
1. REQUIREMENTS
To install the PROgramming SYStem you need at least 540 KBytes (552.960 bytes) of free space
within your 640 Kbyte DOS memory to run the software without problems.
2. COMMAND CHANGES
❍ CHAN <Range>
❍ FIND <Range>
❍ FINDL <Range>
❍ FINDP <Range>
❍ COPY <Range> <Destination>
❍ MOVE <Range> <Destination>
❍ CLEAR BLOCK <Range> (was DELETE BLOCK <Range>)
❍ SAVE <FNAME> MACRO <Range>
❍ LOAD MACRO <FNAME> <Destination>
A range to be searched for, copied or moved are now only defined with the FROM and UP_TO
commands. The following are no longer possible.
The softkey line allocation has been adjusted slightly to compensate for the changes made.
With the commands MOVE, COPY and LOAD MACRO the destination <Destination> with
TO <LN/LB/ADDR> must be entered. The destination is not determined by the current cursor
position.
Saving Macros
If saving a macro from an STL, SYMB or TAB the desired editor no longer must be entered with
the command.
The macro is now saved from the editor (STL, SYMB or TAB) which is currently active.
Loading Macros
If loading a macro from an STL, SYMB or a TAB the desired editor no longer must be entered
with the command.
The macro is now loaded from the editor (STL, SYMB or TAB) which is currently active.
↵]
LOAD ASCII SYMB <FNAME> [↵
↵]
LOAD ASCII TAB <TNAME> <FNAME> [↵
Display Directory
The output of one file type (display of files with a certain extension) is no longer possible. The
following entries are possible:
↵]
DIR [↵ Default directory display
↵]
DIR <NAME> [↵ Display the directory with the name entered
NOTE:
To display files with a certain extension the LOAD command can be used.
If, for example, all program files in the default directory should be displayed the
following command is entered.
↵]
LOAD PROG [↵
↵]
OLD: COPY DISK <File type> <FNAME1> TO <FNAME2> [↵
↵]
NEW: COPY DISK <[Link]> <[Link]> [↵
↵]
OLD: RENAME <File type> <FNAME1> TO <FNAME2> [↵
↵]
NEW: RENAME <[Link]> <[Link]> [↵
↵]
OLD: DELETE <File type> <FNAME> [↵
↵]
NEW: DELETE <[Link]> [↵
2.3. PRINTING
Only selections possible from the print menu are available (can be called with DMEN, PRINT or
LIST).
When the function EEPROM [↵ ↵] is selected in the command line of the PROgramming SYStem,
the following menu is displayed if a FlashPROM is utilized:
PLC status
window
Selection
window for
FlashPROM
functions
Programming
status
Messages to
the user
Softkey line
Program date
Program name
Module type
Module series
CPU operating
Program run in system version
RAM/PROM number
Processor status:
CPU operating HALT/RUN
system version date
PROM type
User's Manual B&R PROgramming SYStem F-15
Appendix F New Functions for the PROgramming SYStem Version 5.50
Programming Status
This window shows the type of FlashPROM access while functions are being executed. The
following messages may be displayed:
READ: xx xx xx
FORMAT: xx xx xx
PROGRAM: xx xx xx
The controller status does not change. Outputs are not reset; the current
status remains.
[F4 RAM] Switches PLC to RAM (Switching occurs in the END routine).
Program in RAM is run.
[F5 PROM] Switches PLC to PROM (Switching occurs in the END routine).
Program in PROM is run.
[F6 CONT] If the PLC CPU is in HALT mode, the program is continued in the PLC.
[F7 RESET] The PLC is halted and reset to a defined base setting.
All outputs are cleared.
Select a function with the [❖] keys, then confirm it with [↵], which activates the function.
FlashPROM Information
When you select this function, a window which provides information on the FlashPROM appears.
Chip 1
Chip 2
Chip 3
Chip 4
Function keys:
[F8 EXIT] or [Esc] Closes the window and returns you to the FlashPROM menu.
Info window:
System copy exists: Y The system module including the PLC program has
been programmed in the FlashPROM (chip 1).
N Chip 1 has not been programmed. (But there may be
system or user data on the blocks that are not reserved
for the PLC program.)
WP front: WP The WE/WP switch on the front of the FlashPROM
module is set to WE (= write-protected).
WE The WE/WP on the front of the FlashPROM module is
set to WE (=write-enabled).
WP chip 2-4: WE or WP With a jumper on the FlashPROM module you can
select whether chips 2 - 4 are always set to WE, or if
they should match the WP front switch.
Number of chips: n Number of memory blocks in the FlashPROM module
(1 or 3; 1 ⇒ FP128, 3 ⇒ FP384).
Chip size in Kbytes: xxx Chip storage capacity (e.g. 128 Kbytes)
Format version: xx xx System module version number
Format date: xxxxxx Date of format received from real-time clock in the
CPU
Format time: xx:xx Time of format received from real-time clock in the
CPU
Format amount: xxxxx Indicates how many times the chip has been formatted
(e.g. 038 = the chip has been formatted 38 times)
If you select this function with the [❖] keys and activate it with [↵], the CPU must be in the
following mode:
If one of these conditions is not met, one of the following error messages is displayed in the
message line:
If chip 1 of the FlashPROM has just been formatted, the PLC program and the system module are
programmed immediately. Otherwise, the entire chip is reformatted (approx. 1 minute).
If system or user data is stored on the chip, however, the following question appears in the message
line:
[Esc] The function is aborted and you return to the FlashPROM menu.
[N] Chip 1 is formatted, the PLC program and the system module are programmed.
[Y] - All user and system data found on chip 1 is saved in a tempory file on the hard disk
of the PG.
- Chip 1 is formatted.
- The PLC program and the system module are programmed.
- The saved user and system data is programmed again.
Key FUNCTION
When you select a system file with [F6 SELECT] or [↵], a window is displayed for entering the
FlashPROM block number (default value from the system file has already been entered). Various
information is given which is read from the header of the system file. The block number indicates
the target address in the FlashPROM where the system file is to be programmed.
Blinking
Cursor
[F1 PROGRAM]
1) If the necessary blocks are free starting with the indicated block number, the selected
system file is programmed in the FlashPROM as module and entered in the module direc-
tory. In this case, the keys [F2 FORMAT] and [F3 DELETE] are not active. If they are
pressed, the appropriate message will appear in the message line.
2) If a module of the same name already exists on the FlashPROM (with the same or different
version number), it is displayed in an additional window under the first one. The appropri-
ate message is displayed in the message line:
3) If the necessary blocks are not free starting with the indicated block number, this is shown
in the message line and a FlashPROM memory map is displayed. The overlapping areas are
marked in this map.
Overlapping
Area
The memory map can be exited with [F8 EXIT] or [Esc]. You now have the following options:
1) You can enter the number of a block that is free and program it to the FlashPROM with
[F1_PROGRAM].
2) You can format the necessary chips with the function [F2 FORMAT].
[F2 FORMAT]
The necessary chips are formatted.
[F3 DELETE]
If there is a module with the same name as the one to be programmed to the FlashPROM, the
module that is already there can be deleted from the module directory with this function. The
blocks occupied by the deleted module are not free, however; they can only be used again after
the chip has been reformatted. These modules are distinguished by lower-case letters in the
memory map (S => s, U => u).
Formatting FlashPROM
When you select this function, a window appears where you can select whether all chips or
individual chips are to be formatted (deleted).
Select a chip by moving the cursor up and down with the key [↑] and [↓]. Start formatting the chips
by confirming your choice with [↵]. (One chip takes approximately 50 seconds.)
Memory Map
This function gives you information on FlashPROM distribution. It offers an overview of all
occupied blocks in the PROM (1 block => 4 Kbytes). Each block contains a one-character code for
the type of occupancy:
Note: Blocks with "deleted" user or B&R system data can be programmed
only after the chip has been reformatted.
1)
Not currently available. This function is being developed.
Physical Backup
All occupied blocks of one or more chips are saved. The user can make one of the following
selections in the window.
With keys [↑] and [↓], either all chips or an individual chip is selected. The selection is confirmed
with [↵]. If the selected chip does not exist, an error message is displayed in the message line:
If the selected chip is present, a window is opened where a file name without extension must be
entered.
The physical backup is stored under this name in the default directory with the extension “.PHY”.
Any path name with drive code can also be entered in front of the file name (e.g:
A:\BACKUP\CHIP1).
After the file name is confirmed with [↵], the backup will be done.
If there are no occupied blocks on the chip, the following message is displayed:
Only data with the proper module header is saved (system and user data).
The PLC program is not saved with a physical backup.
Key FUNCTION
[F1 NEXTDIR] If one of the directories is marked (directory - indicated by <DIR>), it
will be opened. The contents of this directory will be displayed. This
function corresponds to the DOS command “cd <directory
name>”.
[F2 PREVDIR]
The previous directory is returned to and its contents are displayed. [F2
PREVDIR] corresponds to the DOS command “cd ..”.
[F3 DEFDIR]
The current directory is defined as the default directory of the current
[F6 SELECT] drive.
↵]
[↵
The backup file chosen with the [❖] keys is selected.
[F7 PRINT]
[F8 EXIT] The directory displayed on the screen is printed out.
[Esc]
Exit returns you to the FlashPROM menu.
All blocks saved in the backup file are programmed again in their original positions in the
FlashPROM. For this reason, all required blocks must be free. Otherwise, the function is inter-
rupted with an error message.
If blocks that should be saved on a chip which is not present on the PROM module are saved in the
backup file, this is recognized, and the function is interrupted with the following error message:
APPENDIX G
PROGRAMMING SYSTEM UPDATES
VERSION 5.60
Quite often a project must be developed in segments by different people or in fact by several
groups of people e.g. visualization by one group and the logic by another. In the initial stages of
operation the software can be modified again and again. These problems which arise can lead to a
degree of uncertainty in the exact state of development. In this case it is necessary to compare
programs or sub-programs.
Another case for the use of program comparisons within an application could be the absence of for
the valid documented version. This can be caused if, for example, changes are made to the structure
without updating the documented version or if the current software is lost because of a diskette
failure. Now, what is left is a program without documentation (LOAD from PLC) and an old
documented version. With the new COMPARE command these two programs can be checked for
differences which can be easily changed.
By all means the report function and auto mode should be switched on the first time that COM-
PARE is run. This causes the entire program to be searched for differences which are then reported.
This report of the differences can either be printed out through the serial or parallel interface or
they can be saved in a file. From these the amount of difference between the two programs can be
recognized immediately.
The second time COMPARE is run, either changes can be made directly line for line by going
through the report or auto mode and the report function can be switched off and the routine can be
restarted. When auto mode is off the routine will stop every time there is a difference and the
corresponding corrections can then be made. By entering the COMPCONT command the routine is
continued.
If individual lines in a window should be copied to the other window the "Mark" function is very
helpful. Of course it is possible to call other commands between steps in the COMPARE routine
such as e.g. "LOAD MACRO" etc.
General Parameters
Match:
If the COMPARE operation is stopped because of a difference between the two programs it can
be restarted with the COMPCONT command. After the COMPARE operation is continued the
PROgramming SYStem searches for lines in both programs which are identical. This procedure
is known as synchronization. COMPARE is however only continued now if the amount of lines
defined for Match are identical, otherwise the function is interrupted with an error message.
A more precise explanation is given in the description of the COMPCONT command.
Resync:
If, during the synchronization, within the number of lines defined for Resync no block of
identical lines (defined in Match) is found the function is broken with an error message.
This procedure is explained in more detail under the COMPCONT command description.
Report:
A report of differences can be made with the PROgramming SYStem by executing the COM-
PARE function. The report function can be switched on or off from this position in the menu
with Y / N. The user can also define here with Y / N whether the report should be in short form.
This report can be either printed through one of the interface ports with a setting in the print
menu or put into a file.
Auto Mode:
If Auto Mode is switched on the COMPARE function will not be interrupted when it comes to
a difference in program structure. This mode is only useful when used in connection with the
report function!
Statement List
Entire statement lists can either be compared with one another or not by selecting either Y or N
which turns the statement list comparison parameter on or off.
Sequential:
The behaviour of synchronization after the COMPCONT command can be influenced with this
option.
y Sequential Synchronization: After the COMPCONT command is entered and if those lines
according to the definitions for Match and Resync are found to be identical the following
lines are searched. This search procedure is explained in detail in the COMPCONT com-
mand description.
N Label synchronization: After the COMPCONT command is entered, the FIXED-window is
searched for the next label. When it is found the PROgramming SYStem searches the
second window for the same label and the compare is started again. This method is used if
an STL translation of a LAD is in different locations within the two STLs (when a LAD is
changed the old STL translation is deleted and the new translation is added to the end of the
STL).
Addresses relative:
Labels (for branch instructions etc.) can be assessed either absolute or relative with the COM-
PARE function.
Example:
Label definition:
Label definition verification:
Example:
Verify symbols:
Symbols to addresses can be verified
Example:
Verify comments:
Verification of comments or comment lines
Example:
Ignore "NOP":
NOP lines are ignored
Example:
Tables
The table comparison is switched on or off by selecting Y or N.
Verify contents:
N Only the source lines in a table are compared.
Y Only the table's binary contents are compared byte for byte.
Match:
This value is only used in comparing the binary contents of two tables. If a difference is found
while comparing the tables the COMPARE function is broken with an error message. The
Match value is used to synchronize the continuation of the COMPARE function with the
COMPCONT operation command.
If a value difference is found within the contents of the two tables all table entries with this
value are displayed in red (blinking with an B/W or LCD monitor). E.g.:
Value
difference
Value
difference
Verify comments:
N Comments and comment lines are ignored.
Y Comments and comment lines are verified for uniformity.
This parameter has no relevance in connection with the "verify contents" parameter.
Symbols
Symbol comparison is switched on or off with this function by selecting Y or N.
Long (STL-SYMB):
N STL-SYMBs are not checked.
Y STL-SYMBs are verified for uniformity.
Short (LAD-SYMB):
N LAD-SYMBs are not checked.
Y LAD-SYMBs are verified for uniformity.
Program lines (STL, TAB and SYMB) are compared and checked for uniformity in both windows.
If a difference between the two is found the COMPARE function is broken with an error message
and the editors for both windows are in this line. Any one of the following messages can be
displayed:
If Auto mode is switched on the next identical line is found and the COMPARE routine is contin-
ued. If a synchronization is not possible the COMPARE routine is broken with the following
message.
Compare Sequence
The compare is carried out in the following sequence:
1. Statement lists
The STL editor is positioned in line 0 in both windows. The program is now compared line
for line.
2. Tables
The TAB editor is positioned to the first table following the alphabetical sequence. The
compare is then run for the names of the tables in alphabetical order. If a name is different
the corresponding error message is displayed. Otherwise the comparison is done according
to the COMPARE configuration.
3. Symbols
Both windows are positioned with the SYMB editor at R 0000. The synchronization for
SYMB compare is done by addresses only, i.e. only SYMBs (long or short - see configura-
tion) with the same address are compared.
Depending on the compare configuration one or more editors can be ignored in the compare
routine. If, for example, the statement list verification is switched off in the configuration menu
compare immediately starts the routine in the tables.
Intervention
The compare routine can basically be interrupted for other tasks at any time during most proce-
dures with the [Esc] key:
Attention:
Both windows must have the same editor or the following error message is
displayed:
After the command is entered both windows are opened. The window arrangement
which can be set with the WINDOW operation command is ignored (this is replaced
with the arrangement set for the COMPARE command).
Synchronization
If the lines where the cursors in both windows are positioned on are not the same the
PROgramming SYStem automatically does a synchronization, i.e. both windows are searched for
the next identical line.
The parameters set in the configuration menu differentiate between sequential synchronization and
Label synchronization.
The window in which the COMPARE command is given in is designated as the FIXED window.
Sequential synchronization
The Match and Resync parameters are used for this type of synchronization for which values can
be set by the user. Both programs are compared from the current position up to the current
position + Resync. Within this amount of lines a Match-amount of lines must be identical in both
programs for the compare routine to continue. When two identical blocks are found the synchroni-
zation is successful and the following message is displayed:
If the synchronization is not successful i.e. no block is found within the defined values set for
Resync and Match the following message is displayed:
Label synchronization
In this type of synchronization the FIXED window is searched from the cursor position for the next
label. This label is then searched for in the second window. When it is found the compare routine is
started.
If no more labels exist in the FIXED window the following message is displayed:
If a label exists only in the FIXED window and not in the second window the compare routine is
broken with the following message:
Ranges within an STL, TAB or SYMB editor can be marked with this function. Marked areas can
be deleted, copied, moved or placed in temporary memory or inserted from temporary memory.
When the cursor is in an input line of an STL, TAB or SYMB editor the softkey line can be
switched with the [F9] function key:
Line is
marked
The cursor is then placed at the other end of the area (start or end depending on which was previ-
ously marked) and with [F9] + [F1 MARK] the entire area is marked. The area is marked on the left
side with a bar. E.g.:
Marked
area
If the mark function is called while a marked area exists the following error message is displayed:
In this case the [F9] + [F2 UNMARK] function keys must be used to unmark the area before a new
area can be marked.
Menu name
Header
Initialization
Menu field
Header: Four lines of optional text can be entered in this text field. The text entered here is
printed on every page as a "header". The header is saved with the corresponding
program which means that a different header can be defined for every program.
Initialization: A pre and post string can be defined respectively for printer initialization. The pre-
string is sent before a print entry and the post-string is sent after. The following
characters can be entered in both lines:
<NUL> 0 0 ^Q 17 11
^A 1 1 ^R 18 12
^B 2 2 ^S 19 13
^C 3 2 ^T 20 14
^D 4 2 ^U 21 15
^E 5 2 ^V 22 16
^F 6 2 ^W 23 17
^G 7 2 ^X 24 18
^H 8 2 ^Y 25 19
^I 9 2 ^Z 26 1A
^J 10 A <ESC> 27 1B
^K 11 B <FS> 28 1C
^L 12 C <GS> 29 1D
^M 13 D <RS> 30 1E
^N 14 E <US> 31 1F
^O 15 F <DEL> 127 7F
^P 16 10
Menu field: The print menu is the same in all three expansion levels (A, B and C). Only those
commands which are allowed for the corresponding expansion level can be selected
however.
This section deals only with the modifications made to the menu field:
- Output device - File name - File size
- Baud - rate - Left margin
Output device: By placing the cursor on this menu point and pressing the [↵] key a
selection window is displayed from which the following outputs can be
selected:
File name: A maximum 12 character (including extension) file name can be entered in
this field. If FILE is chosen as the output the PRINT command sends the
data to the file created. If PRINT is executed more than once the output is
added to the end of the previous output with the same file name. If no drive
name of path is given the file is placed in the default directory.
Baud - rate: By placing the cursor on this menu point and pressing the [↵] key a selection
window is displayed from which the desired baud rates can be set (for COM1
serial interface).
Left margin: The left margin is set with the menu point. A number between 0 and 9 can be
entered. If for example, 5 is selected a left margin of five blank characters is
set for the start of each line.
User's Manual B&R PROgramming SYStem G-17
Appendix G PROgramming SYStem Updates Version 5.60
Form feed: Version 5.50 and previous versions of the PROgramming SYStem utilized
the Line feed in place of form feed. Version 5.60 now can send the ASCII
character <FF> as a replacement (Form Feed, hex.: $0C, dec.: 12).
Characters/line: 80 to 132.
Lines/page: 10 to 255.
Cross reference list: All unused SYMBs which are de- A B C PG1000 CP80 PG-PC PC80
fined in the SYMB editor are now ● ● ● ● ● ● ●
printed as well. The list of unused
symbols is printed within the frame of the normal cross reference list which
means that the list can not be singled out in the print menu.
When printed the third element looks like the following example:
[F1 DEFAULT] The stored default settings are loaded. Any changes which may have been
made are lost.
[F7 EXECUTE] The print out is started according to the previously set parameters.
[F8 EXIT] or [Esc] Exits the print menu. After pressing one of these keys the following message
is displayed:
4.1. GENERAL
All flags and registers can be loaded in a file and saved to disk (upload) with this command. It is
also possible to reload the saved data back to the PLC (download). A safety device has been created
with these options to enable a security copy of PLC data on disk which can be loaded back to the
PLC if lost for any reason.
Module
Menu
information
Message line
Softkey line
Menu points are selected by moving the highlight bar in the menu up and down with the [↑] and [↓]
keys. By pressing [↵] the menu point selected is called.
By pressing the [↑] and [↓] keys an existing file can be selected which should be overwritten by the
new PLC data. An optional file name or extension can be entered by means of the keyboard. By
pressing the [↵] key now all flags and registers are loaded from the PLC and saved in the defined
file.
If the data has been loaded from a PP40 MEM or PP60 MEM the following message is displayed in
the message line:
Y If the PP is in RUN mode it is put into RESET state and the 64 Kbyte memory and
registers and flags are all loaded and saved to the defined file.
N The PP is not put into RESET state. Only flags and registers are loaded and saved to
the defined file.
By pressing the [↑] and [↓] keys a file to be loaded to the PLC can be selected. A file name
(without extension) can be entered by means of the keyboard. By pressing the [↵] key now all flags
and registers are loaded from the defined file to the PLC.
If the data has been loaded to a PP40 MEM or PP60 MEM the following message is displayed in
the message line:
Y If the PP is in RUN mode it is put into RESET state and the 64 Kbyte memory and
registers and flags are all loaded with the data saved in the defined file.
N The PP is not put into RESET state. Only the flags and registers are loaded with the
data from the file.
The CPU type and program identification are saved with the data. If these values do not correspond
to the type of CPU used or with the currently running program the following message appears in
the message line:
RESET PLC
The PLC is put into RESET state. Before the function is executed the following message appears in
the message line:
CONTINUE PLC
If the control is in HALT or RESET state the program is started new or restarted with this option.
Because of the modifications made for EMS -SYMB management, file extensions must now be
entered with the file name for the STDSYM start parameter.
Example: STDSYM=[Link]
or STDSYM=[Link]
APPENDIX H
PROGRAMMING SYSTEM UPDATES
VERSION 5.70
1. CONFIGURATION MENU
Most of the parameters for version 5.7 of the PROgramming SYStem can be entered or changed
through on-screen menus. The new version has eliminated many operational commands and all of
the start parameters which in previous versions had to be entered before the actual start of the
PROgramming SYStem.
Command: ↵]
CONFIG [↵
Entries are now selected from the configuration menu by means of the [↑] and [↓] cursor keys. The
selected option can then be called with the [↵] key.
- Modem configuration
- Printer menu
- Compare configuration
- Color settings for the PROgramming SYStem
- Start parameters
- Hardware configuration
- COM1 configuration
Modem settings are entered in this menu the same as with previous versions of the PROgramming
SYStem.
❍ The COM1 interface is now configured from a different menu (COM1 configuration)!
❍ If “N” (No) is entered for “Auto Baud Rate Detect (Y/N)” it is interpreted
differently than before:
Before version 5.70: The PROgramming SYStem waits for a connect message from the
modem and compares this message with the message given under “connection recog-
nized”. The connection is only made if the message from the modem and one from the
PROgramming SYStem coincide.
From version 5.70: The PROgramming SYStem waits for a message from the modem. In
this case only the character chain “CONNECT” is waited for. The baud rate which is in-
cluded in the connect message has no influence. Therefore the data exchange can occur
over a telephone line at any non-standard baud rate (e.g. 14 4000 baud). The baud rate
between the PC and the modem corresponds to the value entered in the COM1 configu-
ration.
This mode of operation is only possible with modems which can communicate with the
opposite station at a different baud rate than with the PC whereas the PC ↔ modem
baud rate remains unchanged.
These function keys can only be called in combination with the [⇑] key:
Function keys Assignment
[Shift] + [F1 COM1] COM1 - configuration menu call
Terminal emulation initialization (character definition, cursor sizes, display format to
[Shift] + [F2 INIT]
default value, clear screen, cursor home)
[Shift] + [F8 EXIT] Exit terminal emulation
❍ The MODEM operation command has been replaced by the call in the configuration menu!
❍ The baud rate configuration for the COM1 interface in no longer performed from this menu
(now done under the COM1 configuration menu)!
The function of the function keys is sometimes different depending on the call (from the
configuration menu or operational commands PRINT or LIST):
Call from
Function keys Call with "PRINT" Call with "LIST"
configuration menu
[F1 SAVE] Saves the set printer configuration
Saves the set printer Saves the set printer Saves the set printer
[F2 EXE+SAVE] configuration and exits the configuration and starts the configuration and starts the
printer menu print job screen output
Exits the printer menu and takes over the given changes as the current settings.
[F7 EXECUTE]
Then the printing job is Then the screen output is
started started
Exits the printer menu. If changes have been made a request as to whether the data should
[F8 EXIT] or [Esc] be saved or not is made. Regardless of the user's response, the changes made are used as
the current settings.
❍ The DMEN operational command has been replaced by the call in the configuration menu!
❍ The COMPCFG command has been replaced by the call from the configuration menu!
Example
window
Screen area
selection
Color select
window
The area of the PROgramming SYStem screen for which the colors should be changed is selected
through the Screen area selection menu. You can see what the color will look like by watching the
Example window.
[F7 EXECUTE] Activates the set values for the enire PROgramming SYStem without saving any changes.
Exits the menu. If any changes are made, a request as to whether the data should be saved
[F8 EXIT] or [Esc] or not is made. Regardless of the user's response the changes which are made are used as
the current settings.
After selecting the “Start parameters” option from the configuration menu the following menu
is called:
Entering parameters is done partially with pop-up menus and partially through keyboard entries:
1) Language is used to 2) Mnemonics: For the entry
determine the language or display of the STL
of messages and commands there are four
operational commands. possibilities also chosen
The desired option is out of a pop-up menu:
selected by means of the
[↑], [↓] and [↵] keys in 3) The Operating mode is
a pop-up menu. DEFAULT corresponds also selected by means of
with the language selected during the the pop-up menu tech-
start of the PROgramming SYStem: nique:
These (all) start-up parameters are replaced and are no longer used from the command line:
LANG= MNEM= PGMODE= DDIR= SDIR=
UDIR= STDSYM= EXE= PAR=
The following environment variables are no longer used from the command line:
B&R$SCREEN=COL B&R$CDEF=ON B&R$FDEF=ON
[F7 EXECUTE] Activates the set values for the entire PROgramming SYStem without saving any changes.
Exits the menu. If any changes have been made a request is made to whether the data
[F8 EXIT] or [Esc] should be saved or not. Regardless of the user's response the changes which have been
made are used until the next parameter change or until a restart.
1.6. HW-CONFIGURATION
After selecting the “HW-Configuration” option from the configuration menu the following menu
is called.
Entering parameters is done through the use of pop-up menus and the keyboard:
5) The interrupt number used is entered by Detailed information on the parameters for the
means of the keyboard if the centronics MAESTRO terminal emulation can be found in
online interface should be connected to an- “Appendix C” under MS-DOS Environment
other parallel interface. Variables.
User's Manual B&R PROgramming SYStem H-10
Appendix H PROgramming SYStem Updates Version 5.70
Parameter selection is made partially through pop-up menus and partially through keyboard entries:
- Baud rate is selected in the - Parity is also selected by
pop-up menu by means of the means of a pop-up menu.
[↑], [↓] and [↵] keys.
- The number of data bits
Data bits (5, 6, 7 or 8) is typed in
through the keyboard.
- The number of Stop Bits is also entered - Switches the hardware hand-
through the keyboard. shake ON or OFF:
The Handshake parameter is ignored for the following PROgramming SYStem functions:
- For the DIAL and STANDBY operational commands, the hardware handshake is always
switched off.
- For the LOAD/SAVE PG1000 operational command, the COM1 interface operates with the
following parameters independent of the configuration which has been defined:
Baud rate: 9600 Baud
Parity: None
Data bits: 8 Bit
Stop Bits: 1 Bit
Handshake: OFF
- The ONL-COM1 operational command uses its own individual protocol.
Since the baud rate is defined in this menu, the BAUD command is no longer available from the
command line.
2. FURTHER MODIFICATIONS
↵]
A: [↵
If however, you wish to position the input cursor at a label in an STL program (e.g. A:) it must be
entered between quotation marks.
Example: ↵]
"A:" [↵
Advantage:
When, for example, loading FBKs (macros, tables, ...) this has a great advantage
whereas you no longer must switch to the command line to change drives.
<NAME>
<TNAME> 4 character name, the first character must be a letter
<LNAME>
<Range> For block operations (E.g.: COPY, MOVE, ...) a range must first be
defined:
<DEST> This is the target area for the range to be copied/moved to.
↵]
[↵ The target will be marked by the
current cursor position.
↵]
TO <LN/LB/ADR> [↵ The target will be marked by the given data
(TO <...>).
#LEARN# ↵]
<[Link]> [↵ The LEARN mode is switched on. All keys pressed C-3
afterwards are recorded and written to the
<[Link]> file.
#LOFF# ↵]
[↵ The LEARN mode is switched off. C-3
COMPARE ↵]
[↵ Starts the COMPARE procedure. G-9
COMPCONT ↵]
[↵ Continues the COMPARE procedure. G-11
CONFIG ↵]
[↵ Calls the configuration menu. H-3
COPY <Range> <Dest> Copies STL, SYMB or TAB ranges and inserts them F-11, 5-28,
to certain locations (targets). 6-8, 7-8
DISK <[Link]> TO <[Link]> [↵↵] F-13
The <[Link]> is copied and is saved as the
name <[Link]>.
CP40 ↵]
[↵ Switches from CP80 to PG1000 mode or from PC80 3-11
to PG-PC mode
CP80 ↵]
[↵ Switches from PG1000 to CP80 mode or from PG-PC 3-11
to PC80 mode.
DATA_TBL ↵]
[↵ Calls the DATA_TBL editor and the last processed 7-3
table.
↵]
<TNAME> [↵ Calls an existing DATA_TBL or one which is to be
defined with the given name <TNAME>.
DATE ↵]
<Program date> [↵ The current program date is replaced by <Program 3-25
date>.
DELETE ↵]
<[Link]> [↵ Deletes the file <[Link]>. F-13
DIR ↵]
<PATH> [↵ Displays directory contents of <PATH> (Possibly F-13
with drive name entry).
Without entering a <PATH> the contents of the
default directory are displayed.
DOS ↵]
[↵ Calls the MS-DOS command interpreter. 3-27
With the EXIT command you return to the
PROgramming SYStem.
↵]
"Command" [↵ Executes the MS-DOS command "Command" and
automatically returns to the PROgramming SYStem.
<Lname:> ↵]
[↵ The current drive is changed to <Lname:>. H-13
DUMPS ↵]
<FNAME> [↵ A PLC program is saved under a MOTOROLA S- C-13
record file under the name FNAME.S.
EEPROM ↵]
[↵ Calls the EEPROM menu. 5-50, F-15
END ↵]
[↵ Ends the PROgramming SYStem. 3-20
EXE ↵]
<[Link]> [↵ The LEARN file <[Link]> is executed. C-4
FBK ↵]
<NAME> [↵ Accesses the FBK definition editor in order to enable 10-8
the definition of the FBK with the given name
<NAME>.
FIND ↵]
<Range> [↵ Searches for STL program lines which coincide with 5-25, F-11
the given search mask.
If no <Range> is given, the STL entire program is
searched.
FINDL ↵]
<Range> [↵ All program lines which coincide with the given 5-27, F-11
search mask are listed on the screen.
FINDP ↵]
<Range> [↵ All program lines which coincide with the given 5-27, F-11
search mask are printed.
FORMAT ↵]
<Drivename:> [↵ Formats the diskette in the given drive. 8-22
FREE ↵]
<ADR/SYMB> [↵ Searches for addresses without symbols starting from 6-9
address <ADR/SYMB>. If no start address is given
the search starts at R000.
LAD ↵]
[↵ Calls the last processed LAD 4-13
↵]
<LNAME> [↵ Calls the LAD with the name <LNAME>.
LDMO ↵]
[↵ Calls the last LAD debugger and enters debug mode. 4-44
↵]
<LNAME> [↵ Calls the LAD debug (LAD with the name
<LNAME>).
LARGE ↵]
[↵ Defines the program memory to 4766 program lines. 3-26
LIST ↵]
[↵ Calls the printer menu where it can be defined what G-16 (F-
should be output on the screen. 13), 9-3
MAESTRO ↵]
[↵ Emulation of a PROVIT 500/600 with external ASCII C-9
keyboard.
MOVE ↵]
<Range> <Dest> [↵ Moves an STL, SYMB or TAB range. F-11, 5-30,
6-8, 7-8
NAME ↵]
<Program name> [↵ The current program name is replaced by 3-24
<Program name>.
NEW ↵]
[↵ Deletes the program in the current window from the 3-25
memory of the PC.
ONL ↵]
<Interface> [↵ Selection of the online interface which should be used 3-26
for programming a PLC:
B&R0 ... Selection of the installed B&R online interface.
LPT1 ... Selection of the centronics online interface.
COM1 ... Selection of the modem attached to the COM1 serial interface.
P-VERS ↵]
[↵ Displays information about the program stored in the 5-54
PLC.
PRINT ↵]
[↵ Calls the printer menu which is used to define what 9-3, G-16,
will be printed. By means of a function key the print H-6
job can be started from this menu.
RENAME ↵]
<[Link]> TO <[Link]> [↵ F-13
Renames the file [Link] to [Link].
RNT ↵]
[↵ The program in the current window is checked for 5-49
missing labels and for exceeding the maximum
branch distance.
RUN ↵]
[↵ The program is transferred to the RAM of the PLC 4-11, 5-31
and started. The STL debugger is called.
RUN P ↵]
[↵ This instruction is the same as the RUN command with 5-49
the exception of the program being protected while it is
transferred to the PLC. I.e.: The program can no longer
be loaded from the PLC with LOAD PLC.
S_LIST ↵]
[↵ Used for calling the STL editor. 5-4
↵]
<LN/LB> [↵ The input line is set to the given STL line <LN/LB>. 5-4
SAVE ↵]
[↵ The entire program is saved with the name it was 8-5
defined with using the SAVE or LOAD command.
↵]
<FNAME> ASCII <Range/TNAME> [↵ F-12, 8-8
Saves a SYMB range or a table in ASCII format.
↵]
<FNAME> LAD <LNAME> [↵ The ladder diagram <LNAME> is saved. 8-6
↵]
<FNAME> SYMB [↵ All defined symbols are saved. 8-6
↵]
<FNAME> MACRO <Range> [↵ The given STL, SYMB or TAB range is saved as a F-12, 8-7
macro.
↵]
PG1000 <Mnemonics> [↵ Transfers a program to the PG1000. For <Mnemon- 3-23
ics> there are two possibilities :
• INTER (MOTOROLA-Mnemonics)
• GERMAN (B&R Mnemonics)
↵]
<FNAME> PROG [↵ The entire program is saved. 8-6
↵]
<FNAME> DATA_TBL <TNAME> [↵ 8-6
The table <TNAME> is saved.
SEQCHART ↵]
[↵ Used for calling the SEQC editor and the last 4-5
processed SEQC.
↵]
<NAME> [↵ Used to call an existing SEQC or to define a new SEQC 4-5
with the name given <NAME>.
SMALL ↵]
[↵ Defines the program memory at 2719 program lines. 3-26
STANDBY ↵]
[↵ Calls the standby menu. The PROgramming SYStem 11-35
waits for a call from a remote PLC.
STAT ↵]
[↵ Calls the STL debugger. 5-32
SYMBOLS ↵]
[↵ Calls the SYMB editor. 6-4
↵]
<ADR> [↵ The input line is set to the corresponding address.
TERM ↵]
[↵ The PC can be used an entry terminal for operating a C-6
PROVIT 900/1000.
UPDL ↵]
[↵ Calls the Up-/Download menu. G-20
WINDOW ↵]
[↵ Calls the window definition menu. 3-18
XFER ↵]
[↵ Transfers a program to the PLC without interrupting 5-67
the program running in the PROM of the PLC.
Number Length
STL-lines (including comment lines) 32767
Labels 1500 1)
SYMB without EMS 2000
SYMB with EMS 8000
Tables = Number of existing Labels 1) 16 KByte or 44 KByte
LAD 200 50 lines
FBK 200 50 lines
1) Since tables are headed with a label, the number of tables is limited by the number of labels.
The following prerequisites must be cared for before installing the PROgramming SYStem:
❍ There must be at least 3 Mbytes of memory free on the hard disk for the installation.
❍ For starting the PROgramming SYStem program a minimum of 570 496 bytes
(557.2 Kbytes) main memory are required. In some cases, memory resident programs and
device drivers must be removed.
The software operation of the Online/Modem Converter is identical with the User Program
Memory Module with Modem Interface.
Online/Modem Converter; for connecting HAYES modems, serial RS232 and RS485 BRADOL-0
interfaces (electrically isolated), node number switch, Status-LEDs