ABB 07 Programming e
ABB 07 Programming e
3
Intelligent Decentralized Access, operating and test functions
The functions which are indentical for both software prod- • Quick selection of menu options with the mouse or on
ucts are described in the documentation "General part the keyboard
907 PC 33". This documentation folder can be ordered
• Call-up of external programs on the DOS level directly
separately with the following order number:
from the menu (DOS shell)
GJP5203900R0102.
The software can be run on IBM/AT-compatible personal Path information
computers. An extensively automatic installation program • Input of data name with the affiliated DOS path
installs the software package 907 PC 33 on this unit or on
another IBM/AT-compatible personal computer. • Display of the project overview in a file directory
The programming and test software 907 PC 33 permits a Take-over of the file name incl. path, selection via cur-
simple and economic programming of PLC programs in sor.
the following notations:
Password protection
• Function block diagram (FBD) • Several access privilege levels
• Ladder diagram (LD)
Data safeguarding
• Extended instruction list (Exxt. IL) • Data safeguarding directly from the editor
Both symbolic and absolute program input is possible. • Data safeguarding of complete projects on discs
The PLC program is supplemented by symbolic identifi-
ers, long text, and commentary. Auxiliary and error mes-
sages which can be called at all times facilitate program
input. Program creation as a FBD or as a LD takes place
in a joint editor. Elements from the FBD and LD are there-
fore mixable and can be linked together. The library con-
tains numerous connection elements and function blocks
which considerably simplify the realization of complex func-
tions (e.g. PID-type controller).
• Translation is not conducted when the extended IL does • Operating interface with mouse
not contain any connection elements • Programming of a connection element in the FBD/LD
• The translated IL can be displayed, the segment plan • Hierarchical arrangement possibility of the connection
structure is retained thereby. Also possible online. elements (similar to DOS directories)
• Auxiliary texts and short commentaries for connection
elements
• Terminal allocation test for the timely recognition of
program errors.
• For every manufacturer connection element a detailed
function description can be called up directly out of
the FBD as a help text.
Variable editor
• Complete list of all of the entered variables
• Sorting selectable according to absolute or symbolic
variables
• One or more symbol names can be allocated to the
variables
• Adoption and transfer of the variable lists to and from
any word processing system
• Provision and adoption of variable lists for specific CAD/
CAE systems
• Modification of – time and counter setpoints Outputs can be adapted to any printer.
– variables Printing format editor
– programm segments
A special printing format enables the addition of individual
• Online program modification headers and footers to the respective list. Specific data
In addition selected variables can be summarized in ON- can be included in this header and/or footer, e.g. name of
LINE lists and their status can be displayed on the screen. the project file, date and time.
2.2.1 Operands of 07 KT 94
2.2.1.1 Available variables and constants
Inputs
E 00,00...E 61,15 : Digital inputs, CS31 remote module
E 62,00...E 63,15 : Digital inputs of the basic unit 07 KT 94
E 64,00...E 64,07 : Digital inputs of the basic unit 07 KT 94 (formed of EW 06,00...EW 6,07)
Outputs
A 00,00...A 61,15 : Digital outputs, CS31 remote module
A 62,00...A 63,07 : Digital outputs of the basic unit 07 KT 94
A 62,00 : High-speed counter, after activation direct output of the "zero crossing"
A 65,00...A 99,15 : reserved
A 100,00...A 163,15 : reserved
A 200,00...A 263,15 : reserved
AW 00,00...AW 05,15 : Analog outputs, CS31 remote module
AW 06,00...AW 06,03 : Analog outputs of the basic unit 07 KT 94
AW 07,00...AW 07,15 : reserved
AW 08,00...AW 15,15 : Analog outputs CS31 remote module
AW 16,00...AW 34,15 : reserved
AW 100,00...AW 107,15 : reserved
AW 200,00...AW 207,15 : reserved
Internal Operands
M 00,00...M 254,15 : Binary flags
M 255,00 : Oscillator approx. 2 Hz
M 255,01 : Oscillator approx. 1 Hz
M 255,02 : Oscillator approx. 0,5 Hz
M 255,03 : Oscillator with period interval of approx. 1 minute
M 255,04 : Oscillator approx. 1/8 Hz
M 255,05 : Oscillator approx. 4 Hz
M 255,06 : Oscillator approx. 8 Hz
2.2.1.3 Labels
Labels serve as jump targets for forward jumps and consecutive number blocks.
MA 0...999
KW 00,00 : Setting the PLC operating mode (stand-alone PLC, master PLC, slave PLC)
KW 00,01 : Initialization: bit flag area
KW 00,02 : Initialization: word flag area
KW 00,03 : Initialization: double word flag area
KW 00,04 : Initialization: step chain flag area
KW 00,05 : Initialization: historical values
KW 00,06 : Application modes of the serial interface COM 1
KW 00,07 : PLC reaction to class 3 errors
KW 00,08 : PLC reaction to an overload/short-circuit at the transistor outputs
KW 00,09 : Minimum number of remote modules integrated in the CS31 system bus cycle
KW 00,10 : Size of the transmitting area of the slave PLC
KW 00,11 : Size of the receiving area of the slave PLC
KW 00,12 : Automatic warm start after an FK2 error
KW 00,15 : Deactivate oscillators at M 255,00...M 255,06
M 255,10 : Sum error message, signalizes that an error was detected by the PLC
M 255,11 : Error messageFK1, fatal error, detailed information in MW 254,00...MW 254,07
M 255,12 : Error messageFK2, serious error, detailed information in MW 254,08...MW 254,15
M 255,13 : Error messageFK3, light error, detailed information in MW 255,00...MW 255,07
M 255,14 : Error messageFK4, warning, detailed information in MW 255,08...MW 255,15
Outputs
A 00,00...A 61,15 : Digital outputs, CS31 remote module
A 62,00...A 62,07 : Digital relay outputs of the basic unit 07 KR 31 / 07 KT 31
A 63,15 : high-speed counter, adopt inital value
AW 00,00...AW 05,15 : Analog outputs, CS31 remote module
AW 06,15 : high-speed counter, initial value
2.2.2.3 Labels
Labels serve as jump targets for forward jumps and consecutive number blocks.
MA 0...999
2.2.3 Operands of 07 KP 62
2.2.3.3 Labels
Labels serve as jump targets for forward jumps and consecutive number blocks.
MA 0...999
x: without effect
• Replace the cable 07 SK 90 again with the cable Every time the operating mode is switched the interface
07 SK 91 is re-initialized.
• Cancel the special command <DEL><DEL><DEL> In the active mode the active mode parameters are set, in
again as follows: the passive mode the paramters defined by SINIT and/or
the default values are set.
– If the PLC program has been "interrupted":
start the PLC program.
– If the PLC program is "running":
re-send the original value of the system constants
KW 00,06 to the control (907 PC 33 menu option
"send constants")
or
overwrite the system constants KW 00,06 with the
original value (907 PC 33 menu option "overwrite")
Interface parameters
Active mode: The settings of the interface parameter
can not be changed.
Data bits: 8
Stop bits: 1
Parity bit: none
Baud rate: 9600
Synchronization: RTS/CTS
Passive mode: Default–setting
Synchronization: RTS/CTS
Interface identifier COM1: 1
Baud rate: 9600
Stop bits: 1
Data bits: 8
Parity Bit: none
Echo: off
Send Break Character: 0
Enable end-of-text-character
for sending direction: no 1)
Sending end-of-text character: <CR> 1)
Receiving end-of-text character: <CR> 2)
1) The default end-of-text character for the sending direc-
tion (CR) is not sent. Nevertheless, this default end-of-
text character (CR) must not appear in the message
text of the assigned DRUCK block.
2) For the receive direction, an end-of-text character is
always necessary. This default end-of-text character
(CR) must not appear neither in the message text nor
in the user data of the assigned EMAS block.
• In order to provide greater clarity when describing the D Display program .......................................... 20
commands, the user entries DEEP Erase PLC program from Flash EPROM ..... 20
- for keywords are shown in F *) Search for string in user program ................ 20
UPPER-CASE LETTERS FREI Enable a program change on a
- and other entries (addresses etc.) are shown running PLC program .................................. 20
in lower-case letters FRD Read data files from Flash EPROM ............. 21
• Outputs generated by the PLC software on the moni- FWR Write data files to Flash EPROM ................ 21
tor are shown in FDEL Delete data segment in Flash EPROM ....... 21
lower-case italics FCINIT *) Initialize SmartMedia Card .......................... 22
FCRD *) Read data from SmartMedia Card ............... 22
All available commands are displayed with the HELP com-
mand on the monitor. FCWR *) Write data to SmartMedia Card ................... 22
Function:
Modifications which have been performed on a running PLC
Function: program and which have been enabled are rejected again.
In addition, the PLC restores the old program status. The
The command announces to the PLC that modifications old program status is the status of the program which
are to be carried out on the running PLC program. After existed before the program modification, i.e. before entry
this command has been entered, the PLC is ready to ac- of command AEND to the PLC.
cept the program and constant modifications.
After command ALT is entered, the old program status is
When command AEND is entered, all currently active test reactivated within approximately 1 ms without further in-
functions are deactivated. However, force values of I/O sig- tervention on the part of the user.
nals remain active.
The command can be used if the user recognizes that the
The following commands for program modifications and program modifications implemented do not achieve the
operation of the PLC are permitted after entering com- intended result.
mand AEND:
Display capacity utilization
AL, CROSS, D, F, IDA, IDR, IDS, K, N, NOP, O, P, PA, S,
SO, V, CTRL W, FEHLER, LED. Command:
Where: Function:
E: Abbreviation for input The cross reference list is the assignment of operands to
A: Abbreviation for output the program memory addresses at which they occur. The
S: Abbreviation for step cross reference list can be put out for
M: Abbreviation for flag
K: Abbreviation for constant • all operands occurring in the program:
W: Abbreviation for word variable Entry: CROSS <CR>
D: Abbreviation for double-word variable • a specific operand type:
nr: Number of the operand Entry e.g.: CROSS E <CR>
• one single operand:
Entry e.g.: CROSS KD 00,12 <CR>
,
,
aa: Start address as of which the program is to be adr: Start address as of which searching is to be
displayed carried out. If no start address is entered,
searching is performed as of address 0.
ea: End address of the program part to be displayed
string: Maximum 8 commands, i.e. 16 words of the
L: Length (keyword)
intermediate code.
az: Number of program memory words to be displayed
Function:
Function:
The specified program part is displayed. The user program memory is searched for the string en-
tered by the user as of the entered start address through
Example: to the end of the user program memory. If the string is
• D 0,20 <CR> found, the address is displayed. If the string occurs sever-
al times in the program, the next program address which
The user program is displayed from address 0 through corresponds to the string is displayed in each case if you
to address 20 on the monitor. enter a semicolon (;).
• D 10 L 20 <CR>
Example:
20 program memory words are displayed, starting from
address 10. F, E 0,0 & E 0,1 <CR>
Display format in the case of sentences: The entered string is sought as of the program memory
start address 0.
start address operator operand
: F 100, !BA1 <CR>
:
Block call 1 is sought as of the program memory start
Display format in the case of block calls: address 100.
address n !ba number Enable a program change on a running PLC program
address n+1 type
address n+2 content of addr n+2 Command:
Example:
000000 !E 00,00
000002 &E 00,01
000004 =A 00,00
000006 !BA001
000007 AWT Function:
000008 A 00,00
The modifications on a running PLC program performed
000009 KW 00,00
after entry of command AEND are enabled for execution.
000010 KW 00,01
000011 AW 00,00 Before entry of command FREI, the performed program
Erase PLC program on Flash EPROM modifications have not been executed by the PLC yet.
seg: Number of the data segment in the Flash ;: The individual values of the command must
EPROM be separated by semicolons.
valid values: 0...3 dat: new value
bnr: Number of the block in the data segment, ;: The individual values are separated
valid values: 0...480 by semicolons.
nb: Number of blocks, Function:
valid values: 1...481
The user can write data records into the Flash EPROM.
;: The individual values of the command must be The data are entered as decimals (–32768...+32767). The
separated by a semicolon. data are always stored in blocks in the Flash EPROM
bnr: Number of the block in the data segment and safeguarded with a checksum. Each block can store
16 words. If less than 16 word values are entered, the rest
w00: 1. word value of the block of the words are filled with the value zero. After 8 word
: : : values are entered, a <CR><LF> and 2 blanks are dis-
w15: 16. word value of the block played on the monitor.
;: The individual values of the answer are Erase data segment on the Flash EPROM
separated by a semicolon
Command:
Function:
The user can read out data records from the Flash EPROM.
The data are stored in blocks (16 words) in the Flash
EPROM. The data of each block is safeguarded with a
checksum. If a checksum error is detected when a block
is read out, "ERROR" is put out instead of the number of
the block (bnr). The checksum error is simultaneously seg: Number of the data segment in the Flash
entered into the respective data field as an FK3 error (Er- EPROM
ror indentification: 131 (83H), Detailed Info: Offset, Seg- valid values: 0...3
ment).
Function:
After switching on the voltage, a checksum test of the
entire Flash EPROM is performed. If a checksum error is The user can erase a data segment in the Flash EPROM.
detected, the FK3 error with the error identification 131 is During erasing all data in this data segment are lost.
displayed on the monitor and entered into the correspond-
ing error flag.
Note: When a PLC program is started, the FK3 error flag
(binary flag M 255,13) is always erased. The details (error
identification, detailed information) are kept in the word
flag data field (MW 255,00...MW 255,07).
; dat <CR>
Function:
The SmartMedia Card is initialized as a user data card.
Only on initalized cards data can be written.
When the SmartMedia Card is initialized, all previous data seg: Number of the data segment in the
is deleted. A card, initialized for user data, can no more SmartMedia Card
be used for storing user programs. valid values: 1...250
bnr: Number of the block in the data segment
Read data records from the SmartMedia Card valid values: 0...127
Command: ;: The individual values of the command must
be separated by semicolons.
dat: new value
*) FCRD seg ; bnr
;: The individual values are separated
by semicolons.
<CR>
Function:
The user can write data records into the Smart Media Card.
The data are entered as decimals (–32768...+32767). The
data are always stored in blocks in the SmartMedia Card
bnr w00;w01;w02;w03;w04;w05;w06;w07;
w08;w09;w10;w11;w12;w13;w14;w15 and safeguarded with a checksum. Each block can store
w16;w17;w18;w19;w20;w21;w22;w23; 32 words. If less than 32 word values are entered, the rest
w24;w25;w26;w27;w28;w29;w30;w31 of the words are filled with the value zero. After 8 word
values are entered, a <CR><LF> and 2 blanks are dis-
played on the monitor. A block only can be written once to
the SmartMedia Card. Before rewriting the block, the seg-
ment has to be deleted.
seg: Number of the data segment in the
SmartMedia Card Delete data segment on the SmartMedia Card
valid values: 1...250
Command:
bnr: Number of the block in the data segment,
valid values: 0...127
;: The individual values of the command must be *) FCDEL seg <CR>
separated by a semicolon.
bnr: Number of the block in the data segment
w00: 1st word value of the block seg: Number of the data segment in the
: : : SmartMedia Card
w31: 32nd word value of the block valid values: 1...250
The user can read out data records from the SmartMedia
Card. The data are stored in blocks (32 words) in the
SmartMedia Card. The data of each block is safeguarded *) A block only can be written once to the SmartMedia
with a checksum. Card. Before rewriting the block, the segment has to be
deleted.
The identification entered by the user for the user program nr: Entered number of the constant
is displayed. If no identification has been issued for the
program, nothing is displayed (see also command IDS). *): No program identification is entered for this path. An
already existing program identification is deleted.
This value assignment can also be performed with the user Example:
program running. This means that time values of timers NOP 0,20 <CR>
can be modified when the system is running for instance.
The user program is deleted from address 0 through to
Cycle time: address 20.
The cycle time is set with the double word constant NOP 10 L 20 <CR>
KD 00,00. The set cycle time must be an integer multiple
of the basic time of 1 ms, i.e. 1 ms, 7 ms, 23 ms etc. 20 program memory words are deleted, as of address 10.
Function:
The I/O signals planned in the user program are enabled
in the I/O configuration list of the PLC. In addition, a syn-
tax check is carried out for the user program. In the case
aa: Start address of the area as of which the program
of sentences with relational operators using bracketed ex-
memory is to be optimized
pressions, the RIGHT BRACKET in front of the binary as-
ea: End address of the area signment is stored by the translator as a binary RIGHT
BRACKET in the intermediate code. This binary RIGHT
L: Length (keyword) BRACKET is corrected to form a word bracket by pro-
az: Number of program memory words gram preparation. PA computes the target addresses and
the historical values to be skipped for the branch blocks
Function: and consecutive number blocks. The PA command is
called automatically each time the program is started
All NOPs are removed from the given program part and
(G command).
thus the program is compressed.
Example: Enter/Edit user program (substitute)
Command:
O 0 <CR>
The entire program memory is optimized.
O 0,10 <CR>
The program memory is optimized as of address 0 through
to address 10.
address
O 10 L 10 < CR> content/command
The NOPs within the next 10 program memory words as
of address 10 are removed and the program is compressed
accordingly.
new
Display free program memory content
Command:
Entering or modifying the PLC program in instruction list. Move user program
A program memory word is selected and displayed on the Command:
monitor as an instruction or operand. The displayed con-
tent can then be overwritten.
Note:
,
You will also find the following information for entering/
modifying the instruction list with this command at the
end of this Appendix:
- Syntactic structure of the instruction list.
- Instructions on how texts for function blocks aa: Start address of program part to be moved
DRUCK/EMAS are entered and displayed.
ea: End address
Enter/Edit user program without echo
L: Length (keyword)
Command:
az: Number of program memory words by which the
program part is to be moved
Function:
The program is moved from address aa to address ea or
from address aa by the specified number of program mem-
ory words. The gap which results is filled with NOPs. New
content program parts can be inserted in this gap. Moving is pos-
new sible only if the required space is still available at the end
of the user program. However, this is checked automati-
cally.
Example:
adr: Program memory address as of which the pro- V 0,10 <CR>
gram is to be entered or modified
The program is moved from address 0 to address 10.
NOPs are inserted from address 0 through to address 9.
content new: New content of the user program
V 10 L 20 <CR>
Function:
The program is moved from address 10 by 20 program
The program memory address as of which the program is memory words to address 30, and 20 NOPs are inserted.
to be entered is preset. The program can then be entered
consecutively. The PLC returns no echo of the entered
program. However, in the event of an error, the PLC re-
turns an error message (e.g. Incorrect Entry).
Set breakpoints
Command:
Function:
Execution of the user program is aborted. All outputs (bi-
nary and word) are set to zero. The user program can be ,
restarted by entering "G".
Timers which have been started continue to run indepen-
dently of the program status in the operating system. They
are aborted only by a cold-start or power OFF/ON. adr: Address of the breakpoint
,: If several breakpoints are set, the addresses must
Display break points
be separated by a comma when entering.
Command:
Breakpoints can be set:
• to the address of the operand after an assignment char-
acter
• to the address of a RIGHT BRACKET
• to the address of the last parameter of a block
Function:
Pressing key <CTRL> and key W simultaneously takes
you to the monitor program of the PLC. This makes avail-
able 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 Function:
<CTRL> and W again.
After starting the program, only one sentence or one block
I/O-Test is executed and the program stops after each assignment,
RIGHT BRACKET and at the end of each block.
Command:
Command Z can be used to display variable values.
Command "ES" can also be entered with the program run-
ning. In this case, the mode does not take effect until the
start of the next program cycle.
Advancing by one step:
If you enter a semicolon, the program runs to the next
Function:
breakpoint after expiry of the cycle time and displays the
This mode permits the user to check the wiring of his I/O program address and the command at this address. If the
signals from the PLC through to the process in order to next breakpoint is not reached after a specific period, owing
ensure that the wiring is correct. to a long cycle time, the display operation can be aborted
by entering <CTRL>C if required.
After starting the user program, it is not executed. Only
the I/O signals planned in the program are operated, i.e.
Deactivate single step mode
the input signals are read in and the output signals are
brought out. Command:
By actuating limit switches etc., it is possible to check
whether the signals arrive under the declared designation
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.
Command "EA" can also be entered with the program run-
ning. In this case, the mode does not take effect until the Single-step mode is deactivated, i.e. the user program
start of the next program cycle. continues to run normally as of the current breakpoint.
The mode does not come into effect until the start of the • Digital outputs: 64
next program cycle. • Word outputs: 16
Advancing by one program cycle: Forcing is performed in the following way:
If a semicolon is entered, the program is run through once Forcing inputs
after expiry of the cycle time and displays the program
address and the command at this address (!PE). If the The PLC generates an image of the input signals planned
next breakpoint is not reached after a specific period, owing in the PLC program at the start of each program cycle. If
to a long cycle time, the display operation can be aborted inputs are to be forced, their real values are replaced by
by entering <CTRL>C if required. the force values preset by the user after read-in. The PLC
operates only with the modified input image during the
Deactivate single cycle mode: program cycle, and, thus, signal changes on the input
Command: device during the program cycle are unimportant.
Forcing outputs
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
they are output in the output image.
Function: Behavior after power failure, RESET or warm start
Single-cycle mode is deactivated, i.e. the program is ex- After a power failure, the PLC has "forgotten" the force
ecuted 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
Display the contents of the error registers
also be displayed with command FORC A <CR>. The over-
Command: all force list is reactivated and forcing is placed back into
effect by entering a single signal to be forced.
The following commands are available for forcing I/O sig-
nals:
• FORC: Enter force value
• FORC A: Display force value
Function: • FORC R: Delete forcing
The error information stored in the PLC is output.
name
name ; value
Display force value name: Name of the inputs/outputs for which forcing is to
Command: be terminated
;: If forcing is terminated only for specific inputs/out-
puts, the individual names must be separated by a
semicolon when entering them.
Function:
(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
Function:
• Display of all of the inputs and outputs to be forced
• Display of all of the inputs and outputs of a specific Function:
group of inputs/outputs to be forced
The user program is started and the operands are initial-
ized.
The operand areas are initialized according to the corre-
sponding system constant.
Function:
The warm start command is only allowed when the PLC
program is "aborted".
Warm start
– All RAM memories are tested and deleted with the
exception of the program memory and the operand
memory (flags).
– If there is a user program in the Flash EPROM, it will
be stored in the RAM together with the system con-
stants.
– The operating modes defined by the system constants
are set.
– The CS31 system bus is re-initialized (only in case of
CS31 system bus master).
L number
Function:
The user program is stopped. ;
The values of the outputs and of the flags are retained.
Timers which have been started continue to run indepen-
dently of the program status in the operating system. They
are aborted only by a cold-start or power OFF/ON.
value of var
value of var
var: Name of the variable or indirect constant
value of var
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 separat-
ed by a semicolon.
Note:
Z: The values of the variables (max. 22) are each
If the variable is a step variable, it can only be set and not
updated when character Z <CR> is entered.
reset. When step variables are set, all other steps of the
chain are automatically reset. Function:
If an indirect constant is modified with this command, this The variable names preset by the user are displayed on
modification is performed only in the operand memory and the monitor. The value of this variable is updated each
not in the program memory, i.e. this value is overwritten time the character Z <CR> is entered. The displayed vari-
again by the value from the program memory with the next able values always originate from the same program cy-
program start. cle and represent a "snapshot" at the end of the cycle.
The number of variables to be displayed is restricted to 22
with this command since no more screen lines than this
are available.
L number
Function: The user has the option of configuring CS31 remote mod-
ules and interrogating the set configuration. The jobs are
After command KONFS <CR> is entered, the set language handled internally via a transmit mailbox (job) and receive
is displayed on the monitor. If you press key <DELETE> mailbox (response).
(<CTRL> and the backspace key on PCs), the language
is switched over. The command is terminated by entering List of jobs:
a <CR>.
The OK responses are described for the respec-
Note: tive jobs. The not OK responses always appear
as follows:
The DELETE key is frequently not available on personal
computers. The key code (7FH) of the DELETE key can • Not OK response
be generated on such keyboards by pressing two keys. status: 170
In general, these keys are keys <CTRL> and the back-
a1: 1 =
Unknown job code
space key.
2 =
Invalid parameter, e.g. group number
Configuration/interrogation of the configuration of 3 =
Remote module does not respond
CS31 remote module (07 KR 31, 07 KR 91, 07 KT 92, 10 =
Mail Box is not free within 3 sec.
07 KT 93, 07 KT 94) 11 =
Job aborted by activation of the
RUN/STOP switch
Command: 12 = Job is not fetched within 6 sec.
13 = No reply within 6 sec.
a2...a7: 0
• Updating the maximum number of remote
modules detected
The contents of the input word EW 07,15 include the max-
imum number of remote modules detected in the past.
The current actual number of existing remote modules may
be less than this.
This command updates this value. The existing modules
are counted and the value is stored.
status;a1;a2;a3;a4;a5;a6;a7
The monitor program offers the specialist access at hexa- • The blank character (space) is ignored and can be used
decimal level to the entire address range of the PLC. Mem- for more clearly structured entries.
ory areas can be displayed and modified, and hardware
tests can be conducted. • The character CTRL-C aborts the currently running
operation.
Monitor commands which change memory storage
areas may endanger the functionality of the PLC. For • Every display on the screen can be stopped with
this reason the monitor functions should be handled <CTRL>S (XOFF) and be continued with <CTRL>Q
with care. (XON).
• The modules work with monitor commands with 32 bit • If no segment is specified when entering an address,
addresses. The high word of the 32 bit address is set the working segment is used (see Y instruction).
with the Y command.
Example: Overview of the monitor functions
Y = 20 <CR> } The value of the address Function and explanation Page
DW0 <CR> } 0020 0000H is displayed.
H Display help text / calculate hexadecimal ... 42
• The monitor pogram responds with the character * and W Write Intel HEX file ...................................... 49
waits for an entry.
• All of the numbers are hexadecimal numbers (leading
zeors may be omitted).
• If more digits than necessary are entered, only the last
digits are valid (with byte commands the last two dig-
its and with word commands the last 4 digits).
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
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 are overwritten with FF.
adr
value
adr: I/O-Address
value: Byte value to which the I/O address is written
=: Keyword
address
value new
value
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:
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.
Checksum 0 to 3
0243FFF8
Constants
1142H bytes
02430070
Program identification
02430040
Organizational directory
for program 2
0243002A
Organizational directory
for program 1
02430014
Organizational directory
PLC-specific
02430000
User program part 2
10000H bytes
02420000
User program part 1
10000H bytes
02410000
Stack 1
1F0100 100H SEG:0100
SEG=001FH
ASAS 1
1F0000 100H SEG:0000 (High word of the 32 bit address,
descriptor 0B8H = 184DEC)
SEG:05FF
CS31:
AW 08,00...AW 15,15
SEG:0500
SEG:04FF
CS31:
EW 08,00...EW 15,15
SEG:0400
SEG:03FF
CS31 status
(EW 07,15) All of the memory areas which
SEG:03FE
SEG:03FD are not allocated are reserved.
Read real time clock
(EW 07,08...EW 07,14)
SEG:03F0
SEG:03EF
Spontaneous mail box
(EW 07,04...EW 07,07)
SEG:03E8
SEG:03E7
Receive mail box
EW 07,00...EW 07,03
SEG:03E0
SEG:03DF SEG:006F
CS31:
EW 00,00...EW 05,15 EW 06,00...EW 06,15
SEG:0300 SEG:0050
reserved SEG:02FF
SEG:02FE
Send mail box
SEG:02F4
SEG:02F3
reserved
SEG:02E0
SEG:02DF SEG:00AF
CS31:
AW 00,00...AW 05,15 AW 06,00...AW 06,15
SEG:0200 SEG:0090
SEG:01FF SEG:0033
CS31:
E 00,00...E 61,15 E 62,00...E 63,15
SEG:0180 SEG:0030
SEG:017F
reserved E 64,00...E 64,07 SEG:0034
SEG:0080
SEG:007F SEG:0042
CS31:
A 00,00...A 61,15 A 62,00...A 63,15
SEG:0000 SEG:0040
SEG=0050H SEG=0060H
(High word of the 32 bit address, (High Word of the 32 bit address,
descriptor 0C8H = 200DEC) descriptor 058H = 88DEC)
not used
03080
Program identification
03070
Signal flow: In the direction of the 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)
Examples: E 00,03 A 07,15 M 05,01 S 05,04 K 00,01
Signal flow: In the direction of the arrow, otherwise from left to right
Brackets: Sum "LEFT BRACKET" = Sum "RIGHT BRACKET", nesting depth: 15
W-OPR: Word operand (EW, AW, MW, KW)
Examples: EW 03,05 AW 11,12 MW 22,15 KW 09,06
Signal flow: In the direction of the arrow, otherwise from left to right
Brackets: Sum "LEFT BRACKET" = Sum "RIGHT BRACKET", nesting depth: 15
W-OPR: Word operand (EW, AW, MW, KW)
Examples: EW 03,05 AW 11,12 MW 22,15 KW 09,06
B-OPR: Binary operand (E, A, M, S, K)
Examples: E 00,03 A 07,06 M 05,01