You are on page 1of 24

Operation Contents

Operation
Contents

Introduction................................................................ 2
Operating modes .................................................... 2
Instruction set in PROGRAM-mode...................... 2
Instruction set in RUN-mode ................................. 3
Instruction set in the PROGRAM-mode.................... 5
Writing to free program lines................................. 5
The operating command GOTO ............................ 6
Insertion of control instructions (INSERT) ........... 7
Display step-wise ................................................... 8
Clearing instructions (DELETE) ........................... 9
Display the instruction list (LISTING) .................. 10
Search for control instructions (FIND) .................. 11
Filling out the look-up table (TABLE) .................. 12
Display of the program header (HEADER)........... 13
Delete the program (NEW).................................... 14
Program storage (RESTORE / SAVE) .................. 15
Selection of the Cold-start/Warm-start mode ........ 16
Start-up behavior................................................ 16
Program protection (USERIDENT)....................... 17
Comparison of the internal
RAM and backup contents..................................... 18
Instruction set in the RUN-mode ............................... 19
Display of process data (VIEW) ............................ 20
Modification of the process data (MODIFY) ........ 21
Step-by-step operation (TESTMODE / STEP)...... 22
Echo On / Off......................................................... 23

11.08.93, 396.0432 System manual, page 5.1


Introduction Operation

Introduction
The operating instruction set for the SELECONTROL PMC includes the following
commands:

Operating modes
X)P Activate PROGRAM mode (programming)
X)R Activate RUN mode (operation)

Instruction set in PROGRAM-mode


Syntax Instruction Description
G) GOTO Jump to specified program line
D) DELETE Delete program line
L) LIST Display program
F) FIND Search for instructions
T) TABLE Fill out Look Up-Table
H) HEADER Display system configuration
N)1234 NEW Delete program
S)1234 SAVE Store program in EEPROM
R)1234 RESTORE Restore program from EEPROM
C) COLDSTART The process data are initialized to zero after a power
interruption or a change of operating mode
W) WARMSTART The process data remain stored in the data registers
after a power interruption or a change of
operating mode
K) Accesses BITBUS network
(See separate manual)
U) USERIDENT Enter personal password
E) Comparison of the internal RAM and backup contents
I) IDENTIFY Address a Slave-Station

System manual, page 5.2 11.08.93, 396.0432


Operation Introduction

Instruction set in RUN-mode


Syntax Instruction Description
V) VIEW Display process data
M) MODIFY Modify process data
B) BYE Activate code word
T) TESTMODE Switch Test Mode On / Off
S) STEP Execute the program step-by-step
(Cycle-wise)
CTRL + T (14hex) Activate Echo Mode
CTRL + R (12hex) De-activate Echo Mode
I) IDENTIFY Identify a Slave station
Q) QUIT Slave confirms selection

Note: With the exception of the two instructions CTRL+T and CTRL+R, all the
operating instructions must be confirmed by pressing the ENTER key.

No operating instruction is necessary for INSERT. The input of a control instruction at


an arbitrary program line is always interpreted as an INSERT operation. This has the
effect of moving any existing program beyond that point down by one line.
The safety code, 1234, prevents a program from being inadvertently destroyed with a
NEW command.
The step-by-step display of program lines is effected by pressing ENTER.
An acoustic error warning is given if an input is incomplete or is not permissible. The
same line number is then shown again for a renewed entry. The incorrect entry is shown
in unformatted form on the line above.

11.08.93, 396.0432 System manual, page 5.3


Introduction Operation

The firmware of the SELECONTROL® PMC supports the following functions for
correcting an entry:

BACK SPACE: Moves the cursor to the left. The erroneous entry can
either be over-written or deleted.

DELETE: Deletes the character to the left of the cursor.

Programming is carried out "on-line" (programming terminal is connected to the CPU)


in the echo mode:
• each character is sent to the CPU and the character received is sent back to the
terminal where it is displayed.
• The control instruction is entered at the terminal (unformatted).
• The instruction is checked for syntax errors by the central processing unit when
ENTER is pressed.
• If the entry is correct, the instruction is formatted and the next line number is then
displayed.

