Prmon
Prmon
Automation System
in Decentralized Structure
Monitor
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
____________________________________________
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
____________________________________________
*) not with 07 KR 31 / 07 KT 31
**) only with 07 KR 31 / 07 KT 31
Function:
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.
CROSS <CR>
nr
nr
A
nr
nr
M
nr
nr
nr
S
nr
nr
nr
nr
D aa <CR>
DEEP <CR>
, ea
Function:
L az A PLC program stored on the Flash EPROM is erased
(rendered invalid).
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.
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
IDS <CR> ”
Program
<CR> constant No. old value:
identification
Displayed number and value of the constant.
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
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
, ea
Enter/edit user program without echo V aa <CR>
Command: L az
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.
BA <CR>
Breakpoints can be set:
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)
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.
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.
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.
Y
TRACE <CR>
var ; value
<CR>
TRACE E <CR>
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>
<CTRL> C ZD
Z <CR> ;
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.
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
( NOP
! B–OPR = B–OPR
N ) N
/ S
& R
PE
( NOP
! W-OPR = W-OPR
– ) –
( NOP
! W–OPR = W–OPR
– ) –
: * – +
( NOP
W–OPR = B–OPR
– ) N
: * – +
R
PE
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
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).
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
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
M aa , ea , za <CR>
L az
Read/write port
A value from the I/O area is displayed and modified byte-serially.
Command:
P adr <CR>
= value
Command:
S B aa <CR>
W
Y <CR>
Example:
Example:
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>
ZG adr1 <CR>
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
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.
L az , exp2 , exp3
L az1
R <CR>
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.
Program identification:
16 bytes for an identification, e.g. project name.
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