PMA KS800 User manual

RGB ELEKTRONIKA AGACIAK CIACIEK
SPÓŁKA JAWNA
Jana Dlugosza 2-6 Street
51-162 Wrocław
Poland
biuro@rgbelektronika.pl
+48 71 325 15 05
www.rgbautomatyka.pl
www.rgbelektronika.pl
DATASHEET
www.rgbautomatyka.pl
www.rgbelektronika.pl
OTHER SYMBOLS:
KS800-DP
KS800DP, KS800 DP, KS800-DP
PMA

YOUR
PARTNER IN
MAINTENANCE
At our premises in Wrocław, we have a fully equipped servicing facility. Here we perform all the repair
works and test each later sold unit. Our trained employees, equipped with a wide variety of tools and
having several testing stands at their disposal, are a guarantee of the highest quality service.
OUR SERVICES
ENCODERS
SERVO
DRIVERS
LINEAR
ENCODERS
SERVO AMPLIFIERS
CNC
MACHINES
MOTORS
POWER
SUPPLIERS
OPERATOR
PANELS
CNC
CONTROLS
INDUSTRIAL
COMPUTERS
PLC
SYSTEMS
Repair this product with RGB ELEKTRONIKA ORDER A DIAGNOSIS ∠
Buy this product at RGB AUTOMATYKA BUY ∠

Multi Temperaturecontroller KS800
KS800
KS800
KS800
PID
PID
PID
PID
PID
PID
PID
PID
KS800KS800
PROFIBUS-DP
Interface description
PROFIBUS-DP
9499 040 50511
Valid from: 8395

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)
© PMA Prozeß- und Maschinen-Automation GmbH Printed in Germany
All rights reserved. No part of this documentation may be reproduced or published in any form or by
any means without prior written permission
from the copyright owner.
A publication of PMA Prozeß- und Maschinen Automation
Postfach 310229
D-34058 Kassel
Germany

3 9499 040 50511
Contents
1General ..................................5
1.1 Scope of delivery . . . . . . . . . . . . . . . . . . . . . . . . . ..........6
2Hints on operation............................7
2.1 Interface connection . . . . . . . . . . . . . . . ...................7
2.1.1 Installation of cables . . . . . . . . . . . . . . . . . . . ...........7
2.2 Forcing .........................................7
3Process data ...............................8
3.1 Defined as status byte are: . . . . . . . . . . . . . . ................12
3.2 Status and diagnosis messages . . . . . . . . . . . . ................15
3.3 Disabling mechanism with changes . . . . . . . . . . . ..............15
3.4 Process data transmission . . . . . . . . . . . . . . ................15
3.5 Parameter transmission . . . . . . . . . . . . . . . . . . . . . . ..........16
3.5.1 Message elements . . . . . . . . . . . . . . ................16
3.5.2 General communication structure . . . . . . . . . . . . . . . .......17
3.5.3 Data write sequence . . . . . . . . . . . . . ................17
3.5.4 Data read procedure . . . . . . . . . . . . . ................18
3.6 Examples . . . . . . . . . . . . . . . . . . . . . . . ................18
3.6.1 Function block protocol principles . . . . . . . . . . . . . . . .......18
3.6.2 Individual access . . . . . . . . . . . . . . . ................18
3.6.3 Block access (tens block). . . . . . . . . . . . . ..............19
3.6.4 Block acces (overall block) . . . . . . . . . . . . . . . . . .......19
3.7 Data types. . . . . . . . . . . . . . . . . . . . . . . ................21
4Quick entrance .............................22
4.1 Quick entrance with S5. . . . . . . . . . . . . . . . . . . . . . ..........22
4.1.1 Example of a test environment: . . . . . . . . . . .............22
4.2 Quick entrance with S7. . . . . . . . . . . . . . . . . . . . . . ..........24
4.2.1 Example of a test environment: . . . . . . . . . . .............24
5Function block protocol ........................26
5.1 Data structuring. ...................................26
5.2 CODE tables . . . . . . . . . . . . . . . . . . . . . . . . . . . . . ........27
5.2.1 Structure of configuration words (C.xxxx). . . . . . . . . . ........27
5.2.2 INSTRUMENT (FB no.: 0 type no.: 0) . . . . . . . . . . .......27
5.2.3 Special accesses (FB no.: 10 ... 17 type no.: 10) . . . . . . . . . . . . 33
5.2.4 Freely configurable (FB no.: 20 ... 27 type no.: 20) . . . . . . . . . . 34
5.2.5 INPUT (FB no.: 60 ... 67 Type no.: 112) . . . . . . . . . . . . . . . . 36
5.2.6 CONTR (FB no.: 50 ... 57 Type no.: 91) . . . . . . . . . . . . . . . . 37
5.2.7 ALARM (FB no.: 70 ... 77 Type no.: 46) . . . . . . . . . . . . . . . . 41

