AdvantController 400 Series
AdvantController 400 Series
AdvantController 400 Series
Reference Manual
3BSE 002 417R601
Use of DANGER, WARNING, CAUTION, and NOTE
This publication includes, DANGER, WARNING, CAUTION, and NOTE information where appropriate to point out safety
related or other important information.
DANGER Hazards which could result in severe personal injury or death
WARNING Hazards which could result in personal injury
CAUTION Hazards which could result in equipment or property damage
NOTE Alerts user to pertinent facts and conditions
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 GmbH’s 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.
Template: 3BSE001286/E
TABLE OF CONTENTS
Chapter 1 - Introduction
1.1 General Information................................................................................................. 1-1
1.2 Manual Organization ............................................................................................... 1-1
1.3 Conventions ............................................................................................................. 1-1
1.4 Related Documentation............................................................................................ 1-2
1.5 Release History ........................................................................................................ 1-2
1.6 Terminology............................................................................................................. 1-3
1.6.1 Volumes and Segments ........................................................................... 1-3
1.7 Differences between the Hardware Platforms ......................................................... 1-4
CONTENTS (continued)
Chapter 3 - Application Building
3.1 Application Building................................................................................................ 3-1
3.2 Data Base Handling.................................................................................................. 3-1
3.2.1 Dimensioning the Data Base................................................................... 3-1
3.2.1.1 Dialog Handling ............................................................... 3-2
3.2.1.2 Dimensioning Parts of the Data Base............................... 3-4
3.2.1.3 Memory Space.................................................................. 3-8
3.2.1.4 Memory Requirements for certain Functions................... 3-9
3.2.1.5 TransferringtheDimensioningDatatotheAdvant Controller 400 Series
3-11
3.2.1.6 Quitting DIMDB ............................................................ 3-12
3.2.2 Editing the Data Base............................................................................ 3-12
3.2.2.1 Creating Data Base Elements ......................................... 3-12
3.2.2.2 Modifying Existing Data Base Elements ....................... 3-16
3.2.2.3 Deleting Data Base Elements ......................................... 3-17
3.2.3 Data Base Documentation..................................................................... 3-17
3.2.3.1 Creating a Data Base Printout ........................................ 3-17
3.2.3.2 Listing a Data Base Diagram.......................................... 3-17
3.2.3.3 Listing the Group Alarm Members ................................ 3-19
3.2.4 Compressing the Data Base Backup ..................................................... 3-20
3.2.5 Default Values for Data Base Handling ................................................ 3-21
3.3 Structuring PC Programs........................................................................................ 3-21
3.4 PC Dimensioning ................................................................................................... 3-22
3.4.1 Dimensioning the Space for PC Programs............................................ 3-22
3.4.2 Modifying the Size of the Symbol Table .............................................. 3-23
3.5 Entering and Editing PC Programs ........................................................................ 3-25
3.5.1 General .................................................................................................. 3-25
3.5.2 Enabling the BUILD Mode ................................................................... 3-26
3.5.3 Inserting PC Elements........................................................................... 3-26
3.5.3.1 Dialog Handling ............................................................. 3-26
3.5.3.2 Graphic/Non-graphic Presentation ................................. 3-29
3.5.3.3 Assigning a name ........................................................... 3-30
3.5.4 Connecting PC Elements....................................................................... 3-30
3.5.4.1 Dialog Handling ............................................................. 3-31
3.5.4.2 Graphic/Non-graphic Presentation ................................. 3-32
3.5.4.3 Connecting PC Element Inputs ...................................... 3-32
3.5.4.4 Connecting PC Element Outputs.................................... 3-33
3.5.4.5 Assigning Name and Unit .............................................. 3-34
CONTENTS (continued)
CONTENTS (continued)
Chapter 6 - Documentation
6.1 Selection of Output Device ...................................................................................... 6-1
6.2 Selecting the Presentation Form............................................................................... 6-1
6.3 Setting Page Size...................................................................................................... 6-2
6.4 Page Division and Numbering ................................................................................. 6-2
6.4.1 Generating Page Divisions Automatically .............................................. 6-3
6.4.2 Modifying the Page Division Manually .................................................. 6-3
6.4.3 Modifying Page Numbering.................................................................... 6-6
6.4.4 Listing the Page Number......................................................................... 6-6
6.5 Hard and Soft Page Breaks ...................................................................................... 6-7
6.6 Headlines.................................................................................................................. 6-9
6.7 Document Texts ..................................................................................................... 6-10
6.8 Printing a PC Program Structure............................................................................ 6-11
6.9 Printing a PC Program List .................................................................................... 6-15
6.10 Printing a PC Diagram ........................................................................................... 6-17
CONTENTS (continued)
CONTENTS (continued)
Chapter 1 Introduction
1.3 Conventions
Keyboard Interaction
When you read You should
<F4> Press the key labeled 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.
• Italic strings represent substitutable arguments.
• Brackets “[ ]” around an argument name indicate that the argument is optional.
• 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).
The following conventions are used in examples of screen dialogs:
• Bold strings represent input from the user.
• Normal strings represent dialog text from the Advant Controller 400 Series or the
engineering station.
Manual Description
Advant Controller 410 Contains a description of Advant Controller 410 and its
User’s Guide functions.
Advant Controller 450 Contains a description of Advant Controller 450 and its
User’s Guide functions.
On-line Builder Describes all On-line Builder commands. Command sets
Reference Manual and working methods are described as well as
command file handling aspects.
Function Chart Builder Contains a description of the configuration of AMPL
User’s Guide application programs graphically.
AMPL Application Building Manual on the ABB MasterProgramming Language
Reference Manual (AMPL).
PC Elements Data for all PC elements in Advant Controller 410/450.
Advant Controller 400
Series
Reference Manual
Data Base Elements Data for all data base elements in
Advant Controller 400 Advant Controller 410/450.
Series
Reference Manual
MasterView 320 Complete manual for MV 320 containing descriptions,
User’s Guide operating instructions, linkages to PC programs,
descriptions of error messages and a table of ASCII
codes.
Source Code Handling Contains descriptions and instructions for use of AMPL
Reference Manual source code for application programs and data bases.
Advant Station 500 Series Manual for Advant Station 500 Series Operator Station.
Operator Station
User’s Guide
1.6 Terminology
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.
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.
Process
Figure 2-1. Interaction between Data Base, PC Program, and the Process
2.2.1 General
In the Advant Controller 400 Series, the data base is used for a number of purposes:
• Definition of the I/O system, definition of buses, etc.
• Intermediate storage of data which is to be transferred between:
– I/O system and PC programs
– PC programs
– Advant Controller 400 Series controllers
– Advant Controller 400 Series and the Advant Station 500 Series Operator Station
– Advant Controller 400 Series and third-party devices.
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.
DI5.32
DI5.3
DI5.2
DI5
DI5.1
DI board (4.5)
$GGU Digital Input
(8.129)
14 IMPL
15 SERVICE > DI5.1 1 NAME VALUE 12
ERR 17
2 TYPE 1 4 ACT ERR 5
ADDR 3
X1 SCANT 0 7 BLOCKED UPDATED 6
5 ACFILT 0 25 INV
6 FILTA 0 27 TESTED
0 11 ERR_CTRL
7 FILTB
8 FILTC S2 Operator functions
9 FILTD
27 P_CATCH E3 Group Alarm
Examples of the various categories of data base elements are given below.
• DB elements to describe the I/O boards and signals and to transfer data to/from the
PC programs:
– AI (Analog Input board)
– DI (Digital Input board)
– AO (Analog Output board)
– DO (Digital Output board)
– AIS (Analog Input Signal)
– DIS (Digital Input Signal)
– AOS (Analog Output Signal)
– DOS (Digital Output Signal)
1
– AI8<nn> (Analog Input module; S800)
– AO8<nn> (Analog Output module; S800)
– DI8<nn> (Digital Input module; S800)
– DO8<nn> (Digital Output module; S800)
1. <nn> stands for different S800 I/O series modules, for example AI810, DI811,AO820
• DB elements, with values calculated by a PC program, that have the same characteristics
as, for example, an AIS DB element:
– AIC (Analog input, calculated)
– AOC (Analog output, calculated)
– DIC (Digital input, calculated)
– DOC (Digital output, calculated).
• DB elements to transfer data between PC programs and between nodes:
– DAT(B) (To transfer Boolean data)
– DAT(I) (To transfer integer data)
– DAT(IL) (To transfer long integer data)
– DAT(R) (To transfer data in the form of real numbers)
– Data Set (For communication with another node)
– MVB (MVI data blocks).
• DB elements of Functional Units (having a DB part and a PC part):
– PIDCON (Process controller)
– PIDCONA (Autotuned process controller)
– MANSTN (Manual station)
– RATIOSTN (Ratio station).
• DB elements to configure Advant Fieldbus 100:
– CI520 (AF 100 Fieldbus).
• DB elements representing stations at Advant Fieldbus 100:
– AC110 (Advant Controller 110)
– AC70 (Advant Controller 70)
– AF100S (Advant Station connected to Advant Fieldbus 100)
– CI810 (DB element representing an I/O station at Advant Fieldbus 100).
• DB elements representing Drives connected via 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.
In formal terms, the DB elements of the data base can be divided into four categories.
• Superior DB elements. These DB elements control their subordinated DB
elements. Example: I/O board DB elements, DI1, AO2...
• Subordinate DB elements. These DB elements are controlled by their superior DB
elements. Example: I/O signal DB elements, DI1.1, AO2.1...
• Independent DB elements. These DB elements are independent of other DB elements.
Example: AIC1, DIC2, PIDCON1...
• System DB elements. They are needed during start up of the Advant
Controller 400 Series. Example: MasterBus 300 DB element.
DI Board
DI Board Signals
DI5.32
DI5.3
DI5.2
DI5
Data Base Index DI5.1/ VENT_OP
DI board (4.5)
Addr: 0110 0100 Digital Input
(8.129)
14 IMPL
15 SERVICE > VENT_OP 1 NAME VALUE 12
ERR 17
2 TYPE 1 4 ACT ERR 5
ADDR 3
X1 SCANT 0 7 BLOCKED UPDATED 6
5 ACFILT 0 25 INV
6 FILTA 0 27 TESTED
0 11 ERR_CTRL
7 FILTB
8 FILTC Operator function
S2
9 FILTD
27 P_CATCH E3 Group Alarm
Printed
Name of Character Remark
Character
Double opening quote "
Hash mark #
Dollar $
Ampersand &
Asterisk *
Plus sign +
Question mark ?
At sign @
A ... Z A ... Z
Caret ^
Underscore _
a ... z a ... z
Printed
Name of Character Remark
Character
odieresis ö GER, SWE (1)
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.
Interpreter
A B C
Place 1
Place 2
Place n
In systems where there is a big difference between the shortest and the longest possible
execution time, it must be possible to lay down internal priorities to enable short, quick
subprograms to temporarily interrupt long, slow ones. This is why there are three interpreters,
A, B, and C, where A has top priority and the shortest cycle time.
The required number of places in the cycle time tables (scan places) in interpreters A, B and C is
specified when you are dimensioning the space for PC programs (see Section 3.4.1,
Dimensioning the Space for PC Programs).
10 ms 50 ms 250 ms
20 ms 100 ms 500 ms
40 ms 200 ms 1000 ms
- - 2000 ms
DIMENSION PC
Free space in system 555 kb
Allocated PC area 100 kb
Available PC area 10 kb
Allocated interpreter area 2 kb
100 kb Size of PC pgm tables (Min. 3 kb)
Figure 2-5. Number of Places in the Cycle Time Tables for Interpreters A, B, and C
APP
The command APP (Alter Product Parameter) presents and/or alters miscellaneous cycle (scan)
times in the connected Advant Controller 400 Series.
Use the APP command to change to a suitable cycle time if the default setting is not satisfactory.
Execute the APP command prior to all application programming. The cycle times, however, can
always be displayed.
Syntax:
APP
Subcommands:
M Opens the line at the cursor (>) for modification.
> The cursor moves down one step after you press Enter.
< The cursor moves up one step after you press Enter.
= The cursor does not move after you press Enter.
! Switches from the modify mode to the initial mode.
DIM The requested dimensioning is transferred to the Advant Controller 400 Series
with the subcommand DIM.
PRINT Gives a printout of the screen contents.
CYCLE_A (5 - 100):
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.
DI (S100 I/O, • • • • • • • • • • •
S800 I/O) (1) (2)
Pulse inputs • • • • • • • • • •
(S100 I/O) (3)
DI (S400 I/O) (4) • • • • • • • • • •
AI (S100 I/O, S800 I/O), • • • • • • • • • • • • • • • •
except temperature
measurement boards (5)
AI (S100 I/O), • • • • • • • • • • • • • • • •
temperature
measurement boards (6)
AI (S400 I/O) (7) • • • • • • • • • • • •
(1) SCANT determined for each board.
(2) IN = Interrupt; is not possible for DI8* (DI810,...
(3) SCANT determined for each channel.
(4) SCANT determined for each board.
(5) SCANT determined for each channel.
(6) All indicated SCANT values are allowed, but these boards have slower A/I converters than other AI boards. SCANT down to 200 ms
can be used without difficulty in systems with a net frequency of 20-60 Hz and a 12-13 bit resolution requirement.
(7) SCANT determined for each channel.
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
AI8<nn>(1) • • • • • • • • • • • • •
AO8<nn> • • • • • • • • • • • • •
DI8<nn> • • • • • • • • • • • • •
DO8<nn> • • • • • • • • • • • • •
(1) <nn> stands for different S800 I/O series modules, for example AI810, DI811,AO82.
1 = AUTO 2 3
2 = STOP 1 4
3 = CLEAR
4 = OFFLINE
AUTO:
Warm start, i.e., the application program is restarted and not changed. This is the normal
position of the selector.
• If the controller was in CONFIGURATION mode, it remains in CONFIGURATION
mode.
• If the controller was in OPERATION mode, it remains in OPERATION mode.
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.
The controller then starts.
Event: Power up
3 (CLEAR) (STOP) 2 2
Start Mode Selector: 2 3 2 3 3
(AUTO) 1 4 1 4 1 4 1 4 (OFFLINE)
(Compulsory
setting)
Resulting
Working Mode OPERATION CONFIG. STOPPED OFFLINE
mode (P1) mode (P2) mode (P3) mode (P4)
(STOP)
Start Mode Selector: 2 2 3 (CLEAR) 2 2
3 3 3
(AUTO) 1 4 1 4 1 4 1 4 (OFFLINE)
Start cond.:
OPERATION CONFIG. mode
mode
Resulting
Working Mode OPERATION CONFIG. STOPPED OFFLINE
mode (P1) mode (P3) mode (P4)
mode (P2)
ECONFIG
Use the ECONFIG command (Enable CONFIGuration) when you want to change to the
CONFIGURATION mode.
Syntax:
ECONFIG
You are asked whether you want to exit OPERATION mode. The LED display on the processor
module front shows “P2” to indicate the CONFIGURATION mode.
Actions executed
by the Controller Stop
application
Resulting
Working Mode OPERATION CONFIG. STOPPED OFFLINE
mode (P1) mode (P2) mode (P3) mode (P4)
DICONFIG
Use the DICONFIG command (DIsable CONFIGuration) when you want to change to the
OPERATION mode.
Syntax:
DICONFIG
You are asked whether the controlled process is to be put into OPERATION mode. The LED
display on the processor module front shows “P1” to indicate the OPERATION mode.
Resulting
Working Mode OPERATION CONFIG. STOPPED OFFLINE
mode (P1) mode (P2) mode (P3) mode (P4)
RECONFIG
The RECONFIG (RECONFIGuration) command performs a cold start of the system and
requires the CONFIGURATION mode.
Syntax:
RECONFIG
You are asked whether all PC programs and the data base are to be removed. The RECONFIG
command deletes all application programs in the connected Advant Controller 400 Series.
The RECONFIG command, however, does not delete the corresponding data of the User Disk
Application Segments. To delete the corresponding data of the User Disk Application Segments,
change to SYSTEM level using the SLLEV SYST command. Delete the files *.SM, *.AP, *.UI,
if present, to avoid mismatching of the User Disk Application Segments with the target system.
The result of this procedure is an initial USER volume. Perform a SLLEV PC command
directly afterwards. For more information about the User Disk Application Segments, see
Section 7.2.2, USER Volume.
Resulting
Working Mode OPERATION CONFIG. STOPPED OFFLINE
mode (P1) mode (P2) mode (P3) mode (P4)
WARNING
Risk of operational malfunctions.
At power on, the system is automatically initialized (start mode: AUTO). If the
system is powered on in the start mode CLEAR, the RAM is reset. PC programs
and the data base must then be reloaded.
START NAME
Control of ON
2 PC_PGM Start module inputs
0 CLEAR_C for AUTO start
1 AUTO_C
2 RESTA_C
Control of restart
.2
after power failure
CONTRM
Blocking of alarm
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.
.1
Data Base Elements
ST1/START CONTRM
Definition of start modules
(CLEAR_C is not relevant for AC 400) START (192.1)
Start module for
START NAME programmed
2 PC_PGM restart after
0 CLEAR_C power failure
Time limits for 0 AUTO_C
restart option 1 RESTA_C
time SHORT_T
time MP_SP_T
LONG_T
Restart option start mode SHT_T_ST CON_SP_T Power failure data
start mode MED_T_ST SP_TIME Outputs can be connected
after power fail start mode SP_DATE to PC
LNG_T_ST
Value of restart option SHT_T_ST: Value of restart option MED_T_ST: Value of restart option LNG_T_ST:
- AUTO, - AUTO, - AUTO,
&/($5 - CLEAR, - CLEAR,
- STOP or - STOP or - STOP or
- RESTART - RESTART - RESTART time
Power down time < SHORT_T SHORT_T < Power down time < LONG_T Power down time > LONG_T
6+257B7 /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.
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:
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.
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.
START NAME 1 ON
2 PC_PGM 2 R RUN
0 CLEAR_C
1 AUTO_C
Values of inputs and call
0 RESTA_C PC2.1 parameters for these
elements are not
SHORT_T CONTRM significant.
MP_SP_T
LONG_T (C1, C2)
SHT_T_ST CON_SP_T
MED_T_ST SP_TIME 1 ON RUN Outputs of this element
LNG_T_ST SP_DATE 2 > SINGLE MODP must not be used.
3 R
.1
MOVE
(B, 3)
.2
MOVE
(B, 4)
D=1 1 21 DI1.2:AL_P_BLK
D=1 2 22 AI1.3:AL_P_BLK
D=1 3 23 AI1.4:AL_P_BLK
D=1 4 24 DIC33:AL_P_BLK
Power-fail - Power-up
Event : (Recommended
Start mode selector: setting)
(STOP) 2
2 3 2 3 (CLEAR) 3 2 3
(AUTO) 1 4 1 1 4 1 4 (OFFLINE)
4
Starting
point: CON S
OP
C
Actions executed -Install
by the controller Programmed start system SW
-Erase
Initialize and application
start application
R A
Resulting
working mode OPERATION CONFIG. STOPPED OFFLINE
P1 P2 -3 -4
A AUTO
C
CLEAR
S
STOP
A
Resulting
working mode OPERATION CONFIG. STOPPED OFFLINE
P1 P2 -3 -4
A
Resulting
working mode OPERATION CONFIG. STOPPED OFFLINE
P1 P2 -3 -4
NOTE
Note that all communication ports for MasterBus 300, as well as those for
RCOM, GCOM, and Modbus, which are supposed to be included in the system,
must be started before you dimension the data base.
DIMDB
Dimension the data base using the command DIMDB (DIMension Data Base). The picture on
thescreenshowsthevariouspartsofthedatabase(S1-S7)thataretobedimensioned.During
dimensioning, the Advant Controller 400 Series must be in
CONFIGURATION mode (see Section 2.4, Working Modes of Advant
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'%
There are two subcommands that open a dimensioning detail for modification:
M Opens the line at the cursor “>” for modification.
Mx Moves the cursor to the dimensioning detail with number x in the
dimensioning display and opens the detail for modification.
MWx Moves the Window, whereas -99≤ x ≤99.
------------------------------------------------------------------------
?M
Number of MFB UNITS: 0 New value:
When the Advant Controller 400 Series is in modify mode, the name and current value of the
dimensioning detail appear on the bottom line of the display.
<Enter> 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.
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.
S3 Use the subcommand S3 to dimension the MasterView 300 part of the data
base.
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 User’s Guide.
S5 Dimension the function units and group alarm part of the data base using the
subcommand S5.
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 base’s 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.
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 = GENBIN + GENCON + GENUSD
A9 = SEQ
A10 = PIDCON
A11 = MANSTN
A12 = RATIOSTN
A13 = MOTCON + VALVECON
A14 = MMCX (number of data base elements that the user
is creating)
A15 = PIDCONA
3.2.1.5 Transferring the Dimensioning Data to the Advant Controller 400 Series
Subcommand:
DIM When dimensioning is complete, transfer the information to the data base of
the Advant Controller 400 Series using the DIM subcommand.
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.
CRDB
You can create elements in the data base with the CRDB (CReate Data Base) command.
Syntax:
&5'%
&5'% element-type
DI1 Address to be
DI board (4.1) Strapped on Board
Addr: 0110 0100
Default Values <1 14 IMPL
1 15 SERVICE 17 0
DSDI 110 2 ERR
TYPE ADDR
INTERRUPT X1 SCANT 3 96
0 5 ACFILT
10 6 FILTA
10 7 FILTB
10 8 FILTC
To go to next 10 9 FILTD
Element, use NO 27 P_CATCH
the directive >>
? >>
The DB element that is created is placed at the first free space in the corresponding file.
When a superior DB element type (e.g., board DB element) is created, a number of subordinate
DB elements (signal DB elements) of the corresponding type are also created.
The cursor “>” appears in line with the terminal being processed. You can control the movement
of the cursor:
> The cursor moves down one step after you press Enter.
< The cursor moves up one step after you press Enter.
= The cursor does not move after you press Enter.
If you wish to change the board type proposed by the system, the change must
be made before the subordinate signal DB elements are created. Board type
cannot be changed after the signals have been created.
>> Moves to the next DB element.
E Expands a subordinated data base element having an E.
En Calls input terminal, e.g., E7. The parameter “n” is the terminal number.
MWx Moves Window, whereas -99≤ x ≤99.
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 14 IMPL
1 15 SERVICE ERR 17 0
DSDI_110 2 TYPE ADDR 3 0
INTERRUPT X1 SCANT
0 5 ACFILT
10 6 FILTA
10 7 FILTB
10 8 FILTC
10 9 FILTD
NO 27 P CATCH
DI1.1
Digital Input
(8.1)
>DI1.1 1 NAME VALUE 12 0
1 4 ACT ERR 5 0
0 7 BLOCKED UPDATED 6 0
0 25 INV
0 27 TESTED
0 11 ERR CTRL
S2 Operator functions
E3 Group Alarm
DI1.2
Digital Input
(8.2)
>DI1.2 1 NAME VALUE 12 0
1 4 ACT ERR 5 0
0 7 BLOCKED UPDATED 6 0
0 25 INV
0 27 TESTED and so on for all
0 11 ERR CTRL signals of the
S2 Operator functions board
E3 Group Alarm
There are two subcommands for changing the displayed segment of the DB element:
S Expands the section at the cursor.
Sx Expands the segment number x.
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 Opens the line at the cursor for modification.
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.
! Returns from modify mode to initial mode.
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> To end populating the data base, press Ctrl-Break. An incomplete activity is
completed before populating of the data base is ended. If creation of a board is
in process, the DB element in question is deleted.
MDB
You can modify existing DB elements with the command MDB (Modify Data Base). If the
command is used with the Advant Controller 400 Series in OPERATION mode, the changes are
implemented terminal by terminal after approval. In OPERATION mode, however, only a small
number of characteristics can be modified. If the Advant Controller 400 Series is working in
CONFIGURATION mode, the modifications are only carried out when the entire DB element
has been processed.
Syntax:
0'%
0'% element-name
0'% item-des
0'% logic-file.logic-rec
0'%address-specification
After you press Enter, the specified DB elements appear on the screen. The MDB command
has the same subcommands as the CRDB command, except that the ALL subcommand is
missing and the following have been added:
<< Moves to the preceding DB element.
>> Moves to the next DB element.
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>.
Parameter Use
start Used if the first page number of the listing
is to be other than 1.
interv Used if an interval greater than 1 is
required in the page numbering for an
element type.
gap Used if an interval greater than 1 is
required in the page numbering between
different element types.
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:
Parameter Function
XREF Cross-referencing is required
PCm If cross-referencing to one or several (but
not all) PC programs is required, the item
designation of the first one is stated here.
PCn If cross-referencing to one or several (but
not all) PC programs is required, the item
designation of the last one is stated here.
Example:
#/'%'6(/ 3,'&21;5()
#/'%'6(/ 3,'&21;5()3&!3&
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).
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
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:
M Opens the line at the cursor (>) for modification.
! Switches from the modify mode to the initial mode.
DIM Transfers the requested dimensioning to the Advant Controller 400 Series.
PRINT Gives a printout of the screen contents.
END Ends DIMPC.
MWx Moves the Window, whereas -99≤x ≤99.
DIMENSION PC 1
Free space in system 555 kb
Allocated PC area 100 kb
Available PC area 10 kb 2
Allocated interpreter area 2 kb
100 kb Size of PC pgm tables 3
4 (Min. 3 kb)
10 Number of PC programs (Min.1)
5
50 Number of scan places in interpreter A
50 Number of scan places in interpreter B
6 50 Number of scan places in interpreter C
7
Interpreter cycle times (ms)
A 10 20 40
B 50 100 200
C 250 500 1000 2000 8
0 kb Size of USER disk application seg area
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 DISC SPACE: TRY COMPRESS; OTHERWISE MODIFICATION
IMPOSSIBLE
#067$%6
MINIMUM SIZE (Symbol-table already used) : 60
MAXIMUM SIZE (Available disc space) : 225
SYMBOL TABLE SIZE (BLOCKS) = 85 =
SYMBOL TABLE SUCCESSFULLY MODIFIED.
3.5.1 General
The first stage in PC programming is to prepare a PC program on paper. Next, enter the PC
program from this draft. The PC elements to be used in the PC program are defined first.
Then the various chosen PC elements are connected to each other. A check routine looks for
unconnected inputs. When all or part of the PC program has been entered, you can list it on a
printer and make a PC program dump.
The loading and editing commands include functions for loading, deletion and modification of
the function PC elements and structure PC elements in a PC program.
DANGER
Danger of personal risk! Risk of malfunctions!
A change in an executing PC program may affect the process as soon as it is carried out. Do not
make changes in PC programs that are executing 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.
PC Program in BUILD
Mode
EBM DIBM
PC Program in BLOCKED
EBM Mode
BL DBL
PC Program in EXECUTION
Mode
EBM
Use EBM (Enable Build Mode) to make changes and additions in existing PC programs.
Since the command interrupts the execution of the PC program that is to be changed, you must
often place several interacting PC programs in BUILD mode.
Syntax:
(%0 pc_pgm [>pc_pgm]
Examples:
Enable BUILD mode in PC14:
#(%03&
Enable BUILD mode in PC18, PC19, PC20, PC21:
#(%03&!3&
IS
Syntax:
,6 item_des [;(1']
With the command IS you can:
• Construct a new PC program.
• 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.
NOTE
The item designation chosen does not affect the sequence in the PC program, for
example, on execution and documentation. Where PC elements have function
parameters, you are prompted for these function parameters.
.2 .2 .2
.2
.1 .1 .1
.1
.2 .2 .2
.2
.3 .3 .3
.3
.4 .4 .4
.4
When you use the IS command, the system starts a dialog and shows the next available item
designation on the level below. Every proposed item designation ends with the command “?”
and the system waits for a response.
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?
PC1 PCPGM
.1 CONTRM(250,1)
.1 AND(3)
.2 OR(2)
.3 ?
PC1.1 ? CONTRM(250)
PC1.1.1 ? AND(3)
PC1.1.2 ? OR(2)
PC1.1.3 ? !
#,63&
Available space in area PC: 489 kbyte
DB connection: 99% Local data: 99%
PC1? 3&3*0
PC1.1? &21750 !6
INAME 6RPH%LQDU\/RJLF
PC1.1.1? $1'
PC1.1.2? 25 !6
INAME 7KLV256WDWHPHQW
PC1.1.3?
C
Use the command C (Connect) to connect PC elements in a PC program. If the PC program is
not in BUILD mode, text is displayed warning you about modifying an executing PC program.
You should not modify PC programs that are executing unless you are thoroughly familiar with
the procedure for making on-line changes (see Chapter 5, Changing an Application Program
On-line) and know how the PC program is affected by such changes. To start with, the command
produces a display which states the amount of memory available.
Syntax:
& item_des [:terminal]
& item_des [:function_parameter]
& [pc_pgm,] variable_name
Most of the PC elements, which have been chosen by insert statement, have inputs and outputs
which can be connected in one of the following ways.
Input terminals to:
• An output terminal of another PC element
• An input from the data base
• A constant
• An operational parameter.
Output terminals to:
• One or more PC element inputs
• One or more outputs of the data base.
If a variable name but no PC program number is given, the command assumes the last
PC program used.
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 1 & 20 <0>-
D=0 2
>? 3
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:
Description Value
Operational parameters D=value
Operational parameters used several times MD=value
(the value is to be assigned to more than one
input)
Constants CD=value
Constants used several times (the constant is MCD=value
to be assigned to more than one input)
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 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).
. A previously specified name or unit can be removed with the subcommand “.”
(period).
Example:
:2 !6
NAME:= TIME = .
UNIT:= KG = .
#&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
Item Designation :2 TD IT ?
:2 '
PC Diagram Page
:5 0 OB Data Type where connected
:5 PC1.1.1:1 Terminal can be found
Terminal Number
:6 TE OT
:6 Connected Terminal
Terminal Name
Example:
PC20
.1
.1
.2
.2
.1
.1
.2
.3
.2
.3
#'63&!
deletes all PC elements in the structure
#'63&!
deletes two PC elements
#'63&!
deletes PC elements PC20.2.1, PC20.2.1.1, PC20.2.1.2, PC20.2.1.3 and PC20.2.2.
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 2 3 4 5 6 7
#LS PC4.1.1;5
17 PCD-PAGE : 1
PC4.1.1 MUL (R,2)
:1 IR =AI1.2 =AI1.2 G
:2 IR D=1.040
:20 OR liter
16 =AO1.2 =AO1.2 P
1 PC4.1.2:I
PC4.1.2 COMP-R (2,2)
:1 I IR PC4.1.1:20 liter 1
15 :10 HHYS IR D=100.000 liter
:11 H1 IR H_LIM_1 liter D=700.000
:12 H2 IR H_LIM_” liter D=900.000 8
:20 I<H1 OB 9
:21 I>=H1 OB ABOVE_H_LIM_1
=DO1.5 =DO1.5 P 10
14 :22 I<=H OB ABOVE_H_LIM_2
2 PC4.1.3:2
N
13 :30 LHYS IR D=100.000 liter
:31 L1 IR D=100.000 liter
:32 L2 IR D=200.000 liter
:40 I>L1 OB
:41 I<=L1 OB =DO1.4
:42 I<=L2 OB
12 11
When you switch a PC program from BUILD mode to EXECUTION mode, use the command
DIBM first to reach BLOCKED mode. Execution of the PC program begins after the command
DBL (DeBLock), but only if inputs of the execution unit have not been assigned parameters that
prevent them from starting.
Command given
with PC element item Details of:
designation and PC program Page number and
terminal number Variable name
Data type identity of terminal
Details of
operational
parameter or
constant
#LV PC1.1.1:1
PC1,START
MD=1 B 1 PC1.1.1:1
Command 1 PC1.1.1:2
given with 2 PC1.1.2:2
variable name 2 PC1.1.3:R
2 PC1.1.3:L
#LV START
PC1,START
Command MD=1 B 1 PC1.1.1:1
given with data 1 PC1.1.1:2
base identity, the 2 PC1.1.2:2
DB terminal 2 PC1.1.3:R
2 PC1.1.3:L Information
VALUE #LV =VENT OPEN
is used =VENT OPEN on ‘source’
by default =DI5.3
=8.131:12
B
1 PC1.1.1:20 S
2 PC1.1.2:1
PC4:ON
PC6.7.9:R
PC7.2.1.3:2
#LV PC4,=VENT OPEN
=VENT OPEN
=DI5.3
=8.131:12
B
Command 1 PC4:ON
PC1
given with data- PC6
base identity, the #LV =DO1.16:5 PC7
DB terminal =AdjustControl
ERR is used =DO1.16
=9.16:5
B
1 PC1
PC2
BL
To facilitate PC program testing, use the BL (BLock) command when:
Syntax:
%/
%/ ['%,] pc_pgm [> pc_pgm]
%/ ['%,] item_des
You can block
• One or all PC programs
• 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.
3&9DULDEOHV 'HVLJQ3DUDPHWHUV
F\FOHWLPHSDUDPHWHUV for
PCPGM, CONTRM, MASTER
and SEQ under the same PC
FDQEHFKDQJHG \HV QR QR QR interpreter QR
SRVLWLRQSDUDPHWHUV for
PCPGM, CONTRM, MASTER
and SEQ
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 =
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
.2 .3
.19 .1
.20 FUEL .2
.21 .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.
! The command is terminated with the subcommand “!”.
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.
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.
GEPCD
Use the GEPCD (GEnerate PC Diagram) command to display a single PC element and the
values of its terminals.
Syntax:
*(3&' [item_des]
*(3&' ' [, item_des]
This command is used to display the current values of inputs and outputs of a PC element.
The values can be both statically and dynamically updated and diagnosed, and the connections
can be traced backwards. There are a number of different ways of choosing which PC element is
to be displayed. At the beginning of the command, either the specified PC element is displayed
or, if the command is given without item designation, the PC element most recently displayed is
displayed again. If a “D” is entered as a parameter, all values are inserted and displayed with
dynamic updating. Use <Ctrl-Break> to get back to the command level with context-sensitive
subcommands. The following subcommands are available for GEPCD:
HELP, ?, IV, GVD, MV, DV, GS, DIAG, GEPCD, MW, PRINT, RMD, !, END
Subcommands:
HELP or ? displays available subcommands.
IV (Insert Value) inserts the current values of a selected terminal or variable on
the display.
syntax: ,9 [variable_identity]
GVD (Get Values Dynamically) displays the status of variables dynamically.
syntax: *9'
MV (Modify Value) enables the modification of operational parameter and, in
some cases, call parameter values (see Section 4.2.5, Reading and Modifying
a Variable Value).
syntax: 09 variable_identity
syntax: 09 item_des : call parameter
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 value—PC 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 (GEnerate PC Diagram) displays the PC element selected. If a “D” is entered
as a parameter, values are inserted and displayed with dynamic updating.
syntax: *(3&' ', item_des
PC1.3.3
RAMP
2.307 1 I O 10 0.000
0.000 2 STEP+ O=HL 11 0.000
3.434 3 STEP- O=LL 12 0.000
1.762 4 SLOPE+ ERR 13 0.000
0.400 5 SLOPE-
1 6 BAL
0.000 7 BALREF
1000.000 8 OHL
-1000.000 9 OLL
Example:
#*(3&'3&
? *6
PC1.1.5
0 1 & 20 0
1 2
PC1.1.4
0 1 ≥1 20 1
1 2
.1
0 ≥1 20
0 1
2
.2
0 1 & 20
1 2 .5
0 &
1 1 20 0
2
.3
1 1 & 20
1 .4
2 1 ≥1 20
0 1
2
Call the PC element PC1.1.5 and use the DIAG subcommand as follows:
"',$*
PC1.1.5
0 1 & 20 0
1 2
The values of the terminals are displayed. Use the DIAG subcommand again for terminal 1:
"',$*
PC1.1.1
0 1 ≥1 20 0
0 2
The result of the DIAG command above is displayed in Figure 4-9. Element PC1.1.1 has two
inputs with “0”, which cause the “0” output value of element PC1.1.5.
GETAB
Syntax:
*(7$%[table_name] [/LT]
Use this command to display the current values of terminals in PC programs and the data base in
a table or in a graphical diagram. The values can be both statically and dynamically updated.
With dynamically updating subcommands, use <Ctrl-Break> to get back to the command level.
The following data types can be presented: B, IB, I, IL, R, T, TR.
The following subcommands are available for GETAB:
GVD, PRINT, HELP, ?, MV, IV, DV, RMD, SAVE, !, END
Subcommands:
GVD (Get Values Dynamically) displays the status of variables in the table
dynamically.
syntax: *9'
PRINT Outputs a copy of the current display on the printer. This subcommand is only
available when using the table display.
=AI1.4 R 85.600
=AI1.5 R 32.800
=AO1.3 R 0.000
=DO1.1 R 0
PC4.1.3:5 R 1
=AI1.1 R 0.000
PC4.1.2:21 R 1
=AO1.1 R 0.000
After you give the GETAB command, a dialog begins. The dialog contains a number of
subcommands that make it possible to
• Resume dynamic display
• Remove individual values from the table
• Add values to the table
• Print out the table on a printer
• Change the values of operational parameters
• Terminate the command.
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.
ANPER
Use the ANPER (ANalyze PERformance) command to investigate the actual load of the Advant
Controller 400 Series. Using its indications of the system load as a basis, you can adjust, for
example, the chosen cycle times and thereby optimize the use of the available performance.
Syntax:
$13(5
The command is made up of a number of menu options. The first choice is between analysis of
the load of the entire Advant Controller 400 Series (system load) or the load per system part
(task load). The second of these options is intended for analysis in special circumstances and is
not described here. It is assumed that the SYSTEM LOAD option will be requested.
After this, you can choose from three different ways of displaying the load:
• Load at time of reading
• Graphic display of load
• Tabulated display of load.
<Ctrl-Break> If you choose graphic or tabular display of the load, a permanent display
which persists until you clear it with Ctrl-Break is obtained. With these two
types of display, you must first choose the interval at which the value is to be
updated (one, 10 or 100 seconds). The updating interval is the same as the
time used in the mean value calculation.
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.