Programming examples are given on the following pages.

System manual, page 5.4 11.08.93, 396.0432


Operation Instruction set in the PROGRAM-mode

Instruction set in the PROGRAM-mode


Writing to free program lines
Put the controller into the programming mode with the instruction X)P.
An input is always assigned to the program line (line number) as shown by the cursor.
All spaces and all leading zeros within a control instruction can be omitted (with the
exception of leading zeros for hex constants).
The complete control instruction is over-written with a formatted version including the
spaces and leading zeros after the ENTER key has been struck. The system then brings
up the next line number so that programming can be continued.
Example:
Line Instruction Description
0000 LI0.0 Input without spaces and leading zeros

After pressing the ENTER-key:


Line Instruction Description
0000 L I 00.00 Formatted input
0001 Next line number

If the input is erroneous, an acoustic warning is given and the control instruction is not
formatted. The system comes back with the same line number so that the instruction
may be corrected.
Example:
Line Instruction Description
0000 A0.1 Erroneous input
(no operand identification "I" INPUT)

After pressing the ENTER-key:


Line Instruction Description
0000 A 0.1 Acoustic warning
0000 Same line number for renewed input

11.08.93, 396.0432 System manual, page 5.5


Instruction set in the PROGRAM-mode Operation

Now input the following program:


Line Instruction Description
0000 L I 00.00 If input 00.00
0001 A I 00.01 And input 00.01
0002 O I 00.03 Or input 00.03
0003 = O 01.00 Then output 01.00
0004 EP End of program
0005

The operating command GOTO


Syntax: G)
By using the GOTO command, a jump can be made to any arbitrary line number within
the program.
If a line number is selected that is outside the current program, the first free line number
will be automatically shown instead.
Example:
Line Instruction Description
0005 G)2 Command G) with new line number 2

After pressing the ENTER-key:


Line Instruction Description
0002 0 I 00.03 Previous instruction line number
0002 for new input (automatic INSERT)

Example:
Line Instruction Description
0002 G)1999 Command G) with new line number outside
the current program

After pressing the ENTER-key:


Line Instruction Description
0005

If the program is to be structured by use of spaces (NOP), then these spaces must be
specifically input. It is not necessary to insert many spaces (NOP) since control
instructions can be subsequently added at any time (the NOP's lengthen the cycle time).

System manual, page 5.6 11.08.93, 396.0432


Operation Instruction set in the PROGRAM-mode

Insertion of control instructions (INSERT)


An automatic INSERT is executed if a GOTO command directs a new instruction to a
line number at which there is already an instruction. The new instruction is written at
the specified line number and the next and all following instructions are moved down
by one line right through to the end of the program.

Example:
A line with additional instruction is to be inserted in the following program.
Line Instruction Description
0000 L I 00.00 Existing program
0001 A I 00.01
0002 O I 00.03
0003 = O 01.00
0004 EP
0005

Enter: G)2 in order to jump to line number 2.

After pressing the ENTER-key:


Line Instruction Description
0002 O I 00.03 Previous instruction
0002

Now enter the new instruction: AI0.2

After pressing the ENTER-key:


Line Instruction Description
0002 A I 00.02 New instruction
0003 O I 00.03 Previous instruction
0003

The program then looks like this:


Line Instruction Description
0000 L I 00.00
0001 A I 00.01
0002 A I 00.02 New instruction
0003 O I 00.03
0004 = O 01.00
0005 EP
0006

11.08.93, 396.0432 System manual, page 5.7


Instruction set in the PROGRAM-mode Operation

Display step-wise
The successive line number and the corresponding instruction are displayed each time
the ENTER key is pressed.

Line Instruction Description


0003 O I 00.03
0003

After pressing the ENTER-key:


Line Instruction Description
0003 O I 00.03
0004 = O 01.00
0004

After pressing the ENTER-key:


Line Instruction Description
0003 O I 00.03
0004 = O 01.00
0005 EP
0005