9499 040 50511 4
6Function modules ...........................43
6.1 Function module for SIMATIC®S5 ........................43
6.1.1 Structure . . . . . . . . . . . . . . . . . . . . ...............43
6.1.2 Function module call . . . . . . . . . . . . . ................45
6.2 Function module for SIMATIC®S7 ........................46
6.2.1 Structure . . . . . . . . . . . . . . . . . . . . ...............46
7Annex ..................................49
7.1 Terms .........................................49
7.2 GSD file . . . . . . . . . . . . . . . . . . . . . . . ................49

General
5 9499 040 50511
1General
The KS800 multi-temperature controller versions (9407-480-30001) are equipped with a PROFIBUS-DP
interface for transmission of process parameter and configuration data. Connection is via the 9-pole sub-D
connector socket. The serial communication interface permits connections to supervisory systems,
visualization tools, etc.
Another interface, which is always provided as standard, is the PC interface. This interface serves for
connecting an engineering tool, which runs on a PC.
Communication is according to the master/slave principle. KS800-DP is always slave.
Cable medium as well as physical and electrical interface proporties:
wNetwork topologie
Linear bus with active bus termination at both ends. Stub lines are possible (dependent of cable type, a
maximum overall stub line length of 6,6m with 1,5Mbit/s and of 1,6m with 3-12Mbit/s is possible).
wTransmission medium
screened, twisted 2-wire cable (ÄEN 50170 vol.2).
wBaudrates and cable lengths (without repeater)
The maximum cable length is dependent of 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 100m
wInterface
RS485 connectable with sub-D connector (9-pole).
wAddress settings
Address setting is possible as follows:
- Adjustment via coding switches, range 00 ... 99, default 00
- adjustment via software, range 0 ... 126, default 126
With the coding switches set to ‘00’, the adjusted software address is valid.
A modified coding switch address is active only after switching on the supply voltage again.
w32 instruments in one segment. Extension to 127 by means of a repeater is possible.
KS800 with PROFIBUS-DP interface offers many advantages with respect to handling and integration into a
PROFIBUS network.
wDiagnosis and monitoring via COM-LED
LED off: error identification for ‘no bus access’ (so far not addressed by the master)
LED on: OK, cyclic data exchange running
LED blinks: (2Hz) Data exchange interrupted
LED blinks: (4Hz) PROFIBUS parameter setting and configuration error.
wParticularities
Configurable process data modules
Direct input and output reading and writing
Output forcing
Easy connection to PLCs

1.1 Scope of delivery
The engineering set comprises:
wDisk
Pma_0800.gsd GSD file
Pmadp1st.s5d STEP®5-FB for parameter channel
Pmadm3*.* project example in STEP®5 for FixPoint
Pma_parm.arj STEP®7-FB for parameter channel
Ks800dmo.arj project example in STEP®7
Ks800_1x.200 type file
Demo308i.et2 configuration example COM PROFIBUS for
IM308-C
Demo95ui.et2 configuration example COM PROFIBUS for S5 CPU
95U
Ks800dem.et2 configuration example COM PROFIBUS for
PC-Karte
wInterface description for PROFIBUS-DP
General
9499 040 50511 6
3,5-Diskette (A:)
Ks800dp
Gsd
Example.fix
Example
Example
S5_fb
S7_fb
Type

2Hints on operation
2.1 Interface connection
The PROFIBUS must be connected to the 9-pole sub-D socket.
Serial interface, physical RS485-based signals.
The construction of suitable cabling must be provided by the user, whereby the general cable specifications
to EN 50170 vol.2 must be taken into account.
2.1.1 Installation of cables
When laying the cables, the general hints for cable installation given by the supplier of the master module
must be followed:
wCable run in buildings (inside and outside cabinets)
wCable run inside and outside buildings
wPotential compensation
wCable screening
wMeasures against interference voltages
wStub line length
wBus termination resistors are not contained in KS800-DP, but must be realized via the connector, if
necessary.
wEarthing
gSpecial 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.]).
2.2 Forcing
Digital outputs can be written directly after configuring them accordingly.
Hints on operation
7 9499 040 50511
Fig.: 1 Connecting PROFIBUS-DP
do
C.100 C.500/

