0% found this document useful (0 votes)
25 views44 pages

Prmon

Uploaded by

danielitem
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
25 views44 pages

Prmon

Uploaded by

danielitem
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 44

Operating Manual ABB Procontic CS31

Automation System
in Decentralized Structure

Monitor

ABB PLC Division


1725 S. Johnson Road
New Berlin, WI 53146-1240
(262) 446-0000 Fax (262) 446-0300
Regulations
Concerning the Setting up of Installations
Apart from the basic ”Regulations for the Setting up of
Power Installations” DIN VDE* 0100 and for ”The Rating
of Creepage Distances and Clearances” DIN VDE 0110
Part 1 and Part 2 the regulations ”The Equipment of
Power Installations with Electrical Components” DIN VDE
0160 in conjunction with DIN VDE 0660 Part 500 have to
be taken into due consideration.

Further attention has to be paid to DIN VDE 0113 Part 1


and Part 200 in case of the control of working and
processing machines. If operating elements are to be
mounted near parts with dangerous contact voltage DIN
VDE 0106 Part 100 is additionally relevant.

If the protection against direct contact according to DIN


VDE 0160 is required, this has to be ensured by the user
(e.g. by incorporating the elements in a switch-gear
cabinet). The devices are designed for pollution severity 2
in accordance with DIN VDE 0110 Part 1. If higher
pollution is expected, the devices must be installed in
appropriate housings.

The user has to guarantee that the devices and the


components belonging to them are mounted following
these regulations. For operating the machines and
installations, other national and international relevant
regulations, concerning prevention of accidents and
using technical working means, also have to be met.

The ABB Procontic devices are designed according to


IEC 1131 Part 2. Meeting this regulation, they are
classified in overvoltage category II which is in
conformance with DIN VDE 0110 Part 2.

For the direct connection of ABB Procontic devices, which


are powered with or coupled to AC line voltages of
overvoltage category III, appropriate protection
measures corresponding to overvoltage category II
according to IEC–Report 664/1980 and DIN VDE 0110
Part 1 are to install.

Equivalent standards:
DIN VDE 0110 Part 1 IEC 664
DIN VDE 0113 Part 1 EN 60204 Part 1
DIN VDE 0660 Part 500 EN 60439–1 IEC 439–1

All rights reserved to change design, size, weight, etc.

* VDE stands for ”Association of German Electrical


Engineers”.

ABB Schalt– und Steuerungstechnik GmbH Heidelberg


Table of Contents
____________________________________________________________________________________________
1 Operating and test functions . . . . . . . 1– 1
1.1 Commands for creating the
user program . . . . . . . . . . . . . . . . . . . . . . 1– 3
1.2 Commands for testing the
user program . . . . . . . . . . . . . . . . . . . . . . 1– 9
1.3 Commands for configurating . . . . . . . . . 1–17
1.4 Texts in the instruction list . . . . . . . . . . . . 1–22
1.5 Syntax diagram for instruction
list (IL) . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1–24
1.5.1 Syntax diagram:
BOOLEAN SENTENCE . . . . . . . . . . . . . 1–24
1.5.2 Syntax diagram:
ARITHMETIC SENTENCE . . . . . . . . . . . 1–25
1.5.3 Syntax diagram:
HYBRID SENTENCE . . . . . . . . . . . . . . . 1–26
2 Monitor functions . . . . . . . . . . . . . . . . . 2– 1
3 Memory overview . . . . . . . . . . . . . . . . . . 3– 1
3.1 Memory overview for 07 KR 91,
07 KT 92 and 07 KT 93 . . . . . . . . . . . . . . 3– 1
3.1.1 User program RAM . . . . . . . . . . . . . . . . . 3– 1
3.1.2 User program Flash–EPROM . . . . . . . . 3– 1
3.1.3 Operand memory . . . . . . . . . . . . . . . . . . . 3– 2
3.1.4 Dual–port RAM . . . . . . . . . . . . . . . . . . . . . 3– 2
3.2 Memory overview for 07 KR 31,
and 07 KT 31 . . . . . . . . . . . . . . . . . . . . . . 3– 3
3.2.1 System addressing (Mapping) . . . . . . . . 3– 3
3.2.2 Data addressing (Data mapping) . . . . . 3– 3

907 PC 331/Issued: 02.95 0–1 Contents


0–2 Contents 907 PC 331/Issued: 02.95
1 Operating and test functions displayed on the monitor. Use <CR> to scroll the HELP
text.
The operating and test functions of the PLC can be used
with the aid of a terminal, the TCZ service device or the Note on service device TCZ:
ABB Procontic programming system. The four–line liquid–crystal display (LCD) of the service
device TCZ does not suffice to display this command.
Note:
If the user works with the ABB Procontic programming
and test system, this provides him with a convenient Commands for creating the user program
operator interface. When communicating with the control (overview)
system, the ABB Procontic programming and test system
uses the operating and test functions described in this Command Function Page
chapter. AEND Prepare a program change on
The ABB Procontic programming and test system has its a running PLC program . . . . . . . . . . . . 1– 3
own operating instructions.
AEND Reject a program change which
Operator control commands has not yet been enabled . . . . . . . . . . 1– 3
The operator control commands can be subdivided into: ALT Reject an enabled program
change on a running PLC
 Commands for creating and modifying user programs
program and reactivate the
 Commands for testing the user programs old program status . . . . . . . . . . . . . . . . 1– 3
 Commands for configuring the PLC AL Display PLC capacity utilization . . . . . 1– 3
Notes: CROSS *) Display CROSS reference list . . . . . . . 1– 4
 User entries require no ”blanks”. Any ”blanks” entered D Display program . . . . . . . . . . . . . . . . . . 1– 5
are ignored. DEEP Erase PLC program on
Flash EPROM . . . . . . . . . . . . . . . . . . . . 1– 5
 In order to provide greater clarity when describing the
commands, the user entries F*) Search for string
– for keywords are shown in in user program (Find) . . . . . . . . . . . . . 1– 5

UPPER–CASE LETTERS FREI Enable a program change on


a running PLC program . . . . . . . . . . . . 1– 5
– and other entries (addresses etc.) are shown in
IDA Display program identification . . . . . . . 1– 6
lower–case letters.
IDR Delete program identification . . . . . . . 1– 6
 Outputs generated by the PLC software on the
IDS Enter program identification . . . . . . . . 1– 6
monitor are shown in
K Enter/edit values of
lower–case italics.
indirect constants . . . . . . . . . . . . . . . . . 1– 6
All available commands are displayed with the HELP NOP Delete program part, i.e.
command on the screen. overwrite program part with NOPs . . . 1– 7
Help command O Optimize program . . . . . . . . . . . . . . . . . 1– 7
P Display free program
memory area . . . . . . . . . . . . . . . . . . . . . 1– 8
PA*) Program preparation . . . . . . . . . . . . . . . 1– 8
H <CR> 1st text page
S Enter/edit user program
(Substitute) . . . . . . . . . . . . . . . . . . . . . . . 1– 8
SO*) Enter/edit user program
<CTRL> C without echo . . . . . . . . . . . . . . . . . . . . . . 1– 9
SP Save PLC program in
Flash EPROM . . . . . . . . . . . . . . . . . . . . 1– 9
<CR> Next text page
V Move user program . . . . . . . . . . . . . . . . 1– 9

____________________________________________
Function: *) not with 07 KR 31 / 07 KT 31
All available operator control and test functions are **) only with 07 KR 31 / 07 KT 31

ABB Procontic CS31/Issued: 02.95 1–1 Operating and test functions


Commands for testing the user program (overview) Commands for configurating

Command Function Page Command Function Page


A Abort user program . . . . . . . . . . . . . . . . 1– 9 KONFS Display/change operating modes . . . . 1–17
BA*) Display breakpoints . . . . . . . . . . . . . . . 1–10 MAIL Configuration of CS31
BR*) Reset breakpoints . . . . . . . . . . . . . . . . . 1–10 remote modules . . . . . . . . . . . . . . . . . . . 1–17
PASS **) Activate / disactivate the password . . 1–21
BS*) Set breakpoints . . . . . . . . . . . . . . . . . . . 1–10
UHR Display time and date . . . . . . . . . . . . . . 1–21
<CTRL>W Change-over between operator
*) control functions <––> monitor . . . . . . 1–10 UHRS Set time and date . . . . . . . . . . . . . . . . . 1–22
EA*) I/O test mode . . . . . . . . . . . . . . . . . . . . . . 1–11
EAA*) Deactivate I/O test mode . . . . . . . . . . . . 1–11
ES*) Single–step mode ON . . . . . . . . . . . . . . 1–11
ESA*) Single–step mode OFF . . . . . . . . . . . . . 1–11
EZ*) Single–cycle mode ON . . . . . . . . . . . . . . 1–11
EZA*) Single–cycle mode OFF . . . . . . . . . . . . 1–12
FEHLER Display contents of the
error register . . . . . . . . . . . . . . . . . . . . . 1–12
FORC Enter Force values . . . . . . . . . . . . . . . . 1–12
FORC A Display Force value . . . . . . . . . . . . . . . 1–13
FORC R Delete Forcing . . . . . . . . . . . . . . . . . . . . 1–13
G Start user program . . . . . . . . . . . . . . . . 1–13
KALT Perform cold–start . . . . . . . . . . . . . . . . . 1–14
WARM Perform warm start . . . . . . . . . . . . . . . . 1–14
L*) Continue user program . . . . . . . . . . . . 1–14
PS Display program status . . . . . . . . . . . . 1–14
ST Display PLC status . . . . . . . . . . . . . . . . 1–14
TRACE*) TRACE mode . . . . . . . . . . . . . . . . . . . . . 1–15
TRACE*) Display TRACE memory . . . . . . . . . . . 1–15
TRACE E*) Activate TRACE mode . . . . . . . . . . . . 1–15
TRACE A*) Deactivate TRACE mode . . . . . . . . . . 1–15
W*) Stop user program . . . . . . . . . . . . . . . . 1–15
Y Overwrite value of a variable
with a value to be entered . . . . . . . . . . 1–15
Z Display status of variables . . . . . . . . . . 1–15
ZZ Display only the values of the
variables . . . . . . . . . . . . . . . . . . . . . . . . . 1–16
ZD Display and continually update
status of variables . . . . . . . . . . . . . . . . . 1–16