System manual, page 5.8 11.08.93, 396.0432


Operation Instruction set in the PROGRAM-mode

Clearing instructions (DELETE)


Syntax: D)
The present instruction is deleted and the following instructions are all moved up.
The instruction in line number 2 is to be deleted in the program shown below:
Line Instruction Description
0000 L I 00.00
0001 A I 00.01
0002 A I 00.02
0003 O I 00.03
0004 = O 01.00
0005 EP

Use the GOTO command to move the cursor to line number 2.


Enter: G) 2 and press the ENTER key.
The display shows the instruction at line number 2:
0002 A I 00.02 Previous instruction
0002

Enter: D) and press the ENTER key.


The instruction at line number 2 is deleted and all the following instruction are moved
up by one line.
0002 O I 00.03
0002

Note: Control instructions cannot be overwritten. An instruction must be


consciously DELETED (otherwise INSERT always has priority).

11.08.93, 396.0432 System manual, page 5.9


Instruction set in the PROGRAM-mode Operation

Display the instruction list (LISTING)


Syntax: L)
The instruction list is shown from (and including) the current line number.
The listing procedure can be interrupted and then continued by striking any key.
Pressing ENTER terminates the procedure.

Enter: L) and press the ENTER key.


The program is now listed-out to the last instruction.

The following system message signals the end of the program:


Line Instruction Description
0003 = O 01.00
0004 EP Last instruction
END OF LISTING System message
0005 First free address

System manual, page 5.10 11.08.93, 396.0432


Operation Instruction set in the PROGRAM-mode

Search for control instructions (FIND)


Syntax: F)
The search begins at the current line number and continues to the end of the program.
A search can be made for the following types of data:
• F) 00.03 Search for parameter/address
• F) I 00.03 Search for an operand (data type + parameter)
• F) O I 00.03 Search for a complete instruction
Example:
The following line is shown on the display:
Line Instruction Description
0000 L I 00.00 Start of search procedure
0000

Parameter to search for: 0.3

Enter: F)0.3 and press the ENTER key. The system signals the search with the
following message:
Line Instruction Description
FIND *** * 00.03 Search for a parameter
0002 0 I 00.03 First line number with parameter sought
FIND NEXT? "Y" Enter "Y" to continue the search
Enter any other character to terminate
the search.
Press the Y and ENTER keys. The system then continues to search. The following is
presented if the sought for parameter is not found:
Line Instruction Description
FIND *** * 00.03
STRING NOT FOUND
0002
After the search the cursor is located
• either on the line at which the search has been started
• or on that line at which the sought for parameter has last been found.

11.08.93, 396.0432 System manual, page 5.11


Instruction set in the PROGRAM-mode Operation

Filling out the look-up table (TABLE)


Syntax: T)
The look-up table is used for code changing.
(See Section on "Programming": Operation LKP).

Line Instruction Description


0003 T) nn.mm Entry in the line nn (00 ... FF)
TABLE nn.mm in the table value mm (00 ... FF)
0003

Note: No line number is occupied in the program by an entry in the table.

System manual, page 5.12 11.08.93, 396.0432


Operation Instruction set in the PROGRAM-mode

Display of the program header (HEADER)


Syntax: H)
The system set-up can be shown with the operating command H).

Example:
Line Instruction Description
XXXX H) Command HEADER

the following system settings are shown after pressing the ENTER key:
• LKP-TABLE (code changing table)
• System setting: - Data transmission
- baud rate
- format

The HEADER output can be interrupted and restarted by striking any key. Pressing the
ENTER key terminates the output.

11.08.93, 396.0432 System manual, page 5.13


Instruction set in the PROGRAM-mode Operation

Delete the program (NEW)


Syntax: N)1234
The program can be deleted by using the operating command N) followed by the
security code 1234.
The operating command N)1234 has the following effects:
completely re-initializing the user-program memory, i.e.:
• deleting the user program
• deleting the look-up table
• resetting the warm-start-marker