3Process data
During data transmission, distinction of process data to be transmitted cyclically and parameter /
configuration data to be transmitted acyclically is made. The I/O data field is structured modularly for
matching it to the requirements of the control task.
Selection of the process data module is via configuration tools of the master circuits (e.g. with Siemens S5
via COM PROFIBUS).
The following process data modules can be configured:
Process data
module A:
read (66 bytes) 1) write 1) (52 bytes) without
parameter
channel
Instrument status, (process value, output value, status, ..) Instrument control, (set-point, output value, ...)
Process data
module B:
read (74 bytes)1) write 1) (60 bytes)* with
parameter
channel
Instrument status, (process value, output value, status, ..) Instrument control, (set-point, output value, ...)
Process data
module C:
only parameter channel 1) (8/8 bytes)
Process data
module D:
read (74 Byte) 1) write (60 Byte) 1) with parameter
channel
Instrument status, (process value, output value,
status, ..)
Instrument control, (set-point, output value, ...)
Process data
module E:
read (116 Byte) 1) write (116Byte) 1) with parameter
channel
Instrument status, (52 variable process data) Instrument control, (52 variable process data)
Process data
module F:
read (92 Byte) 1) write (92 Byte) 1) with parameter
channel
Instrument status, (40 variable process data) Instrument control, (40 variable process data)
Process data
module G:
read (28 Byte) 1) write (28 Byte) 1) with parameter
channel
Instrument status, (8 variable process data) Instrument control, (8 variable process data)
Process data
module H:
read (16 Byte) 1) write (16 Byte) 1) with parameter
channel
Instrument status, (multiplexing 64 variable
process data)
Instrument control, (multiplexing 64 variable process
data)
The parameter channel is used for sequential transmission of parameter and configuration data. The values to
be adjusted and data significations are given in the following tables:
For the process data modules (module E - H), the cyclical transmission data must be selected by means of
the ‘KS800’ engineering tool via General instrument settings r
Communication rBus data.
Max. 64 data for reading and 64 data for writing can be selected. Dependent of selected process data
module, the first 52 data (module E), the first 40 data (module F), the first 8 data (module H) or all
data are used (module G).
Process data
9499 040 50511 8
1) Number of required bytes in the I/O field

qModule A (process data of all 8 channels)
No. Descr. R/W
FIX point format
Rem.
Number of bytes Value
Hex COM PROFIBUS
Inputs ]66
0 Unit_State R 2 11 16DE A
1 Xeff_1 R 2 50 1AE
2 Yeff_1 R 2 50 1AE
3 HC_1 R 2 50 1AE
4 Alarm_1 R 1 10 8DE B
5 Status_1 R 1 10 8DE C
6 Xeff_2 R 2 50 1AE
7 Yeff_2 R 2 50 1AE
8 HC_2 R 2 50 1AE
9 Alarm_2 R 1 10 8DE B
10 Status_2 R 1 10 8DE C
...
36 Xeff_8 R 2 50 1AE
37 Yeff_8 R 2 50 1AE
38 HC_8 R 2 50 1AE
39 Alarm_8 R 1 10 8DE B
40 Status_8 R 1 10 8DE C
Outputs ]52
41 Unit_Cntrl W 4 23 32DA D
42 Wvol_1 W 2 60 1AA
43 Yman_1 W 2 60 1AA
44 Cntrl_1 W 2 21 16DA E
45 Wvol_2 W 2 60 1AA
46 Yman_2 W 2 60 1AA
47 Cntrl_2 W 2 21 16DA E
...
63 Wvol_8 W 2 60 1AA
64 Yman_8 W 2 60 1AA
65 Cntrl_8 W 2 21 16DA E
qModule B (process data of all 8 channels + parameter channel)
No. Descr. R/W
FIX point format
Rem.
Number of bytes Value
Hex COM PROFIBUS
Inputs ]66
0 Unit_State R 2 11 16DE A
1 Xeff_1 R 2 50 1AE
2 Yeff_1 R 2 50 1AE
3 HC_1 R 2 50 1AE
4 Alarm_1 R 1 10 8DE B
5 Status_1 R 1 10 8DE C
6 Xeff_2 R 2 50 1AE
7 Yeff_2 R 2 50 1AE
8 HC_2 R 2 50 1AE
9 Alarm_2 R 1 10 8DE B
10 Status_2 R 1 10 8DE C
...
36 Xeff_8 R 2 50 1AE
37 Yeff_8 R 2 50 1AE
38 HC_8 R 2 50 1AE
39 Alarm_8 R 1 10 8DE B
40 Status_8 R 1 10 8DE C
Process data
9 9499 040 50511

