Professional Documents
Culture Documents
$03/&RQILJXUDWLRQ
Advant Controller 400 Series
Reference Manual
3BSE 002 417R601
WARNING
CAUTION
NOTE
Although DANGER and WARNING hazards are related to personal injury, and CAUTION hazards are associated with
equipment or property damage, it should be understood that operation of damaged equipment could, under certain operational
conditions, result in degraded process performance leading to personal injury or death. Therefore, comply fully with all
DANGER, WARNING, and CAUTION notices.
TRADEMARKS
ABB Master, MasterAid, MasterBus, MasterPiece, and MasterView are registered trademarks of ABB Asea Brown Boveri Ltd.,
Switzerland.
MasterGate, MasterFieldbus, and MasterNet are trademarks of ABB Asea Brown Boveri Ltd., Switzerland.
Advant, AdvaBuild, and AdvaInform are registered trademarks of ABB Asea Brown Boveri Ltd., Switzerland.
AdvaCommand, AdvaSoft, Advant Station, AdvaBuild On-line Builder, Advant Controller, and Advant Fieldbus are trademarks
of ABB Asea Brown Boveri Ltd., Switzerland.
IBM and all IBM-products mentioned in this publication are registered trademarks of International Business Machines Corp.
Microsoft, MS-DOS, and Windows are registered trademarks, Windows NT is a trademark of Microsoft Corporation.
Adobe and Acrobat are trademarks of Adobe Systems Incorporated.
NOTICE
The information in this document is subject to change without notice and should not be construed as a commitment by ABB
Industrietechnik GmbH. ABB Industrietechnik GmbH assumes no responsibility for any errors that may appear in this
document.
In no event shall ABB Industrietechnik GmbH be liable for direct, indirect, special, incidental or consequential damages of any
nature or kind arising from the use of this document, nor shall ABB Industrietechnik GmbH be liable for incidental or
consequential damages arising from use of any software or hardware described in this document.
This document and parts thereof must not be reproduced or copied without ABB Industrietechnik GmbHs written permission,
and the contents thereof must not be imparted to a third party nor be used for any unauthorized purpose.
The software described in this document is furnished under a license and may be used, copied, or disclosed only in accordance
with the terms of such license.
3BSE001264/E
Template: 3BSE001286/E
TABLE OF CONTENTS
Chapter 1 - Introduction
1.1
1.2
1.3
1.4
1.5
1.6
Terminology............................................................................................................. 1-3
1.6.1
1.7
Introduction.............................................................................................................. 2-1
2.2
General.................................................................................................... 2-2
2.2.2
2.3
2.3.1.2
2.3.1.3
2.4
2.5
2.6
2.7
2.8
2.9
2.8.1
2.8.2
2.8.3
2.9.2
2.9.1.2
2.9.1.3
CONTENTS (continued)
Chapter 3 - Application Building
3.1
3.2
3.2.2
3.2.3
3.2.1.1
3.2.1.2
3.2.1.3
3.2.1.4
3.2.1.5
3.2.1.6
3.2.2.2
3.2.2.3
3.2.3.2
3.2.3.3
3.2.4
3.2.5
3.3
3.4
3.5
3.4.1
3.4.2
3.5.2
3.5.3
3.5.4
ii
3.5.3.1
3.5.3.2
3.5.3.3
3.5.4.2
3.5.4.3
3.5.4.4
3.5.4.5
CONTENTS (continued)
3.5.4.6
3.5.4.7
3.5.5
3.5.6
3.6
3.7
3.8
4.2
4.3
4.1.2
4.1.3
4.2.2
4.2.3
4.2.4
4.2.5
4.2.6
4.2.7
4.2.8
4.4
5.1.2
5.1.3
5.1.4
5.1.4.2
5.1.5
5.1.6
5.1.7
5.1.8
iii
CONTENTS (continued)
5.1.9
5.2
5.2.2
5.2.2.2
5.2.2.3
5.2.2.4
5.2.3
5.2.4
5.2.5
Changing the Data Base Part of Functional Units On-line ................... 5-18
5.2.6
Chapter 6 - Documentation
6.1
6.2
6.3
6.4
6.4.2
6.4.3
6.4.4
6.5
6.6
Headlines.................................................................................................................. 6-9
6.7
6.8
6.9
6.10
iv
7.1
7.2
7.2.2
7.2.2.2
7.2.2.3
7.2.2.4
CONTENTS (continued)
7.2.3
7.3
7.4
7.3.2
7.4.2
7.4.3
7.4.4
7.5
7.6
7.7
8.2
8.3
8.4
8.5
Hardcopy...................................................................................................................8.4
8.6
8.7
8.8
8.9
Locking/Unlocking PC Programs.............................................................................8.6
General..................................................................................................................... 9-1
9.2
9.3
9.4
10.1.2
Dimension the Data Base for Event Set Handling ......... 10-5
10.1.2.2
10.1.2.3
CONTENTS (continued)
Appendix A - Working Example
1.1
vi
$03/&RQILJXUDWLRQ$GYDQW&RQWUROOHU6HULHV5HIHUHQFH0DQXDO
6HFWLRQ *HQHUDO,QIRUPDWLRQ
Chapter 1 Introduction
1.3 Conventions
Keyboard Interaction
When you read
You should
<F4>
<Ctrl-Break>
Press the Ctrl key while pressing the key labeled Break.
Syntax
In this manual, the syntax of each command is described in the form of the command name,
followed by the arguments that are to be specified. The arguments are separated with symbols
such as the comma ,, slash /, semicolon ; or right angle bracket >. To carry out a
command, enter the command syntax and press the Enter key.
Bold strings are the command names and arguments; type them as they appear.
Arguments to use alternatively are indicated by a vertical bar (in some syntax descriptions,
alternative choices are represented by an italic string and a separate explanation of its
substitutions).
Normal strings represent dialog text from the Advant Controller 400 Series or the
engineering station.
1-1
$03/&RQILJXUDWLRQ$GYDQW&RQWUROOHU6HULHV5HIHUHQFH0DQXDO
&KDSWHU ,QWURGXFWLRQ
Description
On-line Builder
Reference Manual
PC Elements
Advant Controller 400
Series
Reference Manual
MasterView 320
Users Guide
1-2
$03/&RQILJXUDWLRQ$GYDQW&RQWUROOHU6HULHV5HIHUHQFH0DQXDO
6HFWLRQ 7HUPLQRORJ\
1.6 Terminology
Advant Controller 100 Series/AC 100 Series
The terms Advant Controller 100 Series and AC 100 Series are used for Advant
Controller 110.
Advant Controller 400 Series/AC 400 Series
The terms Advant Controller 400 Series and AC 400 Series are used for Advant
Controller 410 and Advant Controller 450.
AF 100
The abbreviation AF 100 is used for Advant Fieldbus 100.
DB
The term DB is used for the Advant Controller 400 Series data base.
Volume
Segment
1-3
$03/&RQILJXUDWLRQ$GYDQW&RQWUROOHU6HULHV5HIHUHQFH0DQXDO
&KDSWHU ,QWURGXFWLRQ
Extension
Example:
USER:ABCD.AA
In syntax definitions, the extension of a segment is not mentioned, but is a part of segment.
See the On-line Builder Reference Manual for information about wildcards.
1-4
$03/&RQILJXUDWLRQ$GYDQW&RQWUROOHU6HULHV5HIHUHQFH0DQXDO
6HFWLRQ ,QWURGXFWLRQ
2.1 Introduction
The application program of an Advant Controller 400 Series is stored in its read/write memory.
Applications realized with ABB MasterPiece Language (AMPL) contain a data base (DB) part
and up to 99 PC programs which communicate with the data base. Dividing the memory into a
part containing DB and a part containing PC is necessary for application building and is defined
as DB dimensioning and PC dimensioning, respectively.
A redimensioning procedure can be required in order to displace the memory amounts of
dimensioned functions, or of the DB part (PC part) as a whole (see Section 2.8.3, Resetting the
Controller), if the internal structure of the application (for example, the number of PC programs
or the number of I/Os) changes in a wider range than expected.
Figure 2-1 shows schematically how the process, the data base and a PC program interact to
control the process.
Input Signals
Data Base
Output Signals
PC Program
Data Base
Process
Figure 2-1. Interaction between Data Base, PC Program, and the Process
2-1
$03/&RQILJXUDWLRQ$GYDQW&RQWUROOHU6HULHV5HIHUHQFH0DQXDO
&KDSWHU 2XWOLQH'HVFULSWLRQ
PC programs
Advant Controller 400 Series and the Advant Station 500 Series Operator Station
The Advant Controller 400 Series data base can be populated (filled) with data base elements.
Different kinds of data base elements exist for different purposes. The number of DB elements
of one kind is identical to the number of times it is used in an application and can be
distinguished by its data base item designation (see Section 2.2.2, Identifying Data Base
Elements).
A data base element consists of one or more sections and expansions which contain terminals.
Each terminal of a DB element represents an interface to outside the DB element which can be
used to connect the DB element or to define a value of a specific kind. One expansion or one
section is expanded at a time to present its terminals in order to define them. The others (if there
are more than one) are compressed. Terminals are indicated by a number, compressed (closed)
sections are indicated by an S, followed by the number of the section and an expansion is
indicated by an E, followed by the number of the expansion.
When the Advant Controller 400 Series is delivered, its data base is almost empty. Only some
special DB elements exist, the system DB elements, within the data base. After the first start
(see Section 2.9, Starting Advant Controller 400 Series), you must specify the number of I/O
boards and I/O signals, the number of locations for data transfer, etc. Use the DIMDB command
to do this.
You can populate the data base after dimensioning on the basis of how the Advant
Controller 400 Series is equipped and how you want it to operate.
Consider, for example, a 32-signal digital input board. This board is represented in the data base
by one DB element, which contains the board-specific data. Another 32 DB elements exist and
define the signal characteristics. The 32 DB elements for the signals are related to the DB
element for the board and they are subordinated DB elements.
2-2
$03/&RQILJXUDWLRQ$GYDQW&RQWUROOHU6HULHV5HIHUHQFH0DQXDO
6HFWLRQ *HQHUDO
DI Board
6LJQDO
DI Board Signals
DI5.32
DI5.4
DI5.3
DI5.2
DI5
DI5.1
DI board (4.5)
Digital Input
$GGU
(8.129)
14
15
2
X1
5
6
7
8
9
27
IMPL
SERVICE
TYPE
SCANT
ACFILT
FILTA
FILTB
FILTC
FILTD
P_CATCH
> DI5.1
1
0
0
0
0
17
3
ERR
ADDR
1
4
7
25
27
11
NAME
ACT
BLOCKED
INV
TESTED
ERR_CTRL
VALUE
ERR
UPDATED
S2
Operator functions
E3
Group Alarm
12
5
6
1.
DB elements to describe the I/O boards and signals and to transfer data to/from the
PC programs:
AI
DI
AO
DO
AIS
DIS
AOS
DOS
AI8<nn>
AO8<nn>
DI8<nn>
DO8<nn>
<nn> stands for different S800 I/O series modules, for example AI810, DI811,AO820
2-3
$03/&RQILJXUDWLRQ$GYDQW&RQWUROOHU6HULHV5HIHUHQFH0DQXDO
&KDSWHU 2XWOLQH'HVFULSWLRQ
DB elements, with values calculated by a PC program, that have the same characteristics
as, for example, an AIS DB element:
AIC
AOC
DIC
DOC
DAT(B)
DAT(I)
DAT(IL)
DAT(R)
Data Set
MVB
PIDCON
(Process controller)
PIDCONA
MANSTN
(Manual station)
RATIOSTN
(Ratio station).
CI520
AC110
AC70
AF100S
CI810
DRISTD
(Standard Drive)
DRIENG
(Engineered Drive).
For complete descriptions of all types of data base elements, see the Data Base Elements
Advant Controller 400 Series Reference Manual.
2-4
$03/&RQILJXUDWLRQ$GYDQW&RQWUROOHU6HULHV5HIHUHQFH0DQXDO
6HFWLRQ ,GHQWLI\LQJ'DWD%DVH(OHPHQWV
In formal terms, the DB elements of the data base can be divided into four categories.
Superior
Subordinate
Independent
System
By name: Most DB elements have a terminal NAME. The string that you specify for this
terminal is its name, and this name can be used to identify the DB element (see
Section 2.2.2.1, User-defined Names).
By data base item designation: The item designation of a DB element contains a textual
part and a numerical part. No general rule for the item designation can be given. It depends
on the element type and can be different compared to the element type.
Example:
Element type: CI520
DB Item designation: AF100_1
By data base index (not recommended): The data base index (LF.LR) is represented by the
two numbers included in parentheses and separated by a period (see Figure 2-3). The first
number is the logical file (file number in data base) and the second number is the logical
record (record number).
2-5
$03/&RQILJXUDWLRQ$GYDQW&RQWUROOHU6HULHV5HIHUHQFH0DQXDO
&KDSWHU 2XWOLQH'HVFULSWLRQ
DI Board
DI Board Signals
DI5.32
User-defined Name
DB Item Designation
DI5.4
DI5.3
DI5.2
DI5
Data Base Index
DI board (4.5)
Addr: 0110 0100
14
15
2
X1
5
6
7
8
9
27
IMPL
SERVICE
TYPE
SCANT
ACFILT
FILTA
FILTB
FILTC
FILTD
P_CATCH
DI5.1/ VENT_OP
Digital Input
(8.129)
ERR
ADDR
17
3
> VENT_OP 1
4
1
7
0
25
0
27
0
11
0
NAME
ACT
BLOCKED
INV
TESTED
ERR_CTRL
VALUE
ERR
UPDATED
S2
Operator function
E3
Group Alarm
12
5
6
2-6
Names must not consist only of numerals, or periods, or numerals and periods (dots).
Names must not be equal to an item designation, for example AI1.1, unless it is its own
item designation
Substrings of names must not equal ".Bn", ".In", ".ILn", ".Rn", where n is a number,
except for names of DAT elements
There are also limits on the permitted length of the name, and these vary from one DB
element type to another. Usually the length of a name is limited to 20 characters.
See the Data Base Elements Advant Controller 400 Series Reference Manual.
$03/&RQILJXUDWLRQ$GYDQW&RQWUROOHU6HULHV5HIHUHQFH0DQXDO
6HFWLRQ ,GHQWLI\LQJ'DWD%DVH(OHPHQWV
Printed
Character
"
Hash mark
Dollar
Ampersand
&
Asterisk
Plus sign
Hyphen
Dot
0 ... 9
At sign
A ... Z
A ... Z
USA (1)
Back slash
USA (1)
USA (1)
Caret
Underscore
a ... z
Remark
a ... z
Left brace
USA (1)
Vertical bar
USA (1)
Right brace
USA (1)
Tilde
Adieresis
Odieresis
Udieresis
Aring
SWE (1)
adieresis
2-7
$03/&RQILJXUDWLRQ$GYDQW&RQWUROOHU6HULHV5HIHUHQFH0DQXDO
&KDSWHU 2XWOLQH'HVFULSWLRQ
Printed
Character
Remark
odieresis
udieresis
aring
SWE (1)
germandbls
GER (1)
(1) Allowed only, if the specified character set is selected for the project in the Application
Builder (USA=US english, GER=german, or SWE=swedish).
2.3 PC Programs
The ABB MasterPiece Language (AMPL) supports extensive structuring of application
programs. Up to 99 PC programs can be created and structured internally by structure PC
elements. The functional PC elements are subordinated to the structure PC elements and
perform the functions of the application.
Most structure PC elements are allowed to manage and execute that part of the PC program
separately and independently, which is referred to as execution control. Those structure PC
elements are called execution units. The execution units can be given different cycle times and
priorities by defining the call parameters, so that both fast and slow control operations can be
managed by the same PC program.
2-8
$03/&RQILJXUDWLRQ$GYDQW&RQWUROOHU6HULHV5HIHUHQFH0DQXDO
6HFWLRQ ([HFXWLRQ&RQWURO
Interpreter
Place 1
Place 2
10
20
Place n
40
50
100
200
250
500
1000
2000 ms
Interpreter A
Interpreter B
Interpreter C
10 ms
50 ms
250 ms
20 ms
100 ms
500 ms
40 ms
200 ms
1000 ms
2000 ms
2-9
$03/&RQILJXUDWLRQ$GYDQW&RQWUROOHU6HULHV5HIHUHQFH0DQXDO
&KDSWHU 2XWOLQH'HVFULSWLRQ
DIMENSION PC
Free space in system
Allocated PC area
Available PC area
Allocated interpreter area
555
100
10
2
kb
kb
kb
kb
100 kb
(Min. 3 kb)
10
Number of PC programs
(Min. 1)
50
50
50
A
B
C
Figure 2-5. Number of Places in the Cycle Time Tables for Interpreters A, B, and C
2-10
>
The cursor moves down one step after you press Enter.
<
DIM
$03/&RQILJXUDWLRQ$GYDQW&RQWUROOHU6HULHV5HIHUHQFH0DQXDO
6HFWLRQ ([HFXWLRQ&RQWURO
QUIT
<Ctrl-Break>
END
If the cycle times in the connected Advant Controller 400 Series can be altered, the screen
display below is provided. Otherwise, a similar presentation featuring a screen display but no
dialogs is provided. The cycle times of the interpreters A, B, and C are built up by increasing
scan time values without overlap.
> 10
50
250
5
500
2000
512
CYCLE_A (5 - 100):
2-11
$03/&RQILJXUDWLRQ$GYDQW&RQWUROOHU6HULHV5HIHUHQFH0DQXDO
&KDSWHU 2XWOLQH'HVFULSWLRQ
On the screen display, there is a cursor to a cycle time group with a valid value range specified at
the bottom of the display. A valid cycle time value must be an integer multiple of 5 ms and must
be unique.
If a cycle time group is not implemented in the connected Advant Controller 400 Series,
the corresponding terminal value is NOT USED.
(Times in seconds)
IN
10
20
40
50
100
200
250
500
Pulse inputs
(S100 I/O) (3)
AI (S100 I/O),
temperature
measurement boards (6)
DI (S100 I/O,
S800 I/O) (1) (2)
10
30
60
300
600
(1)
(2)
(3)
(4)
(5)
(6)
2-12
$03/&RQILJXUDWLRQ$GYDQW&RQWUROOHU6HULHV5HIHUHQFH0DQXDO
6HFWLRQ :RUNLQJ0RGHVRI$GYDQW&RQWUROOHU6HULHV
For S800 I/O you can specify how often data will be written to or read from Advant
Fieldbus 100. INSCANT defines the cycle time for reading data from the bus, OUTSCANT for
writing to the bus. For example, INSCANT = 50 ms means that all 50 ms data will be fetched
from the bus by the board. See Table 2-4 for available values.
Table 2-4. Scan Times on Advant Fieldbus 100
$OORZHG9DOXHVRI,16&$17DQG2876&$17
6LJQDO7\SH
16
32
64
128
256
512
1024
2048
4096
AI8<nn>(1)
AO8<nn>
DI8<nn>
DO8<nn>
(1) <nn> stands for different S800 I/O series modules, for example AI810, DI811,AO82.
OPERATION mode
CONFIGURATION mode
STOPPED mode
OFFLINE mode.
The LED display on the processor module front indicates the working mode with the codes
P1, P2, P3 and P4.
OPERATION mode (P1):
The controller executes the application program(s). This is the normal status of an Advant
Controller. The system can then perform control tasks and control the process outputs.
CONFIGURATION mode (P2):
The controller does not execute the application program(s). You can configure the controller
system and build the application.
STOPPED mode (P3):
The controller does not execute at all. The process outputs have defined states (zero). The main
CPU performs self-tests to check the controller function.
OFFLINE mode (P4):
The controller executes low-level fault-tracing commands only. Usually performed by ABB
personnel. The process outputs have defined states (zero).
2-13
$03/&RQILJXUDWLRQ$GYDQW&RQWUROOHU6HULHV5HIHUHQFH0DQXDO
&KDSWHU 2XWOLQH'HVFULSWLRQ
Use On-line Builder commands (see Section 2.8, Relationship between On-line Builder
Commands and Working Modes).
1 = AUTO
2 = STOP
3 = CLEAR
4 = OFFLINE
2
1
3
4
STOP:
Selects the STOPPED mode.
CLEAR:
Cold start, i.e., clears the RAM (the controller system configuration and whole application are
erased). The controller is then in CONFIGURATION mode.
If you want to erase an existing application, the corresponding User Disk Application Segments
of the engineering station must be initialized as well (see Section 2.8.3, Resetting the
Controller).
OFFLINE:
Selects the OFFLINE mode.
The controller reads the start mode selector position at the following occasions:
When you press the ENTER button on the processor module front
At power up.
2-14
$03/&RQILJXUDWLRQ$GYDQW&RQWUROOHU6HULHV5HIHUHQFH0DQXDO
6HFWLRQ 5HODWLRQVKLSEHWZHHQ6WDUW0RGHVDQG:RUNLQJ0RGHV
First power up (the system has never been configured), see Figure 2-8
Event: Power up
3
4
3 (CLEAR)
(STOP) 2
4 (OFFLINE)
(Compulsory
setting)
Actions executed
by the Controller
Resulting
Working Mode
-Install system
SW
-Clear applic.
area
OPERATION
CONFIG.
STOPPED
OFFLINE
mode (P1)
mode (P2)
mode (P3)
mode (P4)
2-15
$03/&RQILJXUDWLRQ$GYDQW&RQWUROOHU6HULHV5HIHUHQFH0DQXDO
&KDSWHU 2XWOLQH'HVFULSWLRQ
Start cond.:
OPERATION
mode
Actions executed
by the Controller
Resulting
Working Mode
3 (CLEAR)
4
3
4
4 (OFFLINE)
CONFIG. mode
-Initialize and
start applic.
OPERATION
mode (P1)
-Install system
SW
-Erase applic.
CONFIG.
mode (P2)
STOPPED
mode (P3)
OFFLINE
mode (P4)
2-16
$03/&RQILJXUDWLRQ$GYDQW&RQWUROOHU6HULHV5HIHUHQFH0DQXDO
6HFWLRQ 5HODWLRQVKLSEHWZHHQ2QOLQH%XLOGHU&RPPDQGVDQG:RUNLQJ0RGHV
Actions executed
by the Controller
Resulting
Working Mode
(Compulsory
setting)
2
3
1
4
3 (CLEAR)
4
(STOP)
2
3
4
2
1
4 (OFFLINE)
Stop
application
OPERATION
mode (P1)
CONFIG.
mode (P2)
STOPPED
OFFLINE
mode (P3)
mode (P4)
2-17
$03/&RQILJXUDWLRQ$GYDQW&RQWUROOHU6HULHV5HIHUHQFH0DQXDO
&KDSWHU 2XWOLQH'HVFULSWLRQ
Actions executed
by the Controller
Resulting
Working Mode
(Compulsory
setting)
3
2
4
1
3 (CLEAR)
4
(STOP) 2
1
3
4
4 (OFFLINE)
Initialize and
start
application
OPERATION
mode (P1)
CONFIG.
mode (P2)
STOPPED
mode (P3)
OFFLINE
mode (P4)
2-18
$03/&RQILJXUDWLRQ$GYDQW&RQWUROOHU6HULHV5HIHUHQFH0DQXDO
6HFWLRQ 5HVHWWLQJWKH&RQWUROOHU
(Compulsory
setting)
2
3
1
4
Actions executed
by the Controller
Resulting
Working Mode
3 (CLEAR) (STOP) 2
4
4 (OFFLINE)
-Install
system SW
-Erase
application
OPERATION
mode (P1)
CONFIG.
mode (P2)
STOPPED
OFFLINE
mode (P3)
mode (P4)
2-19
$03/&RQILJXUDWLRQ$GYDQW&RQWUROOHU6HULHV5HIHUHQFH0DQXDO
&KDSWHU 2XWOLQH'HVFULSWLRQ
2.
Switch on the power. Wait until the processor module display indicates the
CONFIGURATION mode (P2).
3.
Set the start mode selector to the start mode AUTO, thereby assuring that a power fail will
not erase the application (AUTO is the normal position of the start mode selector).
4.
Connect the engineering station to the Advant Controller 400 Series, switch on the power
and start the On-line Builder.
5.
6.
Use the On-line Builder command DICONFIG to order the controller to the
OPERATION mode (the process control application is running).
2-20
1.
If you need to do further configuration work, use the On-line Builder command
ECONFIG to order the controller to the CONFIGURATION mode.
2.
3.
Use the On-line Builder command DICONFIG to order the controller to the
OPERATION mode.
$03/&RQILJXUDWLRQ$GYDQW&RQWUROOHU6HULHV5HIHUHQFH0DQXDO
6HFWLRQ 3URJUDPPHG6WDUW
the process
PC2
PCPGM
.1
ST1/START
Blocking of alarms
START
START
2
0
1
2
CONTRM
(192.1)
NAME
PC_PGM
CLEAR_C
AUTO_C
RESTA_C
Start module
for AUTO start
Control of restart
after power failure
Control of ON
inputs
.2
CONTRM
Blocking of alarm
Control of ON
inputs
In the start module, you can block the alarms that the system may generate when the I/O boards
are initialized. You can also determine how the process is to start by controlling the ON inputs
on execution units of the following types: PCPGM, CONTRM, MASTER and SEQ in the PC
program(s) that control(s) the process. You can also define a special start module for restart after
power failure. Data (date and time) of the power failure are available at the outputs of the data
base element.
2-21
$03/&RQILJXUDWLRQ$GYDQW&RQWUROOHU6HULHV5HIHUHQFH0DQXDO
&KDSWHU 2XWOLQH'HVFULSWLRQ
2-22
$03/&RQILJXUDWLRQ$GYDQW&RQWUROOHU6HULHV5HIHUHQFH0DQXDO
6HFWLRQ 3URJUDPPHG6WDUW
.
PC Program for Programmed Restart
PC2
PCPGM
.1
Restart option
after power fail
START
2
0
0
1
CONTRM
ST1/START
START
(192.1)
NAME
PC_PGM
CLEAR_C
AUTO_C
RESTA_C
time
time
start mode
start mode
start mode
SHORT_T
LONG_T
SHT_T_ST
MED_T_ST
LNG_T_ST
MP_SP_T
CON_SP_T
SP_TIME
SP_DATE
- AUTO,
- CLEAR,
- STOP or
- RESTART
- AUTO,
&/($5
- STOP or
- RESTART
Power down time < SHORT_T
- AUTO,
- CLEAR,
- STOP or
- RESTART
6+257B7
time
/21*B7
If you select restart using the RESTART mode, the start module specified is executed with the
value at the terminal RESTA_C in the data base element.
2-23
$03/&RQILJXUDWLRQ$GYDQW&RQWUROOHU6HULHV5HIHUHQFH0DQXDO
&KDSWHU 2XWOLQH'HVFULSWLRQ
You can start from the following start modes for the three restart options.
WARNING
Loss of RAM contents. The RAM is reset in the CLEAR start mode. PC program
and data base must be reloaded.
AUTO
Corresponds to manual start with the start mode selector on the processor unit
set to AUTO (warm start in OPERATION or CONFIGURATION mode).
STOP
Corresponds to manual start with the start mode selector on the processor unit
set to STOP. The controller stops after initializing.
CLEAR
Corresponds to manual start with the start mode selector on the processor unit
set to CLEAR.
RESTART
Is performed as follows:
1.
Execution of PC elements that were being executed when the power went down is
completed. The values produced are output internally in PC, but not in the data base.
2.
That start module specified by data base element terminal RESTA_C is executed (if
present).
3.
Execution of the PC programs begins with the values and internal states that existed when
the power went down.
4.
Other parts of the Advant Controller 400 Series, e.g., communication, MasterView 320,
etc., start as in the AUTO mode.
After power failure, data about the power failure are available to any PC program at the
following terminals on the START data base element:
2-24
MP_SP_T
Controller (MasterPiece) StoP Time indicates the length of time (in seconds)
the power has been down.
CON_SP_T
CONtrol StoP Time indicates the length of time (in seconds) the process has
been without control. This time is longer than MP_SP_T.
SP_TIME
StoP TIME indicates the time on the clock when the power went down.
SP_DATE
StoP DATE indicates the date when the power went down.
$03/&RQILJXUDWLRQ$GYDQW&RQWUROOHU6HULHV5HIHUHQFH0DQXDO
6HFWLRQ 3URJUDPPHG6WDUW
2.9.1.3 Example
In the example in Figure 2-15, control module PC2.1 is specified as the start module.
The MOVE PC element PC2.1.1 is connected via a DAT DB element to the ON inputs on PC
program header PC1 and the control module headers PC3.1 and PC3.2. The MOVE PC element
PC2.1.2 is used to block event printouts in the Advant Station 500 Series Operator Station.
Blocked modules must be reset when the start-up is complete.
NAME
PC_PGM
CLEAR_C
AUTO_C
RESTA_C
SHORT_T
LONG_T
SHT_T_ST
MED_T_ST
LNG_T_ST
(192.1)
1
2
ON
RUN
PC2.1
CONTRM
(C1, C2)
MP_SP_T
CON_SP_T
SP_TIME
SP_DATE
1
2
3
ON
> SINGLE
RUN
MODP
.1
MOVE
(B, 3)
D=0
D=0
D=1
21
22
23
1
2
3
DAT2:VALUE
DAT2:VALUE2
DAT2:VALUE3
PC1
PC3.1
PC3.2
.2
MOVE
(B, 4)
D=1
D=1
D=1
D=1
1
2
3
4
21
22
23
24
DI1.2:AL_P_BLK
AI1.3:AL_P_BLK
AI1.4:AL_P_BLK
DIC33:AL_P_BLK
2-25
$03/&RQILJXUDWLRQ$GYDQW&RQWUROOHU6HULHV5HIHUHQFH0DQXDO
&KDSWHU 2XWOLQH'HVFULSWLRQ
Starting-point:
Figure 2-17 describes programmed start at AUTO - ENTER (when you press the ENTER
button while the start mode selector on the processor module front is in the position
AUTO).
Figure 2-18 describes programmed start when you use the DICONFIG command.
Power-fail - Power-up
Event :
(Recommended
setting)
2
(AUTO) 1
3
4
Starting
point:
3 (CLEAR)
4
CON
(STOP) 2
3
4
4 (OFFLINE)
OP
C
Actions executed
by the controller
Programmed start
Initialize and
start application
A
R
Resulting
working mode
OPERATION
P1
R
A
C
-Install
system SW
-Erase
application
CONFIG.
P2
STOPPED
-3
OFFLINE
-4
S
STOP
2-26
$03/&RQILJXUDWLRQ$GYDQW&RQWUROOHU6HULHV5HIHUHQFH0DQXDO
6HFWLRQ 2YHUYLHZRI3URJUDPPHG6WDUW
Starting-point:
(Recommended
setting)
2
(AUTO) 1
Actions executed
by the controller
3
4
Programmed start
Initialize and start
application
3 (CLEAR) (STOP) 2
1
4
3
4
4 (OFFLINE)
-Install
system SW
-Erase
application
A
Resulting
working mode
OPERATION
P1
CONFIG.
P2
STOPPED
-3
OFFLINE
-4
2-27
$03/&RQILJXUDWLRQ$GYDQW&RQWUROOHU6HULHV5HIHUHQFH0DQXDO
&KDSWHU 2XWOLQH'HVFULSWLRQ
Starting-point:
Actions executed
by the controller
(Compulsory
setting)
2
3
1
4
3 (CLEAR) (STOP) 2
4
3
4
4 (OFFLINE)
Programmed start
Initialize and start
application
A
Resulting
working mode
OPERATION
P1
CONFIG.
P2
STOPPED
-3
OFFLINE
-4
2-28
$03/&RQILJXUDWLRQ$GYDQW&RQWUROOHU6HULHV5HIHUHQFH0DQXDO
6HFWLRQ $SSOLFDWLRQ%XLOGLQJ
Introduce a new target system on the engineering station (target system setup).
2.
3.
Activate those MasterBus 300, RCOM, GCOM, and Modbus that are to be included in the
system.
4.
5.
6.
7.
8.
Data base elements are described in the Data Base Elements Advant Controller 400 Series
Reference Manual. PC elements are described in the PC Elements Advant Controller 400 Series
Reference Manual. PC programming aspects are described in the AMPL Application Building
Reference Manual.
3-1
$03/&RQILJXUDWLRQ$GYDQW&RQWUROOHU6HULHV5HIHUHQFH0DQXDO
&KDSWHU $SSOLFDWLRQ%XLOGLQJ
Controller 400 Series). The figures in this book are showing the DIMDB
dialog for AC450 with system software QC07 version 3.0. For target systems
with other system software, the dialog may look different.
Syntax:
',0'%
556 kb
133 kb
1 kb
S1
PROCESS I/O
S2
S3
MASTERVIEW 300
S4
S5
S6
DRIVES
S7
3-2
>
The cursor moves down one step after you press Enter.
<
The part of the data base currently indicated by the cursor > can be
expanded with the subcommand S.
Sx
Use the subcommands S1-S7 to choose the part of the data base to expand.
Only one part of the display can be expanded at a time. When another part of
the display is expanded, the previously expanded part contracts.
S0
Starts the dimensioning display in initial mode with all parts of the display
contracted (Figure 3-1). To change the dimensioning details displayed, you
must switch from the initial mode (the mode reached after reaching the initial
command DIMDB) to the modify mode.
$03/&RQILJXUDWLRQ$GYDQW&RQWUROOHU6HULHV5HIHUHQFH0DQXDO
6HFWLRQ 'LPHQVLRQLQJWKH'DWD%DVH
There are two subcommands that open a dimensioning detail for modification:
M
Mx
MWx
4801 kb
114 kb
905 kb
-----------------------------------------------------------------------?M
Number of MFB UNITS: 0 New value:
You can enter a new value directly or leave the existing value unchanged.
Every time you press the Enter key, the cursor moves through the
dimensioning details one step at a time in the chosen direction (< or >). If the
dimensioning detail is incorrect, the system puts up an error message at the
bottom of the screen and asks for a new value.
3-3
$03/&RQILJXUDWLRQ$GYDQW&RQWUROOHU6HULHV5HIHUHQFH0DQXDO
&KDSWHU $SSOLFDWLRQ%XLOGLQJ
An asterisk (*) to the left of the dimensioning detail shows that the value
displayed temporarily differs from the value in the data base of the control
system.
Use the subcommand S1 to dimension the process I/O part of the data base
(S100 I/O and S400 I/O). The specified number of signals of each type must
be equal to or greater than the sum of the number of available signals on the
boards/units in use. Even if not all signals on a S100 I/O board or S400 I/O
unit are being used, they must be counted when you dimension the data base.
DIMENSION DATA BASE
Free space in system
Allocated data base
Spare area in data base
4801 kb
114 kb
905 kb
3-4
$03/&RQILJXUDWLRQ$GYDQW&RQWUROOHU6HULHV5HIHUHQFH0DQXDO
6HFWLRQ 'LPHQVLRQLQJWKH'DWD%DVH
S2
Use the subcommand S2 to dimension the data base for the number of DAT
and DS DB elements. This dimensioning offers the possibility of network
communication and/or data transfer between PC programs.
4801 kb
114 kb
905 kb
S1 PROCESS I/O
0 L110 Number of DAT
0 L109 Number of DS
0 L298 Number of MS
0 L297 Number of TEXT
3 L296 Number of TS
4 L335 Number of DSP
0 L351 Number of EVENT SETS
0 L344 Number of MVI MODULES
0 L356 Number of MVI CHANNELS
0 L357 Number of MVI NODES
0 L358 Number of MVI BLOCKS
0 L333 Number of AF 100 FIELDBUSES
0 L334 Number of AF 100 STATIONS
0 L333PB Number of PROFIBUS FIELDBUSSES
0 L334PB Number of PROFIBUS SLAVES
0 L361 Number of PBS DESCRIPTIONS
S3 MASTERVIEW 300
S4 DATA TABLES & TREND DATA
S5 FUNCTIONAL UNITS & TREND DATA
S6 DRIVES
S7 FIRE AND GAS
3-5
$03/&RQILJXUDWLRQ$GYDQW&RQWUROOHU6HULHV5HIHUHQFH0DQXDO
&KDSWHU $SSOLFDWLRQ%XLOGLQJ
S3
Use the subcommand S3 to dimension the MasterView 300 part of the data
base.
4801 kb
114 kb
905 kb
S1 PROCESS I/O
S2 DATA TRANSFER AND COMMUNICATION
0 L147 Number of DISPLAYS
0 L148 Number of VARIABLES
S4 DATA TABLES & TREND DATA
S5 FUNCTIONAL UNITS & TREND DATA
S6 DRIVES
S7 FIRE AND GAS
S4
Use the subcommand S4 to dimension the data tables and the trend data part
of the data base. The dimensioning of trend data is described in detail in the
AdvaCommand Basic Functions Users Guide.
4801 kb
114 kb
905 kb
S1 PROCESS I/O
S2 DATA TRANSFER AND COMMUNICATION
S3 MASTERVIEW 300
0 L80 Number of TTD_LOGS
0 L193 Number of TTD_VARIABLES
0 L299 Number of TBL_CLASSES
0 L301 Number of TABLES
0 L300 Number of TBL_PARAMETERS
0 L302 Size of DATA TABLES (kB)
0 L323 Number of FILE ELEMENTS
0 L324 Size of FILE DATA (kB)
S5 FUNCTIONAL UNITS & TREND DATA
S6 DRIVES
S7 FIRE AND GAS
3-6
$03/&RQILJXUDWLRQ$GYDQW&RQWUROOHU6HULHV5HIHUHQFH0DQXDO
6HFWLRQ 'LPHQVLRQLQJWKH'DWD%DVH
S5
Dimension the function units and group alarm part of the data base using the
subcommand S5.
4801 kb
114 kb
905 kb
S1 PROCESS I/O
S2 DATA TRANSFER AND COMMUNICATION
S3 MASTERVIEW 300
S4 DATA TABLES & TREND DATA
0 L52 Number of SEQ_CTRL
0 L117 Number of GENOBJ
0 L217 Number of MMCX
0 L62 Number of PIDCON
0 L342 Number of PIDCONA
0 L77 Number of MANSTN
0 L78 Number of RATIOSTN
0 L111 Number of GRPALARM
0 L112 Number of GRPMEMB
S6 DRIVES
S7 FIRE AND GAS
4801 kb
114 kb
905 kb
S1 PROCESS I/O
S2 DATA TRANSFER AND COMMUNICATION
S3 MASTERVIEW 300
S4 DATA TABLES & TREND DATA
S5 FUNCTIONAL UNITS & GROUP ALARM
0 L325DRS Number of DRISTD
0 L325DRE Number of DRIENG
S7 FIRE AND GAS
3-7
$03/&RQILJXUDWLRQ$GYDQW&RQWUROOHU6HULHV5HIHUHQFH0DQXDO
&KDSWHU $SSOLFDWLRQ%XLOGLQJ
S7
4801 kb
114 kb
905 kb
S1 PROCESS I/O
S2 DATA TRANSFER AND COMMUNICATION
S3 MASTERVIEW 300
S4 DATA TABLES & TREND DATA
S5 FUNCTIONAL UNITS & GROUP ALARM
S6 DRIVES
0 L305 Number of GI_BOARDS
0 L306 Number of FI_BOARDS
0 L307 Number of GI_SIGNALS
0 L308 Number of FI_SIGNALS
556 kb
133 kb
1 kb
3-8
$03/&RQILJXUDWLRQ$GYDQW&RQWUROOHU6HULHV5HIHUHQFH0DQXDO
6HFWLRQ 'LPHQVLRQLQJWKH'DWD%DVH
The amount of memory space that has been used is updated and shown in the dimensioning
display.
Before quitting dimensioning mode, you can create a spare area in the data base. You can use
the spare area as a simple way of increasing the number of places in any of the parts of the data
base.
You can use DIMDB to increase the number of places directly if spare area is available. Without
sufficient spare area, a dumping/loading procedure for redimensioning is necessary (see
Section 7.4, Dumping and Loading for Redimensioning). You must first dump the data base
contents with the DUTDB command (see Section 7.4, Dumping and Loading for
Redimensioning), after which the size of the data base must be increased and the contents
loaded back with LOTDB (see Section 7.4.3, Loading the Data Base).
For all dimensioning of the data base, the Advant Controller 400 Series must be in
CONFIGURATION mode (see Section 2.8.1, Enable CONFIGURATION Mode).
Having a generous amount of spare area saves time, especially during the application-building
phase, when the data base is being populated but PC has not yet been dimensioned. When
populating of the data base is complete and the data base has been dumped, the spare area can
finally be reduced when the data base is reloaded. (LOTDB removes all of the data bases spare
area unless new spare area is expressly requested during dimensioning.)
NOTE
Redimensioning using spare area is only permissible before the PC part has been
dimensioned.
In addition to the data base and PC, there are certain functions in the Advant Controller 400
Series that must have access to RAM (see Section 3.2.1.4, Memory Requirements for certain
Functions). Sufficient memory space must be left for those functions.
3-9
$03/&RQILJXUDWLRQ$GYDQW&RQWUROOHU6HULHV5HIHUHQFH0DQXDO
&KDSWHU $SSOLFDWLRQ%XLOGLQJ
MasterView 320
36
96
MVI ports
Nx (4Px + 20)
(number of DSP)
(number of TS)
(1) MasterBus 300E allocates this memory at first start-up (CLEAR-INIT or RECONFIG) or later when SC520 or CS513 is
inserted.
(2) If there are several event lists, sum up the numbers of events in all event lists.
(3) Only when submodules CI532Vxx are used.
(4) Only when submodules CI534Vxx are used (two ports (channels) per submodule).
3-10
$03/&RQILJXUDWLRQ$GYDQW&RQWUROOHU6HULHV5HIHUHQFH0DQXDO
6HFWLRQ 'LPHQVLRQLQJWKH'DWD%DVH
Functional Units
12.2 (A1 + A2 + .. + A6) + 12.4 (A7 + A8) +14 (A9 + A10 + .. + A14) +
7160(A15) + 12 (number of different functional units)
A1 ... A15 is the number of functional units that have been dimensioned
A1
No of AI
A2
AO
A3
DI
A4
DO
A5
TEXT
A6
GRPALARM
A7
DAT
A8
A9
SEQ
A10 =
PIDCON
A11 =
MANSTN
A12 =
RATIOSTN
A13 =
MOTCON + VALVECON
A14 =
MMCX
A15 =
PIDCONA
3.2.1.5 Transferring the Dimensioning Data to the Advant Controller 400 Series
Subcommand:
DIM
Example:
? ',0
Specify wanted spare area size
SPARE AREA = 0 KB =
If the Advant Controller 400 Series has not been dimensioned before, there is no memory area
reserved for the data base. Before a memory area is reserved, the system asks how much spare
area is required. You can use this spare area to redimension the data base, provided it is done
before PC is dimensioned.
3-11
$03/&RQILJXUDWLRQ$GYDQW&RQWUROOHU6HULHV5HIHUHQFH0DQXDO
&KDSWHU $SSOLFDWLRQ%XLOGLQJ
QUIT or Q
<Ctrl-Break>
MDB (Modify Data Base). For modification of the values of one or more terminals in
existing DB elements.
You can use CRDB in CONFIGURATION mode and in OPERATION mode. The Advant
Controller 400 Series, however, must be taken out of OPERATION mode if certain types of
created DB elements are to be made active.
You can use MDB in CONFIGURATION mode and in OPERATION mode, but not all
characteristics can be modified in OPERATION mode.
You can use DDB only in CONFIGURATION mode.
3-12
$03/&RQILJXUDWLRQ$GYDQW&RQWUROOHU6HULHV5HIHUHQFH0DQXDO
6HFWLRQ (GLWLQJWKH'DWD%DVH
One DB element
A number of DB elements that are related to each other, e.g., one I/O board DB element
and its signal DB elements.
The DB element for the specified DB element type appears on the screen.
Data Base Index
(logical file, logical record)
Item Designation
Default Values
To go to next
Element, use
the directive >>
<1
1
DSDI 110
INTERRUPT
0
10
10
10
10
NO
14
15
2
X1
5
6
7
8
9
27
DI1
DI board (4.1)
Addr: 0110 0100
IMPL
SERVICE
ERR
TYPE
ADDR
SCANT
ACFILT
FILTA
FILTB
FILTC
FILTD
P_CATCH
Address to be
Strapped on Board
17
3
0
96
? >>
The cursor moves down one step after you press Enter.
<
>>
En
Calls input terminal, e.g., E7. The parameter n is the terminal number.
MWx
3-13
$03/&RQILJXUDWLRQ$GYDQW&RQWUROOHU6HULHV5HIHUHQFH0DQXDO
&KDSWHU $SSOLFDWLRQ%XLOGLQJ
Example:
This diagram shows how all subordinated DB elements of the superior DB element DI1 are
created. The number of subordinate DB elements, in this case DI signals, is automatically
determined by the number of signals of the board type chosen:
&5'%',
DI1
DI board (4.1)
Addr: 0110 0000
<1
1
DSDI_110
INTERRUPT
0
10
10
10
10
NO
? >>
14
15
2
X1
5
6
7
8
9
27
IMPL
SERVICE
TYPE
SCANT
ACFILT
FILTA
FILTB
FILTC
FILTD
P CATCH
ERR 17
3
ADDR
0
0
Signal file
record
Item designation
DI1.1
Digital Input
(8.1)
>DI1.1
1
0
0
0
0
? >>
1
4
7
25
27
11
NAME
ACT
BLOCKED
INV
TESTED
ERR CTRL
S2
Operator functions
E3
Group Alarm
VALUE
ERR
UPDATED
12
5
6
0
0
0
3-14
$03/&RQILJXUDWLRQ$GYDQW&RQWUROOHU6HULHV5HIHUHQFH0DQXDO
6HFWLRQ (GLWLQJWKH'DWD%DVH
DI1.2
Digital Input
(8.2)
>DI1.2
1
0
0
0
0
1
4
7
25
27
11
NAME
ACT
BLOCKED
INV
TESTED
ERR CTRL
S2
Operator functions
E3
Group Alarm
VALUE
ERR
UPDATED
12
5
6
0
0
0
and so on for all
signals of the
board
Sx
In order to change the displayed default values, you must switch from the initial mode that you
reach after you give the CRDB command to the modify mode. There are two subcommands that
open a terminal for modification:
M
Mx
The cursor moves to the terminal with number x and opens it for modification.
When the system is in modify mode, the name and current value of the
terminal are displayed at the bottom of the screen.
<Enter>
You can enter a new value directly or leave the value unchanged. Every time
you press the Enter key, the cursor moves one step in the chosen direction
(<,> or =) among the connections.
If you are in modify mode, you move to a non-expanded segment. The window changes
automatically so that the non-expanded segment is expanded instead. Its first terminal is
indicated by the cursor (>) and modify mode is retained.
END
Starts population of the target data base. The subordinate DB elements are
created and filled in with changed values or default values proposed by the
system. You can then create a new superior DB element.
<Ctrl-Break>
3-15
$03/&RQILJXUDWLRQ$GYDQW&RQWUROOHU6HULHV5HIHUHQFH0DQXDO
&KDSWHU $SSOLFDWLRQ%XLOGLQJ
ALL
ERROR
Shows an explanatory error message for a value not approved by the system
(connection marked with ?). Move the cursor (>) to the connection and
enter: ERROR.
3-16
<<
>>
RET
(only for group alarm) Returns to the superior data base element from a
subordinated data base element (see the E subcommand in Section 3.2.2.1,
Creating Data Base Elements). When returning to the superior data base
element, the subordinated one is updated.
RESTORE
Updates the data base element values displayed on the screen, thereby
showing the current state of the data base.
GVD
Works like RESTORE, with the exception that the values are updated
dynamically until you press <Ctrl-Break>.
$03/&RQILJXUDWLRQ$GYDQW&RQWUROOHU6HULHV5HIHUHQFH0DQXDO
6HFWLRQ 'DWD%DVH'RFXPHQWDWLRQ
Gives a printout of the screen contents at the instant when the subcommand
was given.
PON
POFF
Cancels PON.
3-17
$03/&RQILJXUDWLRQ$GYDQW&RQWUROOHU6HULHV5HIHUHQFH0DQXDO
&KDSWHU $SSOLFDWLRQ%XLOGLQJ
Meaning
Example
ALL
/'%'6(/ $//
element type
/'%'6(/ ',&
/'%'6(/ $,
/'%'6(/ ',&
element identity
/'%'6(/ $,
/'%'6(/ ',&!
name
/'%'6(/ 02725
wildcard *
/'%'6(/ $,
group
/'%'6(/ $
3-18
Use
start
interv
gap
$03/&RQILJXUDWLRQ$GYDQW&RQWUROOHU6HULHV5HIHUHQFH0DQXDO
6HFWLRQ 'DWD%DVH'RFXPHQWDWLRQ
Examples:
#/'%' 6(/ ',&
Lists all DB elements of the type DI Calculated, starting on page 10.
#/'%'6(/ $//
Lists all elements in the data base. The first page is numbered 100, the following pages are
numbered 110, 120, etc. The page numbering is increased by 50 between DB element types.
#/'%'6(/ ',&!
Lists the first three DB elements of the type DIC.... Individual subordinate DB elements (e.g.,
AI1.1) cannot be listed. You must list the superior DB element with all subordinate DB
elements. For example, to list AI3.4, you must list AI3. AI3 and AI3.1...AI3.16 are then listed.
For control of the cross-reference printout, use the following parameters:
Table 3-5. Parameter XREF of Command LDBD
Parameter
Function
XREF
Cross-referencing is required
PCm
PCn
Example:
#/'%'6(/ 3,'&21;5()
#/'%'6(/ 3,'&21;5()3&!3&
page_interv:
EXP:
Keyword providing expanded output including node, logical file and logical
record.
3-19
$03/&RQILJXUDWLRQ$GYDQW&RQWUROOHU6HULHV5HIHUHQFH0DQXDO
&KDSWHU $SSOLFDWLRQ%XLOGLQJ
LGAM is an interactive command and prompts for all required input, including the initial
parameters, if omitted.
Examples:
List all Group Alarm DB elements; First page = 10:
#/*$06(/ $//
List Group Alarm DB elements 1-5; First page = 100; Page interval = 10:
#/*$06(/ *53$/$50!
List all Group Alarm DB elements; First page = 10; Expanded list:
#/*$06(/ $// (;3
3-20
$03/&RQILJXUDWLRQ$GYDQW&RQWUROOHU6HULHV5HIHUHQFH0DQXDO
6HFWLRQ 'HIDXOW9DOXHVIRU'DWD%DVH+DQGOLQJ
In a similar way, compression removes the space needed to refer to an AI signal for the terminal
AI_ERR on the PIDCON DB element. If you want such space, you must redimension for more
AI_SIGNALS, as described above. After you have entered such references, you can once again
compress the data base.
As the data base is populated, make security copies on diskette at regular intervals. For final
security copying, use a DUAP dump; this covers both the data base and the PC programs.
It is, of course, possible to temporarily use the DUTDB dump for this purpose instead (see
Chapter 7, Backup and Transfer of Application Data).
3-21
$03/&RQILJXUDWLRQ$GYDQW&RQWUROOHU6HULHV5HIHUHQFH0DQXDO
&KDSWHU $SSOLFDWLRQ%XLOGLQJ
There is no easy way to specify in advance the maximum size of PC programs which can be
developed within the framework of these four tables. The space requirement is governed by such
things as the number of outputs on the PC elements, how they are interconnected, how they are
connected to the data base, the number of control parameters, the number of constants and the
number of measurement units allocated to variables. As you develop the PC programs, however,
information on the memory space still available is provided by each of the commands IS, C, CU
and DS. Information is provided on both the total space for PC programs and the space within
the current PC program for internal connections and data base connections.
3.4 PC Dimensioning
3.4.1 Dimensioning the Space for PC Programs
When an Advant Controller 400 Series is started for the first time, the PC area must be
dimensioned. You specify the number of PC programs, the number of places in the cycle
timetable (scan places) in the interpreter and the total memory space for PC programs. Further
on, you can activate a function to save the contents of the User Disk Application Segments in
the Advant Controller 400 Series for backup reasons.
To dimension and design PC programs well, you must be aware of certain size limitations
applicable to such PC programs. These limitations are described in Section 3.3, Structuring PC
Programs.
In addition to the data base and PC, there are certain functions in the Advant Controller 400
Series that require access to RAM (see Section 3.2.1.4, Memory Requirements for certain
Functions). Sufficient memory space must remain for those functions.
Dimensioning is carried out with the Advant Controller 400 Series in CONFIGURATION mode
(see Section 2.4, Working Modes of Advant Controller 400 Series).
DIMPC
When you use the command DIMPC, the screen display is divided. The upper part of the screen
shows the dimensioning details that you can change. On the lower part of the display, you
conduct a dialog with the engineering station.
Syntax:
',03&
Subcommands:
3-22
DIM
END
Ends DIMPC.
MWx
$03/&RQILJXUDWLRQ$GYDQW&RQWUROOHU6HULHV5HIHUHQFH0DQXDO
6HFWLRQ 0RGLI\LQJWKH6L]HRIWKH6\PERO7DEOH
DIMENSION PC
Free space in system
Allocated PC area
Available PC area
Allocated interpreter area
4
5
6
100 kb
555
100
10
2
kb
kb
kb
kb
(Min. 3 kb)
(Min.1)
10
Number of PC programs
50
50
50
A
B
C
2.
3.
4.
5.
6.
Number of places in the cycle timetable (scan places) for interpreters A, B and C.
7.
8.
The contents of the User Disk Application Segments can be saved in the Advant
Controller 400 Series for backup reasons (USER disk application segments backup).
See Section 7.2.2.2, User Disk Application Segments Backup Handling.
3-23
$03/&RQILJXUDWLRQ$GYDQW&RQWUROOHU6HULHV5HIHUHQFH0DQXDO
&KDSWHU $SSOLFDWLRQ%XLOGLQJ
MSTABS
Use the command MSTABS (Modify Symbol TABle Size) to modify the size of the symbol
table and its available space.
Syntax:
067$%6
The command displays the minimum and maximum new sizes and the current size. You can
enter the new size required here. Size is specified in numbers of blocks for the User Disk
Application Segments; this is equal to number of kilobytes.
Even if the total symbol table space available can be increased, there are certain limitations per
PC program which cannot be circumvented. The space for variable names is limited to 32
blocks (kilobytes) per letter as follows: Variable names starting with an A can be stored up to
32 blocks as well as variable names starting with a B, etc. It is advisable to limit the size of PC
programs and to consider the naming conventions with this in mind. The maximum size of the
PCMASS.SM segment is 1Mbyte.
Examples
Example 1:
You want to change the size from 49 to 85 blocks:
#067$%6
MINIMUM SIZE (Symbol-table already used) : 37
MAXIMUM SIZE (Available disk space)
: 143
SYMBOL TABLE SIZE (BLOCKS) = 49 =
SYMBOL TABLE SUCCESSFULLY MODIFIED
Example 2:
If you have filled in the symbol table to 60 blocks (of the 85 possible) and wish to reduce the
table to this size, you will not succeed since there is not a sufficiently large uninterrupted area
on the volume. Of the 143 adjacent blocks initially available, 85 were used in the change in
Example 1.
#067$%6
INSUFFICIENT
IMPOSSIBLE
#067$%6
MINIMUM SIZE
MAXIMUM SIZE
SYMBOL TABLE
SYMBOL TABLE
3-24
$03/&RQILJXUDWLRQ$GYDQW&RQWUROOHU6HULHV5HIHUHQFH0DQXDO
6HFWLRQ (QWHULQJDQG(GLWLQJ3&3URJUDPV
EBM
DIBM
PC Program in BLOCKED
Mode
BL
DBL
PC Program in EXECUTION
Mode
2.
3.
4.
Disable the BUILD mode (DIBM). The PC program(s) will be blocked when they have
gone through the check.
5.
When a new PC program is loaded, all parts of the PC program are automatically placed in
BUILD mode.
3-25
$03/&RQILJXUDWLRQ$GYDQW&RQWUROOHU6HULHV5HIHUHQFH0DQXDO
&KDSWHU $SSOLFDWLRQ%XLOGLQJ
3-26
Enter one or more statements into an existing PC program after the specified item
designation (item_des).
Enter one or more statements into an existing PC program at the end of the specified item
designation. To do this, use ;END in the command line.
$03/&RQILJXUDWLRQ$GYDQW&RQWUROOHU6HULHV5HIHUHQFH0DQXDO
6HFWLRQ ,QVHUWLQJ3&(OHPHQWV
<<
IS PC 1.1
PC1 PCPGM
IS PC 1.1.3
PC1 PCPGM
PC1 PCPGM
PC1 PCPGM
.1 CONTRM
.1 CONTRM
.1 CONTRM
.1
.2
.3
.4
.5
.6
.7
.1
.2
.3
.4
.5
.6
.1
.2
.3
.7
.4
.5
.6
.2
.2
.2
.1
.2
.3
.4
a) Existing PC
program structure
.1
.2
.3
.4
b) Addition to
PC program
IS PC 1.1; END
.1 CONTRM
.1
.2
.3
.4
.5
.6
.7
.2
.1
.2
.3
.4
c) Addition to
PC program
.1
.2
.3
.4
d) Addition to
PC program
3-27
$03/&RQILJXUDWLRQ$GYDQW&RQWUROOHU6HULHV5HIHUHQFH0DQXDO
&KDSWHU $SSOLFDWLRQ%XLOGLQJ
The following examples (5) show different ways to work with IS.
Example 1:
#,6 3&
Available space in area PC: 489 kbyte DB connection: 100%
Local data: 100%
PC1? 3&3*0
PC1.1? &21750
A new PC program is generated. The PC element is specified by its name and the call
parameters.
Example 2:
#,63&
Available space in area PC: 489 kbyte DB connection: 100%
Local data: 100%
PC1? 3&3*0
PC1.1? &21750
PC1.1.1?
PC1.1.5?
This example shows that you can choose an alternative item designation (PC1.1.5) instead of the
next free item designation proposed by the system (must be on the same level).
Example 3:
#,63&
Available space in area PC: 489 kbyte DB connection: 100%
Local data: 100%
PC1? 3&3*0
PC1.1? &21750
PC1.1.1? <Enter!
PC1.1.2? <Enter!
PC1.1.3? <Enter!
PC1.1.4? <Enter!
PC1.1.5?
You can move to the required item designation (within the proposed level) by pressing the Enter
key.
Example 4:
PC1.1.4? $1'
PC1.1.5?
PC1.2?
Use the subcommand << to move up to a higher PC program level.
Example 5:
PC1.1.4? $1'
PC1.1.5? 3+
PC1.1.6?
3-28
$03/&RQILJXUDWLRQ$GYDQW&RQWUROOHU6HULHV5HIHUHQFH0DQXDO
6HFWLRQ ,QVHUWLQJ3&(OHPHQWV
PC1 PCPGM
.1 CONTRM(250,1)
.1 AND(3)
.2 OR(2)
.3 ?
PC1.1 ?
PC1.1.1
PC1.1.2
PC1.1.3
CONTRM(250)
? AND(3)
? OR(2)
? !
>G
>NG
3-29
$03/&RQILJXUDWLRQ$GYDQW&RQWUROOHU6HULHV5HIHUHQFH0DQXDO
&KDSWHU $SSOLFDWLRQ%XLOGLQJ
A constant
An operational parameter.
If a variable name but no PC program number is given, the command assumes the last
PC program used.
3-30
$03/&RQILJXUDWLRQ$GYDQW&RQWUROOHU6HULHV5HIHUHQFH0DQXDO
6HFWLRQ &RQQHFWLQJ3&(OHPHQWV
The source is a PC element output, then the name and the unit are retained
The source is a constant or operational parameter, then it ceases to exist, along with its
name and unit, when the last user is disconnected
The source is a point in the data base, then the data base remains unchanged, but the PC
variable reflecting the value of the data base point ceases to exist; the local name and
unit also disappear.
Example:
#&3&
#&3&
#&3&)
#&$SSURYHG
#&3&$SSURYHG
The connect command is used to make connection, but can also be used when you want to
assign name and/or unit to a PC variable, constant or operational parameter. An unconnected
input cannot be assigned a name or unit. It is not possible to modify a name or unit in the data
base with this command.
>
Processes the next terminal and the dialog continues after you press
Enter.
<
Processes the previous terminal and the dialog continues after you
press Enter.
>>
Processes the first terminal of the next PC element after you press
Enter.
<<
Processes the first terminal of the previous PC element after you press
Enter.
Processes the same terminal after you press Enter. The cursor does not
move.
3-31
$03/&RQILJXUDWLRQ$GYDQW&RQWUROOHU6HULHV5HIHUHQFH0DQXDO
&KDSWHU $SSOLFDWLRQ%XLOGLQJ
When you order connection at the proposed terminal, the dialog automatically continues in the
specified direction (>, <) after you press Enter.
The subcommands can be specified as separate responses in the dialog, or at the end, as in the
following examples:
:5 (separate response)
:5 PC1.1.5:1 (subcommand at end)
PC1.1.1
PC1.1:5
D=0
>?
1
2
3
CONNECTIONS MODIFIED
:2
IB ?
:2 d=0
:3
IB ?
:3
&
20
<0>-
>NG
3-32
A constant
An operational parameter
$03/&RQILJXUDWLRQ$GYDQW&RQWUROOHU6HULHV5HIHUHQFH0DQXDO
6HFWLRQ &RQQHFWLQJ3&(OHPHQWV
An output that is to be connected to an input can be identified by its variable name or its
terminal identity. For example, the output of an AND-gate can be identified either as
PC1.11.4:20 or by a variable name assigned by the user, e.g., MOTOR_1.
Connect a PC element terminal to a DB element terminal by specifying the identity of the DB
element (DB item designation) or the user-defined name, followed by a colon (:) and the name
of the required terminal. If you want to connect the PC element to the VALUE terminal of the
data base element, the terminal name and the colon can be omitted. The engineering station then
uses the VALUE terminal. Enter first DB= or just = followed by DOOR_CLOSED or
DI1.3, for example (see Section 2.2.2, Identifying Data Base Elements).
Values are assigned to terminals as follows:
Table 3-6. PC Element Inputs
Description
Value
Operational parameters
D=value
MD=value
Constants
CD=value
MCD=value
Boolean constants
0 or 1
Operational parameters and constants at inputs can be negated (inverted) with the minus
sign (-). The negation is specified at a PC element input. Outputs cannot be negated.
For operational parameters and constants that have not been named, it is possible to achieve
multiple use of the same operational parameter/constant. To do this, you specify the identity of
an input in the same PC program that is already connected to the relevant operational
parameter/constant.
An input or data base identity that is to be connected to an output is identified in the same way
as an output or data base identity upon connection of inputs (see Section 3.5.4.3, Connecting PC
Element Inputs), except that inputs cannot be identified with variable names.
Negation is specified after the identity of the connected input, since negation is always linked to
an input.
3-33
$03/&RQILJXUDWLRQ$GYDQW&RQWUROOHU6HULHV5HIHUHQFH0DQXDO
&KDSWHU $SSOLFDWLRQ%XLOGLQJ
An output can be connected to several terminals. These can be entered at the same time,
separated by commas and with data base identities at the end of the enumeration, if applicable.
Example:
3&3&'%
An output can also be connected to several terminals, one by one, using the subcommand =
(see Section 3.5.4.1, Dialog Handling).
Example:
#&3&
Available space in area PC: 489 kbyte DB connection: 99%
Local data: 99%
PC1.1.2
:1 I IB
PC1.1.1:20
:1
:2 TD IT
D=30
:2 !6
NAME:= 7,0(
UNIT:=
Example:
:2 !6
NAME:= TIME = .
UNIT:=
KG = .
The following rules apply for names and units:
3-34
Names must not be equal to a PC program item designation, for example PC2.
$03/&RQILJXUDWLRQ$GYDQW&RQWUROOHU6HULHV5HIHUHQFH0DQXDO
6HFWLRQ &RQQHFWLQJ3&(OHPHQWV
Printed Character
Remark
Space
Exclamation mark
"
Hash mark
Dollar
Ampersand
&
Opening parenthesis
Closing parenthesis
Asterisk
Plus sign
Comma
Hyphen
Dot
Slash
0 ... 9
Colon
Semicolon
Equal sign
Question mark
At sign
A ... Z
A ... Z
USA (1)
Back slash
USA (1)
USA (1)
Underscore
a ... z
a ... z
3-35
$03/&RQILJXUDWLRQ$GYDQW&RQWUROOHU6HULHV5HIHUHQFH0DQXDO
&KDSWHU $SSOLFDWLRQ%XLOGLQJ
Printed Character
Remark
Left brace
USA (1)
Vertical bar
USA (1)
Right brace
USA (1)
Tilde
Adieresis
Odieresis
Udieresis
Aring
SWE (1)
adieresis
odieresis
udieresis
aring
SWE (1)
germandbls
GER (1)
(1) Allowed only, if the specified character set is selected for the project in the Application
Builder (USA=US english, GER=german, or SWE=swedish).
3-36
If the source is a PC element output, then the output retains the name and the unit.
If the source is an operational parameter or a constant, then it ceases to exist when the last
user is removed. The name and the unit disappear.
If the source is a terminal in the data base, then the data base itself remains unchanged, but
the PC variable that reflects the value at the terminal in the data base ceases to exist, and
the local name disappears as well.
$03/&RQILJXUDWLRQ$GYDQW&RQWUROOHU6HULHV5HIHUHQFH0DQXDO
6HFWLRQ &RQQHFWLQJ3&(OHPHQWV
>LM
Item Designation
Terminal Number
#&3&
Available space in area PC: 489 kbyte DB connection: 99%
Local data: 99%
Element Name
PC1.1.2
TON
:1
I
IB
PC1.1.1:20
1
:1
:2
TD IT
?
:2
'
PC Diagram Page
:5
0
OB
where connected
Data Type
Terminal can be found
:5
PC1.1.1:1
:6
TE OT
Connected Terminal
:6
Terminal Name
3-37
$03/&RQILJXUDWLRQ$GYDQW&RQWUROOHU6HULHV5HIHUHQFH0DQXDO
&KDSWHU $SSOLFDWLRQ%XLOGLQJ
Single PC elements.
All PC elements from a given item designation to another given item designation inclusive.
The first and last item designation must be on the same level in the PC program structure.
Example:
3-38
$03/&RQILJXUDWLRQ$GYDQW&RQWUROOHU6HULHV5HIHUHQFH0DQXDO
6HFWLRQ /LVWLQJ3&3URJUDPV
PC20
.1
.1
.2
.2
.1
.1
.2
.3
.2
.3
A single statement
Syntax:
/6 item_des [>item_des]
/6 item_des [;number_of_elements]
3-39
$03/&RQILJXUDWLRQ$GYDQW&RQWUROOHU6HULHV5HIHUHQFH0DQXDO
&KDSWHU $SSOLFDWLRQ%XLOGLQJ
Examples
Example 1:
List statements PC1.1 to PC1.1.6:
#/63&!3&
Example 2:
List four statements starting with PC1.1.1:
#/63&
1
17
#LS PC4.1.1;5
PCD-PAGE :
PC4.1.1
:1
:2
:20
16
MUL (R,2)
IR
IR
OR
=AI1.2
D=1.040
=AI1.2 G
liter
=AO1.2
1
:1
:10
:11
:12
:20
:21
COMP-R (2,2)
I
IR
HHYS
IR
H1
IR
H2
IR
I<H1
OB
I>=H1
OB
:22
I<=H
OB
:30
:31
:32
:40
:41
:42
LHYS
L1
L2
I>L1
I<=L1
I<=L2
IR
IR
IR
OB
OB
OB
PC4.1.2
15
14
13
PC4.1.1:20
D=100.000
H_LIM_1
H_LIM_
liter
liter
liter
liter
1
D=700.000
D=900.000
ABOVE_H_LIM_1
=DO1.5
ABOVE_H_LIM_2
=DO1.5 P
2
D=100.000
D=100.000
D=200.000
=AO1.2 P
PC4.1.2:I
8
9
10
PC4.1.3:2
N
liter
liter
liter
=DO1.4
12
11
3-40
$03/&RQILJXUDWLRQ$GYDQW&RQWUROOHU6HULHV5HIHUHQFH0DQXDO
6HFWLRQ 'LVDEOLQJWKH%8,/'0RGH',%0
3-41
$03/&RQILJXUDWLRQ$GYDQW&RQWUROOHU6HULHV5HIHUHQFH0DQXDO
&KDSWHU $SSOLFDWLRQ%XLOGLQJ
3-42
$03/&RQILJXUDWLRQ$GYDQW&RQWUROOHU6HULHV5HIHUHQFH0DQXDO
6HFWLRQ 0RGLI\3HUPLVVLRQ
When modify permission is enabled, tests and modifications of all kinds are permitted.
When modify permission is disabled, all PC commands that in any way change the state of
the system, except modification of the values of operational parameters, are forbidden (and
prevented).
One way of utilizing the status of the modify permission is to use it to indicate the testing status
of the relevant execution unit. You can use it during commissioning to flag the parts of the PC
program that have been fully tested.
Those commands that are forbidden when modify permission is disabled are ineffective on
execution units with modify permission disabled. In particular, commands in which the scope is
specified with an interval (from one designation to another, inclusive) are executed only if all
execution units in the range have modify permission enabled.
The modify permission is enabled in the initial mode, i.e., when an execution unit has just been
entered.
The state of the modify permission can be read with the command LMP (see Section 4.1.3,
Listing the Modify Permission). On each execution unit, there is an output MODP. A 1 at this
output corresponds to modify permission enabled.
4-1
$03/&RQILJXUDWLRQ$GYDQW&RQWUROOHU6HULHV5HIHUHQFH0DQXDO
&KDSWHU &RPPLVVLRQLQJDQG7HVWLQJ
4-2
$03/&RQILJXUDWLRQ$GYDQW&RQWUROOHU6HULHV5HIHUHQFH0DQXDO
6HFWLRQ 3&3URJUDP7HVWV
A PC variable
4-3
$03/&RQILJXUDWLRQ$GYDQW&RQWUROOHU6HULHV5HIHUHQFH0DQXDO
&KDSWHU &RPPLVVLRQLQJDQG7HVWLQJ
Command given
with PC element item
designation and
terminal number
Details of
operational
parameter or
constant
Command
given with
variable name
Details of:
PC program
Variable name
Data type
#LV PC1.1.1:1
PC1,START
MD=1
1
1
2
2
2
PC1.1.1:1
PC1.1.1:2
PC1.1.2:2
PC1.1.3:R
PC1.1.3:L
#LV START
PC1,START
MD=1
1
1
2
2
2
PC1.1.1:1
PC1.1.1:2
PC1.1.2:2
PC1.1.3:R
PC1.1.3:L
1
2
PC1.1.1:20 S
PC1.1.2:1
PC4:ON
PC6.7.9:R
PC7.2.1.3:2
PC4:ON
PC1
PC6
PC7
PC1
PC2
Command
given with data
base identity, the
DB terminal
VALUE
#LV =VENT OPEN
is used
=VENT OPEN
by default
=DI5.3
=8.131:12
Information
on source
#LV =DO1.16:5
=AdjustControl
=DO1.16
=9.16:5
B
4-4
$03/&RQILJXUDWLRQ$GYDQW&RQWUROOHU6HULHV5HIHUHQFH0DQXDO
6HFWLRQ %ORFNLQJWKH3&3URJUDP([HFXWLRQ
One execution unit (PCPGM, MASTER, CONTRM, or SEQ) or all execution units in one
or more PC programs
Output to the data base (but not execution) from the specified execution unit or PC
program(s)
Blocking of output data to the data base from all execution units in several PC programs.
BLRS
The BLRS (BLock and ReSet) command works in the same way as BL, but resets the execution
units (resets the outputs to the data base) after they have been run through for a last time.
Examples:
#%/56'%3&
blocks and resets the outputs of PC1.2.3
#%/563&
blocks and resets the outputs of all execution units of PC1.
4-5
$03/&RQILJXUDWLRQ$GYDQW&RQWUROOHU6HULHV5HIHUHQFH0DQXDO
&KDSWHU &RPPLVVLRQLQJDQG7HVWLQJ
A PC program
An execution unit
Several PC programs
BLOCKED mode
The working mode of the Advant Controller 400 Series (CONFIGURATION mode or
OPERATION mode) is also listed.
4-6
$03/&RQILJXUDWLRQ$GYDQW&RQWUROOHU6HULHV5HIHUHQFH0DQXDO
6HFWLRQ 5HDGLQJDQG0RGLI\LQJD9DULDEOH9DOXH
1
0
Call Parameters:
1
2
PC2
PCPCM(1.1)
ON
RUN
R
1
2
3
.1
CONTRM(1.1.)
ON
RUN
SINGLE
MODP
R
Position Parameter
1
0
0
PC Variable
5
6
.1
Function Parameter
F=1
F=1
F=1
D=2
CD=11
?
?
F1
F2
F3
1
2
3
4
PRINT(1,1,72)
BUSY
FIRST
REPNO
LAST
ERR
FF
NODE
NETW
PRID
ACT
D=FAULT REPORT
11
TEXT1
Operational
Parameter
Constant
5
6
7
1 & 20
?2
Operational
parameters
FDQEHUHDG
\HV
FDQEHFKDQJHG
\HV
from
element
output
from
element
input
connected
to data
base
\HV
\HV
QR
QR
'HVLJQ3DUDPHWHUV
Constants
Call parameters
Function
parameters
\HV
\HV
\HV
QR
F\FOHWLPHSDUDPHWHUV for
PCPGM, CONTRM, MASTER
and SEQ under the same PC
interpreter
QR
SRVLWLRQSDUDPHWHUV for
PCPGM, CONTRM, MASTER
and SEQ
4-7
$03/&RQILJXUDWLRQ$GYDQW&RQWUROOHU6HULHV5HIHUHQFH0DQXDO
&KDSWHU &RPPLVVLRQLQJDQG7HVWLQJ
All these types of values can be read while the PC program is being executed, but only certain
types can be modified.
The only call parameters that can be modified are position parameters (place in cycle timetable)
and cycle time parameters for PCPGM, CONTRM, MASTER and SEQ. For cycle time
parameters, only cycle times under the same priority (same PC interpreter) are accessible.
MV
Use the MV (Modify Variable) command to modify or read the value of a variable.
Syntax:
09 [pc_pgm,] variable name
09 item_des : terminal
09 item_des : call parameter
This command permits the reading and in some cases, changing, of the value of
A PC variable
An operational parameter
A constant
A call parameter
A function parameter.
When the system returns the character = after a displayed value, this means that the value can
be modified. Call and function parameters cannot be referred to by name. They must be
specified by their number preceded by a C or F, respectively.
Example:
#093&&
The system displays the current value and the unit (if any). You can leave the value as it is or
specify a new value.
>,<
The angle brackets > and < operate as they do in other commands, but the
meaning of next or preceding depends on the type of terminal or design
parameter you are dealing with.
Examples:
#09)8(/
PC1.1.2:20=1 =!
PC1.1.2:21=0 =
When you use the name of a variable, the next terminal of the PC element that is the source of
the variable is referenced (PC1.1.2:21).
#093&
PC1.1.3:1 =!
PC1.1.3:3=1 =
4-8
$03/&RQILJXUDWLRQ$GYDQW&RQWUROOHU6HULHV5HIHUHQFH0DQXDO
6HFWLRQ 0RGLI\LQJWKH1DPHRID6WDWHPHQWRU9DULDEOH
If you use the next command > on the destination PC element PC1.1,3,1, it ignores the
existence of :2 and jumps directly to :3, which in turn can be modified.
PC1.1
.3
.2
.19
.20
.21
FUEL
.1
.2
.3
When you use the subcommand < at a terminal identity and the value of the
first terminal is displayed, the last function parameter in the PC element is
displayed after you press Enter.
Example:
#093&
PC1.1.1:1=1
PC1.1.1:F3=1
Correspondingly, when the value of the first function parameter is displayed, the value of the
last call parameter is displayed after you press Enter.
Example:
#093&)
PC1.1.1:F1=0
PC1.1.1:C3=4
>
The opposite applies when you use the > subcommand (right angle bracket).
If the PC element has no function parameters, the system advances from
displaying the value of the last call parameter to the value of the first terminal
when you use the > subcommand. If you use the < subcommand, the
system jumps from the first terminal value to the last call parameter value.
4-9
$03/&RQILJXUDWLRQ$GYDQW&RQWUROOHU6HULHV5HIHUHQFH0DQXDO
&KDSWHU &RPPLVVLRQLQJDQG7HVWLQJ
The reason why C and CU have also been given this facility is that it may be useful to enter
names at the same time as connection work is being carried out. Compared with C and CU,
MNV has an additional function, which is used to rectify any mismatch between the User Disk
Application Segments and their backup on the Advant Controller 400 Series (see Section
7.2.2.4, User Disk Application Segments Mismatch). This function is described at the end of
this section.
MNV
Use the MNV (Modify Name of Variable) command to read or modify an instance name or to
read, modify, enter and delete variable names.
Syntax for defining instance names:
019 item_des
019 [pc_pgm,] instance_name
Instance names are used to assign names to PC statements.
PC element outputs
Inputs coupled to the data base (not the structure PC element inputs).
Subcommands:
4-10
<,>
The angle brackets < and > work in the same way as in the MV (Modify
Value) command.
$03/&RQILJXUDWLRQ$GYDQW&RQWUROOHU6HULHV5HIHUHQFH0DQXDO
6HFWLRQ 0RGLI\LQJWKH1DPHRID6WDWHPHQWRU9DULDEOH
Examples:
#0193&
/=StartOfSecondControlLoop
gices PC1.1.1 the instance name StartOfSecondControlLoop
#0193&
PC1.1.1:2 = $
gives PC1.1.1:2 the variable name A5
#0193&
PC1.1.1:2/A5=
reads the variable name of PC1.1.1:2
#0193&
PC1.1.1:2/A5= $
reads and modifies PC1.1.1:2
#0193&
PC1.1.1:2/A7=
reads and deletes the variable.
The MNV Command and the User Disk Application Segments:
In addition to inserting and removing variable names in standard cases, this command has an
additional function. Due to handling errors or malfunctions, a mismatch can, in rare cases, occur
between the symbol table stored in the User Disk Application Segments and the flag in the
system that indicates whether a variable has a name.
You can correct three different types of mismatches with the MNV command.
1.
2.
3.
In the system, there is an indication that the name exists, but it is absent from the symbol
table. If MNV is performed on such a variable, an error text appears first, stating that there
is a mismatch. After this, you can choose one of the following options:
a.
Enter a period (.) to delete the flag (which indicates a named variable).
b.
There is a name in the symbol table, but the system has no flag to indicate that the
corresponding variable is named. You can choose one of the following options:
a.
Enter a period (.). The name is deleted from the symbol table.
b.
Enter a variable name (a new name or the old one). The name is stored in the symbol
table and at the same time a flag is set in the system to indicate that the variable is
named.
In the symbol table there is a name, but the corresponding variable does not exist in the
system. After the explanatory error text, enter a period (.). The name is deleted from the
symbol table.
4-11
$03/&RQILJXUDWLRQ$GYDQW&RQWUROOHU6HULHV5HIHUHQFH0DQXDO
&KDSWHU &RPPLVVLRQLQJDQG7HVWLQJ
4-12
HELP or ?
IV
GVD
MV
DV
(Delete Value) deletes the current values of all or selected terminals on the
display.
syntax: '9 [variable_identity]
GS
(Get Source) displays the source terminals for the selected input terminal.
syntax: *6 terminal
DIAG
(DIAGnose) traces back the source and diagnoses the cause of a particular
output terminal valuePC elements displayed or those which have more than
one input (they can cause the status of the specified connection) and those
which are connected to the data base.
syntax: ',$* terminal
GEPCD
$03/&RQILJXUDWLRQ$GYDQW&RQWUROOHU6HULHV5HIHUHQFH0DQXDO
6HFWLRQ 'LVSOD\LQJD3&(OHPHQWZLWK9DULDEOH9DOXHV
MWx
RMD
(ReMove Display) terminates the GEPCD command and removes the display
from the screen. If you start GEPCD again, the system starts from the PC
element that was displayed before RMD. If you have terminated the GEPCD
command with the subcommand !, the PC element on the screen can be
removed with the RMD (ReMove Display) command.
Terminates the command and leaves the display on the screen, but the variable
values are not updated.
END
Terminates the GEPCD command and removes the display from the screen.
Example:
#*(3&'3&
#*(3&''3&
PC1.3.3
2.307
0.000
3.434
1.762
0.400
1
0.000
1000.000
-1000.000
1
2
3
4
5
6
7
8
9
RAMP
I
O
STEP+
O=HL
STEPO=LL
SLOPE+ ERR
SLOPEBAL
BALREF
OHL
OLL
10
11
12
13
0.000
0.000
0.000
0.000
4-13
$03/&RQILJXUDWLRQ$GYDQW&RQWUROOHU6HULHV5HIHUHQFH0DQXDO
&KDSWHU &RPPLVVLRQLQJDQG7HVWLQJ
Example:
#*(3&'3&
? *6
PC1.1.5
0
1
1
2
&
20
PC1.1.4
1
2
0
1
20
1 1
1
2
.1
1
20
0 1
1 2
.3
&
20
1
0 1
2
.2
&
20
0
1 1
2
.4
1
.5
&
20 0
20
4-14
$03/&RQILJXUDWLRQ$GYDQW&RQWUROOHU6HULHV5HIHUHQFH0DQXDO
6HFWLRQ 'LVSOD\LQJWKH9DULDEOH9DOXHVLQD7DEOH
Call the PC element PC1.1.5 and use the DIAG subcommand as follows:
"',$*
PC1.1.5
0
1
1
2
&
20
1
2
20
4-15
$03/&RQILJXUDWLRQ$GYDQW&RQWUROOHU6HULHV5HIHUHQFH0DQXDO
&KDSWHU &RPPLVVLRQLQJDQG7HVWLQJ
Subcommands:
GVD
Outputs a copy of the current display on the printer. This subcommand is only
available when using the table display.
HELP or ?
MV
IV
(Insert Value) inserts the current values of a selected terminal on the display.
syntax: ,9 variable_identity
syntax: ,9 ['%] =data_base_identity
DV
(Delete Value) deletes the current values of all or selected terminals on the
display.
syntax: '9 [variable_identity]
syntax: '9 ['%] =data_base_identity
RMD
(ReMove Display) terminates the GETAB command and removes the display
from the screen.
SAVE
Save the contents of the current table in a file. This subcommand is only
available when using the graphical display mode.
Terminates the command and leaves the display on the screen, no updates of
the variables take place.
END
Terminates the GETAB command and removes the display from the screen.
=AI1.4
=AI1.5
=AO1.3
=DO1.1
PC4.1.3:5
=AI1.1
PC4.1.2:21
=AO1.1
R
R
R
R
R
R
R
R
85.600
32.800
0.000
0
1
0.000
1
0.000
4-16
$03/&RQILJXUDWLRQ$GYDQW&RQWUROOHU6HULHV5HIHUHQFH0DQXDO
6HFWLRQ 6\VWHP/RDG
After you give the GETAB command, a dialog begins. The dialog contains a number of
subcommands that make it possible to
Both values of variables in PC (also in several PC programs simultaneously) and values in the
data base can be included in the table. One variable at a time is specified, and each newly
specified variable is added to the old table. A maximum of one screen page of variables can fit
into this table. For every additional variable specified, the oldest variable is deleted from the
table.
The values can be displayed either with or without periodic updating. In the initial state, after
each additional variable is added to the table, display is static.
When you give the command, the most recent selection is shown again. Upon additions to the
table, the command also starts from the most recent table. The table is stored in the symbol table
(User Disk Application Segments) when the command is running. At the same time, this means
that the table can be saved between two activities.
The table that is generated consists of data base identity or variable identity and data type, value
and unit.
4-17
$03/&RQILJXUDWLRQ$GYDQW&RQWUROOHU6HULHV5HIHUHQFH0DQXDO
&KDSWHU &RPPLVVLRQLQJDQG7HVWLQJ
After this, you can choose from three different ways of displaying the load:
<Ctrl-Break>
If, for example, updating every 10 seconds is requested, a value that is the mean value of the
load over the last 10 seconds is displayed at each updating.
The readings obtained must be correctly interpreted. It is important that you recognize that it is
normal for the load of the Advant Controller 400 Series to vary greatly with time and as a
function of the situation. The shorter the period for which the load is observed, the more it will
appear to vary. Conversely, mean-value calculation over a longer time conceals load variation
details and appears to smooth out temporary variations.
What is meant by short and long in this context, and how high can a system load be
and still be acceptable for a short time? No detailed, general answer can be given to this,
but it can be said broadly that upon certain events in the process, or when an operator at an
Advant Station 500 Series Operator Station communicates with the Advant Controller 400
Series, the load may go up to 100 percent for several seconds sometimes for more than
10 seconds without the Advant Controller 400 Series being overloaded. The long-term load,
however, should be at a reasonable distance from 100 percent.
4-18
1.
Connect the engineering station directly to the relevant Advant Controller 400 Series.
2.
Start the Advant Controller 400 Series off-line (start mode selector set to OFFLINE).
3.
Start the engineering station via the start-up menu Advant Controller 400 overload
blocking.
4.
Start the BL command without parameters. All PC programs are now blocked.
5.
Warm start Advant Controller 400 Series (start mode selector set to AUTO).
6.
Start the engineering station in the normal way and reduce the system load, e.g., by
prolonging cycle times.
$03/&RQILJXUDWLRQ$GYDQW&RQWUROOHU6HULHV5HIHUHQFH0DQXDO
6HFWLRQ 6ZLWFKLQJUXQQLQJ3&3URJUDPV
2.
3.
Set the "Inhibit" flag for the modified program which disables resetting the PC element
output terminals
(SEIF PCnn, for example set the flag for PC99: SEIF PC99)
4.
5.
Start the modified program with all DB outputs blocked (BL DB,PCnn,
for example BL DB,PC99).
6.
7.
DANGER
The modified version of the new application program is only blocked for
database output. PC elements writing directly to I/O devices cannot be
prevented from writing using the command "BL DB,PCnn.".
Note that the CPU load increases during the period where the two programs
are running in parallel. If the controller get into an overload situation, the
process be disturbed and the controller may stall.
4-19
$03/&RQILJXUDWLRQ$GYDQW&RQWUROOHU6HULHV5HIHUHQFH0DQXDO
&KDSWHU &RPPLVVLRQLQJDQG7HVWLQJ
4-20
$03/&RQILJXUDWLRQ$GYDQW&RQWUROOHU6HULHV5HIHUHQFH0DQXDO
6HFWLRQ 0RGLI\LQJ3&3URJUDPV2QOLQH
DANGER
Danger of personal risk! Risk of malfunctions!
Changing an executing PC program or the data base may affect the process as soon as the
change is carried out. Do not make changes in PC programs that are executing or in the data
base unless you are thoroughly familiar with the procedure for making PC program
modifications on-line and know how the current PC program and process will be affected by the
change.
2.
Modification of a blocked control module while the rest of the PC program is executing.
3.
The procedure to modify on the first complexity level is described in Section 3.5, Entering and
Editing PC Programs. This chapter describes how to change the PC program on the second and
third levels.
Changes in a PC program (EXECUTION mode) require the modify permission, i.e., MODP = 1
of the execution-controlling PC elements in that PC program.
NOTE
When the Advant Controller 400 Series is in CONFIGURATION mode, the PC
program can only be modified when the PC program is in BUILD mode.
5-1
$03/&RQILJXUDWLRQ$GYDQW&RQWUROOHU6HULHV5HIHUHQFH0DQXDO
&KDSWHU &KDQJLQJDQ$SSOLFDWLRQ3URJUDP2QOLQH
Example:
#,63&
Available space in area PC: 489 kbyte DB connection: 100%
Local data: 100%
PC1.1.1 ? 7(;75
TEXT (R,1,1,6)
:F1 FORM1 F1 F=?
:F1
:F2 FORM2 F1 F=?
:F2
PC1.1.2. ?
#
Execution-controlling PC elements (for example, CONTRM, MASTER or SEQ) are inserted in
the blocked state and, as a result, PC elements inserted under these are not executed before
CONTRM, etc., are deblocked (command DBL). Other PC elements inserted are influenced by
their execution-controlling PC element: if this is not blocked, execution of the inserted PC
elements starts directly.
Remember that the position of the PC element in the PC program structure influences the result
of the PC program, i.e., for input data to a PC element to be fresh, the PC element that calculates
these input data must be positioned before the PC element using the data.
When outputs, which are tied to the data base, are disconnected, the corresponding data
base values stay unaffected, i.e., they are not changed until some other PC elements change
them. (Some values in the data base are also cleared when the Advant Controller 400
Series is switched into CONFIGURATION mode.)
Upon disconnection of outputs that are connected to the inputs of other PC elements,
the inputs of these PC elements are reset.
When inputs are disconnected, the values of these inputs are reset.
When PC elements with function parameters are to be connected, a dialog to define these values
is performed.
5-2
$03/&RQILJXUDWLRQ$GYDQW&RQWUROOHU6HULHV5HIHUHQFH0DQXDO
6HFWLRQ 'HOHWLQJ3&(OHPHQWV
Example:
Example of dialog for modification of function parameters in TEXT PC element
#&3&
WARNING: PCPGM is not in BUILD mode: CONTINUE? (Y/N)<
Available space in area PC: 98 kbyte, DB connection: 99%,
Local data: 99%
PC1.1.2
TEXT (B,2,2,2)
:F1 FORM1
FI
F=6
MODIFICATION STARTS RESET EXECUTION (WARM START) OF PC ELEMENT!
:F1
OK TO RESET EXECUTE PC ELEMENT (WARM START), Y/N? <
:F2 FORM2
FI
F=6
MODIFICATION STARTS RESET EXECUTION (WARM START) OF PC ELEMENT!
:F2
OK TO RESET EXECUTE PC ELEMENT (WARM START), Y/N? <
:1
EN
IB
D=0
:1
#
You cannot delete an entire PC program. (For example you cannot give the command DS
PC2.)
When PC elements are removed, the following happens to the terminal of the outputs (the data
base or another PC element):
Removal of PC elements, which are tied to the data base, does not affect the data base
values concerned, i.e., the values are not changed until some PC elements change them.
(Some values in the data base are also cleared when the Advant Controller 400 Series is
put into CONFIGURATION mode.)
The input of a PC element that is using a PC element which is being deleted is reset and
can be reconnected to another PC element or to the data base. The inputs of these PC
elements can be found with CU for the PC program in question.
5-3
$03/&RQILJXUDWLRQ$GYDQW&RQWUROOHU6HULHV5HIHUHQFH0DQXDO
&KDSWHU &KDQJLQJDQ$SSOLFDWLRQ3URJUDP2QOLQH
2.
Modification of a blocked control module while the rest of the PC program is executing.
3.
The first two levels are easy to handle, but the third level is more advanced and requires a deep
knowledge of the process.
For the second and third levels, remember that the commands themselves and the modifications
to the PC program affect the load on the CPU. Where the CPU is highly loaded, therefore, PC
programming on-line should be avoided.
Block the control module with BL DB, PC1.1 (BLock Data Base).
2.
3.
4.
Check that the modification is as intended, for example, by using the GEPCD (GEnerate
PC Diagram) command (Section 4.2.7, Displaying a PC Element with Variable Values).
5.
Deblock the control module with the DBL (DeBLock) command (see Section 4.2.3,
Deblocking the PC Program Execution).
You can also create a blocked copy of the control module on which to make the modifications.
It is important to realize that the copy will cold start when it is deblocked. This can cause bumps
in the output signals.
5-4
$03/&RQILJXUDWLRQ$GYDQW&RQWUROOHU6HULHV5HIHUHQFH0DQXDO
6HFWLRQ ,PSRUWDQW1RWHVIRU2QOLQH&KDQJLQJ
When a new PC element is being inserted, all inputs of the PC element must always be
connected before the outputs of the PC elements are connected.
To achieve bumpless transmission of the signal upon changing over, change-overs must be
made in different ways depending on the switching situation (see Table 5-1).
Switching PC element SW-C gives bumpless transmission on change-over and ensures that
all users have the same input signal and that the new signal has been calculated at
connection.
Table 5-1. How to use the SW-C PC Element in various Switching Situations
6ZLWFKLQJ6LWXDWLRQ
0HWKRG
Use a SW-C switching element temporarily.
Insert the element in the PC program directly
after the element where the new signal has
been calculated; see example 1.
The source
Connection to Connection to The source
PC element:
one or more
PC elements PC elements
PC elements: are located in: are executed
under:
,03257$17
In Cases 1, 2 and 3, the switching must
begin at the input of the source PC element
without first disconnecting the old signal.
Case 1
One PC
element
Other
execution unit
Same
interpreter
Case 2
Several PC
elements
Same or other
execution unit
Same
interpreter
Case 3
One or more
PC elements
Other
execution unit
Other
interpreter
5-5
$03/&RQILJXUDWLRQ$GYDQW&RQWUROOHU6HULHV5HIHUHQFH0DQXDO
&KDSWHU &KDQJLQJDQ$SSOLFDWLRQ3URJUDP2QOLQH
First, connect the old and new output signals to the SW-C element. Select ACT so that the
old signal is switched to the output.
.1
1
2
&
20
DO1.1
.6
.5
1
2
3
&
20
SW-C
(B,1)
D=1 1 ACT
11
12
13
3.
&
20
.5
1
2
3
&
.6
20
SW-C
(B,1)
D=1 1 ACT
11
12
P
13
DO1.1
5-6
$03/&RQILJXUDWLRQ$GYDQW&RQWUROOHU6HULHV5HIHUHQFH0DQXDO
6HFWLRQ ,PSRUWDQW1RWHVIRU2QOLQH&KDQJLQJ
4.
Select ACT so that the new signal is connected to the data base.
5.
Connect the new signal directly to the data base (not via the SW-C element).
.1
1
2
&
20
.5
1
2
3
&
20
=DO1.1
=DO1.1
.6
SW-C
(B,1)
D=0 1 ACT
11
12
13
5-7
$03/&RQILJXUDWLRQ$GYDQW&RQWUROOHU6HULHV5HIHUHQFH0DQXDO
&KDSWHU &KDQJLQJDQ$SSOLFDWLRQ3URJUDP2QOLQH
First, connect the old and new output signals to the SW-C element. Select ACT so that the
old signal is switched to the output.
.1
1
2
&
20
.5
1
2
3
&
.6
SW-C
(B,1)
ACT
20
D=1
1
11
12
13
.1
.3
1
2
20
Connect the input of the using PC elements, one at a time, to the output of the SW-C
elements.
3.
When all signals have been switched, select ACT so that the new signal 5:20 is connected
to the output.
.1
1
2
&
20
.5
1
2
3
&
20
D=0
.6
1
11
12
.1
SW-C
(B,1)
ACT
1
13
.3
1
2
20
5-8
$03/&RQILJXUDWLRQ$GYDQW&RQWUROOHU6HULHV5HIHUHQFH0DQXDO
6HFWLRQ ,PSRUWDQW1RWHVIRU2QOLQH&KDQJLQJ
4.
Connect all using PC element inputs, one at a time, directly to the new signal.
.1
1
2
&
20
.6
.5
1
2
3
&
SW-C
(B,1)
ACT
20
D=0 1
11
12
13
.1
1
1
.3
1
2
20
5-9
$03/&RQILJXUDWLRQ$GYDQW&RQWUROOHU6HULHV5HIHUHQFH0DQXDO
&KDSWHU &KDQJLQJDQ$SSOLFDWLRQ3URJUDP2QOLQH
2.
Connect the old and new output signals to the SW-C element. Select ACT so that the old
signal is connected to the output.
.1
1
2
3
1
0
0
CONTRM(20.2.0)
ON
RUN
MODP
SINGLE
R
5
6
D=1
1-PC1.2.1:20
1-PC1.2.2:20
.7
SW-C
(B,1)
ACT
1
11
12
13
Signal
Receiving
.1
1
.2
=DI1.10
1
2
20
EXECUTION ORDER: 7 1 2
.1
.2
1
0
0
1
2
3
CONTRM(2000.1.0)
RUN
ON
MODP
SINGLE
R
5
6
.1
=DI1.1
=DI1.2
G
G
1
2
&
20
P-1
20
P-1
.2
=DI1.3
1
2
3
&
5-10
$03/&RQILJXUDWLRQ$GYDQW&RQWUROOHU6HULHV5HIHUHQFH0DQXDO
6HFWLRQ ,PSRUWDQW1RWHVIRU2QOLQH&KDQJLQJ
3.
4.
When all signals have been reconnected and the input of the SW-C element for the new
signal has the correct value (check with GEPCD, for example) change ACT so that the
new signal is switched to the output.
.1
1
2
3
1
0
0
CONTRM(20.2.0)
ON
RUN
MODP
SINGLE
R
.7
SW-C
(B,1)
D=0 1 ACT
11
12
1-PC1.2.1:20
1-PC1.2.2:20
=DI1.10
5
6
.1
1
1
13
.2
1
2
20
EXECUTION ORDER: 7 1 2
.1
.2
1
0
0
1
2
3
CONTRM(2000.1.0)
RUN
ON
MODP
SINGLE
R
5
6
.1
=DI1.1
=DI1.2
G
G
1
2
&
20
P-1
20
P-1
.2
=DI1.3
=DI1.3
1
2
3
&
5-11
$03/&RQILJXUDWLRQ$GYDQW&RQWUROOHU6HULHV5HIHUHQFH0DQXDO
&KDSWHU &KDQJLQJDQ$SSOLFDWLRQ3URJUDP2QOLQH
5.
Connect the inputs of all using PC elements directly to the new signal.
6.
1
2
3
CONTRM(20.2.0)
ON
RUN
MODP
SINGLE
R
5
6
.7
D=1
1-PC1.2.1:20
1-PC1.2.2:20
SW-C
(B,1)
ACT
1
11
12
13
.1
1
.2
=DI1.10
1
2
20
EXECUTION ORDER: 7 1 2
.1
.2
1
0
0
1
2
3
CONTRM(2000.1.0)
RUN
ON
MODP
SINGLE
R
5
6
.1
=DI1.1
=DI1.2
G
G
1
2
&
20
P-1
20
P-1
.2
=DI1.3
1
2
3
&
5-12
Make sure that the condition for the new step to be run is not satisfied before the step is
inserted, connected and ready.
Prevent the previous step from being run, i.e., set COND=0 for the step and prevent any
jumps (call parameter C2 of the step PC element) to the step. Jumps can be avoided by
preventing the execution of the step from which the jump starts.
$03/&RQILJXUDWLRQ$GYDQW&RQWUROOHU6HULHV5HIHUHQFH0DQXDO
6HFWLRQ $GGLQJD6WHSLQD6HTXHQFH
Example:
You have a sequence containing three already existing steps, step 1, step 2 and step 3
(see Figure 5-10). Insert a new step 4 between step 2 and step 3.
.1
STEP(0,0,0,0,0,0,0,0)
F=0
F1
1
STEPNO
COND
RUN
.2
STEP(0,0,0,0,0,0,0,0)
F=0
F1
STEPNO
COND
RUN
.3
STEP(0,0,0,0,0,0,0,0)
F=0
F1
STEPNO
COND
RUN
1.
2.
Check that step 2 does not run (e.g., with the GEPCD command).
3.
4.
5.
Remove COND=0 of step 2 and reconnect the COND terminal as it was before.
6.
5-13
$03/&RQILJXUDWLRQ$GYDQW&RQWUROOHU6HULHV5HIHUHQFH0DQXDO
&KDSWHU &KDQJLQJDQ$SSOLFDWLRQ3URJUDP2QOLQH
.1
STEP(0,0,0,0,0,0,0,0)
F=0
F1
STEPNO
COND
RUN
.2
STEP(0,0,0,0,0,0,0,0)
F=0
F1
1
STEPNO
COND
RUN
.4
STEP(0,0,0,0,0,0,0,0)
F=0
F1
1
STEPNO
COND
RUN
.3
STEP(0,0,0,0,0,0,0,0)
F=0
F1
1
STEPNO
COND
RUN
5-14
1.
2.
3.
Connect the COND condition for step 3 to the COND input terminal of step 4.
4.
Connect the COND input terminal of step 3 to the RUN output terminal of step 4.
$03/&RQILJXUDWLRQ$GYDQW&RQWUROOHU6HULHV5HIHUHQFH0DQXDO
6HFWLRQ $GGLQJD6ODYH0RGXOH
If possible, set the ON input of the MASTER input to 0 to reduce the load. If this is not
possible, proceed directly to the next step.
2.
3.
4.
If possible, set the ON input of the MASTER input to 0 to reduce the load. If this is not
possible, proceed directly to step 2.
2.
3.
D=0
0
0
.6
CONTRM(40.4.0)
RUN
1 ON
SINGLE
2
MODP
3 R
5
6
1.
2.
5-15
$03/&RQILJXUDWLRQ$GYDQW&RQWUROOHU6HULHV5HIHUHQFH0DQXDO
&KDSWHU &KDQJLQJDQ$SSOLFDWLRQ3URJUDP2QOLQH
Since you can change the data base on-line, it is important that PC programs have access to the
data base for read and write operations. The accessibility of the data base parameters for read
and write operations is described in the Data Base Elements Advant Controller 400 Series
Reference Manual.
The possibilities for changing the data base on-line are wide ranging. Essentially, the only
limitation is that data base redimensioning cannot be done on-line. A more detailed description
of possible on-line changes follows.
Basic functions
Normally, you can change the parameters for the basic and limit value functions using the MDB
(Modify Data Base) command or by connection to a PC program.
The part containing the operator station parameters reflects the status of the module or the signal
as presented to the process operator. Consequently, these parameters should not be changed by
way of a PC program. However, NORM_TR, which controls the event handling of the signal, is
an exception.
5-16
$03/&RQILJXUDWLRQ$GYDQW&RQWUROOHU6HULHV5HIHUHQFH0DQXDO
6HFWLRQ &KDQJLQJ&RQWUROOHUVDORQJ$GYDQW)LHOGEXV
PC programs contain direct references to the data base. They are not automatically made
aware of such deletions.
The functions for the Advant Station 500 Series Operator Station of the Advant
Controller 400 Series (performed by the option module) create direct references to
terminals in the data base that are included on any display of any operator station in the
system. There is no automatic check of any on-line deletion from the data base.
Since neither the PC programs nor the Advant Station 500 Series Operator Station discover
deletions from the data base, both functions continue to address nonexisting DB elements.
If a new DB element is created, it may fall into the slot vacated by a deleted DB element.
This may lead to inadvertent reading from, or writing to, the new DB element.
When deleting I/O modules with I/O signals, it is recommended that you follow this procedure:
1.
Make sure the module and its signals are not used by any PC program or Advant
Station 500 Series Operator Station display. If it is, delete all remaining references to it.
You can use the LDBD/XREF command to identify any connection between the data base
and the PC programs.
2.
Delete the module and its signals using the command DDB (Delete Data Base).
5-17
$03/&RQILJXUDWLRQ$GYDQW&RQWUROOHU6HULHV5HIHUHQFH0DQXDO
&KDSWHU &KDQJLQJDQ$SSOLFDWLRQ3URJUDP2QOLQH
Delete boards using the DDB command. Make sure that the signals removed are not
referenced by any PC program or Advant Station 500 Series Operator Station (see
Section 5.2.2.4, Deleting I/O Modules and Signals).
5-18
$03/&RQILJXUDWLRQ$GYDQW&RQWUROOHU6HULHV5HIHUHQFH0DQXDO
6HFWLRQ &KDQJLQJRWKHU'DWD%DVH(OHPHQWV2QOLQH
DAT
New DAT DB elements require dimensioned space in the data base dimensioning.
Remove existing DAT DB elements using the DDB command. Make sure that the
elements removed are not referenced from any PC program or Advant Station 500 Series
Operator Station (see Section 5.2.2.4, Deleting I/O Modules and Signals). A DAT DB
element can be referenced by different sources or destinations.
PC programs
MasterView 320
EXCOM.
If these references are not deleted, you may encounter symptoms as described in Section
5.2.2.4, Deleting I/O Modules and Signals.
Misc. Boards
Changes to the data base for Misc. boards affect the system status displays for the node
concerned the next time they are shown by the Advant Station 500 Series Operator Station.
MasterView 320
The data base for MasterView 320, TERMPAR, TERMGEN, TERMDIS, TERMDYN,
TERMREF, and TERMSTR is not intended to be changed in any way other than through the
MasterView 320 dialog. For a description of an exception to this rule, see the MasterView 320
Users Guide.
PRINT, EXCOM, TERM
PRI_01, XCOM_1, XCOM_2, XCOM_3, TERM_1, TERM_2, TERM_3, and TERM_4 are
system DB elements of the Advant Controller 400 Series data base. Consequently, you cannot
add or delete any instances. It is possible, however, to change the parameters of these data base
elements on-line using the MDB command. After you have made the change, i.e., when you are
exiting MDB, you are asked to activate the DB element with the new parameters. If the answer
is yes, the instance is restarted. This means that the function is disabled for the duration of the
restart, typically 5 s.
START
The parameters of the data base element START can be changed on-line.
5-19
$03/&RQILJXUDWLRQ$GYDQW&RQWUROOHU6HULHV5HIHUHQFH0DQXDO
&KDSWHU &KDQJLQJDQ$SSOLFDWLRQ3URJUDP2QOLQH
TTD
The TTD function claims large memory areas for storage of logged values. This means that if
you change the TTD data base too much, the memory may eventually become fragmented.
To rectify this situation, you need a cold start. This becomes a problem if the pool of spare RAM
is small. The size of the pool is shown by the command DIMDB as Free space in the system.
The extent to which the TTD data base is changeable during operation is set out in the
Advant Station 500 Series Operator Station Users Guide.
5-20
$03/&RQILJXUDWLRQ$GYDQW&RQWUROOHU6HULHV5HIHUHQFH0DQXDO
6HFWLRQ 6HOHFWLRQRI2XWSXW'HYLFH
Chapter 6 Documentation
6-1
$03/&RQILJXUDWLRQ$GYDQW&RQWUROOHU6HULHV5HIHUHQFH0DQXDO
&KDSWHU 'RFXPHQWDWLRQ
The number of decimal places can be up to 13 for non-exponential format and six for
exponential format.
If the value is greater than one million, the value is always presented in exponential format
regardless of what you select.
The pages concerned are pages in the PC diagram. PC diagram pages are also shown as
supplementary information on printed listings. These page numbers are included for easy crossreferencing between diagram and listing and to make the listing easier to refer to.
The size of a PC diagram page is determined by the first and last PC elements on the page.
Which PC elements are included on a page is then given by the execution order. If the automatic
function GEPD (GEnerate Page Division) is not used, the page division and the page numbering
are defined manually using the commands MPD (Modify Page Division) and MPN (Modify
Page Number). The existing page division can be listed with the commands GPN (Get Page
Number) and LPN (List Page Number).
The commands that have the PC diagram page in the printout (LS, LV and LPCL, among
others) also work even if you have not defined a page division (page table). In this case, the
entire PC program is assumed to be located on one diagram page with page number 1.
This makes it possible to postpone page division until the entire PC program is complete.
All page numbers between 0.1 to 9999.9 are permitted as page numbers. There is an entirely
free choice of page numbering within the stated limits. The sequence of pages is determined by
the execution order of PC elements and so is not linked to page number.
The data of the page division and page numbering are stored in a segment with extension .AP
and are located on the USER volume.
The page division is controlled by so called page breaks. Two different types of page breaks
exist:
6-2
$03/&RQILJXUDWLRQ$GYDQW&RQWUROOHU6HULHV5HIHUHQFH0DQXDO
6HFWLRQ *HQHUDWLQJ3DJH'LYLVLRQV$XWRPDWLFDOO\
A hard page break fixes a page exactly to the number you have specified. When you load source
code which includes soft page breaks, a new page will be used and for the page number the next
consecutive number will be used. The next consecutive number is obtained by adding an
increment of one to the current page number.
With this feature you can structure the layout of your documentation according to your special
needs: You can position some PC elements at certain pages with fix numbers, e.g. PC 1 at page
100, PC 2 at page 200 etc. For other elements you can introduce a page break, only. Then the
next consecutive number will be used, e.g. for PC 1.2 page 102. How to introduce hard or soft
page breaks is explained in Section 6.5, Hard and Soft Page Breaks.
6-3
$03/&RQILJXUDWLRQ$GYDQW&RQWUROOHU6HULHV5HIHUHQFH0DQXDO
&KDSWHU 'RFXPHQWDWLRQ
Define or modify page division by defining a number of PC elements that are to be located
on a specified page.
Modify an existing page division so that a new page is created from the stated item
designation (inclusive) to the end of the page on which it appears.
Examples (3)
Example 1:
Define a number of PC elements on a given page (PC1.2 and PC1.3 on page 1.5).
#03'3&!3&
PC1.2
PC1.3
Page 1.5
Example 2:
Define the page for single elements (three elements starting with PC1.2 on page 2).
#03'3&
PC1.1
PC1.3
PC1.5
PC1.1
PC1.2
PC1.3
PC1.2
PC1.4
PC1.4
Page 1
Page 2
Page 3
Page 1
Page 2
6-4
$03/&RQILJXUDWLRQ$GYDQW&RQWUROOHU6HULHV5HIHUHQFH0DQXDO
6HFWLRQ 0RGLI\LQJWKH3DJH'LYLVLRQ0DQXDOO\
Example 3:
Modify an existing page division so that a new page is created from the stated item designation
to the end of the page on which it appears (new page 1.5 starting with PC1.2).
#03'3&
PC1.1
PC1.3
PC1.1
PC1.2
PC1.3
PC1.2
Page 1
Page 2
Page 1
Page 1.5
Page 2
To define a text to a new page, use the /H (Headline) at the end of the
command.
Example:
Create a new page with headline text Error handling.
#03'3& +
ENTER NEW HEADLINE
(UURUKDQGOLQJ
Example:
Combine two old pages (15, 16), each with its own headline. Give the new page the number 15
with the old headline.
#03'3&!3&
HEADLINE ALTERNATIVES AVAILABLE FOR NEW PAGE:
1. NO HEADLINE
2. NEW HEADLINE
3. OLD HEADLINE FROM PAGE 15:
Value check
4. OLD HEADLINE FROM PAGE 16:
Value check (contd)
SELECT ONE:
6-5
$03/&RQILJXUDWLRQ$GYDQW&RQWUROOHU6HULHV5HIHUHQFH0DQXDO
&KDSWHU 'RFXPHQWDWLRQ
Of a range of consecutive pages. The selected pages will get new numbers in ascending
order and with the given interval. A hard page break must belong to the first and last page
number of the specified range.
6-6
$03/&RQILJXUDWLRQ$GYDQW&RQWUROOHU6HULHV5HIHUHQFH0DQXDO
6HFWLRQ +DUGDQG6RIW3DJH%UHDNV
LPN
The LPN (List Page Number) command prints out the total number of pages and page numbers
in the PC program and the first PC element on each page specified by the command.
Syntax:
/31 [pc_pgm,] [page_nr [>page_nr]]
/31 [pc_pgm,] [page_nr [;number_of_pages]]
Using this command, you can:
You can omit the PC program item designation in the command, in which case the system
assumes that the you mean the most recently used PC program.
Example:
#/313&
lists the number of pages and the first PC element on each page of PC program 1.
Example:
#/313&
lists the total number of pages in PC1 and the first PC element of page number 2 up to 10.
Via source code generated for example by the Function Chart Builder.
6-7
$03/&RQILJXUDWLRQ$GYDQW&RQWUROOHU6HULHV5HIHUHQFH0DQXDO
&KDSWHU 'RFXPHQWDWLRQ
The first subcommand of the IS command inserts a hard page break. The new page is fixed to
number 1. The page break command in line 5 consists of a P only: this introduces a soft page
break.
Page Breaks in Source Code:
In source code each page break is represented by a PCD-PAGE line. For a hard page break the
page number is added.
Hard page break:PCD-PAGE 1
Soft page break:PCD_PAGE
Commands that Modify Page Breaks:
MPN:
All soft page breaks will be substituted by hard page breaks.
Example:
0313&
MPD:
All soft page breaks will be substituted by hard page breaks. One exception exists to this rule: If
you modify only the first item designation a soft page break is assigned to, this page break will
not be converted to a hard page break.
Example:
The following situation may appear on page 4 (a soft page break is assigned to PC8.1.5):
PC8.1.5
PC8.1.6
PC8.1.7
#03'3&!3&
The soft page break will be modified to a hard one.
#03'3&
The soft page break will be modified to a hard one.
#03'3&
The soft page break will stay as soft page break.
GEPD:
This command generates a new page division. All page breaks will be hard page breaks.
6-8
$03/&RQILJXUDWLRQ$GYDQW&RQWUROOHU6HULHV5HIHUHQFH0DQXDO
6HFWLRQ +HDGOLQHV
6.6 Headlines
You can define a headline (up to 79 characters) for each page of a PC diagram. It is printed out
at the bottom of the page, directly above the document footer.
You can freely use the headline to describe, for example, the function of the PC program
section, special process considerations to bear in mind or the construction of the PC program.
MPH
Use the MPH (Modify Page Headline) command to define or modify a headline. You can also
do this using the MPD command (see Section 6.4.2, Modifying the Page Division Manually).
Since each headline is associated with a given page, the LPN and GPN commands also show
the contents of the headline (see Section 6.4.4, Listing the Page Number).
Syntax:
03+ [pc_pgm,] page_nr_1 [>page_nr_2] [=page_nr_3]
03+ [pc_pgm,] page_nr_1 [;number_of_pages] [=page_nr_3]
Use this command to
Modify the headlines for several pages where the range of pages can be specified either
Modify a headline for one or more pages with the text being copied from another page. If
several pages are specified, they are all given the same text copied from another page
(=page-nr_3).
Example:
Insert a new headline for page 1 of PC1.
#03+3&
ENTER NEW HEADLINE ON PAGE 1
Drying lin control
6-9
$03/&RQILJXUDWLRQ$GYDQW&RQWUROOHU6HULHV5HIHUHQFH0DQXDO
&KDSWHU 'RFXPHQWDWLRQ
Modify the text of previous example and insert text on the next page as well, which is page
number 1.6.
#03+
HEADLINE TO BE MODIFIED ON PAGE 1
Drying lin control
ENTER NEW HEADLINE ON PAGE 1.6
7HPSHUDWXUHFRQWURO
Copy the headline on page 1 to pages 10 to 20 inclusive.
#03+3&!
6-10
$03/&RQILJXUDWLRQ$GYDQW&RQWUROOHU6HULHV5HIHUHQFH0DQXDO
6HFWLRQ 3ULQWLQJD3&3URJUDP6WUXFWXUH
6-11
$03/&RQILJXUDWLRQ$GYDQW&RQWUROOHU6HULHV5HIHUHQFH0DQXDO
&KDSWHU 'RFXPHQWDWLRQ
SD
LD
Example:
#/75((3&
6-12
$03/&RQILJXUDWLRQ$GYDQW&RQWUROOHU6HULHV5HIHUHQFH0DQXDO
6HFWLRQ 3ULQWLQJD3&3URJUDP6WUXFWXUH
6-13
$03/&RQILJXUDWLRQ$GYDQW&RQWUROOHU6HULHV5HIHUHQFH0DQXDO
&KDSWHU 'RFXPHQWDWLRQ
6-14
$03/&RQILJXUDWLRQ$GYDQW&RQWUROOHU6HULHV5HIHUHQFH0DQXDO
6HFWLRQ 3ULQWLQJD3&3URJUDP/LVW
A PC program
A PC program with a request for the page numbering to begin at a given number
Several consecutive PC programs with a request for the page numbering to begin at a given
number.
Examples:
#/3&/3&!3&
lists PC programs PC1 to PC5 inclusive. The first document page is page number 1.
#/3&/3&!3&
lists PC programs PC3 to PC5 inclusive. The first document page is page number 15.
6-15
$03/&RQILJXUDWLRQ$GYDQW&RQWUROOHU6HULHV5HIHUHQFH0DQXDO
&KDSWHU 'RFXPHQWDWLRQ
#/3&/3&
Produces the following printout:
NAME
PC4
:1
:2
:5
PC4.1
:1
:2
:3
:5
:6
PC4.1.1
:1
:2
:20
TYPE
PCPGM (10,2)
ON
IB
R
IB
RUN
OB
CONTRM (100,2)
ON
IB
SINGLE IB
R
IB
RUN
OB
MODP
OB
MUL (R,2)
IR
IR
OR
SOURCE
UNIT
PAGE
=VENT_OPEN
0
:1
:10
:11
:12
:20
:21
:22
:30
:31
:32
:40
:41
:42
PC4.1.3
:1
:2
:3
:5
PC4.1.4
:1
:2
:3
:5
PC4.2
:1
:2
:3
:5
:6
COMP-R
I
HHYS
H1
H2
I<H1
I>=H1
I>=H2
LHYS
L1
L2
I>L1
I<=L1
I<=L2
OSC-B
EN
TP
TC
O
OSC-B
EN
TP
TC
O
CONTRM
ON
SINGLE
R
RUN
MODP
(2,2)
IR
IR
IR
IR
OB
OB
OB
IR
IR
IR
OB
OB
OB
NOTES
=DI5.3
1
0
0
=AI1.2
D=1.040
=AI1.2 G
liter
=AO1.2
PC4.1.2
PC4.1.1:20
D=100.000
D=700.000
D=900.000
=AO1.2 P
PC4.1.2:1
=DO1.5 P
PC4.1.3:1
liter
liter
liter
liter
=DO1.5
D=100.000
D=100.000
D=200.000
liter
liter
liter
=DO1.4
IB
IT
IT
OB
PC4.1.2:22
D=0.5 s
D=1
=DO1.7
IB
IT
IT
OB
(50,5)
IB
IB
IB
OB
OB
PC4.1.2:42
D=0.5 s
D=1
=DO1.7
=DI1.8
D=0
=DI1.9
=DO1.8
PC LIST
L_Text2
L_Text3
L_Text4
R_Text1
R_Text2
R_Text3
R_Text4
=DO1.7 P
=DO1.7 P
=DI1.8
=DI1.9
=DO1.8 P
Language: L
Rev ind: R_I
Sheet: 1
Cont: -
6-16
$03/&RQILJXUDWLRQ$GYDQW&RQWUROOHU6HULHV5HIHUHQFH0DQXDO
6HFWLRQ 3ULQWLQJD3&'LDJUDP
A number of pages
An entire PC program
A number of PC programs.
6-17
$03/&RQILJXUDWLRQ$GYDQW&RQWUROOHU6HULHV5HIHUHQFH0DQXDO
&KDSWHU 'RFXPHQWDWLRQ
COMMON IDENTITY :
D=1
D=0
PC1
PCPCM(20.1)
1 ON
RUN
2 R
=DI1.1
=DI1.2
=DI1.3
=DI1.4
G
D=1
1
2
3
.1
&
20
P-=DO1.2/FLASH
EXECUTION ORDER: 1
.1 (Sample InstanceName for CONTRM)
PC1
Design ch: Design ch
Tech ref : Tech ref
PC DIAGRAM
L Text2
L Text3
L Text4
R
R
R
R
Text1
Text2
Text3
Text4
Language:
L
Rev ind : R I
Sheet:
1
Cont :
-
6-18
$03/&RQILJXUDWLRQ$GYDQW&RQWUROOHU6HULHV5HIHUHQFH0DQXDO
6HFWLRQ *HQHUDO
7.1 General
For various purposes, different dump types are available:
Total Backup
For long-term storage and backup copying of the application in an Advant Controller 400
Series, dump the PC programs and the data base in a total dump. Use the DUAP and LOAP
commands for this purpose. For more information, see Section 7.3, Total Backup.
Dumping and Loading for Redimensioning
When you need to have more space for DB elements or PC programs, a redimensioning
procedure is necessary. To redimension the data base or the PC part, the application must first
be dumped and then reloaded after redimensioning. For this purpose, use the commands
DUTDB/LOTDB and DUTPT/LOTPT. For more information, see Section 7.4, Dumping and
Loading for Redimensioning.
Data Transfer via Source Code
You can use the source code handling function to move a complete application between
different engineering tools and different target systems. Four commands are available for the
data transfer: DUDBS/TRDBS and DUPCS/TRPCS. For more information, see Section 7.5,
Data Transfer via Source Code.
NOTE
Only the total backup (DUAP) can contain the data of the User Disk Application
Segments (see Section 7.3, Total Backup) that are needed to handle the Advant
Controller 400 Series with the engineering station and to reidentify Type Circuits
from Function Chart Builder (see Section 7.2.2, USER Volume). No other dump
types - except source code - contain the complete User Disk Application
Segments.
Mismatch problems between the User Disk Application Segments on the
engineering station and the application programs on the Advant Controller 400
Series may arise if you do not pay attention to the User Disk Application
Segments when you are loading dumps (see Section 7.2.2.4, User Disk
Application Segments Mismatch).
Nevertheless, the application programs (PC programs and data base contents) on
the Advant Controller 400 Series are sufficient for normal operation.
7-1
$03/&RQILJXUDWLRQ$GYDQW&RQWUROOHU6HULHV5HIHUHQFH0DQXDO
&KDSWHU %DFNXSDQG7UDQVIHURI$SSOLFDWLRQ'DWD
Consider the following recommendations when working with dumps without the
User Disk Application Segments data:
Create a backup of the User Disk Application Segments. Copy the User Disk
Application Segments on the engineering station to a backup medium.
Between saving the User Disk Application Segments and creating the dump,
no changes to the application are allowed.
Use the backup copy of the User Disk Application Segments you saved
separately and copy the data to the USER volume on the engineering station.
This means:
You overwrite existing data on the USER volume which do not fit with the
dump data, or
You transfer the data of the USER volume to a newly created node on the
engineering station.
compress the segment with a utility like Compress/Expand from Microsoft or PKZIP
(shareware), or
distribute the segment to more than one diskette using the MS-Backup utility.
If for any reason you want to work with the maximal segment size of 1 MByte of the foregoing
On-line Builder versions, you have to add the following line to the section Setup of the file
ONBBIOS.INI:
CXFileSize=1023
7-2
$03/&RQILJXUDWLRQ$GYDQW&RQWUROOHU6HULHV5HIHUHQFH0DQXDO
6HFWLRQ 86(59ROXPH
To work only with the User Disk Application Segments stored under the volume USER on
the engineering station or
7-3
$03/&RQILJXUDWLRQ$GYDQW&RQWUROOHU6HULHV5HIHUHQFH0DQXDO
&KDSWHU %DFNXSDQG7UDQVIHURI$SSOLFDWLRQ'DWD
If you decide to use the backup facility, the On-line Builder commands will nevertheless work
with the information stored under the engineering stations USER volume (see Figure 7-1).
Two commands will perform the backup copy to the controller automatically:
You can force the backup with the SUDAS command, additionally. For the backup handling
three commands are available: SUDAS, RUDAS and SHUDAS (see Section 7.2.2.3, Backup
Commands).
Engineering Station
USER
volume
AS
SUD
AS
RUD
Advant
Controller
400 Series
To avoid a mismatch between both versions the information is tagged with an identifier.
All commands that read from or write to the User Disk Application Segments check these
identifiers to be equal.
Nevertheless, it can happen that the information stored at both places is different. To overcome a
mismatch situation, you can replace the information stored on the Advant Controller 400 Series
with that under the USER volume or vice versa. Such a situation can occur for example if the
hard disk of the engineering station fails or you switch off your engineering station without
terminating the On-line Builder.
7-4
$03/&RQILJXUDWLRQ$GYDQW&RQWUROOHU6HULHV5HIHUHQFH0DQXDO
6HFWLRQ 86(59ROXPH
PC variable names defined by the user (see Section 4.2.6, Modifying the
Name of a Statement or Variable).
Document texts for DB diagrams, PC diagrams and PC lists (see Section 6.7,
Document Texts).
Headline texts for PC diagrams (see Section 6.6, Headlines).
Parameter settings for printout control (Section 6.3, Setting Page Size).
List of selected variables for the GETAB command (see Section 4.2.8,
Displaying the Variable Values in a Table).
PCMASS*.AP
*.TI
*.TB
Type Circuit data base files, created by Function Chart Builder only.
They are stored on the Backup Area of the node and belong to corresponding
*.BA files. They are needed to reconstruct Type Circuits.
*.TC
Type Circuit source code files, created by Function Chart Builder only.
They are stored on the Backup Area of the node and belong to corresponding
*.AA files. They are needed to reconstruct Type Circuits.
7-5
$03/&RQILJXUDWLRQ$GYDQW&RQWUROOHU6HULHV5HIHUHQFH0DQXDO
&KDSWHU %DFNXSDQG7UDQVIHURI$SSOLFDWLRQ'DWD
If you want to overcome for a certain application the restriction of 32 KByte, perform the
following steps:
If for compatibility reasons you want to work with the 32 kByte restriction, you must edit
the file C:\AS100ES\ONBBIOS.INI. In the SETUP section set the value of
HashTableVersion to 0:
HashTableVersion=0
Then the old PCMASS structure will be used.
NOTE
You cannot use On-line Builder of version less than 2.2/0 together with a segment
PCMASS.SM which has been created by On-line Builder of version 2.2/0.
To see the maximum size of the segment PCMASS.SM use the command
MSTABS.
The maximum number of segments that can be stored on the Advant Controller 400 Series
Backup Area is restricted to 400. You can see the total number of existing segments with
the SHUDAS command (see Section 7.2.2.3, Backup Commands).
7-6
$03/&RQILJXUDWLRQ$GYDQW&RQWUROOHU6HULHV5HIHUHQFH0DQXDO
6HFWLRQ 86(59ROXPH
If, for any reason, they are not identical, the mismatch is detected and you define the data on the
engineering station or the data on the Advant Controller 400 Series as the valid data. Using the
command RUDAS, you can copy the data from the Advant Controller 400 Series manually to
the engineering station. This procedure will update the version identifier, too.
In addition to the backup itself, an advantage of this function is that the User Disk Application
Segments backup may be included in the DUAP dump, see Section 7.3, Total Backup. A further
advantage is that the network and node number are compared to check that the correct node is
selected on the engineering station, which makes your work more secure.
Advant Controller 400 Series configuration requires the following operations to activate the
backup of User Disk Application Segments:
Activate the Backup function (User Disk Application Segments backup function) with the
DIMPC command.
Be sure that the node selected on the engineering station (Node List) belongs to the
connected Advant Controller 400 Series (working on the correct User Disk Application
Segments).
When you are loading source code (DB source code, PC programs or parts of PC
programs) in order to exchange already existing source code, first delete the parts that
already exist (command DS). In doing so, you also delete the variable names, document
description headings and page divisions from the User Disk Application Segments.
Every time you want to transfer a dump, the User Disk Application Segments must also be
copied. This is not necessary for the DUAP dump, if the backup function was activated and
the data were saved before performing the dump.
7-7
$03/&RQILJXUDWLRQ$GYDQW&RQWUROOHU6HULHV5HIHUHQFH0DQXDO
&KDSWHU %DFNXSDQG7UDQVIHURI$SSOLFDWLRQ'DWD
The amount of memory needed may be quite unclear when you start your application
programming. Therefore it may be necessary to redimension this area later on.
The redimensioning of the Backup Area can be performed in the following manner:
Dump the data base and the application programs with the DUTDB and DUTPT
commands.
Load the application programs with the LOTPT command and specify Redimension = yes.
Enter a bigger value for the User Disk Application Segments Backup Area.
For more information see Section 7.4, Dumping and Loading for Redimensioning.
CAUTION
The following operations can cause loss of data.
When problems occur with the User Disk Application Segments, you can:
If you have a backup of your hard disk, try to get an older version of the User Disk
Application Segments (see Section 7.2.2.4, User Disk Application Segments Mismatch).
Initialize the User Disk Application Segments contents (after RECONFIG or a cold start).
This can be performed in two alternative ways:
Delete the PCMASS.SM, PCMASS*.AP and *.UI files on SYSTEM level (SLLEV
SYST) on the USER volume.
Create a new node with the Application Builder on the engineering station.
The corresponding USER volume is in its initial state.
It is up to you to decide whether to use an earlier version of the User Disk Application Segments
or to create new segments. Only you can estimate the difficulties arising, which depend on how
many changes have been made to the earlier User Disk Application Segments since they were
created.
7-8
$03/&RQILJXUDWLRQ$GYDQW&RQWUROOHU6HULHV5HIHUHQFH0DQXDO
6HFWLRQ 86(59ROXPH
Syntax:
68'$6
The SUDAS command displays information about versions and dates of the backup on the
connected Advant Controller 400 Series and the engineering station.
#68'$6
USER DISK
Version: 41
Time: 1993-07-22/15:01:23
Version: 42
Time: 1993-07-22/16:18:02
#58'$6
USER DISK
BACKUP USER AREA
Continue? (Y/N)
7-9
$03/&RQILJXUDWLRQ$GYDQW&RQWUROOHU6HULHV5HIHUHQFH0DQXDO
&KDSWHU %DFNXSDQG7UDQVIHURI$SSOLFDWLRQ'DWD
/USER
Adds a list of the User Disk Application Segments on the engineering station.
When you use this command without an activated backup function, the engineering station will
display an error message.
#6+8'$6
USER DISK
Net, Node: 12,3
BACKUP USER AREA Net, Node: 12,3
51260 Bytes
Used size:
Version: 41
Version: 38
Time: 1989-04-22/15:01:23
Time: 1989-04-20/16:18:01
#6+8'$67$5*
USER DISK
Net, Node: 12,3
BACKUP USER AREA Net, Node: 12,3
Used size :
51260 Bytes
Version: 41
Version: 38
Time: 1989-04-22/15:01:23
Time: 1989-04-20/16:18:01
7-10
$03/&RQILJXUDWLRQ$GYDQW&RQWUROOHU6HULHV5HIHUHQFH0DQXDO
6HFWLRQ 65&(9ROXPH
Insert a PC element with the same item designation as the PC element that has been
removed. Insert it one step before the first PC element on the page following the erroneous
one.
7-11
$03/&RQILJXUDWLRQ$GYDQW&RQWUROOHU6HULHV5HIHUHQFH0DQXDO
&KDSWHU %DFNXSDQG7UDQVIHURI$SSOLFDWLRQ'DWD
options
volume
SRCE or USER.
(Delete) automatically deletes from the volumes all existing segments having
the same names as the new dump segments are to have. By default, in dialog
mode, deletion requires the operators permission. In parameter mode, the
command terminates if a duplicate segment is found.
F:
I:
N:
(No questions) suppresses the prompting for dump message texts. By default,
the operator is prompted for two text messages (dialog and parameter mode).
The command uses the default volume SRCE and can be used in OPERATION mode or in
CONFIGURATION mode. If possible, use CONFIGURATION mode, since the time required
for dumping is shorter.
The segment names of the dump consist of the given name, one or more zeros, and a sequential
number (corresponding to the order between segments).
The type (extension) of the segments is AD.
Example:
A dump named APPL is stored under the following segment names:
APPL0001.AD;
and
APPL0002.AD.
The padding zeros are generated automatically.
7-12
$03/&RQILJXUDWLRQ$GYDQW&RQWUROOHU6HULHV5HIHUHQFH0DQXDO
6HFWLRQ /RDGLQJWKH&RPSOHWH$SSOLFDWLRQ
You can enter a dump description (one single line, maximum 80 characters) and a message to
the person who loads the dump later on (maximum eight lines of 80 characters). The dump
messages can be used for information about the dump, which system it belongs to, etc.
A DUAP dump can only be loaded to that system it was dumped from.
You can use the LIST command to investigate a dump (see Section 8.8, Listing Text Segments).
To terminate the command, press <Ctrl-Break> or <Q>.
NOTE
All communication ports for MasterBus 300, as well as those for RCOM, GCOM
and Modbus, must be started before you dimension the data base. This is to
enable reloading of the dump.
options
volume
SRCE or USER.
The dump is loaded from the volume SRCE if volume is not specified. The dump description
appears on the screen and you decide whether to continue with loading.
The following arguments for options are available:
I:
U:
When using the LOAP command, two different situations may occur:
The dump contains the backup of the User Disk Application Segments.
The dump does not contain the User Disk Application Segments.
In the first case, use the RUDAS command to retrieve the User Disk Application Segments
(after loading the dump). Then you have the valid User Disk Application Segments on the
engineering station.
7-13
$03/&RQILJXUDWLRQ$GYDQW&RQWUROOHU6HULHV5HIHUHQFH0DQXDO
&KDSWHU %DFNXSDQG7UDQVIHURI$SSOLFDWLRQ'DWD
In the second case, use the backup copy of the User Disk Application Segments you saved
separately at the same time as the DUAP dump (see Section 7.3, Total Backup) and copy the
data to the USER volume on the engineering station.
2.
Cold start the system. Set the start mode selector to CLEAR and press the ENTER button
or use the RECONFIG command (see Section 2.8.3, Resetting the Controller).
3.
Load the data base dump (LOTDB) and redimension the data base (see Section 7.4.3,
Loading the Data Base).
Case 3
Not enough spare area is left and the PC part is dimensioned.
7-14
1.
2.
Cold start the system. Set the start mode selector to CLEAR and press the ENTER button
or use the RECONFIG command (see Section 2.8.3, Resetting the Controller).
3.
Load the data base dump (LOTDB) and redimension the data base (see Section 7.4.3,
Loading the Data Base).
4.
$03/&RQILJXUDWLRQ$GYDQW&RQWUROOHU6HULHV5HIHUHQFH0DQXDO
6HFWLRQ 'XPSLQJWKH'DWD%DVH
PC Part
Redimensioning of the PC program space is necessary if the previously dimensioned PC part is
too small for all PC programs or the User Disk Application Segments backup function. You can
redimension the PC part as follows:
1.
2.
If the reason for redimensioning is that you need more space for the User Disk Application
Segments backup function, use the SHUDAS command to check out how much memory
space is at least required.
3.
Cold start the system. Set the start mode selector to CLEAR and press the ENTER button
or use the RECONFIG command (see Section 2.8.3, Resetting the Controller).
4.
Load the data base dump (LOTDB) (if necessary, also redimension the data base) (see
Section 7.4.3, Loading the Data Base).
5.
one...six characters
All data base concepts within the target system are included in the dump. The command dialog
is self-instructive and the valid answers are listed within the prompting text of every question.
You can terminate the command by pressing <Ctrl-Break> or, during the dialog, by entering
the answer Q to any question. You can enter a message with a maximum of 10 text lines
which are stored on the dump volume.
During the dump process, messages are given to the effect that dumping has started, that it is in
progress and whether it has been correctly performed or has failed.
7-15
$03/&RQILJXUDWLRQ$GYDQW&RQWUROOHU6HULHV5HIHUHQFH0DQXDO
&KDSWHU %DFNXSDQG7UDQVIHURI$SSOLFDWLRQ'DWD
six characters
volume
four characters
The command operates in dialog mode. It compresses the PC area automatically before the
dump takes place (Advant Controller 400 Series). For other types of systems, use the CSPT
(CompreSs Program Tables) command before dumping. You can enter a message that is stored
on the dump volume. The text is printed out before the loading procedure starts and makes it
easy to identify the correct PC dump. Press <Ctrl-Break> to leave the function.
All blocked PC elements in the PC program are automatically deblocked when the PC
program is loaded back into the Advant Controller 400 Series.
The dump covers all PC programs of the Advant Controller 400 Series. The User Disk
Application Segments are not included in the dump (see Section 7.1, General).
one...six characters
The dialog is self-instructive and the valid answers are listed within the prompting text of every
question.
The load command prompts for the following:
COMPRESS DATA BASE DUMP? (Y/N/Q) =
REDIMENSION? (Y/N/Q) =
For the redimension dialog, please refer to the DIMDB command for instructions (type HELP
DIMDB). Compression is intended for use when the data base population is finalized.
By compression, any spare memory space is released and made available for other purposes,
e.g., for PC programs.
7-16
$03/&RQILJXUDWLRQ$GYDQW&RQWUROOHU6HULHV5HIHUHQFH0DQXDO
6HFWLRQ /RDGLQJ3&3URJUDPV
If you want to redimension the Advant Controller 400 Series, invoke the dimensioning
command (see Section 3.2.1, Dimensioning the Data Base). Using this command, you can
dimension the data base for the required size. You can combine the commands COMPRESS
and REDIMENSION.
During the loading process, messages are given to the effect that dumping has started, that it is
in progress and whether it has been correctly performed or has failed.
six characters
volume
four characters.
The Advant Controller 400 Series must be in CONFIGURATION mode and PC must be
undimensioned. The data base must be populated (loaded).
The command operates in dialog mode and asks for the dump name if not specified.
The LOTPT command checks that the PC dump is taken from the same type of Advant
Controller 400 Series as the system to which the load attempt is being made. If this is not the
case, an error message appears and execution of the command is terminated.
As previously mentioned, the PC dump also includes information on the PC area at the time of
dumping and how the area is used.
The load command offers the option of redimensioning the PC area as follows:
RE-DIMENSION? (Y/N/Q)
If you want to redimension, answer Y, and the dimensioning command is started. With its
help, you can then dimension the PC area to the required size (but not less than the area required
by the dump) or increase the number of PC programs. If the User Disk Application Segments
backup function must be redimensioned, dimension it as the SUDAS command responded,
when the saving procedure failed. When dimensioning is finished, the load command continues
to load the PC area of the Advant Controller 400 Series.
If you do not want to redimension the PC, answer N and the Advant Controller 400 Series
uses the old dimensioning.
If you answer Q, the command terminates.
After loading is complete, the loaded PC programs are checked. If the backup function for the
User Disk Application Segments is activated, the first backup to the Advant Controller 400
Series can be performed.
7-17
$03/&RQILJXUDWLRQ$GYDQW&RQWUROOHU6HULHV5HIHUHQFH0DQXDO
&KDSWHU %DFNXSDQG7UDQVIHURI$SSOLFDWLRQ'DWD
On-line Builder
Advant Station 500 Series Operator Station (a subset of data base elements only)
TRDBS (TRanslate Data Base Source). This command translates and loads the data base
source code into the target system.
DUDBS (DUmp Data Base Source). This command dumps the data base source code.
TRPCS (TRanslate PC Source). This command translates and loads the PC source code
(one or more PC programs) into the target system.
DUPCS (DUmp PC Source). This command dumps the PC source code (one or more PC
programs).
The source code dumps contain all of the applications important data, but not the *.TC, *.TB
and *.TI files (see Section 7.2.2.1, List of User Disk Application Segments). See the Source
Code Handling Users Guide for more information on the above commands and the source code
definitions.
NOTE
Data tables belonging to a data base element of type TBL_CLASS are only
included if the parameter /TBL is selected when creating the DB source code
dump. Otherwise, if the application contains such tables, you can transfer them
using the DUDB and LODB commands. The logical file 302 contains these tables
and the concept name is TBL_DATA.
7-18
$03/&RQILJXUDWLRQ$GYDQW&RQWUROOHU6HULHV5HIHUHQFH0DQXDO
6HFWLRQ /RDGLQJ$$%)LOHV
DUMPFILE
LOADFILE.
"segment"
"name"
Name of the database element from which the data should be dumped.
Name can be either the element name or the element id.
This command is used to dump an instance of database element AAB_FILE to an AAB file on
the harddisk. If the command is given without parameters, parameters are requested in a dialog.
LAABF - LOAD AAB FILE
Syntax:
LAABF [volume]:segment,name/option
Description:
volume
segment
segment to be loaded
name
option
This command is used to copy an AAB file to the database. If the command is given without
parameters, parameters are requested in a dialog.
LOADFILE
Syntax:
LOADFILE name[,filename] [/option]
where
name
Name of the data base element of type AAB_FILE into which filename shall
be loaded.
filename
Either: volume:segment.extension
Or: a valid DOS path and filename.
7-19
$03/&RQILJXUDWLRQ$GYDQW&RQWUROOHU6HULHV5HIHUHQFH0DQXDO
&KDSWHU %DFNXSDQG7UDQVIHURI$SSOLFDWLRQ'DWD
option
FUZZYCON - tells the command that the file contains a configuration for the
fuzzy control PC element.
The LOADFILE command loads the contents of filename into the data base element name of
type AAB_FILE. This command is needed, when - for example - User Defined PC Elements
shall be loaded to Advant Controller 400 Series. For more information see User Defined PC
Elements Users Guide.
DUMPFILE
Syntax:
DUMPFILE filename[,name]
where
filename
Volume:segment.extension
name
Name of the data base element of type AAB_FILE which shall be dumped.
The DUMPFILE command dumps the contents of data base element name of type AAB_FILE
into the segment filename. This command is needed, when - for example - User Defined PC
Elements shall be dumped from Advant Controller 400 Series. For more information see User
Defined PC Elements Users Guide.
Complete
Application
Program
Dump
Segment(s)
eventually
other
Segment(s)
Table 7-1 shows which additional segments exist for a certain dump. Each row represent a
complete set of application data. If you want to save the additional segments, use the RUDAS
command, then backup the segments. The Additional Segments (ONB) are segments that are
produced by On-line Builder commands, for example when you modify document texts.
The segments listed under Additional Segments (FCB) are originally produced by the Function
Chart Builder and then converted to ABB Master representation. They contain information
about type circuits. For more information see Function Chart Builder Users Guide.
7-20
$03/&RQILJXUDWLRQ$GYDQW&RQWUROOHU6HULHV5HIHUHQFH0DQXDO
6HFWLRQ 6XPPDU\RI'XPS&RPPDQGV
DB Segments
PC Segments
SRCE:*.AA
USER:PCMASS.SM,
PCMASS*.AP,
P1PCMASS.NI
These segments
include:
Segments forType
Circuits
USER:*.TB,*.TC,
*.TI
Segments forType
Circuits
USER:*.TB,*.TC,
*.TI
PC instance names,
PC variable names,
Document texts,
Page layout,
ONB printer
parameters,
Variables used by
GETAB
DUAP; Backup Area Command DUAP
not dimensioned
USER:PCMASS.SM,
PCMASS*.AP
P1PCMASS.NI
These segments
include:
Segments forType
Circuits
USER:*.TB,*.TC,
*.TI
PC instance names,
PC variable names,
Document texts,
Page layout,
ONB printer
parameters,
Variables used by
GETAB
DUAP with
dimensioned
Backup Area
Command DUAP
7-21
$03/&RQILJXUDWLRQ$GYDQW&RQWUROOHU6HULHV5HIHUHQFH0DQXDO
&KDSWHU %DFNXSDQG7UDQVIHURI$SSOLFDWLRQ'DWD
7-22
$03/&RQILJXUDWLRQ$GYDQW&RQWUROOHU6HULHV5HIHUHQFH0DQXDO
6HFWLRQ +HOS)XQFWLRQ
8-1
$03/&RQILJXUDWLRQ$GYDQW&RQWUROOHU6HULHV5HIHUHQFH0DQXDO
&KDSWHU *HQHUDO&RPPDQGV
is hours (0 to 23)
minute
is minutes (0 to 59)
second
is seconds (0 to 59)
Example:
#57,0(
TARGET SYSTEM:
#67,0(
TIME INSTALLED
#57,0(
TARGET SYSTEM:
TIME (HH:MM:SS)=15:23:10
TIME (HH:MM:SS)=22:30:00
RDATIME
Use the RDATIME (Read DAte and TIME) command to read the current date and time of the
system.
Syntax:
5'$7,0(
SDATIME
The SDATIME (Set DAte and TIME) command sets the date and time of the system.
Syntax:
6'$7,0( year-month-day/hour:[minute]:[second]
8-2
$03/&RQILJXUDWLRQ$GYDQW&RQWUROOHU6HULHV5HIHUHQFH0DQXDO
6HFWLRQ *HWWLQJWKH/DVW,WHP'HVLJQDWLRQ
month
is month (1...12)
day
is date (1...31)
hour
is hours (0...23)
minute
is minutes (0...59)
second
is seconds (0...59)
8-3
$03/&RQILJXUDWLRQ$GYDQW&RQWUROOHU6HULHV5HIHUHQFH0DQXDO
&KDSWHU *HQHUDO&RPPDQGV
8.5 Hardcopy
HARDCOPY
The HARDCOPY command gives you a printout of the current screen display. This command
is not available for all On-line Builder implementations.
Syntax:
+$5'&23< [21|2))]
Description:
You can use this command to route data from the engineering station screen to the printer
connected to it. It can be used in three ways:
1.
2.
3.
8-4
$03/&RQILJXUDWLRQ$GYDQW&RQWUROOHU6HULHV5HIHUHQFH0DQXDO
6HFWLRQ /LVWLQJ7H[W6HJPHQWV
segment:
line1:
Specifies the segment line from which the output is to start. If this parameter
is omitted, the first segment line is taken as the first output line. A line1
parameter value must be preceded by the = delimiter.
line2:
Specifies which segment line will be the last output line. If this parameter is
omitted, the last segment line is taken as the last output line. A line2 parameter
value must be preceded by the > delimiter and the line1 parameter.
option:
Prevents the standard output of file header and the initial form feed.
The first option keyword must be preceded by the ; delimiter. Several keywords must be
separated by the , delimiter.
Examples:
#/,6765&(3&$$3
#/,6765&(
$ !3&1
8-5
$03/&RQILJXUDWLRQ$GYDQW&RQWUROOHU6HULHV5HIHUHQFH0DQXDO
&KDSWHU *HQHUDO&RPPDQGV
Dump and load the PC program using the commands DUTPT, LOTPT, DUAP and
LOAP.
Enter and exit BUILD mode, as well as deblock and block the entire PC program, using
the commands EBM, DIBM, DBL, BL and BLRS.
List the status of the PC program by issuing the command LSS. A locked PC program is
listed as a whole. No information is obtained about execution units.
The commands prompt for the password which must consist of at least four, and at the most 10,
characters. Uppercase and lowercase characters are deemed different.
Example:
You want to print out the PC diagram of the locked PC program PC1.
Example:
#81/2&.3&
PASSWORD:
PROGRAM IS UNLOCKED
#/3&'3&
....
#/2&.3&
PASSWORD:
VERIFICATION:
PROGRAM IS LOCKED
#
8-6
$03/&RQILJXUDWLRQ$GYDQW&RQWUROOHU6HULHV5HIHUHQFH0DQXDO
6HFWLRQ *HQHUDO
9.1 General
Special data base elements (DAT, TEXT, DS, DSP, MS and TS) are available in the Advant
Controller 400 Series to set up communication between different PC programs or between
different nodes. Use DAT or TEXT data base elements of the needed data type to communicate
between PC programs of one node. When you want to send data to another Advant
Controller 400 Series node, the DS, MS or TS communication DB element is necessary in
addition. You can use the DSP or MS communication DB element when communicating with an
Advant Controller 100 Series.
In addition to standard DSP communication fast DSP communication is available as an
alternative. The PC elements DSP-S and DSP-R are used for a fast communication between the
AF100 interface module CI520 and the PC program.
Use the MS communication DB element when communicating with nodes of other types.
The communication elements define a packet of several DAT DB elements, except the TS DB
element, which only references one TEXT DB element, to transfer them as a set to the other
node (see Data Base Elements Advant Controller 400 Series Reference Manual).
The following characteristics apply:
Data Set communication requires the DS, DSP, MS or TS data base element at the sending
node and the corresponding data base element at the receiving node.
The set of DAT DB elements at the node being communicated with is of the same type and
number and is sorted in a way identical to the way it is sorted at the sending node.
The TEXT DB element in the sending and the receiving nodes must be of the same type.
The data transfer runs cyclically between the data bases at different nodes, except for Text
Set, where the data is sent event-driven.
9-1
$03/&RQILJXUDWLRQ$GYDQW&RQWUROOHU6HULHV5HIHUHQFH0DQXDO
&KDSWHU &RPPXQLFDWLRQ%HWZHHQ3&3URJUDPVDQG1RGHV
PC 1
DAT
PC 2
B
I
IL
R
TEXT
20
48
72
PC program
PC program
Data Base
Data Base
AI
AO
AI
AO
DI
DO
DI
DO
TEXT DAT
20, 48, 72
DAT TEXT
B, I, IL, R
DS
20, 48, 72
B, I, IL, R
MasterNet
Comm.
MasterNet
Comm.
TS
DS
TS
Figure 9-2. Data Set and Text Set Communication via MasterNet
9-2
$03/&RQILJXUDWLRQ$GYDQW&RQWUROOHU6HULHV5HIHUHQFH0DQXDO
6HFWLRQ *HQHUDO
PC program
PC program
Data base
Data base
AI
AO
AI
AO
DI
DO
DI
DO
DAT
DAT
B, I, IL, R
DSP
Advant
Fieldbus
Comm.
B, I, IL, R
Advant
Fieldbus
Comm.
DSP
Figure 9-3. Data Set Peripheral Communication via Advant Fieldbus 100
PC program
PC program
Data base
Data base
AI
AO
AI
AO
DI
DO
DI
DO
DAT
DAT
B, I, IL, R
RCOM
RCOM
Comm.
Comm.
MS
B, I, IL, R
MS
9-3
$03/&RQILJXUDWLRQ$GYDQW&RQWUROOHU6HULHV5HIHUHQFH0DQXDO
&KDSWHU &RPPXQLFDWLRQ%HWZHHQ3&3URJUDPVDQG1RGHV
The following sections provide examples of how to use the DS DB element in different
situations. The examples are, to a large extent, applicable for the other Data Set data base
elements DSP, MS and TS.
The TS data base element differs from the other data base elements when it contains only one
reference to TEXT data and does not include a terminal for setting of the transmission interval.
Instead, the PC element SENDREQ is used when requesting transmission of a TS element.
With that exception noted, you can use the first example as a recipe for the necessary steps to
take to set up a Text Set communication.
Node 1
Network11
DAT (B)
DAT (I)
DAT (IL)
DAT (R)
9-4
$03/&RQILJXUDWLRQ$GYDQW&RQWUROOHU6HULHV5HIHUHQFH0DQXDO
6HFWLRQ ([DPSOH7UDQVIHUULQJ'DWDWR$QRWKHU1RGHXVLQJ'6(OHPHQWV
2.
3.
4.
Dimension PC at node 1.
5.
6.
7.
Start communication.
DO 1.1
DO 1.1
DI 1.1
1
2
AND
(2)
DAT1
20
DS1
Network 11,
Node 1
DS1
DAT1
1
D=0 2
DAT2
DS2
Network 11,
Node 2
DS2
OR
(2)
DAT2
Node 2
Node 1
2.
Dimension the data base at node 1 (see Figure 3-1 and Figure 3-4):
#',0'%
a.
State the relevant number of I/O boards and signals in the same way as in
Appendix A, Working Example.
b.
Expand section S2 and state the number of DAT DB elements and the number of DS
DB elements.
DAT(B)
DAT(I)
Where one value of the data type integer can be stored in each DAT(I) DB
element.
DAT(IL)
Where one value of the data type integer, long word can be stored in each
DAT(IL) DB element.
DAT(R)
Where one value of the data type real number can be stored in each DAT(R)
DB element.
9-5
$03/&RQILJXUDWLRQ$GYDQW&RQWUROOHU6HULHV5HIHUHQFH0DQXDO
&KDSWHU &RPPXQLFDWLRQ%HWZHHQ3&3URJUDPVDQG1RGHV
In the example shown here, two Boolean values are handled, one from AND(2) and one from
OR(2). As a precaution, you can dimension for future needs and specify 20 DAT, for instance:
? 0
Number of DAT values:0 New value:
In this example two DS DB elements are neededone DS DB element to send data to node 2
and one to receive data from node 2. Here too, you can dimension for future needs and specify
20 DS, for instance:
Number of DS:0 New value:
Transfer the dimensioning to the target system with the DIM subcommand.
3.
#CRDB DS
DS1
Data Set Descr
(109.1)
DS1
0
0
0
0
0
0
0
RECEIVE
0
1
1
4
YES
1
2
3
4
5
6
7
9
10
12
13
14
15
18
NAME
ACT
IDENT
NO BREC
NO INT
NO INTL
NO REAL
USER
SOURCE
BLOCKED
NET
NODE
SCAN_FTR
SORT REF
S2
Value references
S3
Value references
VALID
ERR
Enter the identity (terminal IDENT) and the number of DAT(B) DB elements to be
sent (terminal NO_BREC). Two Data Sets that communicate with each other must
have the same identity. In this example, IDENT=1. Fill in USER=1 for Data Set
communication.
? (QWHU!
? (QWHU!
? 0(QWHU!
IDENT:0
NO_BREC:0
NO_INT:0
NO_INTL:0
NO_REAL:0
USER=
9-6
New
New
New
New
New
value:
value:
value:
value:
value:
$03/&RQILJXUDWLRQ$GYDQW&RQWUROOHU6HULHV5HIHUHQFH0DQXDO
6HFWLRQ ([DPSOH7UDQVIHUULQJ'DWDWR$QRWKHU1RGHXVLQJ'6(OHPHQWV
SOURCE must have the value S (Send) for sender and R (Receive) for receiver.
c.
NET gives the network number (1 - 127) for the node to which the message is being
sent (or is being transferred from, if DS is a receiver).
d.
NODE gives the node (1 - 127) to which the message is being sent (or is being
transferred from, if DS is a receiver).
e.
When everything is filled in, use the subcommand >> or END to proceed. The subordinate
DAT DB elements are then created. In this example, it is one DB element, DAT 1, according to
the definition of the number of DAT DB elements given when the number of NO_BRECs was
filled in.
DAT1/DS1.B1
Boolean Data
(110.1)
> DAT1
S2
NAME
VALID
VALUE
VALUE2
VALUE3
VALUE4
VALUE5
VALUE6
VALUE7
VALUE8
VALUE9
VALUE10
VALUE11
VALUE12
VALUE13
VALUE14
VALUE15
VALUE16
2
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
VALUE17--VALUE32
9-7
$03/&RQILJXUDWLRQ$GYDQW&RQWUROOHU6HULHV5HIHUHQFH0DQXDO
&KDSWHU &RPPXQLFDWLRQ%HWZHHQ3&3URJUDPVDQG1RGHV
Perform steps 2, 3, 4 and 5 for node 2. Carry out dimensioning, populating the data base
and building the PC program in the same way as for node 1.
9-8
$03/&RQILJXUDWLRQ$GYDQW&RQWUROOHU6HULHV5HIHUHQFH0DQXDO
6HFWLRQ ([DPSOH([SDQGLQJD'DWD6HW
Node 1
Network 11
Node 2
DS1
Network 11
DS1
DAT1/DS1.B1
DAT1/DS1.B1
AND
DAT2/DS1.R1
DAT2/DS1.R1
DATXX
DAT10
S
9-9
$03/&RQILJXUDWLRQ$GYDQW&RQWUROOHU6HULHV5HIHUHQFH0DQXDO
&KDSWHU &RPPXQLFDWLRQ%HWZHHQ3&3URJUDPVDQG1RGHV
Change to DAT10:
DS1
Data Set Descr
(109.1)
&KDQJHWR
'$7
S1
DS1.B1
DS1.R1
>
8(1)
8(2)
8(3)
8(4)
8(5)
8(6)
8(7)
8(8)
8(9)
8(10)
8(11)
8(12)
S3
Base part
REF1
REF2
REF3
REF4
REF5
REF6
REF7
REF8
REF9
REF10
REF11
REF12
Value references
2.
3.
Connect the newly created DAT DB element to the first free REF terminal.
Create a DS DB element with CRDB DS. Set the terminals NO_BREC to NO_REAL=0 to
prevent new DAT DB elements from being created automatically. Fill in the other
parameters as in Example 1.
2.
Link the existing DAT DB elements to the newly created DS DB element. Use the
command MDB DS1, go down to the first segment VALUE REFERENCES and fill in:
? 0
REF1
REF2
8(1)
8(2)
9-10
$03/&RQILJXUDWLRQ$GYDQW&RQWUROOHU6HULHV5HIHUHQFH0DQXDO
6HFWLRQ &RQILJXUDWLRQRI(YHQW6HW
AC 400 Series
AC 100 Series
EVS(R)
EVS(T)
EVS(R)
EVS(S)
AC 100 Series
EVS(S)
10-1
$03/&RQILJXUDWLRQ$GYDQW&RQWUROOHU6HULHV5HIHUHQFH0DQXDO
&KDSWHU (YHQW6HW+DQGOLQJ
It is important to specify the same event type (AI or DI) on the corresponding reference terminal
(REF1 - REF32) on both sides (Advant Controller 100 Series and Advant Controller 400 Series)
in the Event Set elements EVS(R) and EVS(S). The EVS(T) element does not contain any
references to event channel elements when it only transits the Event Set further.
The EVS(R) element contains references to channel elements receiving events (AIEV and
DIEV). The EVS(S) element contains references to the channel elements performing the time
tagging (AIC and DIC), channel elements reading time tagged data from a hardware module
(i.e., DI650), or event data received from MasterPiece 40 (AIMVB and DIMVB).
See Figure 10-2 for an overview of the relationship between event channels in the Advant
Controller 400 Series and event channels in the Advant Controller 100 Series.
AC 400 Series
AC 100 Series
AIEV
AIC
AIEV
AIMVB
DIEV
DIC
DIEV
DIMVB
DIEV
DIS65x
10-2
$03/&RQILJXUDWLRQ$GYDQW&RQWUROOHU6HULHV5HIHUHQFH0DQXDO
6HFWLRQ (YHQW6HW2YHUYLHZ
AC 400 Series
AC 100 Series
AIEV1
80
11
AIC1
AIEV
DIEV1
From station 11
DIEV
AIC
EVS1
EVS1
DIC3
EVS(R)
EVS(S)
DIC
DIEV2
DI1001.1
DIEV
DIS650
DIEV3
AF 100
DIEV
AC 100 Series
From station 12
DIEV4
EVS2
DIEV
EVS(R)
12
DI1002.4
From station 21
AIEV2
EVS3
AIEV
EVS(R)
DIS650
EVS1
DIC5
EVS(S)
DIC
AC 100 Series
21
EVS1
AIC1
EVS(S)
AIC
Figure 10-3. Overview, Event Set Configuration using Advant Fieldbus 100
10-3
$03/&RQILJXUDWLRQ$GYDQW&RQWUROOHU6HULHV5HIHUHQFH0DQXDO
&KDSWHU (YHQW6HW+DQGOLQJ
AC 400 Series
AC 100 Series
AIEV1
AIC1
11
AIEV
From node 11
AIC
DIEV1
EVS1
DIEV
EVS(R)
EVS1
DIC3
EVS(S)
DIC
DIEV2
DI1001.1
DIEV
DIS650
DIEV3
RCOM
DIEV
AC 100 Series
From node 12
DIEV4
EVS2
DIEV
EVS(R)
DI1002.4
12
From node 21
via node 12
AIEV2
EVS3
AIEV
EVS(R)
DIS650
EVS1
DIC5
EVS(S)
DIC
EVS2
EVS(T)
From node 21
RCOM
AC 100 Series
21
EVS1
AIC1
EVS(S)
AIC
10-4
$03/&RQILJXUDWLRQ$GYDQW&RQWUROOHU6HULHV5HIHUHQFH0DQXDO
6HFWLRQ &RQILJXUDWLRQRI(YHQW6HWLQ$GYDQW&RQWUROOHU6HULHV
2.
Create and configure the event channel elements AIEV and DIEV.
3.
10-5
$03/&RQILJXUDWLRQ$GYDQW&RQWUROOHU6HULHV5HIHUHQFH0DQXDO
&KDSWHU (YHQW6HW+DQGOLQJ
Peripheral (DSP) communication on Advant Fieldbus 100 and MVI Data Set (MS)
communication on RCOM.
AIEV1
AI Event
(6.1)
AIEV1
1
0
%
0
1
21
24
3
44
NAME
ACT
BLOCKED
UNIT
TESTED
Limit
check
S2
VALUE
ERR
UPDATED
19
22
23
S3 Operator functions
S4 Operator functions
E5 Group Alarm
Figure 10-5. Base part of Data Base Element AIEV in Advant Controller 400 Series
Fill in the name of the event channel on terminal NAME, preferably the same name as in the
corresponding event channel (event source) element in the Advant Controller 100 Series. You
can fill in the other terminals within the Base part section where applicable.
You can fill terminals in the Limit check section if the VALUE terminal is updated separately by
an application program using the DSP or MS communication for data transfer.
The Operator functions sections contain terminals to configure the treatment and handling of the
event channel in the operator station. The LIM_1_TR and LIM_2_TR for AIEV and
VALUE_TR for the DIEV element are, by default, set to report the received events as an event,
but not as an alarm. If you want alarm handling, these terminals must be updated. The other
terminals in these two sections can be configured where applicable to the application (object
display, process sectioning, treatment and more).
10-6
$03/&RQILJXUDWLRQ$GYDQW&RQWUROOHU6HULHV5HIHUHQFH0DQXDO
6HFWLRQ &RQILJXUDWLRQRI(YHQW6HWLQ$GYDQW&RQWUROOHU6HULHV
EVS4
EVent Set (Receive)
(351.4)
EVS4
1
19
NAME
ACT
WARNING
22
ERR
20
IDENT
15
QUEUE
S_USER
S_BUS
S_STN
NO_AI
17
S_IDENT
NO_DI
16
S2
Event References
S3
Event References
Figure 10-6. Base Part of Data Base Element EVS(R) in Advant Controller 400 Series
Fill in terminal S_USER with the communication type being used, 0 (=Advant Fieldbus 100) or
3 (=RCOM). Terminal S_BUS and S_STN specify the source for this Event Set (EVS(S) or
EVS(T)) in AC110. Fill in the terminals with the bus and station numbers for Advant
Fieldbus 100 or the net and node numbers for RCOM. S_IDENT specifies the identity, terminal
IDENT within the EVS(S) and EVS(T) elements in the Advant Controller 100 Series. See
Figure 10-6 for an example of the EVS(R) element.
The NO_AI and NO_DI terminals indicate the number of filled-in references to AIEV and
DIEV, respectively. These numbers are automatically calculated by the engineering station when
references are added. Corresponding terminals are included in the EVS(S) element to ease the
verification that the same number of AI and DI event channels are referenced. Verification of the
type on each reference terminal must be done manually.
10-7
$03/&RQILJXUDWLRQ$GYDQW&RQWUROOHU6HULHV5HIHUHQFH0DQXDO
&KDSWHU (YHQW6HW+DQGOLQJ
EVS4
EVent Set (Receive)
(351.4)
S1
AIEV4
DIEV1
EV_21
DIEV7
30(1)
30(2)
30(3)
30(4)
30(16)
S3
Base part
REF1
REF2
REF3
REF4
REF16
Event References
Figure 10-7. Reference Part of Data Base Element EVS(R) in Advant Controller 400 Series
Fill in the reference terminals (REF1 to REF32) with references to channel elements of type
AIEV or DIEV. The name of the event channel element is specified as the reference, see
Figure 10-7. It is important to specify the same type of channel (AI or DI) in EVS(R) and
EVS(S).
If the channel type referenced on terminal REF1 in EVS(S) is an AIC or AIMVB, then the
corresponding element referenced in the EVS(R) element will be of type AIEV. If the channel
type is DIS650, DIS651, DIS652, DIC or DIMVB in EVS(S), the type will be DIEV in EVS(R).
Also see Figure 10-2 for the event channel relationship.
10-8
Define the control task and specify the Advant Controller 400 Series.
2.
Make a draft PC diagram, choosing the PC elements from the PC Elements Advant
Controller 400 Series Reference Manual.
PC1
PCPGM(20)
DI1.1
DI1.2
DI1.3
1
2
3
CONTRM(20)
RUN
ON
SINGLE MODP
R
DI1.4
D=1
1
2
3
DO1.1/
CONTRM_RUN
5
6
.1
&
20
DO1.2/
FLASH
The start mode selector must be set to CLEAR (cold start) if the system has not been
configured.
When the display on the processor board shows P2, set the start mode selector to
AUTO.
4.
5.
Start the engineering station by following the instructions in the appropriate users guide.
6.
Dimension the data base with the command DIMDB (see Figure 3-1).
A-1
New
New
New
New
New
New
Value:
Value:
Value:
Value:
Value:
Value:
The data base is dimensioned for digital input signals and digital output boards. For this,
one digital input board with, for example, 32 signals and one digital output board with 16
signals are needed. Note that you must dimension for all signals of a board, even if only
some of them are currently used. Use the subcommand M to go to modify mode.
To return to basic mode, use the subcommand !. Transfer the dimensioning details to the
data base of the target system with the subcommand DIM (see Figure 3-1 for the DIMDB
initial mode picture).
? ',0
Specify wanted spare area size
SPARE AREA = 0kb =
Dimension 100 kilobytes for increasing the data base later on. The Advant Controller 400
Series indicates that dimensioning of the data base has started and that it has been
successfully completed.
7.
Populate the data base using the command CRDB (CReate Data Base).
You can change the default values presented by the system. Use the subcommand M
to change to modify mode. Use the subcommand ! to return to basic mode. You also
generate all subordinated DB elements by giving the subcommand END (or ALL).
Perform the following inputs:
#&5'%'2
?
?
? 0
TYPE:DSDO_110 New value: '6'2B
? !!
? 0
NAME: DO1.1 New value: &21750B581
? !!
? 0
NAME: DO1.2 New value: )/$6+
? (1'
Also create one DI board:
#&5'%',
? (1'
8.
A-2
Create a data base dump with the DUTDB (Dump Total Data Base) command.
9.
Dimension the space for PC programs with the command DIMPC (DIMension PC).
Dimension the Advant Controller 400 Series for one PC program (see Figure 3-1):
#',03&
Updating PC data sizes in PC1-PC10
?
? 0
? 10: New value or command:
? ',0
10. Enter the PC elements with the command IS (Insert Statement):
#,63&
Available space in area PC: 489 kbyte DB connection:100%
Local data: 100%
PC1? 3&3*0
PC1.1? &21750
PC1.1.1? $1'
PC1.2?
PC1 PCPGM(20,1)
.1 CONTRM(20,2,0)
.1 AND(3)
.2 ?
PC1?PCPGM(20,1)
PC1.1?CONTRM(20,2)
PC1.1.1?AND(3)
PC1.1.2?!
>?
?
PC1
PCPCM(20,1)
1 ON
RUN
2 R
A-3
>?
?
?
.1
CONTRM(20,2,0)
1 ON
RUN
2
SINGLE
MODP
3 R
5
6
=',
=',
=',
=&21750B581
.1
>?
?
?
1
2
3
&
20
A-4
#6(203&
#6/6<0
Select printout format and number of decimal places SERN (SEt Real Notation).
#6(51
EXPONENTIAL FORMAT? (Y/N)= 1
NUMBER OF DECIMALS =
#6(36
PRINTER WIDTH = 90 =
PAGE HEIGTH = 90 =
#03'3&
PAGE NUMBER TABLE NOT FOUND;
SHOULD ONE BE CREATED? (Y/N) <
13. Document the PC program in the form of a PC diagram with LPCD (List PC Diagram).
#/3&'3&
A-5
COMMON IDENTITY :
D=1
D=0
PC1
PCPCM(20,1)
1 ON
RUN
2 R
.1
CONTRM(100,1,0)
1 ON
RUN
5
2
SINGLE
MODP
6
3 R
=DI1.1
=DI1.2
=DI1.3
=DI1.4
1993-12-11/07:07:04
G
D=1
1
2
3
.1
&
P-=DO1.1/CONTRM RUN
20
P-=DO1.2/FLASH
.1
PC1
A-6
INDEX
A
AAB Files 7-19
AC 100 Series 1-3
AC 400 Series 1-3
ADTIME 8.3
Advant Controller 100 Series 1-3
Advant Controller 400 Series 1-3
Advant Fieldbus 100 5-17
AF 100 1-3
Alternative choices 1-1
ANPER 4-17
APP 2-10
Arguments 1-1
AUTO mode 2-14
B
BAckup of User Disk Application Segments 7-3
BL 4-5
Block 4-5
BLRS 4-5
Bold strings 1-1
Bold strings in screen dialogs 1-1
Brackets 1-1
BUILD mode 3-26
C
C 3-30
CLEAR mode 2-14
Clock Synchronization 5-18
Comma 1-1
Command syntax 1-1
CONFIGURATION mode 2-13, 2-17
Connect 3-30
Connect undefined 3-41
Conventions 1-1
CRDB 3-12
CU 3-41
Cycle time 2-8
Subordinate 2-5
Superior 2-5
System 2-5
DBL 4-5
DDB 3-17
Delete Statement 3-38
DIBM 3-41
DICONFIG 2-18
DIMDB 3-1
Dimension the Backup Area 7-7
Dimension the data base 3-1
DIMP 4-2
DIMPC 3-22
Disable Modify Permission 4-2
DS 3-38
DUAP 7-12
DUTDB 7-15
DUTPT 7-16
DV 4-12, 4-16
E
EBM 3-26
ECONFIG 2-17
EMP 4-2
Enable Modify Permission 4-2
ENTER button 2-14
Enter key 1-1
Event Set 10-1
F
Functional Units 2-4
G
Generate PC Diagram 4-12
GEPCD 4-12
GEPD 6-3
GETAB 4-15
GLID 8.3
GPN 6-6
D
Data Set communication 9-1
Data Storage 7-2
Date 8.2
DB 1-3
DB elements
Independent 2-5
H
Hard Page Break 6-2, 6-7 to 6-8
HARDCOPY 8.4
Headline 6-7
HELP 8.1
I
I/O board 2-3
Modifying 5-17
Insert Statement 3-26
Instance Name 4-9
IS 3-26
Italic string 1-1
K
Keyboard Interaction 1-1
MV 4-8
N
Normal strings in screen dialogs 1-1
Numbering 6-2
O
OFFLINE mode 2-13 to 2-14
On-line changes 5-1
OPERATION mode 2-13, 2-18
Options. See Arguments 1-1
L
LDBD 3-17
LGAM 3-19
LIST 8.5
List Modify Permission 4-2
List Special Status 4-6
List statement 3-40
List variable 4-3
LMP 4-2
LOAP 7-13
LOCK 8.6
LOTDB 7-16
LOTPT 7-17
LPCD 6-17
LPCL 6-15
LPN 6-7
LS 3-39
LSS 4-6
LTREE 6-11
LV 4-3
P
P1 2-13
P2 2-13
P3 2-13
P4 2-13
Page Break 6-2, 6-7 to 6-8
Page Division 6-2
Pagination Problems 7-11
Parameters. See Arguments 1-1
Previous command 8.4
R
RDATIME 8.2
RECONFIG 2-19
Redimensioning 7-1
Restrictions for User Disk Application Segments 7-5
Right angle bracket 1-1
RMD 4-13, 4-16
RTIME 8.2
RUDAS 7-9
M
MasterFieldbus 5-18
MasterView 320 5-19
MDB 3-16
MDT 6-10
Memory space 3-9
Misc. Boards 5-19
MNV 4-10
MNV Command and the User Disk Application
Segments 4-11
Modify Name of Variable 4-10
Modify Permission 4-1
Modify Variable 4-8
MPD 6-3
MPH 6-9
MPN 6-6
MSTABS 3-24
ii
S
SAVE 4-16
Screen dialogs 1-1
SDATIME 8.2
Segments 1-3
Semicolon 1-1
SEOM 6-1
SEPS 6-2
SERN 6-1
Session 8.4
SHUDAS 7-10
Slash 1-1
SLG 8.4
SLLEV SYST 2-19
SLNG 8.4
SLNUM 6-1
SLSYM 6-1
Soft Page Break 6-2, 6-7 to 6-8
Source Code 7-18
SRCE Volume 7-11
SRCE volume 1-3
Start Modes 2-14
Start module 2-22
Starting Advant Controller 400 Series 2-20
STIME 8.2
STOPPED mode 2-13 to 2-14
Substitutions 1-1
SUDAS 7-8 to 7-9
Switches. See Arguments 1-1
Symbol table 3-24
Syntax 1-1
T
Text Set 9-1
Time 8.2
Total Backup 7-1
TSESS 8.4
U
UNLOCK 8.6
User Disk Application Segments 7-3, 7-5
USER volume 1-3, 7-3
V
Variable Names 7-11
Vertical bar 1-1
Volumes 1-3
W
Working Modes 2-13
iii
iv
TEXT
Advant OCS
with Master software
$03/&RQILJXUDWLRQ
Advant Controller 400 Series
Reference Manual
3BSE 002 417R601
Advant OCS
with Master software
$03/&RQILJXUDWLRQ
Advant Controller 400 Series
Reference Manual
3BSE 002 417R601