Example:
The cursor is positioned on an arbitrary line number (XXX):
Line Instruction Description
XXXX N)1234 Command N) plus security code 1234

after pressing the ENTER key, the system reports:


PROGRAM CLEARED
0000

The program is deleted from memory and the cursor is positioned at line number 0000.

System manual, page 5.14 11.08.93, 396.0432


Operation Instruction set in the PROGRAM-mode

Program storage (RESTORE / SAVE)


Syntax: R)1234 (copies from memory cartridge to RAM)
Syntax: S)1234 (copies from RAM to memory cartridge)

Once a program has been completed and been tested it should be stored in a memory
cartridge with the command S)1234. The cartridge has to be inserted in the basic unit to
achieve this.
The operating command S)1234 starts the copying procedure from RAM to EEPROM
(SAVE).
The operating command R)1234 starts the copying procedure from EEPROM to RAM
(RESTORE).
The whole program is always copied, including - look-up-table
- Password (Userident)
- Settings concerning
- Cold/Warm-start behavior

Warning: Insert or remove the memory cartridge only after the power has been
switched off.

The following error message is generated if an attempt is made to use the commands
without a memory cartridge being inserted in the basic unit:
Line Instruction Description
XXXX NO BACKUP MEMORY

11.08.93, 396.0432 System manual, page 5.15


Instruction set in the PROGRAM-mode Operation

Selection of the Cold-start/Warm-start mode


Syntax: C) (COLDSTART)
When a cold-start has been selected, the contents of the data registers are initialized to
zero (i.e. deleted) in the event of a power interruption or a change of operating mode.

Syntax: W) (WARMSTART)
The process data in all the data registers D00.00 ... D15.63 remain stored and the
current program cycle is completed after a power interruption or a change of operating
mode.
This enables the programmer to write the required process data (markers, step counters,
outputs, etc.) into the data registers with the STW command before the EP and then, at
the start of the program, to bring the data back into the program again with the special
marker M40.01 and the FTW command.

Start-up behavior
The start-up behavior is signalled with the special marker M40.13 (WARMERR). The
special marker is set to either logic 1 or logic 0 as the case might be in the following
cases:
When a cold-start has been selected
• Start-up with initialized process data: M40.13 = logic 0

When a warm-start has been selected


• Start-up with correct process data: M40.13 = logic 0
• Start-up with process data losses: M40.13 = logic 1

System manual, page 5.16 11.08.93, 396.0432


Operation Instruction set in the PROGRAM-mode

Program protection (USERIDENT)


Syntax: U) and B)

The command U)
A security code can be entered in the program mode by use of the operating command,
U). A return to the program mode requires the input of this security code, otherwise
every instruction (list, print, etc.) will be ignored.
A string of 1 to 4 characters is permissible as the USERIDENT
(figures, symbols, letters).
The USERIDENT can be deleted in the programming mode by means of U) and
ENTER.

The command B)
After leaving the RUN mode, the security code is activated with B) (Bye) and ENTER.

11.08.93, 396.0432 System manual, page 5.17


Instruction set in the PROGRAM-mode Operation

Comparison of the internal RAM and backup


contents
Syntax: E)
Through the use of this command, the following points in the user-program (stored in
RAM) are checked against the contents of the EPROM/EEPROM (backup):
• User-program
• Tables
• Pass-word
• Configuration, Expansion modules
• Start priority

A message is displayed on the terminal if any of these conditions is not fulfilled.

System manual, page 5.18 11.08.93, 396.0432


Operation Instruction set in the RUN-mode

Instruction set in the RUN-mode


Process data can be displayed and altered during a scanner cycle when the system is in
the RUN-mode. The user program cannot be altered.
The intervention always occurs between the I/O phase and the processing of the user-
program.
Interventions in I/O data take place in the image memory.
In the RUN-mode, the programming terminal shows: R

Image memory
I/O-Phase
S tatu s o f
in p uts a n d o u tp u ts

U se r-p ro g ra m

11.08.93, 396.0432 System manual, page 5.19