Outputs ]52
41 Unit_Cntrl W 4 23 32DA D
42 Wvol_1 W 2 60 1AA
43 Yman_1 W 2 60 1AA
44 Cntrl_1 W 2 21 16DA E
45 Wvol_2 W 2 60 1AA
46 Yman_2 W 2 60 1AA
47 Cntrl_2 W 2 21 16DA E
...
63 Wvol_8 W 2 60 1AA
64 Yman_8 W 2 60 1AA
65 Cntrl_8 W 2 21 16DA E
Inputs/outputs
66 Parameter channel R/W 8 / 8 F3 4AX
qModule C (only parameter channels)
No. Descr. R/W
FIX Point-Format
Number of bytes Value
Hex COM PROFIBUS
Inputs/outputs
0 Parameter channel R/W 8 / 8 F3 4AX
Transmission of the analog values is in the 16-bit fix point format (FIX). In FIX format, all values are
interpreted with one digit behind the decimal point (range -3000,0 to 3200,0).
qModule D (Like Module B, but more compact Configurationformat)
No. Descr. R/W
FIX Point-Format
Rem.
Number of
Bytes
Value
Hex COM PROFIBUS
Inputs ]74
0 Unit_State R 2 11 16DE A
1 Xeff_1, Yeff_1, HC_1, Alarm_1, Status_1 R 8 53 4AE
2 Xeff_2, Yeff_2, HC_2, Alarm_2, Status_2 R 8 53 4AE
...
8 Xeff_8, Yeff_8, HC_8, Alarm_8, Status_8 R 8 53 4AE
Outputs ]60
9 Unit_Cntrl W 4 23 32DA B
10 Wvol_1, Yman_1, Cntrl_1 W 6 62 3AA
11 Wvol_2, Yman_2, Cntrl_2 W 6 62 3AA
...
17 Wvol_8, Yman_8, Cntrl_8 W 6 62 3AA
In- /Outputs
18 Parameterchannel R/W 8 / 8 F3 4AX
Process data
9499 040 50511 10

qModule E (52 variable processdata and parameterchannel)
No.. Descr.. R/W
FIX Point-Format
Rem.
Number of
Bytes
Value
Hex COM PROFIBUS
Inputs ]116
0 Unit_State, Digital_Outputs R 4 13 32DE A, F
1 IN_1 … IN_8 R 16 57 8AE
2 IN_9 … IN_16 R 16 57 8AE
...
6 IN_41 … IN_48 R 16 57 8AE
7 IN_49 … IN_52 R 8 53 4AE
Outputs ]116
8 Unit_Cntrl I, Unit_Cntrl II W 4 23 32DA B
9 OUT_1 … OUT_8 W 16 67 8AA
10 OUT_9 … OUT_16 W 16 67 8AA
...
14 OUT_41 … OUT_48 W 16 67 8AA
15 OUT_49 … OUT_52 W 8 63 4AA
In- /Outputs
16 Parameterchannel R/W 8 / 8 F3 4AX
qModule F (40 variable processdata and parameterchannel)
No.. Descr.. R/W
FIX Point-Format
Rem.
Number of
Bytes
Value
Hex COM PROFIBUS
Inputs ]92
0 Unit_State, Digital_Outputs R 4 13 32DE A, F
1 IN_1 … IN_8 R 16 57 8AE
2 IN_9 … IN_16 R 16 57 8AE
...
5 IN_33 … IN_40 R 16 57 8AE
Outputs ]92
6 Unit_Cntrl I, Unit_Cntrl II W 4 23 32DA B
7 OUT_1 … OUT_8 W 16 67 8AA
8 OUT_9 … OUT_16 W 16 67 8AA
...
11 OUT_33 … OUT_40 W 16 67 8AA
In- /Outputs
12 Parameterchannel R/W 8 / 8 F3 4AX
qModule G (8 variable processdata and parameterchannel)
No.. Descr.. R/W
FIX Point-Format
Rem.
Number of
Bytes
Value
Hex COM PROFIBUS
Inputs ]28
0 Unit_State, Digital_Outputs R 4 13 32DE A, F
1 IN_1 … IN_8 R 16 57 8AE
Outputs ]28
2 Unit_Cntrl I, Unit_Cntrl II W 4 23 32DA B
3 OUT_1 … OUT_8 W 16 67 8AA
In- /Outputs
4 Parameterchannel R/W 8 / 8 F3 4AX
Process data
11 9499 040 50511