____________________________________________
*) not with 07 KR 31 / 07 KT 31
**) only with 07 KR 31 / 07 KT 31

Operating and test functions 1–2 ABB Procontic CS31/Issued: 02.95


1.1 Commands for creating the user program Reject an enabled program change on a running
PLC program and reactivate the old program status
Command:
Prepare a program change on a running
PLC program
ALT <CR>
Command:

Function:

Modifications which have been performed on a running


AEND <CR> PLC program and which have been enabled are rejected
again. In addition, the PLC restores the old program
status. The old program status is the status of the
program which existed before the program modification,
i.e. before entry of command AEND in the PLC.
Function:
After command ALT is entered, the old program status is
reactivated within approximately 1 ms without further
The command announces to the PLC that modifications intervention on the part of the user.
are to be carried out on the running PLC program. After
this command has been entered, the PLC is ready to The command can be used if the user recognizes that the
accept the program and constant modifications. program modifications implemented do not achieve the
intended result.

When command AEND is entered, all currently active test


Display PLC capacity utilization
functions are deactivated. However, Force values of I/O
signals remain active. Command:

The following commands for program modifications and


operation of the PLC are permitted after entering AL <CR>
command AEND:
AL, CROSS, D, F, IDA, IDR, IDS, K, N, NOP, O, P, PA, S,
SO, V, CTRL W, FEHLER, LED.
Function:

The PLC’s present capacity utilization is displayed in


percent. This display indicates to what extent the capacity
Reject a program change which has not yet been of the PLC is being utilized owing to execution of the user
enabled program.

The processor capacity which corresponds to the


Entering the AEND command again rejects all program difference between 100 % and the capacity utilization
modifications performed to date, and the PLC is ready to display is available for operation of the serial interfaces,
accept program modifications again. i.e. for communication with the devices connected to the
serial interfaces. The utilization should not be greater
than 95 % for the longest program path so that
The following commands are activated with the program communication is still possible via the serial interfaces.
running, and also reject the AEND command and, thus, Note that the capacity utilization of the PLC is also
all program modifications performed after entry of the determined by the current program branches (conditional
AEND command: branches and consecutive number blocks).

Note:
A, BA, BR, BS, EA, EAA, ES, ESA, EZ, EZA, FORC, The capacity utilization display provides a correct
FORC A, FORC R, G, L, PS, ST, TRACE, TRACE E, W, Y. indication of the utilization caused by the user program
Command AEND must be entered again in order to only if no communication is occurring via the serial
permit you to perform program modifications again. interfaces at the instant of display.

ABB Procontic CS31/Issued: 02.95 1–3 Operating and test functions


Display CROSS reference list
Command:

CROSS <CR>

nr

nr
A

nr

nr
M

nr

nr

nr
S

nr

nr

nr

nr

Where: the program memory addresses at which they occur. The


cross–reference list can be output for
E: Abbreviation for input D all operands occurring in the program,
A: Abbreviation for output entry: CROSS <CR>
S: Abbreviation for step
M: Abbreviation for flag D a specific operand type,
K: Abbreviation for constant entry, e.g.: CROSS E <CR>
W: Abbreviation for word variable
D: Abbreviation for double–word variable D a single operand,
nr: Number of the operand entry, e.g.: CROSS KD 00,12 <CR>
Note on service device TCZ:
Function: The four–line liquid–crystal display (LCD) of the service
The cross–reference list is the assignment of operands to device TCZ does not suffice to display this command.

Operating and test functions 1–4 ABB Procontic CS31/Issued: 02.95


Display program Erase PLC program on Flash EPROM
Command: Command:

D aa <CR>
DEEP <CR>

, ea

Function:
L az A PLC program stored on the Flash EPROM is erased
(rendered invalid).

Search for string in user program (Find)


aa: Start address as of which the program is to be
displayed Command:

ea: End address of the program part to be displayed

L: Length (keyword) F adr , string <CR>


az: Number of program memory words to be displayed

Function:
The specified program part is displayed. adr: Start address as of which searching is to be
carried out. If no start address is entered,
Example: searching is performed as of address 0.
 D 0,20 <CR> string: Maximum 8 commands, i.e. 16 words of the
The user program is displayed from address 0 through to intermediate code.
address 20 on the monitor. Function:
The user program memory is searched for the string
 D 10 L 20 <CR>
entered by the user as of the entered start address
20 program memory words are displayed, starting from through to the end of the user program memory. If the
address 10. string is found, the address is displayed. If the string
occurs several times in the program, the next program
Display format in the case of sentences: address which corresponds to the string is displayed in
each case if you enter a semicolon (;).
start address operator operand
: Example:
: F, E 0,0 & E 0,1 <CR>
Display format in the case of block calls: The entered string is sought as of the program memory
start address 0.
address n !ba number
address n+1 type F 100, !BA1 <CR>
address n+2 content of addr n+2 Block call 1 is sought as of the program memory start
Example: address 100.

0000 !E 00,00 Enable a program change on a running PLC


0002 &E 00,01 program
0004 =A 00,00
0006 !BA001 Command:
0007 AWT
0008 A 00,00
0009 KW 00,00
FREI <CR>
0010 KW 00,01
0011 AW 00,00

Note on service device TCZ:


This command can be used only with the following Function:
restriction: A maximum of three instructions can be The modifications on a running PLC program performed
displayed on the liquid–crystal display. after entry of command AEND are enabled for execution.

ABB Procontic CS31/Issued: 02.95 1–5 Operating and test functions


Before entry of command FREI, the program Function:
modifications performed are not yet executed by the PLC. The identification entered by the user for the user
After entry of command FREI, the modifications program is stored in the program memory. The
performed are executed by the PLC. Command ALT can identification may comprise maximum 16 characters. It
be used to reactivate the old program status. The serves, for instance, to store the project name and the
functionality of the PLC program can be further–modified creation date of the program in the PLC.
by a further program modification.
Enter/edit values of indirect constants
Display program identification
Command:
Command:

K nr <CR>
IDA <CR>

Function: D
The identification entered by the user for the user
program is displayed. If no identification has been issued
for the program, nothing is displayed either (see also
command: IDS).
W: Abbreviation for word constants
Delete program identification
D: Abbreviation for double–word constants
Command:
nr: Entered number of the constant

IDR <CR>
constant No.
old value

Function:
The identification entered by the user for the user
program is deleted. new
<CR>
value

Enter program identification


Command: ;

IDS <CR> ”

Program
<CR> constant No. old value:
identification
Displayed number and value of the constant.

new value: The user can overwrite the value of the


*) displayed constant by a new value. In the case of the
word and double–word constants, a hexadecimal
Program identification: These characters are assigned as value may also be entered in place of a decimal
the identification to the user program. value. An H is prefixed to the numerical value for this
purpose.
_____________________________
Caution: Values H8000 and H8000 0000 are forbidden in
*): No program identification is entered for this path. An two’s–complement arithmetic (practical only in the
already existing program identification is deleted. case of masks for instance).

Operating and test functions 1–6 ABB Procontic CS31/Issued: 02.95


;: Entering a semicolon results in display of number Delete program part, i.e. overwrite program part
and value of the constant with the next number up. If with NOPs
the semicolon is entered without entering a new
Command:
value, the old value of the displayed constant is
retained.

: Entering character ”” results in display of number


and value of the constant with the next number NOP aa <CR>
down. If character ”” is entered without entering a
new value, the old value of the displayed constant is
, ea
retained. (Use character ”^” on the PC keyboard.)

<CR>: The command is terminated by entering L az


a <CR>.

Function:
The required numerical values are assigned to the
indirect constants. aa: Start address of the program part to be deleted
ea: End address of the program part to be deleted
This value assignment can also be performed with the
user program running. This means that time values of L: Length (keyword)
timers can be modified when the system is running for
instance. az: Number of program memory words to be deleted
Function:
Cycle time:
The specified program part is deleted. A prompt is
The cycle time is set with the double–word constant
displayed in order to establish whether you really do want
KD 00,00. The set cycle time must be an integral multiple
to delete this program part before deletion. The user must
of the basic time of 5 ms, i.e. 5 ms, 10 ms, 15 ms etc.
once again either confirm deletion with ”J” or cancel
deletion with ”N”.
Example:
K 0,0 <CR> Example:
Output of the number and value of the binary constant NOP 0,20 <CR>
K 00,00. This value can be overwritten if required. If a The user program is deleted from address 0 through to
semicolon is entered, the number and value of the next address 20.
binary constant (K 00,01) is output.
NOP 10 L 20 <CR>
20 program memory words are deleted, as of address 10.
KW 0,4 <CR>
Output of the number and value of the word constant
KW 00,04. Optimize program
Command:
KD 0,0 <CR>
Output of the number and value of the double–word
constant KD 00,00. The cycle time is preset with this
constant.
O aa <CR>

, ea

L az

aa: Start address of the area as of which the program


memory is to be optimized.
ea: End address of the area
L: Length (keyword)
az: Number of program memory words

ABB Procontic CS31/Issued: 02.95 1–7 Operating and test functions


Function: Enter/edit user program (Substitute)
All NOPs are removed and the program is compressed in
Command:
the given program part.