Instruction set in the RUN-mode Operation

Display of process data (VIEW)


Syntax: V)
The following types of data can be displayed:

Data type Display


I nn.nn Binary status (1/0)
O nn.nn Binary status (1/0)
M nn.nn Binary status (1/0)
S nn.00 Step counter status (2 digits)
D nn.nn D-register content (4 digits)
R nn.nn R-register content (4 digits)

Examples:
Display Input Description

R V) I 00.00 Displays status of I 00.00


0001 Status is constantly up-dated
R V) D 07.00 Displays content of D 07.00
3798 Value is constantly up-dated
R V) S 13.00 Displays content of step counter 13.
13.39 The current step is continually shown

The V) command remains active until it is cancelled by pressing the ENTER key.

System manual, page 5.20 11.08.93, 396.0432


Operation Instruction set in the RUN-mode

Modification of the process data (MODIFY)


Syntax: M)
The following types of data can be modified:
Data type Description
I nn.nn K 1/0 to logical 1/0
O nn.nn K 1/0 to logical 1/0
M nn.nn K 1/0 to logical 1/0
S nn.oo K kk to the value kk
D nn.nn K kkkk to the value kkkk
R nn.nn K kkkk to the value kkkk

The statuses of data types I, O and M are only modified for one scanner cycle.
Thereafter, the effective value is automatically assumed by the system.

Examples:
Display Input Description
R M) I 00.00 K1 Input 00.00 is set to logical 1
for one program cycle
R M) D 15.60 K 1987 Data register 15.60 is set to a value of 1987
R M) S 13.00 K67 Step counter 13 is set to a value of 67

The operating command M) is used during the program test and commissioning e.g. for:
• pre-setting the step counters step-by-step
• and checking the inputs/outputs
• alteration of counter contents and elapsed times

11.08.93, 396.0432 System manual, page 5.21


Instruction set in the RUN-mode Operation

Step-by-step operation (TESTMODE / STEP)


Syntax: T) or S)

The command T)
You have the possibility in the test mode to test a program on a step-by-step basis, i.e.
cycle-by-cycle.
Press T) and the ENTER key to activate the test mode.
This is shown on the terminal by the message: TESTMODE ON

The command S)
The S) command causes the program to be executed once and then the I/O-phase is
carried out.
To exit from the test mode it is necessary to press T) and ENTER once again.

The system-flag M 41.01 is active while the test mode is switched on.

System manual, page 5.22 11.08.93, 396.0432


Operation Instruction set in the RUN-mode

Echo On / Off
Syntax: Ctrl+T or Ctrl+R
The expression Echo-Mode means that every character that is sent to a receiving device
is immediately returned by that device to the sender.
DIP-switch No. 5 on the rear of the equipment must first be set to the ON position
before the two commands can be utilised.

The command Ctrl+T


This command serves to switch the echo mode on.
It is activated by pressing the T-key while holding the Ctrl-key in the depressed
position. This combination of keys corresponds to the ASCII-character 14hex.
The echo mode is normally switched on in the controller. It is, however, necessary to
switch this mode off for certain applications (e.g. for modem operation).

The command Ctrl+R


This command serves to switch the echo mode off.
It is activated by pressing the R-key while holding the Ctrl-key in the depressed
position. This combination of keys corresponds to the ASCII-character 12hex.

Example based on the use of the VIEW command:


Press the Ctrl and R keys simultaneously.
Type in the command V)I0.0 and it will not be shown on the terminal.
After pressing the ENTER key, however, the status of the input I00.00 will be shown.
0001 Display status of I 00.00

You can activate the echo mode even before the installation of the controller by means
of DIP-switch No. 5 (see the Section "Hardware description").
The system-flag M 41.00 signals the current setting of the echo mode.
Echo mode switched on Flag 41.00 = 1
Echo mode switched off Flag 41.00 = 0

11.08.93, 396.0432 System manual, page 5.23


Instruction set in the RUN-mode Operation

System manual, page 5.24 11.08.93, 396.0432

You might also like