qModule H (Multiplexing of all 64 variable processdata and parameterchannel)
No.. Descr. R/W
FIX Point-Format
Rem.
Number of
Bytes
Value
Hex COM PROFIBUS
Inputs ]16
0 Unit_State, Digital_Outputs R 4 13 32DE A, F
1Index IN Read R 2 50 1AE
Write
2 Read Value R 2 50 1AE
Outputs ]16
3 Unit_Cntrl I, Unit_Cntrl II W 4 23 32DA B
4Index OUT Read W 2 60 1AA
Write
5 Write Value W 2 60 1AA
In- /Outputs
6 Parameterchannel R/W 8 / 8 F3 4AX
Operating principle (reading):
wEnter the index number into ‘Index OUT’ (Read).
wAfter the index number is mirror-inverted in ‘Index IN’ (Read), the read value is stored in
‘Read Value’ .
Operating principle (writing):
wEnter the index number into ‘Index OUT’ (Write)
wEnter the value to be written into ‘Write Value’.
wAfter the index number is mirror-inverted in ‘Index IN’ (Write), the value was transmitted.
gTo ensure consistent data transmission, ‘Index OUT’ (Write) and ‘Write Value’ must have been updated
safely before a PROFIBUS data cycle. If this cannot be ensured, proceed as follows: ‘0’ in ‘Index OUT’
(Write), write the value to be transmitted into ‘Write Value’ and write the index number into ‘Index OUT’
(Write). With entry ‘0’ in ‘Index OUT’ (Read) / ‘Index OUT’ (Write), no data are transmitted.
3.1 Defined as status byte are:
Unit_State
MSB LSB
D15 D14 D13 .. .. D2 D1 D0
Bit no. Name Allocation Status ‘0’ Status ‘1’
D0 IN13 Digital input IN13 (ParNo) off on
D1 IN14 Digital input IN14 (Coff) off on
D2 IN15 Digital input IN15 (Leck) off on
D3 IN16 Digital input IN16 (w/w2) off on
D4 always ‘0’
D5 Dex Changed ComRead or ComWrite data no yes
D6, D7 Always ‘0’
D8 Err1 Transmission error channel 1 no yes
D9 Err2 Transmission error channel 2 no yes
D10 Err3 Transmission error channel 3 no yes
D11 Err4 Transmission error channel 4 no yes
D12 Err5 Transmission error channel 5 no yes
D13 Err6 Transmission error channel 6 no yes
D14 Err7 Transmission error channel 7 no yes
D15 Err8 Transmission error channel 8 no yes
Process data
9499 040 50511 12