Example:
O 0 <CR>
The entire program memory is optimized. S adr <CR>

O 0,10 <CR>
The program memory is optimized as of address 0 address
through to address 10. content/command

O 10 L 10 < CR>
The NOPs within the next 10 program memory words as
of address 10 are removed and the program is content
<CR>
compressed accordingly. new

Display free program memory area


;
Command:

adr: Program memory address as of which the program


P <CR> is to be entered or modified in instruction list.
address: The program memory address whose content is
to be modified is displayed by the PLC.
Function:
content: Applies to block calls only. The content of the
The program memory is searched for NOPs from the end.
program memory address, translated back, is
If a word which does not correspond to an NOP is found in
displayed.
the intermediate code, the number of NOPs found, i.e. the
number of free program memory words, is displayed. command: Applies to sentences and the block header
(number and type). The command or block header,
translated back, is displayed, always as an entire
Program preparation
command, i.e. operand and operator or block call
Command: and block type. If an address which does not point to
the start of a command or to a block call is entered,
this is corrected to the start of the command by the
PLC.
PA <CR>
content new: New content of the user program.
;: Entering a semicolon displays the subsequent
program memory address and its content, and this
Function: can be modified if required. If no new ’content’ is
The I/O signals planned in the user program are enabled entered before the semicolon, the old content of the
in the I/O configuration list of the PLC. In addition, a syntax displayed program memory address remains
check is conducted for the user program. In the case of unchanged.
sentences with relational operators using bracketed
expressions, the RIGHT BRACKET in front of the binary Function:
assignment is stored by the translator as a binary RIGHT Entering or modifying the PLC program in instruction list.
BRACKET in the intermediate code. This binary RIGHT A program memory word is selected and displayed on the
BRACKET is corrected to form a word bracket by program monitor as an instruction or operand. The displayed
preparation. PA computes the target addresses and the content can then be overwritten.
historical values to be skipped for the branch blocks and Note:
consecutive number blocks. The PA command is called You will also find the following information for
automatically each time the program is started (G entering/modifying the instruction list with this command
command). at the end of this Appendix:

Operating and test functions 1–8 ABB Procontic CS31/Issued: 02.95


– Syntactic structure of the instruction list Move user program

– Instructions on how texts for function blocks Command:


DRUCK/EMAS are entered and displayed.

, ea
Enter/edit user program without echo V aa <CR>

Command: L az

aa: Start address of program part to be moved


SO adr <CR>
ea: End address
L: Length (keyword)
az: Number of program memory words by which the
content
<CR> program part is to be moved
new
Function:
The program is moved from address aa to address ea or
from address aa by the specified number of program
memory words. The gap which results is filled with NOPs.
New program parts can be inserted in this gap. Moving is
adr: Program memory address as of which the program possible only if the required space is still available at the
is to be entered of modified end of the user program. However, this is checked
automatically.

content new: New content of the user program Example:


V 0,10 <CR>
The program is moved from address 0 to address 10.
Function:
NOPs are inserted from address 0 through to address 9.
The program memory address as of which the program is
to be entered is preset. The program can then be entered V 10 L 20 <CR>
consecutively. The PLC returns no echo of the entered The program is moved from address 10 by 20 program
program. However, in the event of an error, the PLC memory words to address 30, and 20 NOPs are inserted.
returns an error message (e.g. Incorrect Entry).
1.2 Commands for testing the user program

Abort user program


Save PLC program in Flash EPROM
Command:
Command:

A <CR>

SP <CR>
Function:
Execution of the user program is aborted. All outputs
(binary and word) are set to zero. The user program can
Function: be restarted by entering ”G”.
The PLC program is transferred from the RAM to the Timers which have been started continue to run
Flash EPROM. Character <*> is displayed on the monitor independently of the program status in the operating
at intervals of approximately 1 second during system. They are aborted only by a cold–start or power
programming. OFF/ON.

ABB Procontic CS31/Issued: 02.95 1–9 Operating and test functions


Display breakpoints adr: Address of the breakpoint
Command:
,: If several breakpoints are set, the addresses must
be separated by a comma when entering.

BA <CR>
Breakpoints can be set:

 to the address of the operand after an assignment


Function: character
All breakpoints of the program are displayed. The
address of the start of the command and its content are  to the address of a RIGHT BRACKET
displayed and not the breakpoint address when the
command is issued.
 to the address of the last parameter of a block
Note on service device TCZ:
This command can be used only with the following  to the address of the end of the program
restriction:
A maximum of three program memory points at which
breakpoints are set can be displayed on the liquid–crystal Function:
display (LCD). After the program start, the program stops at the first
breakpoint. Breakpoints may also be entered with the
program running. A maximum of 15 breakpoints may be
Reset breakpoints
set.
Command:
Advancing to the next breakpoint: If a semicolon is
entered, the program runs to the next breakpoint after
BR <CR> expiry of the cycle time and displays the program address
and the command at this address. If the next breakpoint is
not reached after a specific period, owing to a long cycle
adr time, the display operation can be aborted by entering
<CTRL>C if required.
,
If a breakpoint is set to a program point which is not
executed, e.g. owing to a branch, the program continues
its cycles but with four times the cycle time, which may
adr: Address of the breakpoint to be reset have a disadvantageous effect on the functionality.

,: If only specific breakpoints are reset, the individual


addresses must be separated by a comma when
entering. Change–over between operator control functions
<–––> monitor
Function:
The breakpoints can be reset individually. Command
Command:
BR <CR>
resets all breakpoints of the program.

Set breakpoints <CTRL> W


Command:

Function:
BS adr <CR> Pressing key <CTRL> and key W simultaneously takes
you to the monitor program of the PLC. This makes
available certain basic functions at the monitor level to the
,
user. If you are in the monitor program, you can switch
back to the operating program of the PLC by entering
<CTRL> and W again (see also chapter Monitor
functions)

Operating and test functions 1–10 ABB Procontic CS31/Issued: 02.95


I/O test mode Function:
After starting the program, only one sentence or one block
Command:
is executed and the program stops after each
assignment, RIGHT BRACKET and at the end of each
block.
EA <CR> Command Z can be used to display variable values.
Command ”ES” can also be entered with the program
running. In this case, the mode does not take effect until
Function: the start of the next program cycle.
This mode permits the user to check the wiring of his I/O Advancing by one step:
signals from the PLC through to the process in order to If you enter a semicolon, the program runs to the next
ensure that the wiring is correct. breakpoint after expiry of the cycle time and displays the
program address and the command at this address. If the
After starting the user program, it is not executed. Only
next breakpoint is not reached after a specific period,
the I/O signals planned in the program are operated, i.e.
owing to a long cycle time, the display operation can be
the input signals are read in and the output signals are
aborted by entering <CTRL>C if required.
brought out.

By actuating limit switches etc., it is possible to check Single–step mode OFF


whether the signals arrive under the declared designation
Command:
in the PLC. By setting outputs in targeted manner, it is
possible to check whether the signals arrive at the correct
point in the process. Command Z or ZD can be used to
display the required I/O variables in the PLC. ESA <CR>
Command ”EA” can also be entered with the program
running. In this case, the mode does not take effect until
the start of the next program cycle.
Function:
Single–step mode is deactivated, i.e. the user program
Deactivate I/O test mode continues to run normally as of the current breakpoint.
Command:
Single–cycle mode ON
Command:

EAA <CR>

EZ <CR>

Function:
Mode I/O test is deactivated with this command, i.e. the
user program continues to run normally as of this point. It Function:
is advisable to abort the program before deactivating the When the program is started, the program stops at the
I/O test. end of the program. Command ”EZ” can also be entered
with the program running.
Single–step mode ON The mode does not come into effect until the start of the
next program cycle.
Command:
Advancing by one program cycle:
If a semicolon is entered, the program is run through once
after expiry of the cycle time and displays the program
ES <CR> address and the command at this address (!PE). If the
next breakpoint is not reached after a specific period,
owing to a long cycle time, the display operation can be
aborted by entering <CTRL>C if required.

ABB Procontic CS31/Issued: 02.95 1–11 Operating and test functions


Single–cycle mode OFF Forcing outputs
Command: At the end of the program cycle, the PLC transfers the
output image of the output signals planned in the PLC
program to the output devices. If outputs are to be forced,
their real values are replaced by the force values before
EZA <CR> they are output in the output image.

Behavior after power failure, RESET or warm–start


Function:
Single–cycle mode is deactivated, i.e. the program is After a power failure, the PLC has ”forgotten” the force
executed normally again. job. The list of I/O signals to be forced, entered before the
power failure, is, however, still present in the PLC and can
also be displayed with command FORC A <CR>. The
Display contents of the error register
overall force list is reactivated and forcing is placed back
Command: into effect by entering a single signal to be forced.

The following commands are available for forcing I/O


signals:
FEHLER <CR>
 FORC: Enter force value
 FORC A: Display force value
 FORC R: Delete forcing
Function:
The error information stored in the PLC is output.
Enter force value
Enter Force values
The name of the I/O signal to be forced and the force value
On the PLC, the user can ”force” input signals and output are entered with command FORC.
signals. This means that values are preset for I/O signals
by the user. The PLC then operates with the force values Command: FORC Enter force value
instead of the real input signals. In turn, the PLC issues
the force values to the output devices and not the output
signals computed in the PLC program. The force values
apply until forcing is cancelled for individual I/O signals or FORC
for all I/O signals. Both the values supplied by the input
devices and the values assigned to outputs in the PLC
program thus have no effect during forcing. Forcing can
be applied both to binary I/O signals and to word I/O name ; value
signals.
Maximum number of I/O signals to be forced: ;

 Binary inputs: 64
 Word inputs: 16
 Binary outputs: 64 <CR>
 Word outputs: 16
