Classnotes Profibus DP 1
Classnotes Profibus DP 1
98 K
Interface
6543210
Interface
6543210 432109876543210
KS
KS98-1
KS
KS9
PROFIBUS-DP
KS98
Interface description
PROFIBUS protocol
9499 040 82811
Valid from: 8445
SIMATIC® is a registered trademark of Siemens AG
STEP® is a registered trademark of Siemens AG
is a registered trademark of the PROFIBUS user organization (PNO)
KS 98 / 9499-040-52711 3
4.3 Instrument function . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 36
4.4 Scaling and calculation functions . . . . . . . . . . . . . . . . . . . . . . . . . . . 40
4.5 Non-linear functions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 42
4.6 Trigonometric functions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 44
4.7 Logic functions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 46
4.8 Signal converters. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 48
4.9 Time functions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 50
4.10 Selection and storage . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 53
4.11 Alarm and limiting . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 56
4.12 Visualization . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 59
4.13 Communication. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 63
4.14 KS98-CAN-extension . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 66
4.15 Programmer . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 74
4.16 Controller functions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 82
4.17 Inputs . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 95
4.18 Outputs . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 99
4.19 Supplementary functions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 102
5 Function module for SIMATIC® S5/S7 . . . . . . . . . . . . . . . . . . . . . . . . 102
5.1 Function module for SIMATIC® S5 . . . . . . . . . . . . . . . . . . . . . . . . . 102
5.1.1 Structure . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 102
5.2 Caling up the function module . . . . . . . . . . . . . . . . . . . . . . . . . . . . 105
5.3 Function module for SIMATIC® S7 . . . . . . . . . . . . . . . . . . . . . . . . . 105
5.3.1 Structure . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 105
6 Annex . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 108
6.1 Diagnosis . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 108
6.2 Terms . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 109
6.3 GSD file . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 109
7 Index . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 112
4 KS 98 / 9499-040-52711
Interface description Profibus dp General
. 1 General
The KS98 multi-function unit versions (9407-9xx-3xxx1) are equipped with a PROFIBUS-DP interface, which permits
transmission of process, parameter and configuration data. Connection is on the instrument rear. The serial
communication interface permits connections to supervisory PLCs, visualization tools, etc.
Another standard interface is the non-bussable front-panel PC interface, which is used for connecting an engineering
tool running on a PC.
Communication is according to the master/slave principle. KS98/DP is always slave.
Characteristic data of the cable medium as well as the physical and electrical interface properties are:
• Network topology
Linear bus with active bus termination (r p. 7) at both ends. Stub lines are possible (dependent of cable type, a
maximum overallstub line length of 6,6m with 1,5bit/s and of 1,6m with 3 .. 12 Mbit/s is possible).
• Transmission medium
screened, twisted 2-wire cable (r EN 50170 vol.2).
• Baudrates and cable lengths (without repeater)
The maximum cable length is dependent of the transmission rate.
The Baudrate is determined by the master configuration.
Automatic Baudrate detection Baudrate Maximum cable length
9,6 / 19,2 / 93,75 kbit/s 1200 m
187,5 kbit/s 1000 m
500 kbit/s 400 m
1,5 Mbit/s 200 m
3 ... 12 Mbit/s 100 m
• Interface
RS485 with AMP flat-pin connector; can be installed at the site.
• Addressing: 0 ... 126 (factory setting: 126)
Remote addressing is possible
• 32 units in one segment. Can be extended to 127 with repeater.
KS98 with PROFIBUS-DP interface offers many advantages referred to handling and integration into a PROFIBUS
network.
• Particularities
Configurable process data modules
Direct input and output reading and writing
Input and output forcing
Easy connection even to small PLCs
KS 98 / 9499-040-52711 5
General Interface description Profibus dp
. 2 Hints on operation
2.1 PROFIBUS status display
The PROFIBUS status can be displayed via
Main menu ô
General data ô
Status PROFIBUS
2.2 Remote/local
The write and read access authorities for KS98-DP are defined as follows:
• PC interface:
– Write / read accesses are always permitted
• PROFIBUS interface:
– Read accesses always permitted
– Write accesses are permissible only with WriteOK = 0 (r page )
12 5
VP
9
13
GND
max. 1200m
4
14 8
RXD/TXD-N (A)
3
15 RXD/TXD-P (B) 7
16 2
6
1
Installation of suitable cables must be done by the user, whereby the general cable specifications to EN 50170 vol. 2
must be followed.
Bus cable termination at the two segments end by means of terminating resistors ensures
– adjustment of a defined rest potential on the line,
– minimization of line reflections, and
– adjustment of a nearly constant bus load behaviour.
Two bus line version are specified in standard EN 50 170. With type A cable, all transmission rates up to 12 Mbaud can
be used. In addition to the standard cable version, versions for underground installation, overhead suspension and
trailing cables are available.
The cable parameters are:
Parameter Type A cable
Wave resistance in W 135 ... 165 at 3 ... 20 MHz
Operating capacitance (pF/m) < 30
Loop resistance (W/km) < 110
Conductor diameter (mm) > 0,64
Conductor cross section (mm2 ) > 0,34
g Special hints for installation of PROFIBUS cables are given in the PNO Technical guideline “ Installation guidelines for
PROFIBUS-DP/FMS” (order no. 2.111 [dt]; 2.112 [engl.]).
6 6
Strain relief
A B A B A B A B A B A B
Fig.: 5 Wiring example with Sub-D bus adaptor and bus connector
KS98 KS98 KS98
P C B A P C B A P C B A
2.4 Systemstructure
2.4.1 Minimum PROFIBUS system equipment
A min. PROFIBUS system comprises the following components:
– a bus master for data communication control,
– one or several slaves which provide data on request by the master,
– the transmission medium, consisting of bus cable and bus connector for connecting the various units, one or
several bus segments connected by means of repeaters.
KS 98 / 9499-040-52711 9 Systemstructure
Hints on operation Interface description Profibus dp
With max. PROFIBUS system extension, the max. number of stations is 126 with addresses 0 ... 125. Each repeater
reduces the max. number of stations within a segment. As a passive unit, no PROFIBUS address is assigned to a
repeater. However, the repeater input circuitry adds an additional load due to the bus driver power consumption to the
segment. However, a repeater is without effect on the overall number of conencted bus stations.
The max. number of repeaters which may be connected in series can differ dependent of manufacturer. Therefore,
manufacturer information on any limitations should be provided when projecting a system.
Systemstructure 10 KS 98 / 9499-040-52711
Interface description Profibus dp Hints on operation
The bus cable must be installed at a min. distance of 20 cm from other cables for transmitting voltage above 60 V.
Moreover, the bus cable must be kept separate from telephone lines and cables leading into explosion-hazarded areas.
In these cases, we recommend installing the bus cable in a separate cable duct.
With a cable duct, only conducting materials correctly connected to reference earth should be used. The bus cables
must not be exposed to mechanical strain or obvious damage. If this cannot be precluded, special protective measures,
e.g. installation in tubes, etc. must be taken.
Earth-free construction :
If earth-free construction is required for defined reasons, the connection of instrument ground and reference earth must
be of very high impedance (using an RC snapper ). In this case, the system selects its own potential. When installing
repeaters for connecting bus segments, the earth-free construction should always be preferred, in order to prevent
transmission of potential differences between bus segments.
KS 98 / 9499-040-52711 11 Systemstructure
Process data Interface description Profibus dp
. 3 Process data
3.1 General
Function blocks DPREAD and DPWRIT are provided for realization of a simple data transmission controller i PLC or
visualization. The process data of these function blocks are transmitted cyclically (r ).
During creation of the engineering, take care that all data which shall be transmitted via the PROFIBUS interface are
connected (soft-wired) to these communication blocks. A simple example is shown in Fig.: 6.
The parameter channel is used for sequential transmission of parameter and configuration data.
Transmission of analog values is in REAL format (range: -29999 .. 200000) or in 16-bit fixed point format (FIX) dependent
of configuration. In the FIX format, all values are interpreted with one digit behind the decimal point (range -3000,0 to
3200,0).
The values to be adjusted and data significations are given in the following table.
1) number of bytes required in the I/O field (FIX point format/REAL format)
General 12 KS 98 / 9499-040-52711
Interface description Profibus dp Process data
• Module a (1 channel)
REAL format FIX point format
Value Value
No. Descr. R/W
Type COM Type COM
Hex Hex Rem.
PROFIBUS PROFIBUS
0 State1_1 R Status 10 8DE Status 10 8DE A
1 State2_1 R Status 10 8DE Status 10 8DE B
2 Input 1_1 R Float D1 209 Int16 50 1AE
DPREAD 3 Input 2_1 R Float D1 209 Int16 50 1AE
FB no. 01 4 Input 3_1 R Float D1 209 Int16 50 1AE
5 Input 4_1 R Float D1 209 Int16 50 1AE
6 Input 5_1 R Float D1 209 Int16 50 1AE
7 Input 6_1 R Float D1 209 Int16 50 1AE
8 Cntrl1_1 W Status 20 8DA Status 20 8DA C
9 Cntrl2_1 W Status 20 8DA Status 20 8DA D
10 Output 1_1 W Float E1 225 Int16 60 1AA
DPWRITE 11 Output 2_1 W Float E1 225 Int16 60 1AA
FB no. 11 12 Output 3_1 W Float E1 225 Int16 60 1AA
13 Output 4_1 W Float E1 225 Int16 60 1AA
14 Output 5_1 W Float E1 225 Int16 60 1AA
15 Output 6_1 W Float E1 225 Int16 60 1AA
State1_x
D7 D6 D5 D4 D3 D2 D1 D0 Bit
d8 d7 d6 d5 d4 d3 d2 d1 Digital input from DPREAD
State2_x
D7 D6 D5 D4 D3 D2 D1 D0 Bit
d16 d15 d14 d13 d12 d11 d10 d9 Digital input from DPREAD
Cntrl1_x
D7 D6 D5 D4 D3 D2 D1 D0 Bit
z8 z7 z6 z5 z4 z3 z2 z1 Digital output from DPWRIT
Cntrl2_x
D7 D6 D5 D4 D3 D2 D1 D0 Bit
z16 z15 z14 z13 z12 z11 z10 z9 Digital output from DPWRIT
Parameter 1 Parameter 1
Parameter 2 Parameter 2
.... ....
.... ....
Parameterchannel
.... ....
.... ....
.... ....
Parameter n Parameter n
ID
This element identifies the telegram mode: ID = 0x10 = start telegram
ID = 0x68 = data telegram
ID = 0x16 = end telegram
ID1
This element identifies the file format: ID1 = 0 = integer
(permissibility dependent of access type) ID1 = 1 = Real
ID1 = 2 = Char 1)
ID1 = 3*
ID1 = 4 = Char (kompakte Übertragung) 2)
* ID1 = 3: (Special format)
– With individual access, all data are transmitted in float format (4 bytes IEEE 784 format).
– With block access (tens block), value 0 is transmitted for unused block data. 9 values are always transmitted!
– With block access (overall block), real data in float format are transmitted (4 bytes IEEE 784 format), however,
integer data are transmitted as integer values. In a read reply, the function block type is entered additionally
in byte 5.
– Statuses (codes 01, 02, 11,12 or value > 3F) are transmitted without conversion in the last one of the 4 bytes.
Code
The code identification is decimal and the range includes ‘00’...’99’ and ‘177’ = B1, ‘178’ = B2 and ‘179’ = B3.
1) The data stream is sent after character ‘=’ as part of the FB telegram, commas are replaced by SUB (26 ).
dec
Signification of result
0 OK
1 Timeout occurred
2 Parity error internal interface
3 Faulty BCC
4 NAK
Reading or writing is always started by the master. If the number of real and integer values is ¹ 0, a Write service,
otherwise a Read service is started.
The code determines the access type:
Code < 100, no multiple of 10 r individual access
Code < 100, multiple of 10 r tens block access
Code > 100 r Block access overall block
Thereby, the first value is sent with Count = 1, for flow control, Count is reflected by the master ( ? once). The values are
transmitted in the order Real Integer.
End telegram:
Byte 0 Byte 1 Byte 2 Byte 3 Byte 4 - 7 Conrtroller Byte 0 Byte 1 Byte 2-3 Byte 4 - 7
Master sends: 0x16 replies: 0x16 Result
3.6 Examples
3.6.1 Principles of the function block protocol
A function block has input and output data (process data) as well as parameter and configuration data. It is addressable
via a block number. An allocated block type defines the relevant function.
The access mechanisms are:
Data telegrams:
Byte 0 Byte 1 Byte 2 Byte 3 Byte 4 - 7 Byte 0 Byte 1 Byte 2 Byte 3 Byte 4 - 7
Master 0x68 1 250 0x68 1
Controller replies:
sends:
End telegram:
Byte 0 Byte 1 Byte 2 Byte 3 Byte 4 - 7 Byte 0 Byte 1 Byte 2 - 3 Byte 4 - 7
Master 0x16 0x16 0
Controller replies:
sends:
Example 2: (Message structure with data request)
Reading the error code of the controller self-tuning heating (MSG1)
Start telegram:
Byte 0 Byte 1 Byte 2 Byte 3 Byte 4 Byte 5 Byte 6 Byte 7
Master 0x10 0 35 100 2 90 0 0
sends:
Controller Byte 0 Byte 1 Byte 2 Byte 3 Byte 4 Byte 5 Byte 6 Byte 7
replies: 0x10 0 1
Examples 22 KS 98 / 9499-040-52711
Interface description Profibus dp Process data
Data telegrams:
Byte 0 Byte 1 Byte 2 Byte 3 Byte 4 - 7 Byte 0 Byte 1 Byte 2 Byte 3 Byte 4 - 7
Master sends: 0x68 1 Controller replies: 0x68 1 2 (ok)
End telegram:
Byte 0 Byte 1 Byte 2 Byte 3 Byte 4 - 7 Byte 0 Byte 1 Byte 2 - 3 Byte 4 - 7
Master sends: 0x16 Controller replies: 0x16 0
End telegram:
Byte 0 Byte 1 Byte 2 Byte 3 Byte 4 - 7 Byte 0 Byte 1 Byte 2 - 3 Byte 4 - 7
Master sends: 0x16 Controller replies: 0x16 0
KS 98 / 9499-040-52711 23 Examples
Process data Interface description Profibus dp
Data telegrams:
Byte 0 Byte 1 Byte 2 Byte 3 Byte 4 - 7 Byte 0 Byte 1 Byte 2 Byte 3 Byte 4 - 7
Master 0x68 1 0x68 1 87
Controller replies:
sends:
Byte 0 Byte 1 Byte 2 Byte 3 Byte 4 - 7 Byte 0 Byte 1 Byte 2 Byte 3 Byte 4 - 7
Master 0x68 2 0x68 2 0
Controller replies:
sends:
Byte 0 Byte 1 Byte 2 Byte 3 Byte 4 - 7 Byte 0 Byte 1 Byte 2 Byte 3 Byte 4 - 7
Master 0x68 3 0x68 3 1
Controller replies:
sends:
End telegram:
Byte 0 Byte 1 Byte 2 Byte 3 Byte 4 - 7 Byte 0 Byte 1 Byte 2 - 3 Byte 4 - 7
Master 0x16 0x16 0
Controller replies:
sends:
Example: (message structure with data sending)
Writing the AINP1 output values. The written values are effective with 1 specified in Debug (r see page 36).
Start telegram:
Byte 0 Byte 1 Byte 2 Byte 3 Byte 4 Byte 5 Byte 6 Byte 7
Master 0x10 0 B1 61 1 110 1 4
sends:
Controller Byte 0 Byte 1 Byte 2 Byte 3 Byte 4 Byte 5 Byte 6 Byte 7
replies: 0x10 0 0
Data telegrams:
Byte 0 Byte 1 Byte 2 Byte 3 Byte 4 - 7 Byte 0 Byte 1 Byte 2 Byte 3 Byte 4 - 7
Master 0x68 1 123.45 0x68 1
Controller replies:
sends:
Byte 0 Byte 1 Byte 2 Byte 3 Byte 4 - 7 Byte 0 Byte 1 Byte 2 Byte 3 Byte 4 - 7
Master 0x68 2 0 0x68 2
Controller replies:
sends:
Byte 0 Byte 1 Byte 2 Byte 3 Byte 4 - 7 Byte 0 Byte 1 Byte 2 Byte 3 Byte 4 - 7
Master 0x68 3 0 0x68 3
Controller replies:
sends:
Byte 0 Byte 1 Byte 2 Byte 3 Byte 4 - 7 Byte 0 Byte 1 Byte 2 Byte 3 Byte 4 - 7
Master 0x68 1 0 0x68 1
Controller replies:
sends:
Byte 0 Byte 1 Byte 2 Byte 3 Byte 4 - 7 Byte 0 Byte 1 Byte 2 Byte 3 Byte 4 - 7
Master 0x68 2 0 0x68 2
Controller replies:
sends:
End telegram:
Byte 0 Byte 1 Byte 2 Byte 3 Byte 4 - 7 Byte 0 Byte 1 Byte 2 - 3 Byte 4 - 7
Master 0x16 0x16 0
Controller replies:
sends:
1) Only function block INP1 ... INP6 output data can be written.
Examples 24 KS 98 / 9499-040-52711
Interface description Profibus dp Process data
Data telegrams:
Byte 0 Byte 1 Byte 2 Byte 3 Byte 4 - 7 Byte 0 Byte 1 Byte 2 Byte 3 Byte 4 - 7
Master 0x68 1 0x68 1 8.001
Controller replies:
sends:
w
w
w
w
w
w
Byte 0 Byte 1 Byte 2 Byte 3 Byte 4 - 7 Byte 0 Byte 1 Byte 2 Byte 3 Byte 4 - 7
Master 0x68 25 0x68 25 58.002
Controller replies:
sends:
Byte 0 Byte 1 Byte 2 Byte 3 Byte 4 - 7 Byte 0 Byte 1 Byte 2 Byte 3 Byte 4 - 7
Master 0x68 26 0x68 26 32
Controller replies:
sends:
End telegram:
Byte 0 Byte 1 Byte 2 Byte 3 Byte 4 - 7 Byte 0 Byte 1 Byte 2 - 3 Byte 4 - 7
Master 0x16 0x16 0
Controller replies:
sends:
Data telegrams:
Byte 0 Byte 1 Byte 2 Byte 3 Byte 4 - 7 Byte 0 Byte 1 Byte 2 Byte 3 Byte 4 - 7
Master 0x68 25 0x68 25 0
Controller replies:
sends:
Byte 0 Byte 1 Byte 2 Byte 3 Byte 4 - 7 Byte 0 Byte 1 Byte 2 Byte 3 Byte 4 - 7
Master 0x68 26 0x68 26 0
Controller replies:
sends:
End telegram:
Byte 0 Byte 1 Byte 2 Byte 3 Byte 4 - 7 Byte 0 Byte 1 Byte 2 - 3 Byte 4 - 7
Master 0x16 0x16 0
Controller replies:
sends:
KS 98 / 9499-040-52711 25 Examples
Process data Interface description Profibus dp
Data telegrams:
Byte 0 Byte 1 Byte 2 Byte 3 Byte 4 - 7 Byte 0 Byte 1 Byte 2 Byte 3 Byte 4 - 7
Master 0x68 25 0 0x68 25
Controller replies:
sends:
Byte 0 Byte 1 Byte 2 Byte 3 Byte 4 - 7 Byte 0 Byte 1 Byte 2 Byte 3 Byte 4 - 7
Master 0x68 26 0 0x68 26
Controller replies:
sends:
End telegram:
Byte 0 Byte 1 Byte 2 Byte 3 Byte 4 - 7 Byte 0 Byte 1 Byte 2 - 3 Byte 4 - 7
Master 0x16 0x16 0
Controller replies:
sends:
Data telegrams:
Byte 0 Byte 1 Byte 2 - 4 Byte 5 Byte 6 - 7 Byte 0 Byte 1 Byte 2 - 4 Byte 5 Byte 6 - 7
Master 0x68 1 0x68 1 ‘A’
Controller replies:
sends:
w
w
Byte 0 Byte 1 Byte 2 - 4 Byte 5 Byte 6 - 7 Byte 0 Byte 1 Byte 2 - 4 Byte 5 Byte 6 - 7
Master 0x68 16 0x68 16 ‘P’
Controller replies:
sends:
Byte 0 Byte 1 Byte 2 - 4 Byte 5 Byte 6 - 7 Byte 0 Byte 1 Byte 2 - 4 Byte 5 Byte 6 - 7
Master 0x68 17 0x68 17 ‘A’
Controller replies:
sends:
w
w
Byte 0 Byte 1 Byte 2 - 4 Byte 5 Byte 6 - 7 Byte 0 Byte 1 Byte 2 - 4 Byte 5 Byte 6 - 7
Master 0x68 32 0x68 32 ‘P’
Controller replies:
sends:
End telegram:
Byte 0 Byte 1 Byte 2 Byte 3 Byte 4 - 7 Byte 0 Byte 1 Byte 2 - 3 Byte 4 - 7
Master 0x16 0x16 0
Controller replies:
sends:
Examples 26 KS 98 / 9499-040-52711
Interface description Profibus dp Process data
Data telegram:
Byte 0 Byte 1 Byte 2 - 4 Byte 5 Byte 6 - 7 Byte 0 Byte 1 Byte 2 - 4 Byte 5 Byte 6 - 7
Master 0x68 1 ‘A’ 0x68 1
Controller replies:
sends:
w
w
Byte 0 Byte 1 Byte 2 - 4 Byte 5 Byte 6 - 7 Byte 0 Byte 1 Byte 2 - 4 Byte 5 Byte 6 - 7
Master 0x68 16 ‘P’ 0x68 16
Controller replies:
sends:
Byte 0 Byte 1 Byte 2 - 4 Byte 5 Byte 6 - 7 Byte 0 Byte 1 Byte 2 - 4 Byte 5 Byte 6 - 7
Master 0x68 17 ‘A’ 0x68 17
Controller replies:
sends:
w
w
Byte 0 Byte 1 Byte 2 - 4 Byte 5 Byte 6 - 7 Byte 0 Byte 1 Byte 2 - 4 Byte 5 Byte 6 - 7
Master 0x68 32 ‘P’ 0x68 32
Controller replies:
sends:
End telegram:
Byte 0 Byte 1 Byte 2 Byte 3 Byte 4 - 7 Byte 0 Byte 1 Byte 2 - 3 Byte 4 - 7
Master 0x16 0x16 0
Controller replies:
sends:
KS 98 / 9499-040-52711 27 Examples
Process data Interface description Profibus dp
Data telegrams:
Byte 0 Byte 1 Byte 2 - 4 Byte 5 Byte 6 - 7 Byte 0 Byte 1 Byte 2 - 4 Byte 5 Byte 6 - 7
Master 0x68 1 ‘A’ 0x68 1
Controller replies:
sends:
w
w
Byte 0 Byte 1 Byte 2 - 4 Byte 5 Byte 6 - 7 Byte 0 Byte 1 Byte 2 - 4 Byte 5 Byte 6 - 7
Master 0x68 16 ‘P’ 0x68 16
Controller replies:
sends:
End telegram:
Byte 0 Byte 1 Byte 2 Byte 3 Byte 4 - 7 Byte 0 Byte 1 Byte 2 - 3 Byte 4 - 7
Master 0x16 0x16 0
Controller replies:
sends:
Example: (message structure with data sending)
Logging out (activating the password). This access is permitted, if a password exists (password status = 1 or 2).
Start telegram:
Byte 0 Byte 1 Byte 2 Byte 3 Byte 4 Byte 5 Byte 6 Byte 7
Master 0x10 0 23 0 4 0 1
sends:
Controller Byte 0 Byte 1 Byte 2 Byte 3 Byte 4 Byte 5 Byte 6 Byte 7
replies: 0x10 0 0
Data telegrams:
Byte 0 Byte 1 Byte 2 Byte 3 Byte 4 - 7 Byte 0 Byte 1 Byte 2 Byte 3 Byte 4 - 7
Master 0x68 1 2 0x68 1
Controller replies:
sends:
End telegram:
Byte 0 Byte 1 Byte 2 Byte 3 Byte 4 - 7 Byte 0 Byte 1 Byte 2 - 3 Byte 4 - 7
Master 0x16 0x16 0
Controller replies:
sends:
Data telegrams:
Examples 28 KS 98 / 9499-040-52711
Interface description Profibus dp Process data
Byte 0 Byte 1 Byte Byte 3 Byte 4 - 7 Byte 0 Byte 1 Byte 2 Byte 3 Byte 4 - 7
2
Master sends: 0x68 1 Controller replies: 0x68 1 0
End telegram:
Byte 0 Byte 1 Byte 2 Byte 3 Byte 4 - 7 Byte 0 Byte 1 Byte 2 - 3 Byte 4 - 7
Master sends: 0x16 Controller replies: 0x16 0
Data telegrams:
Byte 0 Byte 1 Byte 2 Byte 3 Byte 4 - 7 Byte 0 Byte 1 Byte 2 Byte 3 Byte 4 - 7
Master sends: 0x68 1 1 Controller replies: 0x68 1
End telegram:
Byte 0 Byte 1 Byte 2 Byte 3 Byte 4 - 7 Byte 0 Byte 1 Byte 2 - 3 Byte 4 - 7
Master sends: 0x16 Controller replies: 0x16 0
Data telegrams:
Byte 0 Byte 1 Byte 2 Byte 3 Byte 4 - 7 Byte 0 Byte 1 Byte 2 Byte 3 Byte 4 - 7
Master sends: 0x68 1 1 Controller replies: 0x68 1
End telegram:
Byte 0 Byte 1 Byte 2 Byte 3 Byte 4 - 7 Byte 0 Byte 1 Byte 2 - 3 Byte 4 - 7
Master sends: 0x16 Controller replies: 0x16 0
Data telegrams:
Byte 0 Byte 1 Byte 2 Byte 3 Byte 4 - 7 Byte 0 Byte 1 Byte 2 Byte Byte 4 - 7
3
Master sends: 0x68 1 0 Controller replies: 0x68 1
End telegram:
Byte 0 Byte 1 Byte 2 Byte 3 Byte 4 - 7 Byte 0 Byte 1 Byte 2 - 3 Byte 4 - 7
Master sends: 0x16 Controller replies: 0x16 0
KS 98 / 9499-040-52711 29 Examples
Process data Interface description Profibus dp
Procedure:
• Install engineering tool ET/KS98.
• Load example file ‘PROFIBUS.EDG‘
• Transmit the project to the instrument.
• Make the connections (PROFIBUS)
• Configure the instruments
– Connect KS98/DP to the network and adjust address 5 (via front panel).
– Activate the bus terminating resistors at the controller and at the (S5) PLC connector.
• PROFIBUS network configuration
– Insert the disk (engineering set) into the programming unit.
– Call up ‘COM PROFIBUS’ and load example (A:\ks98dp\typ\example\demo308i.et2)
- Select the correct CPU type with IM308C.
– If necessary, adapt addresses and DP network and transmit them to the DP master (r Fig.: 7).
• Load S5 program
– Insert the disk (engineering set) into the programming unit.
– Call up STEP® 5.
– Load program example, e.g. (A:\ks98dp\s5-fb\example.fix)
– If necessary, adapt the addresses for send/receive window (A-A/E-A in FB) and transmit them to the
automation unit.
– Switch the automation unit to run.
Fig.: 7 Module b configuration example (with COM PROFIBUS for SIMATIC S5 with IM308C
After taking the test set-up into operation, testing the I/O areas and calling up the parameter channel are possible by
means of the graphic modules enclosed in the project.
Operanden: Signalzustaende:
Graphic module 1: -State1_1 EB 64 KM=10101010
-State2_1 EB 65 KM=10101010
The input process data of data module b are shown (Fix-Point). -Input1_1 EW 66 KF=+3966
-Input2_1 EW 68 KF=+2382
-Input3_1 EW 70 KF=+3618
-Input4_1 EW 72 KF=+1234
-Input5_1 EW 74 KF=+0
-Input6_1 EW 76 KF=+0
Graphic module 2:
All output process data of data module b are shown (Fix-Point). Operanden: Signalzustände:
-Cntrl1_1 AB 64 KM=10101010
-Cntrl2_1 AB 65 KM=00000000
-Outpt1_1 AW 66 KF=+1234
-Outpt2_1 AW 68 KF=+15000
-Outpt3_1 AW 70 KF=+0
-Outpt4_1 AW 72 KF=+0
-Outpt5_1 AW 74 KF=+0
-Outpt6_1 AW 76 KF=+0
Procedure:
• Install engineering tool
ET/KS98
• Load example file
‘PROFIBUS.EDG‘
• Transmit the project to the
unit.
• Make the connections
(PROFIBUS)
• Configure the instruments
– Adjust address 5 at
KS98/DP (via front panel)
and connect it to the
network.
– Activate the bus
terminating resistors at the
controller and at the (S7)
PLC connector.
• Configure the PROFIBUS
network.
– Insert the disk (engineering
set) into the programming
unit.
– De-archive project example. (A:\KS98DP\S7_FB
\EXAMPLE
\KS98demo.arj)
– Open projekt KS98demo.
– If necessary, match addressings and CPU hardware configuration and transmit them to the DP master
(CPU315-2 DP).
– Switch the automation unit to run.
After taking the test set-up into operation, testing the I/O area and calling up the parameter channel are possible by
means of the variable tables (VAT x) enclosed in the project.
VAT 1:
The process data of a DPREAD and a
DPWRITE function block are shown
(Fix-Point).
VAT 2:
This variable table permits access to the
parameters of the function module for
parameter channel mapping. The lower part
of the picture shows the data of a data
module into which data of the parameter
channel are written, or from which values
are read out.
Example:
Bit 13 = 1 and bit 1 = 1, all remaining bits are ‘0’
internal hex value: 0x2002, as integer value: 8194, transmitted ASCII value: ‘8194’
. 4 Code tables
4.1 Scheme of addressing data
Function-no.
datarangefunction number-range
Level 1-data 0 ... 19
Parameter
- Real parameter 20 ... 24
- Integer parameter 25 ... 29
Config-data
- Real configurations 30 ... 34
- Integer configurations 35 ... 39
Special fct. display texts 80 ... 84
Special fct. special data 85 ... 89
Instrument ‘status 1’
MSB LSB
D7 D6 D5 D4 D3 D2 D1 D0
Bit no. Name Allocation Status ‘0’ Status ‘1’
D0 XFail Sensor failure (common message) no yes
D1 CNF Instrument status online configuration
D2 Safety status not active active
D3 EEPROM error no yes
D4 Power-fail check not active active
D5 UPD Parameter update no yes
D6 ‘1’ Always ‘1’
D7 Parity
Instrument ‘status 2’
MSB LSB
D7 D6 D5 D4 D3 D2 D1 D0
Bit no. Name Allocation Status ‘0’ Status ‘1’
D0 Engineering existing no yes
D1 Wiring finished no yes
D2 Parameter display by operation possible blocked
D3 Configuration display by operation possible blocked
D4 Main menu display by operation possible blocked
D5 Field interface read/write read
D6 ‘1’ always ‘1’
D7 Parity
26 25 24 23 22 21 20
DINPUT AINP6 AINP5 AINP4 AINP3 — AINP1
Example: The outputs of AINP1 and AINP5 shall be specified via the interface. In this case, 9 must be specified in
‘Debug‘.
Instrument ‘Status 3’
MSB LSB
D7 D6 D5 D4 D3 D2 D1 D0
Bit no. Name Allocation Status ‘0’ Status ‘1’
D0 Bus access not successful no yes
D1 Parameter setting faulty no yes
D2 Configuration faulty no yes
D3 No traffic of useful data no yes
D4 Data status channel 1 .. 4 ok faulty
D5 Address changing disabled no yes
D6 ‘1’ Always ‘1’
D7 Parity
Example: Value ‘HWexts = 0104’ means that the addressed unit is equipped with a module B as TTL interface without
real-time clock and a version C module c.
(12NC e.g. 9407 96x 11x01)
SWopt change 12NC 10th digit
T H Z E
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
Presently no definition
SWCod (SW code number 7th - 10th digit)
T H Z E
7th digit 8th digit 9th digit 10th digit
Example: Value ‘SWCod = 7254’ means that the addressed unit contains the software with code number 4012 15 7
254xx.
SWVers (SW code number 11th and 12th digit)
T H Z E
11th digit 12th digit
Example: Value ‘SWCod = 0011’ means that the addressed unit contains the software with code number 4012 15x xxx11.
Interface address
A single write access to the address (code 21, fct.no. 3) disables further write accesses. A new write access is possible
only, if a write access with code 73, fct. no. 35 was made, if the address was changed via the instrument front panel, or
if disabling was removed by deleting flag AdrFl with code 22, fct.no. 3.
Password mode
The password mode determines the access possibilities (r see following table) to the KS 98-1 data via the interface.
PasMod = 0 PasMod = 1 PasMod = 2 PasMod = 3
Password writing (logging in) enabled enabled enabled enabled
Process data reading and writing enabled enabled enabled disabled
I/O data and trend data reading and writing (code B1) enabled enabled enabled disabled
Parameter and display text reading and writing (code B2) enabled enabled disabled disabled
Configuration reading and writing (code B3) enabled disabled disabled disabled
PROFIBUS data can always be read / written!
Password attempts
Determines the number of permitted unsuccessful attempts during password transmission (log-in). When exceeding the
number of permitted attempts, KS 98-1 is switched to the OFFLINE mode and the password as well as the existing
engineering are deleted.
Parameter data
Single access Block access
Des. Description Range Default Type Rem. Code Fct. no. Code Fct. no.
Block Block access 41 .. 48 block 40 25
Year Time year 1, 2) 0 .. 99 0 INT 41 25
Month Time month 1) 1 .. 12 1 INT 42 25
Day Time day 1) 1 .. 31 1 INT 43 25
Hour Time hours 1) 0 .. 23 0 INT 44 25
Minute Time minutes 1) 0 .. 59 0 INT 45 25
B2 0
p-hide
Parameter display by operation 0 (possible) 0 INT A 46 25
1 (blocked)
c-hide
Configuration display by 0 (possible) 0 INT 47 25
operation 1 (blocked)
m-hide
Main menu display by operation 0 (possible) 0 INT 48 25
1 (blocked)
1)
These parameters are effective only if the real-time clock (HW option B with RS485) is fitted.
2)
Calculation of the current year: range 70 ... 99 corresponding to 1970 ... 1999; range 00 ... 69 c orresponding to 2000 ...
2069; examples: value 98 corresponds to year1998, value 02 corresponds to year 2002.
Blocking by operation
Parameters ParOP, ConOp and MenOp affect the possibility to change existing settings via the operation. Their
status is connected via an OR function with the relevant digital inputs of function STATUS ( r see page 5), if it is used.
The parameters are stored in EEPROM, i.e. they are available also after power-on. The priority of the OR function results
is different.
MenOp ParOp ConOp Main menu Parameter Configuration
1 d.c. d.c. blocked blocked blocked
0 1 d.c. operable blocked blocked
0 0 1 operable operable blocked
Configuration display blocking means that the instrument cannot leave the online mode by operator entry, but only by
interface message and that the configuration display via operation is not possible.
Parameter display blocking means that the parameters cannot be displayed. This does not affect the change of level-1
data on the operating pages.
Password
Description Type Fct. no. Code
SetPas Set / change / delete password CHAR(16) 80
B2
LogPas Logging in (password) CHAR(16) 81
Configuration data
Single access Block access
Des. Description Range Default Type Code Fct. no. Code Fct. no.
Block Block access 41 .. 48 Block 70 35
Prot Protocol mode 0 0 INT 71 35
Baudrate 0 ( not adjustable) 1 INT 72 35
1 (2400 Baud)
Baud 2 (4800 Baud)
3 (9600 Baud)
4 (19200 Baud) B3 0
Instrument adress 0 .. 99 (ISO1745) 0 INT 73 35
Adr
0 .. 126 (PROFIBUS) 126
Mains frequency 0 (50 Hz) 0 INT 74 35
Freq
1 (60 Hz)
language 0 (german) 0 INT 75 35
Langu
1 (english)
I/O data
Description Fct. no. Code
Analog inputs: x1 0 B1
Analog outputs: y1 1
Display texts
Default display Fct. no. Code
Text 1: SQRT 80 B2
Display texts
Default display Fct. no. Code
Text 1: COUN 80 B2
Configuration data
Single access Block access
Des. Description Range Default Type Code Fct. no. Code Fct. no.
Func1
Function runs cyclically 0 0 INT 71 35
Function runs once 1
Function runs daily 0 0 INT 72 35
B3 0
Func2
Function runs from Mon .. Fri 1
Function runs from Mon .. Sat 2
Function runs weekly 3
I/O data
Description Fct. no. Code
Digital inputs: d1 (disabl) 0 B1
Analog outputs: y1 (Week-D) 1
Digital outputs: z1
Display texts
Default display Fct. no. Code
Text 1: TIMER 80 B2
I/O data
Description Fct. no. Code
Analog inputs: x1 x2 x3 x4 0
x5 (SetNo)
Digital inputs: d1 (store) d2 (manual) B1
Analog outputs: y1 y2 y3 y4 1
y5 (Casc)
Display texts
Default display Fct. no. Code
Text 1: REZEPT 80 B2
I/O data
Description Fct. no. Code
Analog inputs: x1 x2 x3 (Diff) 0 B1
Digital outputs: z1 (X1 > X2) z2 (X1 = X2) z3 (X1 < X2) z4 (X1 ß X2) 1
z5 (X1 ¹ X2) x6 (X1 ? X2)
Display texts
Default display Fct. no. Code
Text 1: EQUAL 80 B2
I/O data
Description Fct. no. Code
Analog inputs: x1 0 B1
Digital outputs: z1 (l1) z2 (l2) z3 (l3) z4 (l4) 1
z5 (l5) x6 (l6) x7 (l7) x8 (l8)
Display texts
Default display Fct. no. Code
Text 1: LIMIT 80 B2
4.12 Visualization
TEXT (Textcontainer with language-dependent selection - no. 79)
I/O-Data
Description Fct. no. Code
Analog inputs: x1 (Index) x2 (Case) x3 (UsrLan) 0
B1
Analoge outputs: y1 (Index) 1
Display texts
Default display Fct. no. Code
Text 1: TEXT
Text 2: TEXT_1
Text 3: TEXT_2 80 B2
Text 4: TEXT_3
Text 5: TEXT_4
KS 98-1 59 Visualization
Code tables Interface description Profibus dp
Visualization 60 KS 98-1
Interface description Profibus dp Code tables
KS 98-1 61 Visualization
Code tables Interface description Profibus dp
Actual value
Visualization 62 KS 98-1
Interface description Profibus dp Code tables
4.13 Communication
L1READ (Read level 1 data - no. 100)
Process data
Des. Description R/W Type Range Rem. Code Fct. no.
Block Block access R Block 01 .. 09 00 0
Status 1 L1READ status 1 R ST1 A 01 0
Status 2 L1READ status 2 R ST1 B 03 0
X1 Analog input X1 R FP -29999 .. 999999 04 0
X2 Analog input X2 R FP -29999 .. 999999 05 0
X3 Analog input X3 R FP -29999 .. 999999 06 0
X4 Analog input X4 R FP -29999 .. 999999 07 0
X5 Analog input X5 R FP -29999 .. 999999 08 0
X6 Analog input X6 R FP -29999 .. 999999 09 0
‘Status 1’
MSB LSB
D7 D6 D5 D4 D3 D2 D1 D0
Bit no. Name Allocation Status ‘0’ Status ‘1’
D0 d1 Status d1 off on
D1 d2 Status d2 off on
D2 d3 Status d3 off on
D3 d4 Status d4 off on
D4 d5 Status d5 off on
D5 d6 Status d6 off on
D6 ‘1’ always ‘1’
D7 Parity
‘Status 2’
MSB LSB
D7 D6 D5 D4 D3 D2 D1 D0
Bit no. Name Allocation Status ‘0’ Status ‘1’
D0 d7 Status d7 off on
D1 d8 Status d8 off on
D2 d9 Status d9 off on
D3 d10 Status d10 off on
D4 d11 Status d11 off on
D5 d12 Status d12 off on
D6 ‘1’ always ‘1’
D7 Parity
I/O data
Description Fct. no. Code
Analog inputs: x1 x2 x3 x4 0 B1
x5 x6 x7
Digital inputs: d1 d2 d3 d4
d5 d6 d7 d8
d9 d10 d11 d12
Display texts
Default display Fct. no. Code
Text 1: L1READ 80 B2
KS 98-1 63 Communication
Code tables Interface description Profibus dp
Data structure
Bit 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
Signification 0 z15 z14 z13 z12 z11 z10 z9 z8 z7 z6 z5 z4 z3 z2 z1
I/O data
Description Fct. no. Code
Analog outputs: y1 y2 y3 y4 1 B1
y5 y6 y7 y8
Digital outputs: z1 z2 z3 z4
z5 z6 z7 z8
z9 z10 z11 z12
z13 z14 z15
Display texts
Default display Fct. no. Code
Text 1: L1WRITE 80 B2
Communication 64 KS 98-1
Interface description Profibus dp Code tables
4.14 KS98-CAN-extension
C_RM2x (CANopen field bud coupler RM 201 - Type-Nr. 14) block numbers 21-25
Parameter data
Single access Block access
Des. Description Range Default Type Code Fct. no. Code Fct. no.
NodeId Node addresse of RM2x -29999 .. 999999 0,000 FP 41 20 B2 0
I/O-data
Description Fct. no. Code
Digital outputs: z1 (et_err) z2 (id_err) z3 (valid) 1 B1
Display texts
Default display Fct. no. Code
Text 1: C_RM2x 80 B2
KS 98-1 65 KS98-CAN-extension
Code tables Interface description Profibus dp
KS98-CAN-extension 66 KS 98-1
Interface description Profibus dp Code tables
KS 98-1 67 KS98-CAN-extension
Code tables Interface description Profibus dp
Attention!
This functionblock had no parameter data for online calibration until operating version 6. To differentiate between both,
the new functionblock has the typenumber 19, the old one, without parameter data is number 17.
KS98-CAN-extension 68 KS 98-1
Interface description Profibus dp Code tables
KS 98-1 69 KS98-CAN-extension
Code tables Interface description Profibus dp
KS98-CAN-extension 70 KS 98-1
Interface description Profibus dp Code tables
KS 98-1 71 KS98-CAN-extension
Code tables Interface description Profibus dp
I/O-data
Description Fct. no. Code
Digital inputs: d1 (start) 0 B1
Analog outputs: y1 (R1 1) y2 (R121) y3 (R1 3) y4 (R14) 1
y5 (R1 5) y6 (R1 6) y7 (R1 7) y8 (R1 8)
y8 (R2 1) y8 (R2 2) y8 (R2 3) y8 (R2 4)
y8 (R2 5) y8 (R2 6) y8 (R2 7) y8 (R2 8)
Digital outputs: z1 (id-err) z2 (et-err) z3 (valid)
Display texts
Default display Fct. no. Code
Text 1: CPREAD 80 B2
KS98-CAN-extension 72 KS 98-1
Interface description Profibus dp Code tables
4.15 Programmer
APROG (Analog programmer - no. 24)
Process data
Des. Description R/W Type Range Rem. Code Fct. no.
Block Block access R Block 01, 03 .. 09 00
Status 1 Programmer status R ST1 A 01
Status 2 Programmer status R ST2 B 02
PNreff eff. program number R FP 1..99 03
Tnet Program time net R FP 0 .. 59999 04
Tbrut 0
Program time gross R FP 0 .. 59999 05
Wp Programmer set-point R FP -29999 .. 999999 06
Trest Remaining time programmer R FP 0 .. 59999 07
Wend End value active segment R FP -29999 .. 999999 08
Seg Segment number R FP 1 .. 999 09
Block Block access R 03 00
SegRest 1
Segment remaining time R BCD -29999...200000 03
Block Block access R Block 21 .. 24 20
PRun Program stop/run R/W INT 0 .. 1 21
PRset Programm continue / reset R/W INT 0 .. 1 22
PSearch 0
Start program search run R/W INT 0 .. 1 23
F-Key F-key function (A/M switch-over R/W INT 0 .. 1 24
manual Program Auto / Manual R/W INT 0...1 25
Block Block access R Block 31, 35 30
Pnr Program number effective R/W INT 1 .. 99 31
PSet
Program preset value Pmode = Seg R/W 1 .. 999 0
35
Pmode = time FP 0...59999
Wp preset Setpoint preset (inmanual operation!) R/W -29999...200000 36
KS 98-1 73 Programmer
Code tables Interface description Profibus dp
Parameter data
Single access Block access
Des. Description Range Def. Type Code Fct. no. Code Fct. no.
Wp0 Program set-point after reset -29999 .. 999999 0,000 41
W0 Lower setpoint limit -29999 .. 999999 -29999 FP 42 20
W100 Higher setpoint limit -29999 .. 999999 999999 43
WMode
Ramp function 0
0 INT 41
Step function 1
PMode
Preset to segment 0
1 INT 42
Preset to time 1
B2 0
TPrio
Gradient priority 0
0 43
Time priority 1 25
Dp Decimal point of setpoint 0...3 0 44
RecMax Max. recipes 1...99 99 INT 45
Search run in the segment 0
SMode Search run in program/ sequence 1 0 46
No search run 2
Configuration data
Single access Block access
Des. Description Range Def. Type Code Fct. no. Code Fct. no.
Program continue 0 INT
PwrUp Search run in actual segment 1 0 71 35
Continue at actual time 2
After program end: stop 0 INT
PEnd After program end: reset 1 0 72 35
Reset and halt 2 B3 0
Turbo
Time = hours : minutes 0 INT
0 73 35
Time = minutes : seconds 1
A/M-Key switches F-Key output 0 INT
FKey A/M-Key gives oulse to F-Key output 1 0 74 35
A/M-Key contols the programmer 2
I/O data
Fct. no. Code
Analog inputs: x1 (PSet) x2 (DBlock) x3 (ProgNo) x4 (XVal)
x5 (Slav No)
Digital inputs: d1 (hide) d2 (lock) d3 (run) d4 (reset) 0
d5 (preset) d6 (search) d7 (p-show) d8 (halt)
d9 (manfree)
B1
Analog outputs: y1 (Wp) y2 (TNetto) y3 (TBrutt) y4 (TRest)
y5 (SegNo) y6 (WEnd) y7 (ProgNo)
y9 (Bl-no) 1
Digital outputs: z1 (run) z2 (reset) z3 (end) z4 (fkey)
z5 (preset) z6 (manual)
Display texts
Default display Fct. no. Code
Text 1: APROG 80 B2
Programmer 74 KS 98-1
Interface description Profibus dp Code tables
KS 98-1 75 Programmer
Code tables Interface description Profibus dp
Programmer 76 KS 98-1
Interface description Profibus dp Code tables
Single Block
access access
Fct. Fct.
Des. Description Range Default Type Code Code
no. no.
Time segment 0
Gradient segment 1
Hold segment 2
Step segment 3
Type9
Time segment, wait at the end 4
t INT 49 25
Gradient segment, wait at the end 5
Hold segment, wait at the end 6
Step segment, wait at the end 7
Time segment 0
Gradient segment 1
Hold segment 2
Step segment 3
Type10
Time segment, wait at the end 4
t INT 51 25
Gradient segment, wait at the end 5
Hold segment, wait at the end 6
Step segment, wait at the end 7
Tpgr1 Time for Segment 1 0,0 .. 59999 -32000 FP 41 20
Wp1 End value for Segment 1 -29999 .. 999999 0,000 FP 42 20
Tpgr2 Time for Segment 2 0,0 .. 59999 -32000 FP 43 20
Wp2 End value for Segment 2 -29999 .. 999999 0,000 FP 44 20
Tpgr3 Time for Segment 3 0,0 .. 59999 -32000 FP 45 20
Wp3 End value for Segment 3 -29999 .. 999999 0,000 FP 46 20
Tpgr4 Time for Segment 4 0,0 .. 59999 -32000 FP 47 20
Wp4 End value for Segment 4 -29999 .. 999999 0,000 FP 48 20
Tpgr5 Time for Segment 5 0,0 .. 59999 -32000 FP 49 20
Wp5 End value for Segment 5 -29999 .. 999999 0,000 FP 51 20
Tpgr6 Time for Segment 6 0,0 .. 59999 -32000 FP 52 20
Wp6 End value for Segment 6 -29999 .. 999999 0,000 FP 53 20
Tpgr7 Time for Segment 7 0,0 .. 59999 -32000 FP 54 20
Wp7 End value for Segment 7 -29999 .. 999999 0,000 FP 55 20
Tpgr8 Time for Segment 8 0,0 .. 59999 -32000 FP 56 20
Wp8 End value for Segment 8 -29999 .. 999999 0,000 FP 57 20
Tpgr9 Time for Segment 9 0,0 .. 59999 -32000 FP 58 20
Wp9 End value for Segment 9 -29999 .. 999999 0,000 FP 59 20
Tpgr10 Time for Segment 10 0,0 .. 59999 -32000 FP 61 20
Wp10 End value for Segment 10 -29999 .. 999999 0,000 FP 62 20
I/O data
Description Fct. no Code
Analog inputs: x1 (DBlock) 0
B1
Analog outputs: y1 (DBlock) 1
Display texts
Default display Fct. no Code
Text 1: APROGD2 80 B2
KS 98-1 77 Programmer
Code tables Interface description Profibus dp
Programmerstatus ‘Status 3
MSB LSB
D7 D6 D5 D4 D3 D2 D1 D0
Bit no. Name Allocation Status ‘0’ Status ‘1’
D0 PHalt Program Halt no Halt Halt
D1 PMan Program Manual Auto Manual
D2 0
D3 0
D4 0
D5 ‘0’ always ‘0’
D6 ‘1’ always ‘1’
D7 Parity
Programmer 78 KS 98-1
Interface description Profibus dp Code tables
Configuration data
Single access Block access
Des. Description Range Default Type Code Fct. no. Code Fct.no.
PwrUp
Continue program 0
0 INT 71 35
Continue at actual time 2
After end of program: stop 0
PEnd After end of program: reset 1 0 INT 72 35
Reset and stop 2
B3 0
Turbo
Time = hours : minutes 0
0 INT 73 35
Time = minutes : seconds 1
A/M-Key switches F-Key output 0
FKey A/M-Key gives pulse to F-Key output 1 0 INT 74 35
A/M-Key control Programmer 2
Parameter data
Single access Block access
Des. Description Range Def. Type Code Fct. no. Code Fct. no.
D0 Reset value for control outputs 6...0 after reset 0 .. 111111 0 FP 41 20 B2 0
Preset to segment 0 1 INT 41 25
PMode
Preset to time 1
I/O data
Description Fct. no. Code
Analog inputs: x1 (PSet) x2 (DBlock) x3 (ProgNo) x4 (SlavNo) 0 B1
Digital inputs: d1 (hide) d2 (lock) d3 (run) d4 (reset)
d5 (preset) d6 (p-show) d7 (halt) d8 (manfree)
Analog outputs: y1 (TNetto) y2 (TBrutt) y3 (TRest) y4 (SegNo) 1
y5 (ProgNo) y6 (SegRest) y7 (Bl-no)
Digital outputs: z1 (run) z2 (reset) z3 (end) z4 (fkey)
z5 (do1) z6 (do2) z7 (do3) z8 (do4)
z9 (do5) z10 (do6) z11 (preset) z12 (manual)
Display texts
Default display Fct. no. Code
Text 1: DPROG 80 B2
KS 98-1 79 Programmer
Code tables Interface description Profibus dp
Programmer 80 KS 98-1
Interface description Profibus dp Code tables
‘Status 1’
MSB LSB
D7 D6 D5 D4 D3 D2 D1 D0
Bit no. Name Allocation Status ‘0’ Status ‘1’
D0 Y1 Switching output 1 off on
D1 Y2 Switching output 2 off on
D2 A/M Auto/manual auto manual
D3 y/Y2 y/Y2 switch-over y Y2
D4 Coff Controller switched off no yes
D5 XFail Sensor fail no yes
D6 ‘1’ always ‘1’
D7 Parity
‘Status 2’
MSB LSB
D7 D6 D5 D4 D3 D2 D1 D0
Bit no. Name Allocation Status ‘0’ Status ‘1’
D0..D3 ‘0’ always ‘0’
D4 PI/P Status PI/P PI P
D5 CFail Status controller ok not ok
D6 ‘1’ always ‘1’
D7 Parity
‘Status 3’
MSB LSB
D7 D6 D5 D4 D3 D2 D1 D0
Bit no. Name Allocation Status ‘0’ Status ‘1’
D0 ‘0’ always ‘0’
D1 DOVC- Override control- off on
D2 DOVC+ Override control+ off on
D3..D5 ‘0’ always ‘0’
D6 ‘1’ always ‘1’
D7 Parity
Configuration data
Single access Block access
Des. Description Range Def. Type Code Fct. no. Code Fct.no.
Xn0 Span start -29999 .. 999999 0 FP 71 30
Xn100 Span end -29999 .. 999999 100 FP 72 30
SFac Factor for stoichiometric ratio 0,010 .. 99,990 1,000 FP 73 30
Signaller, 1 output 0 9 INT 71 35
Signaller, 2 outputs 1
2-point controller 2
3-point controller: heating & cooling switch. 3
3-point controller: heating 4
cont./cooling switch.
3-point controller: heating 5
switch./cooling cont.
CFunc
{ / star / off controller 6
3-point stepping controller 7
3-point stepping controller with Yp 8
Cont. controller with position 9
feedback Yp
Cont. controller with split-range 10
Cont. controller with position 11
feedback Yp
Standard controller 0 0 INT 72 35
CType Ratio controller 1
3-element controller 2
Set-point control 0 0 INT 73 35
WFunc
Set-point/cascade control 1
Output action inverse 0 0 INT 74 35
CMode
Output action direct 1
Differentiate Xw 0 0 INT 75 35 B3 0
CDiff
Differentiate X 1
Neutral 0 0 INT 76 35
Ypid = Ymin (0%) 1
CFail Ypid = Ymax (100%) 2
Ypid = Y2 (not adjustable from front) 3
Ypid = Y2 (automatic) or Yman (manual) 4
No override control 0 0 INT 77 35
Override control + 1
COVC
Override control - 2
Override control + / - 3
No tracking of Wint 0 0 INT 78 35
WTrac Set-point tracking 1
Process value tracking 2
Ratio controller:(x1 + N0) / x2 0 0 INT 79 35
Ratio Ratio controller:(x1 + N0) / (x1 + x2) 1
Ratio controller:(x2 -x1 + N0) / x2 2
XDp Digitsbehind decimal point (processvalue) 0 .. 3 0 INT 81 35
Contentsof bargraph line: correcting variable 0 0 INT 82 35
Disp Contentsof bargraph line: Control deviation 1
Contents of bargraph line: Xeff 2
OMode Self-tuning mode: Standard 0 0 INT 83 35
Condition for process at rest: grad = 0 0 0 INT 84 35
OCond
grad <0 (controller inverse) 1
grad >0 (controller direct)
grad ¹ 0 2
Parameter data
Single Block
access access
Defaul Fct. Fkt.Nr
Des. Description Range Type Code Code
t no. .
W0 Lower set-point limit (Weff) -29999 .. 999999 0 FP 41 20
W100 Upper set-point limit (Weff) -29999 .. 999999 100 FP 42 20
W2 Additional set-point -29999 .. 999999 100 FP 43 20
Grw+ Set-point gradient plus 0,001 .. 999999 -32000 FP 44 20
Grw- Set-point gradient minus 0,001 .. 999999 -32000 FP 45 20
Grw2 Set-point gradient for W2 0,001 .. 999999 -32000 FP 46 20
N0 Zero offset ratio -29999 .. 999999 0,0 FP 47 20
a Factor a (3-element control) -9,99 .. 99,99 1,00 FP 48 20
Xsh Trigger point separation 0,2 .. 20,0 0,2 FP 49 20
Tpuls Minimum pos. step time 0,1 .. 2,0 0,3 FP 51 20
Tm Actuator response time 5 .. 999999 30 FP 52 20
Xsd1 Switching difference of signaller 0,10 .. 999999 1,00 FP 53 20
LW Trigger point separation for additional contact -29999 .. 999999 -32000 FP 54 20
0
Xsd2 Switching difference for additional contact 0,10 .. 999999 1,00 FP 55 20
Xsh1 Trigger point separation (PD) 0,0 .. 1000,0 0,0 FP 56 20
Xsh2 Trigger point separation (PD) 0,0 .. 1000,0 0,0 FP 57 20
B2
Y2 Additional correcting value -105,0 .. 105,0 0,0 FP 58 20
Ymin Lower correcting variable limit -105,0 .. 105,0 0 FP 59 20
Ymax Upper correcting variable limit -105,0 .. 105,0 100 FP 61 20
Y0 Controller working point -105,0 .. 105,0 0,0 FP 62 20
YOptm Corr. value with process at rest -105,0 .. 105,0 0,0 FP 63 20
dYopt Step height with self-tuning 5 .. 100 100 FP 64 20
All setpoint switchover locked 0
We switchover locked 1
WBlock t INT 41 25
W2 switchover locked 2
All setpoint switchover open 3
Xp1 Proportional band 1 0,1 .. 999,9 100,0 FP 65 20
Xp2 Proportional band 2 0,1 .. 999,9 100,0 FP 66 20
Tn Integral time 0,0 .. 999999 10,0 FP 67 20
1
Tv Derivative time 0,0 .. 999999 10,0 FP 68 20
Tp1 Cycle time heating 0,4 .. 999,9 5,0 FP 69 20
Tp2 Cycle time cooling 0,4 .. 999,9 5,0 FP 41 21
I/O data
Description Fct. no. Code
Analog inputs: x1 (X1) x2 (X2) x3 (X3) x4 (Wext) 0
x5 (OVC+) x6 (OVC-) x7 (Yp) x8 (Yhm)
x9 (Yadd)
Digital inputs: d1 (hide) d2 (lock) d3 (inc) d4 (dec)
d5 (x f) d6 (yp f) d7 (a/m) d8 (w/w2)
d9 (we/wi) d10 (pi/p) d11 (d ovc+) d12 (d ovc-)
d13 (track) d14 (y/y2) d15 (off) d16 (sm/hm)
B1
d17 (ostart) d18 (w stop) d19 (gr off) d20 (rstart)
d21 (o_hide)
Analog outputs: y1 (Weff) y2 (X) y3 (Y) y4 (XW) 1
y5 (W) y6 (Yout1) y7 (Yout2)
Digital outputs: z1 (y1) z2 (y2) z3 (c fail) z4 (off)
z5 (a/m) z6 (y/y2) z7 (we/wi) z8 (pi/p)
z9 (o run) z10 (o stab) z11 (o err) z12 (xw sup)
Display texts
Default display Fct. no. Code
Text 1: CONTR 80 B2
Text 2: X-UNIT
‘Status 1’
MSB LSB
D7 D6 D5 D4 D3 D2 D1 D0
Bit no. Name Allocation Status ‘0’ Status ‘1’
D0 Y1 Switching output 1 off on
D1 Y2 Switching output 2 off on
D2 A/M Auto/manual auto hand
D3 y/Y2 y/Y2 switch-over y Y2
D4 Coff Controller switched off no yes
D5 XFail Sensor fail no yes
D6 ‘1’ always ‘1’
D7 Parity
‘Status 2’
MSB LSB
D7 D6 D5 D4 D3 D2 D1 D0
Bit no. Name Allocation Status ‘0’ Status ‘1’
D0..D3 ‘0’ always ‘0’
D4 PI/P Status PI/P PI P
D5 CFail Status controller ok not ok
D6 ‘1’ always ‘1’
D7 Parity
‘Status 3’
MSB LSB
D7 D6 D5 D4 D3 D2 D1 D0
Bit no. Name Allocation Status ‘0’ Status ‘1’
D0 ‘0’ always ‘0’
D1 DOVC- Override control- off on
D2 DOVC+ Override control+ off on
D3..D5 ‘0’ always ‘0’
D6 ‘1’ always ‘1’
D7 Parity
Configuration data
Single
Block access
acccess
Des. Description Range Def. Type Code Fct. no. Code Fct.no.
Xn0 Span start -29999 .. 999999 0 FP 71 30
Xn100 Span end -29999 .. 999999 100 FP 72
SFac Factor for stoichiometric ratio 0,010 .. 99,990 1,000 FP 73
Signaller with one output 0 9 INT 71 35
Signaller with two outputs 1
2-point controller 2
3-point controller: heating & cooling switch. 3
3-point controller: heating cont./cooling switch. 4
3-point controller: heating switch./cooling cont. 5
CFunc
{ / star / off controller 6
3-point stepping controller 7
3-point stepping controller with Yp 8
Cont. controller with position feedback Yp 9
Cont. Controller with split range 10
Cont. controller with position feedback Yp 11
Standard controller 0 0 INT 72
CType Ratio controller 1
3-element controller 2
Set-point control 0 0 INT 73
WFunc
Set-point/cascade control 1
Output action inverse 0 0 INT 74
CMode
Output action direct 1
Differentiate Xw 0 0 INT 75
CDiff
Differentiate X 1
B3 0
Neutral 0 0 INT 76
Ypid = Ymin (0%) 1
CFail Ypid = Ymax (100%) 2
Ypid = Y2 (not adjustable from front) 3
Ypid = Y2 (automatic) or Yman (manual) 4
No override control 0 0 INT 77
Override control + 1
COVC
Override control - 2
Override control + / - 3
No tracking of Wint 0 0 INT 78
WTrac Set-point tracking 1
Process value tracking 2
Ratio controller:(x1 + N0) / x2 0 0 INT 79
Ratio Ratio controller:(x1 + N0) / (x1 + x2) 1
Ratio controller:(x2 -x1 + N0) / x2 2
XDp Digits behind decimal point (process value) 0 .. 3 0 INT 81
Contents of bargraph line: correcting variable 0 0 INT 82
Disp Contents of bargraph line: control deviation 1
Contents of bargraph line: Xeff 2
OMode Self-tuning mode: standard 0 0 INT 83
Condition for process at rest: grad = 0 0 0 INT 84
OCond
grad <0 (controller inverse) 1
grad >0 (controller direct)
grad ¹ 0 2
Parameter data
Single access Block access
Des. Description Range Default Type Code Fct. no. Code Fct.no.
W0 Lower set-point limit (Weff) -29999 .. 999999 0 FP 41 20
W100 Upper set-point limit (Weff) -29999 .. 999999 100 FP 42 20
W2 Additional set-point -29999 .. 999999 100 FP 43 20
Grw+ Set-point gradient plus 0,001 .. 999999 -32000 FP 44 20
Grw- Set-point gradient minus 0,001 .. 999999 -32000 FP 45 20
Grw2 Set-point gradient for W2 0,001 .. 999999 -32000 FP 46 20
N0 Zero offset ratio control -29999 .. 999999 0,0 FP 47 20
a Factor a (3-element control) -9,99 .. 99,99 1,00 FP 48 20
Xsh Trigger point separation 0,2 .. 20,0 0,2 FP 49 20
Tpuls Minimum pos. step time 0,1 .. 2,0 0,3 FP 51 20
Tm Actuator response time 5 .. 999999 30 FP 52 20
Xsd1 Switching difference of signaller 0,10 .. 999999 1,00 FP 53 20
LW Trigger point separation for additional contact -29999 .. 999999 -32000 FP 54 20
Xsd2 Switching diff. for add. contact 0,10 .. 999999 1,00 FP 55 20 B2 0
Xsh1 Trigger point separation (PD) 0,0 .. 1000,0 0,0 FP 56 20
Xsh2 Trigger point separation (PD) 0,0 .. 1000,0 0,0 FP 57 20
Y2 Additional correcting value -105,0 .. 105,0 0,0 FP 58 20
Ymin Lower correcting variable limit -105,0 .. 105,0 0 FP 59 20
Ymax Upper correcting variable limit -105,0 .. 105,0 100 FP 61 20
Y0 Controller working point -105,0 .. 105,0 0,0 FP 62 20
YOptm Corr. value with process at rest -105,0 .. 105,0 0,0 FP 63 20
dYopt Step height with self-tuning 5 .. 100 100 FP 64 20
POpt Parameter set for self-tuning 1 .. 6 1 INT 41 25
All setpoint switchover locked 0
We switchover locked 1
WBlock t INT 41 25
W2 switchover locked 2
All setpoint switchover open 3
Xp1 1 Proportional band 1 0,1 .. 999,9 100,0 FP 65 20 B2 1
Xp2 1 Proportional band 2 0,1 .. 999,9 100,0 FP 66 20
Tn 1 Integral time 0,0 .. 999999 10,0 FP 67 20
Tv 1 Derivative time 0,0 .. 999999 10,0 FP 68 20
Tp1 1 Cycle time heating 0,4 .. 999,9 5,0 FP 69 20
Tp2 1 Cycle time cooling 0,4 .. 999,9 5,0 FP 41 21
Xp1 2 Proportional band 1 0,1 .. 999,9 100,0 FP 65 20 B2 2
Xp2 2 Proportional band 2 0,1 .. 999,9 100,0 FP 66
Tn 2 Integral time 0,0 .. 999999 10,0 FP 67
Tv 2 Derivative time 0,0 .. 999999 10,0 FP 68
Tp1 2 Cycle time heating 0,4 .. 999,9 5,0 FP 69
Tp2 2 Cycle time cooling 0,4 .. 999,9 5,0 FP 41 21
Xp1 3 Proportional band 1 0,1 .. 999,9 100,0 FP 65 20 B2 3
Xp2 3 Proportional band 2 0,1 .. 999,9 100,0 FP 66
Tn 3 Integral time 0,0 .. 999999 10,0 FP 67
Tv 3 Derivative time 0,0 .. 999999 10,0 FP 68
Tp1 3 Cycle time heating 0,4 .. 999,9 5,0 FP 69
Tp2 3 Cycle time cooling 0,4 .. 999,9 5,0 FP 41 21
Xp1 4 Proportional band 1 0,1 .. 999,9 100,0 FP 65 20 B2 4
Xp2 4 Proportional band 2 0,1 .. 999,9 100,0 FP 66
Tn 4 Integral time 0,0 .. 999999 10,0 FP 67
Tv 4 Derivative time 0,0 .. 999999 10,0 FP 68
Tp1 4 Cycle time heating 0,4 .. 999,9 5,0 FP 69
Tp2 4 Cycle time cooling 0,4 .. 999,9 5,0 FP 41 21
Xp1 5 Proportional band 1 0,1 .. 999,9 100,0 FP 65 20 B2 5
Xp2 5 Proportional band 2 0,1 .. 999,9 100,0 FP 66
Tn 5 Integral time 0,0 .. 999999 10,0 FP 67
Tv 5 Derivative time 0,0 .. 999999 10,0 FP 68
Tp1 5 Cycle time heating 0,4 .. 999,9 5,0 FP 69
Tp2 5 Cycle time cooling 0,4 .. 999,9 5,0 FP 41 21
I/O data
Description Fct. no. Code
Analog inputs: x1 (X1) x2 (X2) x3 (X3) x4 (Wext) 0
x5 (OVC+) x6 (OVC-) x7 (Yp) x8 (Yhm)
x9 (Yadd) x10 (ParNo) x11 (Casc)
Digital inputs: d1 (hide) d2 (lock) d3 (inc) d4 (dec)
d5 (x f) d6 (yp f) d7 (a/m) d8 (w/w2)
d9 (we/wi) d10 (pi/p) d11 (d ovc+) d12 (d ovc-)
d13 (track) d14 (y/y2) d15 (off) d16 (sm/hm)
d17 (ostart) d18 (w stop) d19 (gr off) d20 (rstart) B1
d21 (o_hide)
Analog outputs: y1 (Weff) y2 (X) y3 (Y) y4 (XW) 1
y5 (W) y6 (Yout1) y7 (Yout2) y8 (ParNo)
y9 (bl-no)
Digital outputs: z1 (y1) z2 (y2) z3 (c fail) z4 (off)
z5 (a/m) z6 (y/y2) z7 (we/wi) z8 (pi/p)
z9 (o run) z10 (o stab) z11 (o err) z12 (xw sup)
Display texts
Default display Fct. no. Code
Text 1: CONTR+ 80 B2
Text 2: X-UNIT
‘Status 1’
MSB LSB
D7 D6 D5 D4 D3 D2 D1 D0
Bit-No. Name Allocation Status ‘0’ Status ‘1’
D0 Y1 Switching output 1 off on
D1 Y2 Switching output 2 off on
D2 A/M Automatic/manual Auto Man.
D3 y/Y2 y/Y2-switch over y Y2
D4 Coff Controller switched off no yes
D5 XFail Sensorfail no yes
D6 ‘1’ Always ‘1’
D7 Parity
‘Status 2’
MSB LSB
D7 D6 D5 D4 D3 D2 D1 D0
Bit-No. Name Allocation Status‘0’ Status‘1’
D0..D3 ‘0’ always ‘0’
D4 - -
D5 CFail Status controller ok not ok
D6 ‘1’ Always ‘1’
D7 Parity
‘Status 3’
MSB LSB
D7 D6 D5 D4 D3 D2 D1 D0
Bit-No. Name Allocation Status‘0’ Status‘1’
D0 ‘0’ Always ‘0’
D1 - -
D2 - -
D3..D5 ‘0’ Always ‘0’
D6 ‘1’ Always ‘1’
D7 Parity
Configuration data
Single access Block access
Des. Description Range Def. Type Code Fct. no. Code Fkt.Nr.
Xn0 Span start -29999 ..
0 FP 71 30
999999
Xn100 Span end -29999 ..
100 FP 72 30
999999
SFac Factor for stoichiometric ratio 0,010 ..
1,000 FP 73 30
99,990
2-point controller 0
Continuous controller 1
3-point controller: heating & cooling switch. 2
3-point controller: heating cont./cooling switch. 3
CFunc 3-point controller: heating switch./cooling cont. 4 9 INT 71 35
Cont. Controller with split range 5
3-point stepping controller 6
3-point stepping controller with Yp 7
Cont. controller with position feedback Yp 8
Standard controller 0
CType Ratio controller 1 0 INT 72 35
3-element controller 2
Set-point control 0
WFunc 0 INT 73 35
Set-point/cascade control 1
Output action inverse 0 B3 0
CMode 0 INT 74 35
Output action direct 1
Neutral 0
Ypid = Ymin (0%) 1
CFail Ypid = Ymax (100%) 2 0 INT 75 35
Ypid = Y2 (not adjustable from front) 3
Ypid = Y2 (automatic) or Yman (manual) 4
No override control 0
Override-Control + 1
COVC 0 INT 76 35
Override-Control - 2
Override-Control + / - 3
No tracking of Wint 0
WTrac Set-point tracking 1 0 INT 77 35
Process value tracking 2
Ratio controller:(x1 + N0) / x2 0
Ratio Ratio controller:(x1 + N0) / (x1 + x2) 1 0 INT 78 35
Ratio controller:(x2 -x1 + N0) / x2 2
XDp Digits behind decimal point (process value) 0 .. 3 0 INT 79 35
Contents of bargraph line: correcting variable 0
Disp Contents of bargraph line: control deviation 1 0 INT 80 35
Contents of bargraph line: Xeff 2
Parameter data
Single access Block access
Des. Description Range Default Type Code Fct. no. Code Fkt.Nr.
W0 Lower set-point limit (Weff) -29999 .. 999999 0 FP 41 20
W100 Upper set-point limit (Weff) -29999 .. 999999 100 FP 42 20
W2 Additional set-point -29999 .. 999999 100 FP 43 20
Grw+ Set-point gradient plus 0,001 .. 999999 -32000 FP 44 20
Grw- Set-point gradient minus 0,001 .. 999999 -32000 FP 45 20
Grw2 Set-point gradient for W2 0,001 .. 999999 -32000 FP 46 20
N0 Zero offset ratio control -29999 .. 999999 0,0 FP 47 20
a Factor a (3-element control) -9,99 .. 99,99 1,00 FP 48 20
Tpause Min pause duration 0,1 .. 999999 0,1 FP 49 20
Tpuls Min.pos.step time 0,1 .. 2,0 0,3 FP 51 20
Tm Actuator response time 5 .. 999999 30 FP 52 20
thron Switch-on point of step. output 0,10 .. 999999 1,00 FP 53 20
throff Switch-off point of step. output -29999 .. 999999 -32000 FP 54 20
Y2 Additional correcting value -105,0 .. 105,0 0,0 FP 55 20
Ymin Min. output limiting -105,0 .. 105,0 0 FP 56 20
Ymax Max. output limiting -105,0 .. 105,0 100 FP 57 20
Y0 Controller working point -105,0 .. 105,0 0,0 FP 58 20
dYopt Self-tuning step height 5 .. 100 100 FP 59 20
Xlimit Switch-off point for dYopt 0,0 .. 999999 10 FP 61 20
Tdrift Drift estimation time 0,0 .. 999999 30 FP 62 20
Tnoise Noise estimation time 0,0 .. 999999 30 FP 63 20
Kp Control gain 0.1 ..999.9 1 FP 64 20
Tn Integral time set 0,0 .. 999999 10,0 FP 65 20
Tv Derivative time set 0,0 .. 999999 10,0 FP 66 20
Tp1 Cycle time heating 0,4 .. 999,9 5,0 FP 67 20
Tp2 Cycle time cooling 0,4 .. 999,9 5,0 FP 68 20
VD Derivative gain 1 .. 999999 4 FP 69 20
bW_p Set-point weighing factor p-part 0 .. 1 1 FP 41 21
cW_d Set-point weighing factor d-part 0 .. 1 0 FP 42 21
Tsat Time constant "Anti reset wind up" 1 .. 999999 50 FP 43 21
Xsh Trigger point separation 0 .. 999999 0 FP 44 21
PType
Line type (with Compensation) 1
2 1 INT 41 25
Integral line
Drift compensation off 0
Drift 0 INT 42 25
Drift compensation on 1
Control dynamic slow 1
CSpeed normal 2 1 INT 43 25
fast 3
All setpoint switchover locked 0
We switchover locked 1
WBlock
W2 switchover locked 2
t INT 41 25
All setpoint switchover open 3
I/O-Data
Description Fkt Nr. Code
Analog inputs: x1 (X1) x2 (X2) x3 (X3) x4 (Wext)
x5 (OVC+) x6 (OVC-) x7 (Yp) x8 (Yhm)
x9 (Yadd) x10 (Casc)
Digital inputs: d1 (hide) d2 (lock) d3 (inc) d4 (dec)
0
d5 (x f) d6 (yp f) d7 (a/m) d8 (w/w2)
d9 (we/wi) d10 (track) d11 (y/y2) d12 (off)
d13 (sm/hm) d14 (ostart) d15 (w stop) d16 (gr off) B1
d17 (rstart) d18 (o_hide) 19 (oplock)
Analog outputs: y1 (Weff) y2 (X) y3 (Y) y4 (XW)
y5 (W) y6 (Yout1) y7 (Yout2) y8 (Bl-no)
Digital outputs: z1 (y1) z2 (y2) z3 (c fail) z4 (off) 1
z5 (a/m) z6 (y/y2) z7 (we/wi) z8 (o run)
z9 (o err) z10 (xw sup)
Display texts
Default-display Fct. no. Code
Text 1: PIDMA
X-UNIT 80 B2
Text 2:
4.17 Inputs
AINP1 (Analog input 1 - no. 110) Fixed block number 63
Process data
Des. Description R/W Type Range Rem. Code Fct. no.
X0t Trigger for calibration X0 R/W INT 0/1 21 0
X100t Trigger for calibration X100 R/W INT 0/1 22 0
Configuration data
Single access Block access
Des. Description Range Default Type Code Fct. no. Code Fct. no.
x0 Physical value at 0% -29999 .. 999999 0,000 FP 71 30
x100 Physical value at 100% -29999 .. 999999 100,00 FP 72 30
XFail Substitute value with sensor fail -29999 .. 999999 0,000 FP 73 30
Tfm Filter time constant [s] 0,0 .. 999999 0,5 FP 74 30
Tkref Reference temperature with STK = 2 0,000 .. 140,00 0,000 FP 75 30
Type L -200...900 $C 0 0 INT 71 35
Type J -200...900 $C 1
Type K -200...1350 $C 2
Type N -200...1300 $C 3
Type S -50...1760 $C 4
Type R -50...1760 $C 5
Type T -200...400 $C 6
Type W 0...2300 $C 7
Type E -200...900 $C 8
Type B 0...1820 $C 9
Typ Pt 100 -99,9...850,0 $C 20
Pt 100 -99,9...250,0 $C 21
2x Pt 100 -99,9...850 $C 25
B3 0
2x Pt 100 -99,9...250,0 $C 26
0...20 mA 30
4...20 mA 31
0...10 V 32
2...10 V 33
Pot.transducer 0...500 [ 40
Resistance 0...500 [ (linear) 45
Resistance 0...250 [ (linear) 46
Fail function off 0 1 INT 72 35
Fail
z1 = 1, y1 = x100 1
z1 = 1, y1 = x0 2
z1 = 1, y1 = XFail 3
Xkorr
Measured value correction off 0 0 INT 73 35
Measured value correction 1
Unit
Unit = $C 1 1 INT 74 35
Unit = $F 2
STK
Int. temperature compensation 0 1 INT 75 35
Ext. temperature compensation 1
Parameter data
Single access Block access
Des. Description Range Default Type Code Fct. no. Code Fct. no.
x1in Meas.value correct. P1, input -29999 .. 999999 0,000 FP 41 20 B2 0
x1out Meas.value correct. P1, output -29999 .. 999999 0,000 FP 42 20
x2in Meas.value correct. P2, input -29999 .. 999999 100,00 FP 43 20
x2out Meas.value correct. P2, output -29999 .. 999999 100,00 FP 44 20
I/O data
Description Fct. no. Code
Analog inputs: x1 (Y) 0 B1
Digital inpputs: d1 (lock) d2 (hide)
Analog outputs: y1 (Inp1) 1
Digital outputs: z1 (fail) z2 (a/m) z3 (inc) z4 (dec)
Display texts
Default display Fct. no. Code
Text 1: AINP1 80 B2
Inputs 94 KS 98-1
Interface description Profibus dp Code tables
KS 98-1 95 Inputs
Code tables Interface description Profibus dp
Configuration data
Single access Block access
Des. Description Range Default Type Code Fct. no. Code Fct. no.
x0 Physical value at 0% -29999 .. 999999 0,000 FP 71 30
x100 Physical value at 100% -29999 .. 999999 100,00 FP 72 30
XFail Substitute value with sensor fail -29999 .. 999999 0,000 FP 73 30
Tfm Filter time constant [s] 0,0 .. 999999 0,5 FP 74 30
0...20 mA 30 30 INT 71 35
Typ 4...20 mA 31
Pot. transducer 0...500 [ 40 B3 0
Fail function off 0 1 INT 72 35
Fail
z1 = 1, y1 = x100 1
z1 = 1, y1 = x0 2
z1 = 1, y1 = XFail 3
Xkorr
Meas. value correct. disabled 0 0 INT 73 35
Measured value correction 1
Parameter data
Single access Block access
Des. Description Range Default Type Code Fct. no. Code Fct. no.
x1in Meas.value correct. P1, input -29999 .. 999999 0,000 FP 41 20 B2 0
x1out Meas.value correct. P1, output -29999 .. 999999 0,000 FP 42 20
x2in Meas.value correct. P2, input -29999 .. 999999 100,00 FP 43 20
x2out Meas.value correct. P2, output -29999 .. 999999 100,00 FP 44 20
Inputs 96 KS 98-1
Interface description Profibus dp Code tables
I/O data
Description Fct. no. Code
Analog inputs: x1 (Y) 0 B1
Digital inputs: d1 (lock) d2 (hide)
Analog outputs: y1 (Inp6) 1
Digital outputs: z1 (fail) z2 (a/m) z3 (inc) z4 (dec)
Display texts
Default display Fct. no. Code
Text 1: AINP6 80 B2
KS 98-1 97 Inputs
Code tables Interface description Profibus dp
4.18 Outputs
OUT1 (Process output 1 - no. 116) Fixed block number 81
Configuration data
Single access Block access
Des. Description Range Default Type Code Fct. no. Code Fct. no.
x0 Value of x1 at 0% -29999 .. 999999 0,000 FP 71 30 B3 0
x100 Value of x1 at 100% -29999 .. 999999 100,00 FP 72 30
Src
Signal source: d1 (digital) 0 0 INT 71 35
Signal source: x1 (analog) 1
Mode
direct / normally open 0 1 INT 72 35
inverse / normally closed 1
Logic 0/20mA 0 0 INT 73 35
Typ 0 .. 20mA 1
4 .. 20mA 2
I/O data
Description Fct. no. Code
Analog inputs: x1 0 B1
Digital inputs: d1
Display texts
Default display Fct. no. Code
Text 1: OUT1 80 B2
Outputs 98 KS 98-1
Interface description Profibus dp Code tables
I/O data
Description Fct. no. Code
Analog inputs: x1 0 B1
Digital inputs: d1
Display texts
Default display Fct. no. Code
Text 1: OUT3 80 B2
KS 98-1 99 Outputs
Code tables Interface description Profibus dp
5.1.1 Structure
The parameters of the function module are:
Name Type Description / function
A-A KF Start of output bytes for send window
E-A KF Start of input bytes for receive window
DB-S B Data module for parameter data
DWAS W Data word start for order in DB
DWLR W Number of real values
DWLI W Number of integer values
DWLC W Number of char values (number of char values including the contained SUB characters!)
SERV W Service (read/write)
CODE W Code
FBNR W Function block no.
FKNR W Function no.
TYP W Type no.
TIME KH Timeout in time units, is decremented at each FB call, must be higher than the timeout in the DP module.
The actual transmission status for the selected data area is given in the display word. The structure of the
ANZW W display word is:
15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
NAK (access not accepted by
Order running
Timeout (FB)
Reset order
Parity error
Example: 2 data sets shall be stored with high packing density in DB25.
• CODE
The code identification is decimal and the range is within ‘00’...’99’ , ‘177’ = B1, ‘178’ = B2 and ‘179’ = B3.
• TIME
Timeout counter: range 0x0000 ß TIME ß 0x7FFF
-decremented during each PLC cycle (max. 32767)
- timeout with 0If the CPU is too fast, call up FB206/FB207 with delay via timer block.
• ANZW
This display word represents the actual transmission status. Bit 4 can be used also as input for
resetting FB 206 / FB 207.
Order running
Timeout (FB)
Reset order
Parity error
accepted)
Single access
This access (code xx) can be used for reading or writing a single value of a function.
Single access to parameter and configuration data is not possible.
Valid values for service
Configuration as a 0, F0 Float values are transmitted as an integer (without digits behind the decimal point).
FixPoint: 1, F1 Float values are transmitted as a FixPoint (1 digit behind the decimal point).
Configuration as Float: 0, F0 Transmission as integer in the 2nd data word (LSword)
1, F1 Transmission as a 4-byte real value.
Single access
With this access (code xx), a single process value of a function can be read or written.
Valid values for ID1:
Configuration as a 0 Real values are transmitted as integers (without digit behind the decimal point).
FixPoint: 1 Real values are transmitted as FixPoint (1 digit behind the decimal point)
• Code_nr
The code identification is decimal and the range is within ‘00’...’99’ , ‘177’ = B1, ‘178’ = B2 and ‘179’ = B3.
. 6 Annex
6.1 Diagnosis
For test purposes, an additional debug access which signals the error messages of the last write or read access is
available. Reading is possible for (r see also page 36):
WrErr Error number of last write access 0 = no error Code = 21 Fct. no. = 2
Position of the faulty datum at 0 = no error or addressing error
WrErPos last write access 1 = first datum is faulty (also with individual accesses) Code = 22 Fct. no. = 2
n = nth datum is faulty (with block accesses)
ReErr Error number of last read access 0 = no error Code = 23 Fct. no. = 2
The following error messages are defined:
Err. no. Description Error name
101 Non-defined error ERR_UNSPECIFIED
102 Reading not permitted ERR_RD_NOTALLOWED
103 Wrting not permitted ERR_WR_NOTALLOWED
104 Local operation / no write access ERR_LOCOPERAT
105 Non-defined key code ERR_KEYIDENT
106 Range overflow function block no. ERR_FB_OVERFL
107 Range overflow function no. ERR_FCT_OVERFL
108 Write or range overflow ERR_WR_RANGE_OV
109 Char is not a digit ERR_NODIGIT
110 No ‘\0’ in the correct position found ERR_ENDDELIMITER
111 No ‘=’ in the correct position ERR_NO_EQUALSIGN
112 Faulty ST1 format (status) ERR_NO_ST1FORMAT
113 No ‘,’ in the correct position ERR_NO_COMMA
114 Byte range overflow ERR_BYTE_OVERFL
115 Digit no. exceeded ERR_DIGIT_OVERFL
116 Range 9999 exceeded ERR_RG9999_OVERFL
117 Undefined protocol type ERR_UNDEF_PRTCTYPE
118 Undefined parameter reference ERR_UNDEF_PARAMREF
119 Undefined decimal point ERR_UNDEF_DECPNT
120 No STX in the write message ERR_NO_STX
121 INT number faulty ERR_INT_ANZ
122 REAL number faulty ERR_REAL_ANZ
123 Faulty access type ERR_ZUGRIFF
124 No Config level ERR_WR_NO_CONF
125 Local operation ERR_WR_LOCAL
126 Error FU switch-over ERR_WR_FU_UM
127 Receive faulty BCC value ERR_BCC_INVALID
128 Function type does not exist ERR_TYP_OVERFL
129 Faulty number of analog inputs ERR_AI_ANZ
130 Faulty number of digital inputs ERR_DI_ANZ
131 Memory capacity exceeded (RAM or EEPROM) ERR_MEMORY
6.2 Terms
COM ET200 Configuration tool (also COM PROFIBUS) of the Siemens company for PROFIBUS
FB Abbr. f. function block
Fkt Abbr. for function
ET Abbr. f. engineering tool
Function a self-contained partial function of a function block seen from the interface
Function block self-contained processing unit
GSD file Geräte Stammdaten Datei
HW Abbr. f. hardware
ISO1745 Standard communication protocol ISO 1745, ASCII-based
PC-interface Controller front-panel interface for connecting an engineering tool
PCI Process Control Instrument
PCI protocol ISO 1745-based protocol, implemented for PMA controllers
PROFIBUS-DP Standard communication protocol acc. to EN50170 vol.2 (DP: decentral periphery)
RS422 Standard 4-wire connection, Full duplex, (EIA RS 422);
in this case: separate send/receive channels with up to 32 units
RS485 Standard 2-wire connection, Half duplex, (EIA RS 485)
S5 Siemens AG PLC series
Serial interface Rear-panel bussable controller interface
SW Abbr. for software
TTL Signal level at module level
Type file Configuration file for COM ET200
MaxTsdr_3M=250
MaxTsdr_6M=450
MaxTsdr_12M=800
Redundancy = 0 ; not supported
Repeater_Ctrl_Sig = 0 ; not available
24V_Pins = 0 ; not available
Bitmap_device="PMA9801N"
Bitmap_Diag="PMA9801D"
Bitmap_SF="PMA9801F"
;—DP-Slave related key words——-
;
Freeze_Mode_supp = 1 ; supported
Sync_Mode_supp = 1 ; supported
Auto_Baud_supp = 1 ; supported
Set_Slave_Add_supp = 1 ;
supported
User_Prm_Data_Len = 0 ; no user parameter
;minimum slave poll cycle (based on 100us)
Min_Slave_Intervall = 1
Modular_Station = 1 ; modular device
Max_Module = 0x01 ; max. number of modules
Max_Input_Len = 112
Max_Output_Len = 112
Max_Data_Len = 224
;Module description
;A.1: process data for one channel
Module = “A: 1 channel (FixP)” \
0x10,0x10,0x50,0x50,0x50,0x50,0x50,0x50,\
0x20,0x20,0x60,0x60,0x60,0x60,0x60,0x60
EndModule
;
;A.2: process data for one channel + parameter channel
Module = “A: 1 channel (Float)” \
0x10,0x10,0xD1,0xD1,0xD1,0xD1,0xD1,0xD1,\
0x20,0x20,0xE1,0xE1,0xE1,0xE1,0xE1,0xE1
EndModule
;B.1: process data for one channel + parameter channel
Module = “B: 1 channel+parameter (FixP)”
0x10,\
0x10,0x50,0x50,0x50,0x50,0x50,0x50,\
0x20,0x20,0x60,0x60,0x60,0x60,0x60,0x60,0xF3
EndModule
;
;B.2: process data for one channel + parameter channel
Module = “B: 1 channel+parameter (Float)” \
0x10,0x10,0xD1,0xD1,0xD1,0xD1,0xD1,0xD1,\
0x20,0x20,0xE1,0xE1,0xE1,0xE1,0xE1,0xE1,0xF3
EndModule
;
;C.1: process data for two channels + parameter channel
Module = “C: 2 channels+parameter (FixP)” \
0x10,0x10,0x50,0x50,0x50,0x50,0x50,0x50,\
0x10,0x10,0x50,0x50,0x50,0x50,0x50,0x50,\
0x20,0x20,0x60,0x60,0x60,0x60,0x60,0x60,\
0x20,0x20,0x60,0x60,0x60,0x60,0x60,0x60,0xF3
EndModule
;
;C.2: process data for two channels + parameter channel
Module = “C: 2 channels+parameter (Float)” \
0x10,0x10,0xD1,0xD1,0xD1,0xD1,0xD1,0xD1,\
0x10,0x10,0xD1,0xD1,0xD1,0xD1,0xD1,0xD1,\
0x20,0x20,0xE1,0xE1,0xE1,0xE1,0xE1,0xE1,\
0x20,0x20,0xE1,0xE1,0xE1,0xE1,0xE1,0xE1,0xF3
EndModule
;
;D.1: process data for three channels + parameter channel
Module = “D: 3 channels+parameter (FixP)” \
0x10,0x10,0x50,0x50,0x50,0x50,0x50,0x50,\
0x10,0x10,0x50,0x50,0x50,0x50,0x50,0x50,\
0x10,0x10,0x50,0x50,0x50,0x50,0x50,0x50,\
0x20,0x20,0x60,0x60,0x60,0x60,0x60,0x60,\
0x20,0x20,0x60,0x60,0x60,0x60,0x60,0x60,\
0x20,0x20,0x60,0x60,0x60,0x60,0x60,0x60,0xF3
EndModule
;
;D.2: process data for three channels + parameter channel
Module = “D: 3 channels+parameter (Float)” \
0x10,0x10,0xD1,0xD1,0xD1,0xD1,0xD1,0xD1,\
0x10,0x10,0xD1,0xD1,0xD1,0xD1,0xD1,0xD1,\
0x10,0x10,0xD1,0xD1,0xD1,0xD1,0xD1,0xD1,\
0x20,0x20,0xE1,0xE1,0xE1,0xE1,0xE1,0xE1,\
0x20,0x20,0xE1,0xE1,0xE1,0xE1,0xE1,0xE1,\
0x20,0x20,0xE1,0xE1,0xE1,0xE1,0xE1,0xE1,0xF3
EndModule
;
;E.1: process data for four channels + parameter channel
Module = “E: 4 channels+parameter (FixP)” \
0x10,0x10,0x50,0x50,0x50,0x50,0x50,0x50,\
0x10,0x10,0x50,0x50,0x50,0x50,0x50,0x50,\
0x10,0x10,0x50,0x50,0x50,0x50,0x50,0x50,\
0x10,0x10,0x50,0x50,0x50,0x50,0x50,0x50,\
0x20,0x20,0x60,0x60,0x60,0x60,0x60,0x60,\
0x20,0x20,0x60,0x60,0x60,0x60,0x60,0x60,\
0x20,0x20,0x60,0x60,0x60,0x60,0x60,0x60,\
0x20,0x20,0x60,0x60,0x60,0x60,0x60,0x60,0xF3
EndModule
;
;E.2: process data for four channels + parameter channel
Module = “E: 4 channels+parameter (Float)” \
0x10,0x10,0xD1,0xD1,0xD1,0xD1,0xD1,0xD1,\
0x10,0x10,0xD1,0xD1,0xD1,0xD1,0xD1,0xD1,\
0x10,0x10,0xD1,0xD1,0xD1,0xD1,0xD1,0xD1,\
0x10,0x10,0xD1,0xD1,0xD1,0xD1,0xD1,0xD1,\
0x20,0x20,0xE1,0xE1,0xE1,0xE1,0xE1,0xE1,\
0x20,0x20,0xE1,0xE1,0xE1,0xE1,0xE1,0xE1,\
0x20,0x20,0xE1,0xE1,0xE1,0xE1,0xE1,0xE1,\
0x20,0x20,0xE1,0xE1,0xE1,0xE1,0xE1,0xE1,0xF3
EndModule
;
;F.1: process data for three channels + parameter channel
; compact format
Module = “F: 3 channels+par(FixP)compact” \
0x11,0x55,\
0x11,0x55,\
0x11,0x55,\
0x21,0x65,\
0x21,0x65,\
0x21,0x65,0xF3
EndModule
;
;G.1: process data for four channels + parameter channel
; compact format
Module = “G: 4 channels+par(FixP)compact” \
0x11,0x55,\
0x11,0x55,\
0x11,0x55,\
0x11,0x55,\
0x21,0x65,\
0x21,0x65,\
0x21,0x65,\
0x21,0x65,0xF3
EndModule
;
; Device related diagnostic data
Unit_Diag_Bit(0) = “Configuration state”
Unit_Diag_Bit(1) = “Sensor Fail”
Unit_Diag_Bit(2) = “Error process data writing”
Unit_Diag_Bit(3) = “Parameter changed”
;
Slave_Family=5
Max_Diag_Data_Len = 8
Fail_safe=0
;OrderNumber="9407-96x-3xxxx1"
. 7 Index
Index CPWRIT 73
CRCV 71
0-9 CSDO 73
10EXP (Power of 10) 41
CSEND 72
2OF3 (2\_out\_of\_3 selection with mean value f) 55
A D
DELA1 (Delay time 1) 51
AOCTET (Data conversion) 49
DELA2 (Delay time 2) 51
ABIN (Analog <\_>binary conversion) 48
DIGOUT (Digital outputs) 101
ABSV (Absolute value) 40
DINPUT (Digital inputs) 98
ADSU (Addition / subtraction) 40
DPREAD (Read Level 1 data via PROFIBUS) 65
AINP1 (Analog input 1) 95
DPROG (Digital programmer) 79
AINP3 (Analog input 3) 96
DPROGD (DPROG data) 81
AINP4 (Analog input 4) 96
DPWRITE (Write Level 1 data via PROFIBUS) 65
AINP5 (Analog input 5) 97
AINP6 (Analog input 6) 97 E
ALARM (Alarm processing) 58 EEXP (e function) 41
ALLP (Alarm and limiting with fixed limits) 56 EQUAL (Comparison) 56
ALLV (Alarm and limiting with variable limit) 56 EXOR (Exclusive OR gate) 46
AND (AND gate) 46 EXTR (Extreme value selection) 53
AOCTET (Data conversion) 49
APROG (Analog programmer) 74 F
APROGD (APROG data) 76 FILT (Filter with tolerance band) 51
APROGD (APROG-Daten) 77 FLIP (D\_type flip\_flop) 46
ARCCOS (Arc\_cosine function) 45 Function block number 20
ARCCOT (Arc\_cotangent function) 45 Function block protocol
ARCTAN (Arc\_tangent function) 45 - Block access (overall block) 23
- Block access (tens block) 23
B - Individual access 22
Baudrate 5 Function number 20
BOUNCE (De\_bouncer) 46 Function typ 20
Bus cable 8
Bus connector 8
G
GAP (Dead band) 42
C Graphic modules 31
C_KS8x 72
C_RM2x 66
I
INFO (Information function) 102
Cable specification 7
Installing the cables 7
CHAR (Function generator) 43
INTE (Integrator) 50
Clear-Data 19
Code 20 K
Connection 7 KS8x 72
CONST (Constants function) 103 KS98-CAN-extension 66,67,68,69,70,71,72,73
CONTR (Control function) 82
CONTR+ (Extended control function) 86 L
COS (Cosine function) 44 L1READ (Read level 1 data) 63
COT (Cotangent function) 44 L1WRITE (Write Level 1 data) 63
COUN (Up / down counter) 48 LAG (Filter) 50
CPREAD 72 LEAD (Differentiator) 50
LED (LED display) 102