Rem. B1 Alarm_x
MSB LSB
D7 D6 D5 D4 D3 D2 D1 D0
Bit no. Name Allocation Status ‘0’ Status ‘1’
D0 Lim HH Alarm HH off on
D1 Lim H Alarm H off on
D2 Lim L Alarm L off on
D3 Lim LL Alarm LL off on
D4 Fail Alarm Sensor Fail no yes
D5 HCAl Heating current alarm off on
D6 LeckAl Leakage current alarm off on
D7 do1_8Al Alarm OUT1 ... 8 off on
Rem. C Status_x
MSB LSB
D7 D6 D5 D4 D3 D2 D1 D0
Bit no. Name Allocation Status ‘0’ Status ‘1’
D0 w/W2 w/W2 switch-over w W2
D1 We/w External/internal switch-over external internal
D2 w/Wanf Start-up set-point switch-over w Wanf
D3 Orun Optimization active no yes
D4 A/M Automatic/manual switch-over auto manual
D5 Coff Controller switched off no yes
D6 Y1 Switching output 1 off on
D7 Y2 Switching output 2 off on
Rem. D Unit_Contrl I
MSB LSB
D31 D30 D29 ... ... D2 D1 D0
Bit no. Name Allocation Status ‘0’ Status ‘1’
D0 OUT1 Forcing of output OUT1 off on
D1 OUT2 Forcing of output OUT2 off on
D2 OUT3 Forcing of output OUT3 off on
D3 OUT4 Forcing of output OUT4 off on
D4 OUT5 Forcing of output OUT5 off on
D5 OUT6 Forcing of output OUT6 off on
D6 OUT7 Forcing of output OUT7 off on
D7 OUT8 Forcing of output OUT8 off on
D8 OUT9 Forcing of output OUT9 off on
D9 OUT10 Forcing of output OUT10 off on
D10 OUT11 Forcing of output OUT11 off on
D11 OUT12 Forcing of output OUT12 off on
D12 OUT13 Forcing of output OUT13 off on
D13 OUT14 Forcing of output OUT14 off on
D14 OUT15 Forcing of output OUT15 off on
D15 OUT16 Forcing of output OUT16 off on
Process data
13 9499 040 50511

Rem. E Unit_Contrl II
MSB LSB
D31 D30 D29 ... ... D2 D1 D0
Bit no. Name Allocation Status ‘0’ Status ‘1’
D0 OUT17 Forcing of output OUT17 off on
D1 OUT18 Forcing of output OUT18 off on
D2 OUT19 Forcing of output OUT19 off on
D3 OstartG Start optimizing all group controllers no start start
D4 OStopG Forcing of output OUT5 no stop stop
D5 Dval Forcing of output OUT6 flank 0->1
D6- D15 always "0"
Rem. F Cntrl_x
MSB LSB
D15 D14 D13 ... ... D2 D1 D0
Bit no. Name Allocation Status ‘0’ Status ‘1’
D0 A/M Automatic/manual switch-over auto manual
D1 Coff Controller switched off no yes
D2 w/W2 w/W2 switch-over w W2
D3 We/w External/internal switch-over external internal
D4 OStart Start optimization 1) no start start
D5 OStop Stop optimization 1) no stop stop
D6 .. D15 unused, always ‘0’
Rem. G Digital_Outputs
MSB LSB
D15 D14 D13 ... ... D2 D1 D0
Bit-No. Name Allocation Status ‘0’ Status ‘1’
D0 Y1_7 Y1-Output Channel 7 off on
D1 Y2_7 Y2-Output Channel s 7 off on
D2 Y1_6 Y1-Output Channel 6 off on
D3 Y2_6 Y2-Output Channel 6 off on
D4 Y1_5 Y1-Output Channel 5 off on
D5 Y2_5 Y2-Output Channel 5 off on
D6 Y1_4 Y1-Output Channel 4 off on
D7 Y2_4 Y2-Output Channel 4 off on
D8 Y1_3 Y1-Output Channel 3 off on
D9 Y2_3 Y2-Output Channel 3 off on
D10 Y1_2 Y1-Output Channel 2 off on
D11 Y2_2 Y2-Output Channel 2 off on
D12 Y1_1 Y1-Output Channel 1 off on
D13 Y2_1 Y2-Output Channel 1 off on
D14 Y1_0 Y1-Output Channel 0 off on
D15 Y2_0 Y2-Output Channel 0 off on
Process data
9499 040 50511 14
1) Signals are active only with change from 0 Ä1. The signal must be available, until a change of Orun
(see Status_x) has occurred.
2)See chapter 3.3 page 15 "Disabling mechanism with changes".