Forcing is performed in the following way:
Forcing inputs
name: Name of the input or output signal to be forced
The PLC generates an image of the input signals planned
in the PLC program at the start of each program cycle. If value: Force value for the input or output
inputs are to be forced, their real values are replaced by
the force values preset by the user after read–in. The PLC ;: A semicolon is used as the separator between
operates only with the modified input image during the the name and the force value. If several
program cycle, and, thus, signal changes on the input inputs/outputs are to be forced, they must also be
device during the program cycle are unimportant. separated by a semicolon.

Operating and test functions 1–12 ABB Procontic CS31/Issued: 02.95


Function: Delete forcing
Entering the I/O signals to be forced and their values. The Command:
list specifying which inputs/outputs are to be forced is
stored power–fail–safe in the operand memory of the PLC
(if a battery is fitted). (1)
FORC R <CR>
Display force value
Command:
(2)
name

FORC A <CR> (3)

E
E

EW
EW

A
A

AW
AW

Function:
 Displaying all inputs and outputs to be forced
name: Name of the inputs/outputs for which forcing is to
 Displaying all inputs/outputs of a specific group of
be terminated
inputs/outputs to be forced
;: If forcing is terminated only for specific
Note on service device TCZ: inputs/outputs, the individual names must be
This command can be used only with the following separated by a semicolon when entering them.
restriction:
Function:
A maximum of three I/O signals with related force values
can be displayed on the liquid–crystal display (LCD). (1) Terminating forcing for all I/O signals
(2) Terminating forcing for single I/O signals
(3) Terminating forcing for one specific group of
I/O signals
Start user program
Command:

G <CR>

Function:
The user program is started and the operands are
initialized.
The operand areas are initialized in accordance with the
corresponding system constant.

ABB Procontic CS31/Issued: 02.95 1–13 Operating and test functions


Perform cold–start Performing a warm start
Command: – Command WARM <CR> in terminal mode or
– Voltage OFF/ON, if a battery is existing
or
KALT <CR> – menu item ”Enable PLC mode” in the
programming system

Continue user program


Function:
The cold–start command is only allowed, when the PLC Command:
program is ”aborted”.
– All RAM memories will be tested and deleted.
– If there is no user program in the Flash EPROM, L <CR>
the default values will be set to all system con-
stants (same as factory setting).
– If there is a user program in the Flash EPROM,
this will be stored in the RAM inclusive the Function:
system constants. The user program is continued after a preceding stop
(”W”). When continuing, the flags and internal statuses
– The operating modes defined by the system have the same value as with program stop.
constants will be adjusted. Timers which have started continue to run independently
– The CS31 system bus will be initialized again of the program status in the operating system. They are
(only in case of CS31 system bus master) aborted only by a cold–start or power OFF/ON.

Performing a cold start Display program status


– Command KALT <CR> in terminal mode or Command:
– Voltage OFF/ON, when no battery is existing
or
– menu item ”Kaltstart” in the programming
PS <CR>
system

Perform warm start


Command: Function:
The status (program at breakpoint, program aborted,
program stopped, program running) of the user program
is displayed.
WARM <CR>
Display PLC status
Command:
Function:
The warm start command is only allowed, when the PLC
program is ”aborted”.
ST <CR>
Warm start
– All RAM memories will be tested and deleted
with the exception of program memories and
operand memories. Function:
– If there is a user program in the Flash EPROM, The entire PLC status is displayed as follows:
this will be stored in the RAM inclusive the
system constants. Program identification
Cycle time
– The operating modes defined by the system Program status
constants will be adjusted. Active test functions
– The CS31 system bus will be initialized again TRACE registers
(only in case of CS31 system bus master) Error messages
Capacity utilization

Operating and test functions 1–14 ABB Procontic CS31/Issued: 02.95


TRACE mode Overwrite value of a variable with a value to be
entered
Command: Display TRACE memory Command:

Y
TRACE <CR>

var ; value

Command: Activate TRACE mode


;

<CR>
TRACE E <CR>

var: Name of the variable or indirect constant

Command: Deactivate TRACE mode value: New value which is to be assigned to the variable
;: There must be a semicolon between the name and
the value of the variable. If several variables are to
be overwritten, these must also be separated by a
semicolon.
TRACE A <CR>
Note:
If the variable is a step variable, it can only be set and not
reset. When step variables are set, all other steps of the
Function: chain are automatically reset.
In TRACE mode, the PLC notes the address of the block If an indirect constant is modified with this command, this
last executed or the address of the instruction last modification is performed only in the operand memory
executed. After a system crash, the operator is thus and not in the program memory, i.e. this value is
provided with information as to how far the user program overwritten again by the value from the program memory
has been executed. The contents of the TRACE memory with the next program start.
are retained in the event of a RESET.
Display status of variables
Command:
Stop user program

Command:
Z
L number

var
W <CR>

Function:
The user program is stopped.
<CR>

The values of the outputs and of the flags are retained.


Timers which have been started continue to run
independently of the program status in the operating
system. They are aborted only by a cold–start or power var: Variable (flag, step, input, output, indirect constant)
OFF/ON. to be displayed

ABB Procontic CS31/Issued: 02.95 1–15 Operating and test functions


;: The individual variables must be separated by ZZ: Number of possible variables maximum 120. The
semicolons. PLC sends no ESC sequences to the screen
controller, but only the variable values, each
L number: Number of consecutively numbered variables followed by a <CR>. The variable values have the
as of the variable var which are to be displayed. same order as the preset variable list, otherwise as
Example: M 0,0 L 3 with command Z.
The following are displayed:
M 0,0 M 0,1 M 0,2 Display and continually update status of variables
Command:

<CTRL> C ZD

var value of var L number


var value of var
var value of var
. . . . var
. . . .

Z <CR> ;

Z: The values of the variables (max. 22) are each <CR>


updated when character Z <CR> is entered.

Function:
The variable names preset by the user are displayed on var: Variable (flag, input, output, indirect constant) to be
the monitor. The value of this variable is updated each displayed
time character Z <CR> is entered. The displayed variable
values always originate from the same program cycle and ;: The individual variables must be separated by
represent a ”snapshot” at the end of the cycle. semicolons.
The number of variables to be displayed is restricted to 22 L number: Number of consecutively numbered variables
with this command since no more screen lines than this as of the variable var which are to be displayed.
are available.
Example: M 0,0 L 3
Note on service device TCZ: The following are displayed:
This command can be used only with the following M 0,0 M 0,1 M 0,2
restriction: Only the status of one variable is displayed.

Computer connection instead of terminal


If a computer is connected instead of the terminal for
evaluation of the status values, the following commands
may also be used if required instead of Z (same syntax var value of var
diagram as with command Z): var value of var
var value of var
. . . .
ZO: Number of possible variables maximum 120,
. . . .
otherwise as for command Z.

Screen control: In the case of commands Z, ZO and ZD, Z <CR>


the following control characters are used by the PLC for
screen control:

Carriage return: <CR> <CTRL> C