3.2 Status and diagnosis messages
For KS800 instrumwent status signalling, the external (user-specific) diagnosis must be used. The format
corresponds to the instrument-related diagnosis (EN50170 volume 2 PROFIBUS).
Instrument-specific diagnosis Octet 1
MSB LSB
D7 D6 D5 D4 D3 D2 D1 D0
Bit no. Name Allocation Status ‘0’ Status ‘1’ Type
D0 Online/Conf On-line / configuration on-line configuration status
D1 DO1_12Fail Error do1 ... do12 no yes diagnosis
D2 D=13_16Fail Error do13 ... do16 no yes diagnosis
D3 HCFail Heating current short circuit no yes diagnosis
D4 .. D7 unused, always ‘0’
Instrument-specific diagnosis Octet 2
MSB LSB
D7 D6 D5 D4 D3 D2 D1 D0
Bit no. Name Allocation Status ‘0’ Status ‘1’ Type
D0 InpF1 Input fail channel 1 no yes diagnosis
D1 InpF2 Input fail channel 2 no yes dianosis
D2 InpF3 Input fail channel 3 no yes diagnosis
D3 InpF4 Input fail channel 4 no yes diagnosis
D4 InpF5 Input fail channel 5 no yes diagnosis
D5 InpF6 Input fail channel 6 no yes diagnosis
D6 InpF7 Input fail channel 7 no yes diagnosis
D7 InpF8 Input fail channel 8 no yes diagnosis
3.3 Disabling mechanism with changes
Changing the reference to a datum to be transmitted during operation, e.g. on-line via parameter channel
or via the engineering interface, implies a hazard of value misinterpreting by bus master and KS800.
This can be prevented by a disabling mechanism.
wWhen changing a reference, the controller module sets bit Dex = 1.
wThe master must evaluate bit Dex.
wAcknowledgement and a statement that there are only valid write data also on the master side, are
generated via a positive flank for bit Dval.
wWhen receiving a positive flank, the controller module sets Dex = 0 and stores the data which were
sent.
wResetting Dex is also possible by switching the voltage off and on again.
3.4 Process data transmission
Process data are transmitted cyclically by the controller, whereby compliance with the minimum poll time of
570ms is ensured, if no simultaneous access via the parameter channel is made. Output data sent to KS800
are compared with the previously transmitted values and processed by the controller with deviation. If one of
the data is faulty, bit 8 with error in channel 1, bit 9 with error in channel 2 ... or bit 15 with error in channel
8 is set in the ‘Unit_State’, until no faulty accesses are pending any more.
Process data
15 9499 040 50511

3.5 Parameter transmission
For parameter transmission, the ‘parameter channel’ via which data can be exchanged transparently via the
function block protocol is available. Thereby, all possible protocol access modes are supported (individual
access, tens block and overall block). Communication to the controller is transparent, i.e. the user himself is
responsible for monitoring ranges, operating modes (auto/hand) etc.
The parameter channel is designed for large amounts of data with low requirements on the transmission
speed.
3.5.1 Message elements
Some terms which are used in the following text are explained below:
Element Description Rem.
ID Telegram mode identification A
ID1 Format of data to be transmitted or to be received B
Code Addressing code of a datum C
FB no. Function block number D
Fct no. Function number E
Type d.c. (always ‘0’)
Rem. A ID
This element identifies the telegram type: ID = 0x10 =start telegram 1)
ID = 0x68 =data telegram
ID = 0x16 =end telegram
Rem. B ID1
This element identifies the file format: ID1=0=Integer
ID1 = 1 =Real value as fixpoint
Rem. C Code
The code identification is decimal and the range includes ‘00’...’99’ as well as ‘178’ =B2 and ‘179’ =B3.
Rem. D FB no. (function block number)
A function block is addressed with a function block number. It is within ‘0’ and ‘250’. Channel addressing is
also via the function block number.
Function block number ranges:
w0general data for the overall instrument
w1 - 99 fixed function blocks
Rem. E Fct. no. (function number)
A function as a partial address of a function block is also addressed with a function number. It is within ‘0’
and ‘99’.
Function number ranges:
w0function general
w1 - 99 other functions
Process data
9499 040 50511 16
Parameter 1 Parameter 1
Parameter 2 Parameter 2
.... ....
.... ....
.... ....
.... ....
.... ....
Parameter n Parameter n
Parameterkanal
1) 0x10 means 10 in hexadecimal

3.5.2 General communication structure
For transmission of the parameters required for the function block protocol via an 8-byte data window, the
access is composed of three parts:
wOrder header with specification of code, FB no., fct. no., type and the following real and integer values.
Start telegram structure:
Byte 0 Byte 1 Byte 2 Byte 3 Byte 4 Byte 5 Byte 6 Byte 7
ID ID1 Code FB no. Fct._no. Type Numb.real values Numb.integer values
wn data blocks with the data to be transmitted
Data telegram structure:
Transmission of real data as fixedpoint and of integer values
Byte 0 Byte 1 Byte 2 Byte 3 Byte 4 Byte 5 Byte 6 Byte 7
ID Count Integer
wAn end block provides the operation result
Structure of the end telegram:
Byte 0 Byte 1 Byte 2 Byte 3 Byte 4 Byte 5 Byte 6 Byte 7
ID Result
Signification of result
0OK
4 NAK
The read or write operation is always started by the master. With the number of real and integer values ≠0, a
write service, otherwise, a read service is started.
The code determines the access type:
Code < 100, no multiple of 10 Äindividual access
Code < 100, multiple of 10 Ätens block access
Code > 100 Äoverall block access
3.5.3 Data write sequence
Start telegram:
Master sends: Byte 0 Byte 1 Byte 2 Byte 3 Byte 4 Byte 5 Byte 6 Byte 7
0x10 ID1 Code FB no. Fct._no. Type Numb.real values Numb.integer values
Controller
replies:
Byte 0 Byte 1 Byte 2 Byte 3 Byte 4 Byte 5 Byte 6 Byte 7
0x10
Data telegrams:
Master sends: Byte 0 Byte 1 Byte 2 Byte 3 Byte4-7 Controller replies: Byte 0 Byte 1 Byte 2 Byte 3 Byte4-7
0x68 count Value 0x68 count
Thereby, the first value is sent with Count = 1. For flow control, Count is reflected by KS800 (?once). The
values are transmitted in the order real - integer.
End telegram:
Master sends: Byte 0 Byte 1 Byte 2 Byte 3 Byte4-7 Controller replies: Byte 0 Byte 1 Byte 2-3 Byte4-7
0x16 0x16 Result
Process data
17 9499 040 50511

3.5.4 Data read procedure
Start telegram:
Master sends: Byte 0 Byte 1 Byte 2 Byte 3 Byte 4 Byte 5 Byte 6 Byte 7
0x10 ID1 Code FB no. Fct._no. Type 0 0
Controller
replies:
Byte 0 Byte 1 Byte 2 Byte 3 Byte 4 Byte 5 Byte 6 Byte 7
0x10 Numb. real values 1) Numb. integer values 1)
Data telegrams:
Master sends: Byte 0 Byte 1 Byte 2 Byte 3 Byte4-7 Controller replies: Byte 0 Byte 1 Byte 2 Byte 3 Byte4-7
0x68 count 0x68 count Value
Thereby, the first value is sent with Count = 1. For flow control, count is reflected by KS800 (?once). The
values are transmitted in the order real - integer.
End telegram:
Master sends: Byte 0 Byte 1 Byte 2 Byte 3 Byte4-7 Controller replies: Byte 0 Byte 1 Byte 2-3 Byte4-7
0x16 0x16 Result
3.6 Examples
3.6.1 Function block protocol principles
A function block has input and output data (process data) as well as parameter and configuration data. It is
addressable via a function block number.
The following access mechanisms are used:
3.6.2 Individual access
This access (code xx) can be used for reading or writing an individual value of a function.
Valid values for ID1:
Configuration as
FixPoint:
0 = integer real values are transmitted as integer (without digits behind the decimal point)
1 = real real values are transmitted as FixPoint (1 digit behind the decimal point)
Example 1: (message structure with data sending)
Transmission of parameter set number (ParNr = 1) to the controller (channel 2).
Start telegram:
Master sends: Byte 0 Byte 1 Byte 2 Byte 3 Byte 4 Byte 5 Byte 6 Byte 7
0x10 0 31 52 5 0 0 1
Controller
replies:
Byte 0 Byte 1 Byte 2 Byte 3 Byte 4 Byte 5 Byte 6 Byte 7
0x10
Data telegrams:
Master sends: Byte 0 Byte 1 Byte 2 Byte 3 Byte4-7 Controller replies: Byte 0 Byte 1 Byte 2 Byte 3 Byte4-7
0x68 1 1 0x68 1
End telegram:
Master sends: Byte 0 Byte 1 Byte 2 Byte 3 Byte4-7 Controller replies: Byte 0 Byte 1 Byte2-3 Byte4-7
0x16 0x16 0
Process data
9499 040 50511 18
1) If a Read Service was refused, these values = 0
Other manuals for KS800
2
This manual suits for next models
1
Table of contents
Other PMA Controllers manuals