Line feed: <LF>
Clear screen: <ESC>[2J
Position cursor: <ESC>[<line>;<column>H

Operating and test functions 1–16 ABB Procontic CS31/Issued: 02.95


Function: Configuration / interrogation of the configuration of
The variable names preset by the user are displayed on CS31 remote modules (07 KR 91, 07 KT 92, 07 KT 93)
the monitor. The related variable values are updated
Command:
automatically. The displayed variable values always
originate from the same program cycle and represent a
”snapshot” at the end of the cycle. MAIL grn ; code
The maximum number is 22. The command is terminated
by a <CTRL>C. <CR>
If character Z <CR> or ZD <CR> is then entered, the
; d1
status display is reactivated for the previously entered
variables.
; d2
Note on service device TCZ:
This command can be used only with the following
restriction:
Only the status of one variable is displayed. ; d8

1.3 Commands for configurating status;a1;a2;a3;a4;a5;a6;a7


Display/change operating modes
Command: grn: Group number with which the local module is
addressed by the PLC program
code: Job code
KONFS <CR>
d1: 1st data byte of the job
: : :
d8: 8th data byte of the job

german / english <DEL> ;: The individual values of the job must be


separated by semicolons.
status: Status of the response:
51 (OK response)
<CR>
170 (Not–OK response)
Quit command
a1: 1st data byte of the response
: : :
Function: a7: 7th data byte of the response
After command KONFS <CR> is entered, the set ;: The individual values of the response are
language is displayed on the monitor. If you press key separated by semicolons.
<DELETE> (<CTRL> and the Backspace key on PCs),
the language is switched over. The command is Function:
terminated by entering a <CR>. The user has the option of configuring CS31 remote
modules and interrogating the set configuration. The jobs
Note: are handled internally via a transmit mailbox (job) and
The DELETE key is frequently not available on personal receive mailbox (response).
computers. The key code (7FH) of the DELETE key can
be generated on such keyboards by pressing two keys. In
general, these keys are keys <CTRL> and the Backspace List of jobs:
key. The OK responses are described for the relevant
Note on service device TCZ: jobs.
On the servicing unit TCZ, you switch over by pressing The not–OK responses of the individual jobs are
keys <CTRL> and <DEL> one after the other. always as follows:

ABB Procontic CS31/Issued: 02.95 1–17 Operating and test functions


S Not–OK response S OK response
status: 170 status: 51
a1: 47 = Open-circuit monitoring ON
a1: 1 = Unknown job code 32 = Open-circuit monitoring OFF
2 = Invalid parameter, a2...a7: 0
e.g. group number
3 = Remote module does not respond D Activating or deactivating open-circuit
10 = Mail box not free within 3 sec. monitoring of an input
11 = Job has been aborted owing to
actuation of the RUN/STOP switch S Job
12 = Job is not fetched within 6 sec. grn: Group number 0...63
13 = No reply within 6 sec. code: 224 = Open-circuit monitoring ON
160 = Open-circuit monitoring OFF
a2...a7: 0 d1: Channel number 0...15
d2...d8: Not used
D Updating the maximum number of remote
modules detected. S OK response
status: 51
The contents of the input word EW 07,15 include the a1...a7: 0
maximum number of remote modules detected in the
past. The current actual number of existing remote D Activating or deactivating open-circuit
modules may be less than this. monitoring of an output

This command updates this value. The existing S Job


modules are counted and the value is stored. grn: Group number 0...63
code: 225 = Open-circuit monitoring ON
The user can interrogate this value in the PLC 161 = Open-circuit monitoring OFF
program (EW 07,15, bits 8...15). d1: Channel number 0...15
d2...d8: Not used
S Job
grn: 255 (Master PLC with bus) S OK response
code: 132 status: 51
d1...d8: Not used a1...a7: 0

S OK response D Interrogation whether a channel is configured


status: 51 as an input or as an input/output
a1...a7: 0
S Job
grn: Group number 0...63
D Interrogation whether open-circuit monitoring is code: 34
activated or deactivated for an input d1: Channel number 0...15
d2...d8: Not used
S Job
grn: Group number 0...63 S OK response
code: 32 status: 51
d1: Channel number 0...15 a1: 34 = Input
d2...d8: Not used 35 = Input/output
a2...a7: 0
S OK response
status: 51
a1: 47 = Open-circuit monitoring ON D Configuration of a channel as an input or
32 = Open-circuit monitoring OFF input/output
a2...a7: 0 S Job
grn: Group number 0...63
D Interrogation whether open-circuit monitoring is code: 162 = Input
activated or deactivated for an output 163 = Input/output
d1: Channel number 0..15
S Job d2...d8: Not used
grn: Group number 0...63
code: 33 S OK response
d1: Channel number 0...15 status: 51
d2...d8: Not used a1...a7: 0

Operating and test functions 1–18 ABB Procontic CS31/Issued: 02.95


D Interrogation of the input delay of a channel Note:
Bit: even number (0, 2, 4)
S Job
Word: odd number (1, 3, 5)
grn: Group number 0...63
d3...d8: Not used
code: 38
d1: Channel number 0...15 S OK response
d2...d8: Not used status: 51
a1...a7: 0
S OK response
status: 51
D Acknowledging errors on remote module and
a1: Input delay:
resetting configuration values to default setting
2 = 2 ms
4 = 4 ms In addition to job ”Acknowledging error on remote
. module”, all configurable settings are reset to the
. default setting.
. S Job
30 = 30 ms grn: Group number 0...63
32 = 32 ms code: 233
a2...a7: 0 d1: First channel number on the module:
0 = First channel number on the
D Setting the input delay of a channel module is 0 (<7)
S Job 8 = First channel number on the
grn: Group number 0...63 module is 8 (>7)
code: 166 d2: Module type:
d1: Channel number 0...15 0 = Binary input
d2: Input delay 1 = Analog input
2 = 2 ms 2 = Binary output
4 = 4 ms 3 = Analog output
. 4 = Binary input/output
. 5 = Analog input/output
.
Note:
30 = 30 ms
Bit: even number (0, 2, 4)
32 = 32 ms
Word: odd number (1, 3, 5)
d3...d8: Not used
d3...d8: Not used
S OK response
S OK response
status: 51
status: 51
a1...a7: 0
a1...a7: 0
D Acknowledging error on remote module
D Interrogation of the configuration of an analog
This command resets the error messages registered input
on the selected remote module. The error messages
can be reset only if the cause of the error has been S Job
remedied. grn: Group number 0...63
code: 42
S Job d1: Channel number 0...15
grn: Group number 0...63 d2...d8: Not used
code: 232
d1: First channel number S OK response
on the module: status: 51
0 = First channel number on the a1: 50 = Input 0...20 mA
module is 0 (<7) 49 = Input 4...20 mA
8 = First channel number on the a2...a7: 0
module is 8 (>7)
D Interrogation of the configuration of an analog
d2: Module type:
output
0 = Binary input
1 = Analog input S Job
2 = Binary output grn: Group number 0...63
3 = Analog output code: 43
4 = Binary input/output d1: Channel number 0...15
5 = Analog input/output d2...d8: Not used

ABB Procontic CS31/Issued: 02.95 1–19 Operating and test functions


S OK response a3: Bit 0: 0 = First channel number <7
status: 51 1 = First channel number >7
a1: 50 = Output 0...20 mA Bit 1: 0 = Binary module
49 = Output 4...20 mA 1 = Word module
51 = Output +10V a4...a7: 0
a2...a7: 0
D Reading 1...6 bytes
D Configuration of an analog input (07 KR 91, 07 KT 92, 07 KT 93)
S Job
S Job
grn: Group number 0...63
grn: Group number 0...63
code: 49 = Read 1 byte
code: 170
50 = Read 2 bytes
d1: Channel number 0...15
51 = Read 3 bytes
d2: 50 = Input 0...20 mA
52 = Read 4 bytes
49 = Input 4...20 mA
53 = Read 5 bytes
d3...d8: Not used
54 = Read 6 bytes
S OK response d1: First channel number on the module:
status: 51 0 = First channel number on the
a1...a7: 0 module is 0 (<7)
8 = First channel number on the
D Configuration of an analog output module is 8 (>7)
S Job d2: Module type:
grn: Group number 0...63 0 = Binary input
code: 171 1 = Analog input
d1: Channel number 0...15 2 = Binary output
d2: 50 = Output 0...20 mA 3 = Analog output
49 = Output 4...20 mA 4 = Binary input/output
51 = Output +10V 5 = Analog input/output
d3...d8: Not used Note:
Bit: even number (0, 2, 4)
S OK response
Word: odd number (1, 3, 5)
status: 51
a1...a7: 0 d3: Byte start address (low byte)
d4: Byte start address (high byte)
D Interrogation of the bus configuration d5...d8: Not used
The bus interface of the Master PLC has a list which S OK response
stores specific data of the remote modules. In this list, status: 51
the remote modules are numbered in the order in a1: Value of the 1st byte
which they are encountered on the CS31 bus. This a2: Value of the 2nd byte or 0
command involves specifying the internal number of a3: Value of the 3rd byte or 0
the modules. The response received is the group a4: Value of the 4th byte or 0
number stored under this number and the status a5: Value of the 5th byte or 0
information on the corresponding module. a6: Value of the 6th byte or 0
S Job a7: 0
grn: 0 (is not evaluated) D Reading 1 bit of 1 byte
code: 80
S Job
d1: Number from the module list (1...31)
grn: Group number 0...63
d2...d8: Not used
code: 63
S OK response d1: First channel number on the module:
status: 51 0 = First channel number on the
a1: Status of the remote module: module is 0 (<7)
Bits 0...3: Number of process data 8 = First channel number on the
bytes (binary module) or words module is 8 (>7)
(word module) sent by the module d2: Module type:
to the Master. 0 = Binary input
Bits 4...7: Number of process data 1 = Analog input
bytes (binary module) or words 2 = Binary output
(word module) sent by the Master 3 = Analog output
to the module. 4 = Binary input/output
a2: Group number (0...63) 5 = Analog input/output

Operating and test functions 1–20 ABB Procontic CS31/Issued: 02.95


Note: d2: Module type:
Bit: even number (0, 2, 4) 0 = Binary input
Word: odd number (1, 3, 5) 1 = Analog input
2 = Binary output
d3: Byte start address (low byte) 3 = Analog output
d4: Byte start address (high byte) 4 = Binary input/output
d5: Bit position within the byte 0...7 5 = Analog input/output
d6...d8: Not used
Note:
S OK response Bit: even number (0, 2, 4)
status: 51 Word: odd number (1, 3, 5)
a1: Bit value (0 or 1) d3: Byte start address (low byte)
a2...a7: 0 d4: Byte start address (high byte)
d5: Bit position within byte 0...7
D Writing 1...4 bytes d6: Bit value (0 or 1)
(07 KR 91, 07 KT 92, 07 KT 93) d7...d8: Not used
S OK response
S Job status: 51
grn: Group number 0...63 a1...a7: 0
code: 65 = Write 1 byte
66 = Write 2 bytes
67 = Write 3 bytes Password (only with 07 KR 31 / 07 KT 31)
68 = Write 4 bytes
d1: First channel number on the module: Command:
0 = First channel number on the
module is 0 (<7)
PASS <CR> status
8 = First channel number on the
module is 8 (>7)
d2: Module type: Value
0 = Binary input
1 = Analog input
2 = Binary output
Function:
3 = Analog output
4 = Binary input/output The command PASS value activates or disactivates the
5 = Analog input/output password. As a password, any 4–digit hexadecimal
Note: number (except 0000) can be used. If a password is
Bit: even number (0, 2, 4) activated, the following commands are disabled: AEND,
Word: odd number (1, 3, 5) D, DEEP, FREI, N, NOP, O, S, V.

d3: Byte start address (low byte) Value: Any 4–digit hexadecimal number.
d4: Byte start address (high byte) Caution: The value of 0000 has no effect.
d5: Value of the 1st byte
d6: Value of the 2nd byte or not used status: The activation or disactivation of the password is
d7: Value of the 3rd byte or not used displayed.
d8: Value of the 4th byte or not used

S OK response Display time and date


status: 51 (07 KR 91, 07 KT 92, 07 KT 93)
a1...a7: 0
Command:

D Writing 1 bit of a byte

S Job UHR <CR>


grn: Group number 0...63
code: 79
d1: First channel number on the module:
0 = First channel number on the Function:
module is 0 (<7)
8 = First channel number on the The time and date are displayed on the monitor in the
module is 8 (>7) following form:

ABB Procontic CS31/Issued: 02.95 1–21 Operating and test functions


SYSTEM TIME : HH:MM:SS Monday). If the clock is set with block UHR (see also Block
SYSTEM DATE : DAY OF WEEK TT.MM.JJ catalog), a different number may then be assigned to
Monday. In this case, the display of the day of the week no
where: longer corresponds to the command UHR <CR> since the
HH: Hours display function always assumes that Monday is
MM: Minutes assigned the number 1.
SS: Seconds
DAY OF WEEK: Name of the day of the week hh or hh: Hours
TT: Day mm or mm: Minutes
MM: Month ss or ss: Seconds
JJ: Year tt or tt: Day
mm or mm: Month
Note on service device TCZ: jj or jj: Year
The four–line liquid–crystal display (LCD) of the servicing day of week: Name of the day of the week
unit TCZ does not suffice to display this command. n: Enter for ’no’
j: Enter for ’yes’
Set time and date
Command: 1.4 Texts in the instruction list
Certain PLC blocks (DRUCK, EMAS) operate with texts
stored in the user program.
UHRS <CR>
Entering the texts in the user program
A text is entered with the terminal or service device TCZ
embedded in the code characters #” and ”#. The key code
enter new time (hh:mm:ss) hh:mm:ss character #” identifies the start of a text string and the key
code character ”# identifies the end of a text string.
All ASCII characters between 0H and 7FH may be
entered.
enter new date (tt:mm:jj) tt:mm:jj
Storing the texts in the user program
Each text character entered occupies one word in the
user program. The ASCII code of the text character is
select day of week (y/n); day of week n stored in the low byte and the prefix FA is stored in the high
byte.
Example:
j Text entry and storage as of address 100 in the PLC
program:
Entry: S 100 <CR>
Function: 00100 NOP
#”ABB”#<CR>
Setting the time and date. For the day of the week, the
clock manages a number between 1 and 7 internally. Storage: 00100 FA41
When converting the number to the name, it assumes that 00101 FA42
Monday is the first day of the week (number 1 ––> 00102 FA42

Operating and test functions 1–22 ABB Procontic CS31/Issued: 02.95


Overview of the possible text characters, how they are entered and how they are displayed on a monitor
ASCII Hex- User Display ASCII Hex- User Display ASCII Hex- User Display
char- value entry char- value entry char- value entry
acter acter acter
b 62 b b
NUL 00 <CTRL><SP> <NUL> * 1 31 1 1
c 63 c c
SOH 01 <CTRL> A <SOH> 2 32 2 2
d 64 d d
STX 02 <CTRL> B <STX> 3 33 3 3 e 65 e e
ETX 03 <CTRL> C <ETX> 4 34 4 4 f 66 f f
EOT 04 <CTRL> D <EOT> 5 35 5 5 g 67 g g
ENQ 05 <CTRL> E <ENQ> 6 36 6 6 h 68 h h
ACK 06 <CTRL> F <ACK> 7 37 7 7 i 69 i i
BEL 07 <CTRL> G <BEL> 8 38 8 8 j 6A j j
BS 08 <CTRL> H <BS> 9 39 9 9 k 6B k k
HT 09 <CTRL> I <HT> : 3A : : l 6C l l
LF 0A <CTRL> J <LF> ; 3B ; ; m 6D m m
VT 0B <CTRL> K <VT> < 3C < < n 6E n n
FF 0C <CTRL> L <FF> = 3D = = o 6F o o
CR 0D <CTRL> M <CR> > 3E > > p 70 p p
SO 0E <CTRL> N <SO> ? 3F ? ? q 71 q q
SI 0F <CTRL> O <SI> @ 40 @ @ r 72 r r
DLE 10 <CTRL> P <DLE> A 41 A A s 73 s s
DC1 11 <CTRL> Q <DC1> B 42 B B t 74 t t
DC2 12 <CTRL> R <DC2> C 43 C C u 75 u u
DC3 13 <CTRL> S <DC3> D 44 D D v 76 v v
DC4 14 <CTRL> T <DC4> E 45 E E w 77 w w
NAK 15 <CTRL> U <NAK> F 46 F F x 78 x x
SYN 16 <CTRL> V <SYN> G 47 G G y 79 y y
ETB 17 <CTRL> W <ETB> H 48 H H z 7A z z
CAN 18 <CTRL> X <CAN> I 49 I I { 7B { {
EM 19 <CTRL> Y <EM> J 4A J J | 7C | |
SUB 1A <CTRL> Z <SUB> K 4B K K } 7D } }
ESC 1B <CTRL> [ <ESC> L 4C L L  7E  
FS 1C <CTRL> / <FS> M 4D M M DEL 7F <DEL> <DEL>
GS 1D <CTRL> ] <GS> N 4E N N
* To older terminals applies:
RS 1E <CTRL>  <RS> * O 4F O O
NUL 0 <CTRL> @ <NUL>
US 1F <CTRL> ? <US> * P 50 P P
SP 20 <SP> <SP> ** Q 51 Q Q RS 1E <CTRL> " <RS>
! 21 ! ! R 52 R R US 1F <CTRL> _ <US>
” 22 ” ” S 53 S S ** In the case of text entry, a SPACE
# 23 # # T 54 T T is displayed as a blank. When
$ 24 $ $ U 55 U U displaying the user program, it is
% 25 % % V 56 V V displayed as <SP> in order to permit
it to be recognized easier.
& 26 & & W 57 W W
’ 27 ’ ’ X 58 X X Note:
( 28 ( ( Y 59 Y Y Interrelationship between value and
) 29 ) ) Z 5A Z Z ASCII character
* 2A * * [ 5B [ [ Binary value in the computer
+ 2B + + \ 5C \ \ 1011 (0BH, 11DEC)
, 2C , , ] 5D ] ] Represented as:
– 2D – – " 5E " " – Decimal ASCII: 31H, 31H
. 2E . . _ 5F _ _ – Hexadecimal ASCII: 42H
/ 2F / / ‘ 60 ‘ ‘ Output by DRUCK as hexadecimal
0 30 0 0 a 61 a a value: 1011

ABB Procontic CS31/Issued: 02.95 1–23 Operating and test functions


1.5 Syntax diagrams for instruction list (IL)
1.5.1 Syntax diagram: BOOLEAN SENTENCE

( NOP

! B–OPR = B–OPR

N ) N

/ S

& R

PE

Signal flow: in the direction of arrow, otherwise from left to right.


Brackets: sum ”LEFT BRACKET” = sum ”RIGHT BRACKET”, nesting depth: 15.
B–OPR: Binary operand (E, A, M, S, K)
Example: E 00,03 A 07,06 M 05,01 S 05,04 K 00,01

Operating and test functions 1–24 ABB Procontic CS31/Issued: 02.95


1.5.2 Syntax diagram: ARITHMETIC SENTENCE

( NOP

! W-OPR = W-OPR

– ) –

Signal flow: in direction of arrow, otherwise from left to right.


Brackets: sum ”LEFT BRACKET” = sum ”RIGHT BRACKET”, nesting depth: 15.
W–OPR: Word operand (EW, AW, MW, KW)
Example: EW 03,05 AW 11,12 MW 22,15 KW 09,06

ABB Procontic CS31/Issued: 02.95 1–25 Operating and test functions


1.5.3 Syntax diagram: HYBRID SENTENCE
See also chapter ”Language repertoire”, Relational operators

( NOP

! W–OPR = W–OPR

– ) –

: * – +

> < > < ?= <>

( NOP

W–OPR = B–OPR

– ) N

: * – +
R

PE

Signal flow: in direction of arrow, otherwise from left to right.


Brackets: sum ”LEFT BRACKET” = sum ”RIGHT BRACKET”, nesting depth: 15.
W–OPR: Word operand (EW, AW, MW, KW)
Example: EW 03,05 AW 11,12 MW 22,15 KW 09,06
B–OPR: Binary operand (E, A, M, S, K)
Example: E 00,03 A 07,06 M 05,01

Operating and test functions 1–26 ABB Procontic CS31/Issued: 02.95


2 Monitor functions Overview of the monitor functions

The monitor program offers the specialist access at Func- Explanation Page
hexadecimal level to the entire address range of the PLC. tion
Memory areas can be displayed and modified, and H Display help text /
hardware tests can be conducted. calculate hexadecimally . . . . . . . . . . . . . . . . . 2–1
D Display memory contents . . . . . . . . . . . . . . . . 2–2
Monitor commands which change memory areas I Fill memory area
may endanger the functionality of the PLC. For this with a value . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2–2
reason, take care when using the monitor functions.
M Transfer memory areas . . . . . . . . . . . . . . . . . 2–3
P Read/write port . . . . . . . . . . . . . . . . . . . . . . . . . 2–3
Switchover Operator-control functions <–––> S Display/edit memory contents . . . . . . . . . . . . 2–4
Monitor functions U/V Edit address output format . . . . . . . . . . . . . . . 2–4

Command: Y Display/edit working segment . . . . . . . . . . . . 2–4


ZA Cyclic read and write . . . . . . . . . . . . . . . . . . . . 2–4
ZB Cyclic read and write
with waiting time . . . . . . . . . . . . . . . . . . . . . . . . 2–5
<CTRL> W ZC Read and write on keystroke . . . . . . . . . . . . . 2–5
ZD Cyclic write . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2–5
ZE Cyclic read . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2–5

Not available in 07 KR 31 / 07 KT 31 ZF Cyclic write and read . . . . . . . . . . . . . . . . . . . . 2–5


ZG Simultaneous output of 3 values . . . . . . . . . . 2–6
Function:
ZR RAM test . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2–6
By pressing key <CTRL> and key W simultaneously, you
ZZA Output of 3 values after
access the monitor program of the PLC. If you are in the
entering a semicolon (;) . . . . . . . . . . . . . . . . . 2–7
monitor program, you can change back to the
operator-control program of the PLC by entering <CTRL> ZZF Search for string . . . . . . . . . . . . . . . . . . . . . . . . 2–7
and W again. ZZV Compare memory areas
word–serially . . . . . . . . . . . . . . . . . . . . . . . . . . . 2–8
Explanation of the syntax: R Read Intel HEX file . . . . . . . . . . . . . . . . . . . . . 2–9
W Write Intel HEX file . . . . . . . . . . . . . . . . . . . . . 2–9
 The monitor program responds with character * and
waits for an entry. Display help text / calculate hexadecimally

 All numbers are hexadecimal numbers (leading When command H <CR> is entered, all available
zeroes may be omitted). functions of the monitor are displayed on the screen. In
addition, this command permits you to calculate simple
hexadecimal arithmetic expressions.
 If more digits than necessary are entered, only the
last digits are valid (the last two digits in the case of Command:
byte commands and the last four digits in the case of
word commands).

 The blank character (Space) is ignored and can be H <CR>


used for more clearly structured entries.

 Character CTRL C aborts the currently running hex + hex


operation.

 Every display on the monitor can be stopped with



<CTRL>S (XOFF) and can be continued with
<CTRL>Q (XON).

 If no segment is specified when entering an address,


the working segment is used (see Y instruction). hex: Hexadecimal number

ABB Procontic CS31/Issued: 02.95 2–1 Monitor functions


Display memory contents
The memory contents can be displayed byte-serially or word-serially.
Command:

D B aa , ea <CR>

W L az

B: Byte-serially (keyword)
W: Word-serially (keyword)
aa: Start address as of which the memory contents are to be displayed
,: Keyword (separator)
ea: End address of the memory contents to be output
L: Length (keyword)
az: Number of bytes/words to be output
Example:
DB 0:0L2<CR> Display memory contents byte-serially
0000:0000 02 00 Monitor display
DW 0,2<CR> Display memory contents word-serially
0000:0000 0002 0000 Monitor display

Fill memory area with a value


Command:

I B aa , ea = hex <CR>

W L az

B: Byte-serially (keyword)
W: Word-serially (keyword)
aa: Start address as of which the memory contents are to be filled with the specified value
,: Keyword (separator)
ea: End address of the memory area
L: Length (keyword)
az: Number of bytes/words to be filled
hex: Hexadecimal value with which the memory area is to be filled
Example:
IB 8000:80L3=FF<CR> The memory contents of 8000:80H, 8000:81H and 8000:82H is overwritten with FF

Monitor functions 2–2 ABB Procontic CS31/Issued: 02.95


Transfer memory areas
A memory area can be copied to another area. The data are transferred word-serially, but the number is specified in
bytes when entering (i.e. one word is transferred in the case of az = 3).
Command:

M aa , ea , za <CR>

L az

aa: Start address as of which the memory contents are to be copied


,: Keyword (separator)
ea: End address of the memory area
L: Length (keyword)
az: Number of bytes to be copied
za: Target address of the memory area
Example:
M 8000:80L4,8000:90<CR> or M 8000:80,84,8000:90<CR>
The following are copied:
8000H:80H –––> 8000H:90H
:81H –––> :91H
:82H –––> :92H
:83H –––> :93H

Read/write port
A value from the I/O area is displayed and modified byte-serially.
Command:

P adr <CR>

= value

adr: I/O address


value: Byte value to be written to the I/O address
=: Keyword

ABB Procontic CS31/Issued: 02.95 2–3 Monitor functions


Display/edit memory contents Display/edit working segment
The memory contents can be displayed and modified If only an offset and no segment is specified when
byte-serially or word-serially. entering an address, the working segment Y is used as
Command: the segment. The default value of the working segment is
zero.

Command:
S B aa <CR>

W
Y <CR>

address value new <CR>


value = seg

seg: New segment address of the working segment


” =: Keyword

Example:

B: Byte-serially (keyword) Y <CR> User command: Display working


W: Word-serially (keyword) segment
aa: Start address as of which the memory Y 0000 Screen display
contents are to be displayed/modified DB 0L2 Display memory contents
address: Address of the memory contents byte-serially
value: Value of the memory contents 0000:0000 02 00 Screen display
value new: New value of the memory contents Y=8000<CR> Modify working segment
(user entry)
;: Entering a semicolon increments the
address by 1 (command SB) or by 2
Cyclic read and write
(command SW)
: Entering an ”arrow up” (^ on the PC) A value is read cyclically from a source address and
decrements the address by 1 (command written to a target address. The operation can be aborted
SB) or by 2 (command SW) with CTRL C.

Edit address output format Command:


The monitor program is set to SEGMENT:OFFSET
address format when it is initialized, and this format is
used for each address output. The address output format
can be freely selected with the user commands U<CR> ZA qa , za <CR>
(Segment:Offset format) and V<CR> (Absolute format).
Command:

qa:Source address from which the value is read


za: Target address to which the value is written
U <CR> e.g.: address output
1000:00A0 ,: Keyword (separator)

Example:

e.g.: address output ZA 1000:0, 1000:100 <CR>


V <CR> 100A0
A value is read cyclically from address 1000:0H and
written cyclically to address 1000:100H.

Monitor functions 2–4 ABB Procontic CS31/Issued: 02.95


Cyclic read and write with waiting time Command:

A value is read cyclically from a source address and


written cyclically to a target address. The operation can
be aborted with CTRL C. The waiting time between two ZD za <CR>
read cycles is approximately 1 ms.

Command:
za: Target address to which the value is written
Example:
ZB qa , za <CR> ZE 1000:100 <CR>
The value of a counter is written to 1000:100H. The
counter is decremented after each write operation.
qa: Source address from which the value is read
za: Target address to which the value is written Cyclic read
,: Keyword (separator) A source address is read cyclically. The operation can be
aborted with CTRL C.
Example:
Command:
ZA 1000:0, 1000:100 <CR>

A value is read cyclically from address 1000:0H and


written cyclically to address 1000:100H. ZE qa <CR>

Read and write on keystroke


qa: Source address from which the value is read
After each keystroke, a value is read from the source
address and written to a target address. The operation Example:
can be aborted with CTRL C. ZE 1000:100 <CR>
Command: The value of address 1000:100H is read cyclically.

Cyclic write and read


The value of a counter is written cyclically to an address
ZC qa , za <CR> and then read again. The operation can be aborted with
CTRL C.
Command:
qa: Source address from which the value is read
za: Target address to which the value is written
,: Keyword (separator)
ZF adr <CR>
Example:

ZC 1000:0, 1000:100 <CR>


adr: Address to which the value of the counter is
With each keystroke, a value is read from written and from which the value is read
address 1000:0H and written to address 1000:100H. Example:
ZF 1000:0 <CR>
Cyclic write
The value of a counter is written to
The value of a counter is decremented and written to a address 1000:100H. After each write operation, the
target address. The operation can be aborted with value is read from address 1000:100H and the
CTRL C. counter is decremented.

ABB Procontic CS31/Issued: 02.95 2–5 Monitor functions


Simultaneous output of 3 values
The ZG command permits the values of maximum 3 addresses to be displayed. Whenever the value of the first address
changes, the values are updated on the monitor. The expression ”expr” states how frequently updating of the values is
to be suppressed.
Command:

ZG adr1 <CR>

, adr2 , adr3 = expr

adr1: 1st address whose value is displayed on the monitor. If the value of adr1 changes, the values are
updated on the monitor.
adr2: 2nd address whose value is displayed on the monitor.
adr3: 3rd address whose value is displayed on the monitor.
expr: Number expressing how frequently updating of the values on the monitor is to be suppressed when the
value of adr1 changes.
,: Keyword (separator)
=: Keyword
Example:
ZG 1000:0, 1000:100 <CR>
The values of addresses 1000:0H and 1000:100H are displayed on the monitor. If the value of address 1000:0H
changes, the values of the two addresses are updated on the monitor.

RAM test
The specified area is written with a test pattern (FFFF, 5555, AAAA), and a check is then conducted in order to establish
whether the test values have been stored correctly in the specified area. If an error is established, the address, actual
value and required value are output. The test can be continued by pressing any key (apart from <SPACE>). CTRL C
aborts the test.
3 test cycles are performed with test values whose order is reversed. The 4th test cycle consists of storing a counter at
the start address, checking for correct storage and repeating the test with the decremented counter until it reaches value
zero. The RAM test is then terminated with monitor message (*).
Command:

ZR aa , ea <CR>

L az

aa: Start address of the RAM area


ea: End address of the RAM area
L: Length (keyword)
az: Number of bytes of the RAM area
,: Keyword (separator)
Example:
ZR 1000:0L100<CR> RAM test over the specified memory area.

Monitor functions 2–6 ABB Procontic CS31/Issued: 02.95


Output of 3 values after entering a semicolon (;)
Command ZZA permits you to display the values (byte or word) of maximum 3 addresses each time a semicolon (;) is
entered. The command can be aborted with <CR>.
Command:

ZZA B adr1 <CR>

W , adr2 , adr3

B: Byte-serially (keyword)
W: Word-serially (keyword)
adr1: 1st address whose value is displayed on the monitor.
adr2: 2nd address whose value is displayed on the monitor.
adr3: 3rd address whose value is displayed on the monitor.
,: Keyword (separator)
Example:
ZZA 1000:0, 1000:100 <CR>
After entry of a semicolon (;), the values of addresses 1000:0H and 1000:100H are displayed on the monitor.

Search for string


Command ZZF can be used to search for a string with maximum 3 words in the specified memory area. If the string is
found, the address is displayed on the monitor. The search is continued by entering a semicolon (;). If the string is not
found, monitor message <#07> is displayed.
Command:

ZZF aa , ea = exp1 <CR>

L az , exp2 , exp3

aa: Start address of the memory area


ea: End address of the memory area
L: Length (keyword)
az: Number of words in the memory area
exp1: 1st word of the string
exp2: 2nd word of the string
exp3: 3rd word of the string
,: Keyword (separator)
Example:
ZZF 1000:0, 100 = AAAA, BBBB <CR>
The entered string (AAAAH, BBBBH) is sought in the area 1000:0H to 1000:100H.

ABB Procontic CS31/Issued: 02.95 2–7 Monitor functions


Compare memory areas word–serially
Command ZZV is used to compare a memory area 1 word-serially with a memory area 2. If a difference is established,
the address 1, the contents 1, the address 2 and the contents 2 are displayed on the monitor. The operation can be
aborted with CTRL C.
Command:

ZZV aa1 , ea1 , aa2 <CR>

L az1

aa1: Start address of the memory area 1


ea1: End address of the memory area 1
L: Length (keyword)
az1: Number of words in the memory area 1
aa2: Start address of the memory area 2
,: Keyword (separator)
Example:
ZZV A000:0 L 100, 8000:0 <CR>
Memory area 1 between A000:0H and A000:100H is compared with memory area 2 as of 8000:0H.

Monitor functions 2–8 ABB Procontic CS31/Issued: 02.95


Read Intel HEX file Write INTEL HEX file
Using the R command, it is possible to read in an INTEL
HEX file via the COM2 serial interface of unit 07 KT 92 The W command permits a data area of the PLC to be
and to store the HEX file data in the PLC. output as an INTEL HEX file via the serial interface COM2
The following records are accepted in this case: of the unit 07 KT 92.
S address extension record The following records are generated in this case:
S data record
S end record
S address extension record
The following transfer format applies: S data record
S 8 data bits S end record
S no parity bit
S 1 stop bit
The following transfer format applies:
The data of the INTEL HEX file are stored in the PLC as of
the following address:
D The segment address is determined by the address in S 8 data bits
the address extension record of the INTEL HEX file. If S no parity bit
an offset is specified when entering the command, this S 1 stop bit
offset is added to the segment address in the address
extension record. This results in a new segment
address as of which the data of the HEX file are stored. Command:
This permits the storage area for the HEX file data in
the PLC to be preset.
D The offset address is determined by the address in the
data record of the INTEL HEX file.
W area <CR>
Command:

R <CR>

area: Memory area to be output as an INTEL HEX


offset file.

Example:
offset: Offset (by addition to the segment address of
the address extension record, this results in the W 8000:0,FFFF <CR> The memory area from
new segment address) 8000:0H up to and including
8000:FFFFH is output as an
Example:
INTEL HEX file via serial inter-
R <CR> The PLC is ready to receive an INTEL face COM2 of the PLC.
HEX file.
R 2F00 <CR> The PLC is ready to receive an INTEL
W 8000:0LFFFF <CR> The memory area from
HEX file. The HEX value 2F00H is added
8000:0H up to and including
to the segment address of the address
extension record. The resultant new 8000:FFFEH is output as an
segment address is the address used for INTEL–HEX file via serial inter-
storing the HEX file data. face COM2 of the PLC.

ABB Procontic CS31/Issued: 02.95 2–9 Monitor functions


Monitor functions 2–10 ABB Procontic CS31/Issued: 02.95
3 Memory overview 3.1.2 User program
Flash–EPROM
3.1 Memory overview for 07 KR 91,
07 KT 92 and 07 KT 93

3.1.1 User program RAM Checksum


A7FFE
Not used
Not used 38C20
8CH bytes
38C12 A7F72

Constants for program 2 User program

702H bytes 7800H bytes


38510 A0772
Constants
Turbo RAM program 2
702H bytes
12EB0H bytes A0070
25660 Not used
User program 20H bytes
A0050
memory 2
7800H bytes Program identification
1DE60 A0040
Not used Organizational directory
1DE52
for program 2
Constants for program 1 A002A
702H bytes Organizational directory
1D750 for program 1
A0014
Turbo RAM program 1
Organizational directory
12EB0H bytes PLC–specific
0A8A0 A0000
User program
memory 1
7800H bytes  User program memory 1:
030A0 Memory for the PLC program.

Not used  Turbo RAM program 1:


Machine code for user program memory 1.
03080
Program identification  Constants for program 1:
03070 This area is used to store the indirect constants of the
Organizational directory user program memory 1.
for program 2
0305A
Organizational directory
 User program memory 2:
for program 1 03044 Memory for the PLC program.
Organizational directory
PLC–specific 03030  Turbo RAM program 2:
Control block 0...2 Machine code for user program memory 2.
03000
 Constants for program 2:
Explanation of terms: This area is used to store the indirect constants of the
 Organizational directory user program memory 2.
 PLC–specific: This is used to store organizational
data relating to the entire PLC.
 for user program 1: This is used to store
organizational data relating to program memory 1.
 for user program 2: This is used to store
organizational data relating to program memory 2.

 Program identification:
16 bytes for an identification, e.g. project name.

ABB Procontic CS31/Issued: 02.95 3–1 Memory overview


3.1.3 Operand memory MD: Flags DOUBLE WORD
S: Step chains
40000 SEG:F3E0 VWS: Historical value memory
not used
3FFF0 10H SEG:F3D0 ASAS 2: Work memory for program 2
I/O configu-
ration list 2 190H
Stack 2: Stack for program 2
3FE60 SEG:F240
I/O configu- I/O force lists:
ration list 1 190H This is where the I/O signals to be forced and
3FCD0 SEG:F0B0
Not used 8H their force values are entered.
3FCC8 SEG:F0A8
I/O force I/O configuration list 1:
lists 288H
3FA40 SEG:EE20 This is where the I/O signals planned in program
3FA30
Not used 10H 1 are entered so that they are allowed for when
SEG:EE10
generating and outputting the process image.
Stack 2 100H
3F930 SEG:ED10 I/O configuration list 2:
ASAS 2
100H
This is where the I/O signals planned in program
3F830 SEG:EC10
2 are entered so that they are allowed for when
VWS
3E030 1800H SEG:D410
generating and outputting the process image.
S
3D830 800H SEG:CC10 3.1.4 Dual-port RAM
MD
3D030 800H SEG:C410
CS31–status C03FF
MW
2000H (EW 07,15)
3B030 SEG:A410 C03FE
M C03FD
3A030 1000H SEG:9410
read real time clock
AW EW 07,08...EW 07,14 C03F0
39F30 100H SEG:9310 C03EF
spontaneous mail box
A
39B30 400H SEG:8F10 (EW 07,04...EW 07,07)
C03E8
EW C03E7
39A30 100H SEG:8E10 receive mail box
E (EW 07,00...EW 07,03) C03E0
39630 400H SEG:8A10 C03DF
direct:
KD
39430 200H SEG:8810
EW 06,00...EW 06,15
CS31:
KW
38F30 500H SEG:8310 EW 00,00...EW 05,15 C0300
K
38F2E 2H SEG:830E reserved C02FF
Free Pool
38E20 10EH SEG:8200 C02FE
send mail box
Stack 1 C02F4
38D20 100H SEG:8100 C02F3
reserved
ASAS 1 C02E0
38C20 100H SEG:8000 C02DF
direct:
SEG =30C2
AW 06,00...AW 06,15
CS31:
Explanation of terms: AW 00,00...AW 05,15
C0200
ASAS 1: Work memory program 1 C01FF
direct: E 62,00...E 63,15
Stack 1: Stack for program 1 CS31: E 00,00...E 61,15
C0180
K: Indirect constants BINARY C017F
reserved
KW: Indirect constants WORD C0100
KD: Indirect constants DOUBLE WORD read/write permission C00FF
E: Process image of the inputs BINARY read/write request
C00FE
EW: Process image of the inputs WORD reserved C00FD
C0080
A: Process image of the outputs BINARY C007F
AW: Process image of the outputs WORD direct: A 62,00...A 63,15
CS31: A 00,00...A 61,15
M: Flags BINARY C0000
MW: Flags WORD

Memory overview 3–2 ABB Procontic CS31/Issued: 02.95


3.2 Memory overview for 07 KR 31 3.2.2 Data addressing (Data mapping)
and 07 KT 31

3.2.1 System addressing (Mapping)

AEFF EW 15,15
AD00 EW 00,00
FFF
Compiled ACFF E 63,15
F
program 1
D800 E 00,00
D7FF AC80
Compiled AC7F A 63,15
program 2
B000 A 00,00
AFFF AC00
Reserved
AF00 47D1 S 015,15
AEFF
I/O data 47B2 S 000,00
AC00
ABFF 467F MD 001,15
Reserved
A800 4600 MD 000,00
A7FF
Micro code in RAM
8981 8980 K 00,00; K 00,01
8980 897F KD 01,15
Constants
8800 8900 KD 00,00
87FF 88FF KW 07,15
RAM non-
safeguarded KW 00,00
8000 8800
7FFF
Reserved
85FF AW 07,15
5000
4FFF AW 00,00
Data 8500
4000
3FFF 4581 MW 255,15
UAR
2000 T 4542 MW 254,00
1FFF 4541 MW 239,15
ASIC 2 –
input ASIC MW 230,00
1000 4402
0FFF 4401 MW 005,15
ASIC 1 –
output ASIC MW 000,00
0000 4342
4341 M 255,15
4340 M 255,00
433F M 239,15
432C M 230,00
432B M 021,15
4300 M 000,00
42FF
Historical
values
4100
40FF
Timers
4000

ABB Procontic CS31/Issued: 02.95 3–3 Memory overview


Memory overview 3–4 ABB Procontic CS31/Issued: 02.95

You might also like