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:
Network topologie
w
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).
Transmission medium
w
screened, twisted 2-wire cable (Ä EN 50170 vol.2).
Baudrates and cable lengths (without repeater)
w
The maximum cable length is dependent of transmission rate.
The Baudrate is determined by the master configuration.
General
Automatic Baudrate
detection
Interface
w
RS485 connectable with sub-D connector (9-pole).
Address settings
w
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.
32 instruments in one segment. Extension to 127 by means of a repeater is possible.
w
KS800 with PROFIBUS-DP interface offers many advantages with respect to handling and integration into a
PROFIBUS network.
Diagnosis and monitoring via COM-LED
w
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.
Particularities
w
Configurable process data modules
Direct input and output reading and writing
Output forcing
Easy connection to PLCs
BaudrateMaximum cable length
9,6 / 19,2 / 93,75 kbit/s1200 m
187,5kbit/s1000 m
500kbit/s400 m
1,5Mbit/s200 m
3 ... 12 Mbit/s100m
STEP®7-FB for parameter channel
project example in STEP®7
type file
configuration example COM PROFIBUS for
IM308-C
configuration example COM PROFIBUS for S5 CPU
95U
configuration example COM PROFIBUS for
PC-Karte
9499 040 505116
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.
Fig.: 1 Connecting PROFIBUS-DP
Hints on operation
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:
Cable run in buildings (inside and outside cabinets)
w
Cable run inside and outside buildings
w
Potential compensation
w
Cable screening
w
Measures against interference voltages
w
Stub line length
w
Bus termination resistors are not contained in KS800-DP, but must be realized via the connector, if
w
necessary.
Earthing
w
Special hints for installation of PROFIBUS cables are given in the PNO technical guideline “Installation
g
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.
C.100 C.500/
do
79499 040 50511
Process data
3Process data
Process data
module A:
Process data
module B:
Process data
module C:
Process data
module D:
Process data
module E:
Process data
module F:
Process data
module G:
Process data
module H:
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:
write (16 Byte)
Instrument control, (multiplexing 64 variable process
data)
1)
with parameter
channel
1)
with parameter
channel
1)
with parameter
channel
1)
with parameter
channel
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 rCommunication 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).
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).
Module D (Like Module B, but more compact Configurationformat)
2 Unit_Cntrl I, Unit_Cntrl IIW42332DA
3 OUT_1 … OUT_8W16678AA
In- /Outputs
4 ParameterchannelR/W8 / 8F34AX
Number of
Bytes
Number of
Bytes
HexCOM PROFIBUS
FIX Point-Format
HexCOM PROFIBUS
Value
Value
Rem.
A, F
B
Rem.
A, F
B
119499 040 50511
Process data
g
Module H (Multiplexing of all 64 variable processdata and parameterchannel)
q
FIX Point-Format
No..Descr.R/W
Inputs] 16
0 Unit_State, Digital_OutputsR41332DE
1
Index IN
2 Read ValueR2501AE
Outputs] 16
3 Unit_Cntrl I, Unit_Cntrl IIW42332DA
4
Index OUT
5 Write ValueW2601AA
In- /Outputs
6 ParameterchannelR/W8 / 8F34AX
Operating principle (reading):
Enter the index number into ‘Index OUT’ (Read).
w
After the index number is mirror-inverted in ‘Index IN’ (Read), the read value is stored in
w
‘Read Value’ .
Operating principle (writing):
Enter the index number into ‘Index OUT’ (Write)
w
Enter the value to be written into ‘Write Value’.
w
After the index number is mirror-inverted in ‘Index IN’ (Write), the value was transmitted.
w
To 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.
OUT1Forcing of output OUT1offon
OUT2Forcing of output OUT2offon
OUT3Forcing of output OUT3offon
OUT4Forcing of output OUT4offon
OUT5Forcing of output OUT5offon
OUT6Forcing of output OUT6offon
OUT7Forcing of output OUT7offon
OUT8Forcing of output OUT8offon
OUT9Forcing of output OUT9offon
OUT10Forcing of output OUT10offon
OUT11Forcing of output OUT11offon
OUT12Forcing of output OUT12offon
OUT13Forcing of output OUT13offon
OUT14Forcing of output OUT14offon
OUT15Forcing of output OUT15offon
OUT16Forcing of output OUT16offon
139499 040 50511
Process data
Rem. E Unit_Contrl II
MSBLSB
D31D30D29......D2D1D0
Bit no.NameAllocationStatus ‘0’Status ‘1’
D0
D1
D2
D3
D4
D5
D6- D15
OUT17Forcing of output OUT17offon
OUT18Forcing of output OUT18offon
OUT19Forcing of output OUT19offon
OstartGStart optimizing all group controllersno startstart
OStopGForcing of output OUT5no stopstop
DvalForcing of output OUT6flank 0->1
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".
9499 040 5051114
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
MSBLSB
D7D6D5D4D3D2D1D0
Bit no.NameAllocationStatus ‘0’Status ‘1’Type
D0
D1
D2
D3
D4 .. D7
Instrument-specific diagnosis Octet 2
Bit no.NameAllocationStatus ‘0’Status ‘1’Type
D0
D1
D2
D3
D4
D5
D6
D7
Online/ConfOn-line / configurationon-lineconfigurationstatus
DO1_12FailError do1 ... do12noyesdiagnosis
D=13_16FailError do13 ... do16noyesdiagnosis
HCFailHeating current short circuit noyesdiagnosis
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.
When changing a reference, the controller module sets bit Dex = 1.
w
The master must evaluate bit Dex.
w
Acknowledgement and a statement that there are only valid write data also on the master side, are
w
generated via a positive flank for bit Dval.
When receiving a positive flank, the controller module sets Dex = 0 and stores the data which were
w
sent.
Resetting Dex is also possible by switching the voltage off and on again.
w
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.
159499 040 50511
Process data
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:
ElementDescriptionRem.
ID
ID1
Code
FB no.
Fct no.
Type
Rem. A ID
This element identifies the telegram type:
Rem. B ID1
This element identifies the file format:
Parameter 1Parameter 1
Parameter 2Parameter 2
........
........
........
........
........
Parameter nParameter n
Parameterkanal
Telegram mode identification
Format of data to be transmitted or to be received
Addressing code of a datum
Function block number
Function number
d.c. (always ‘0’)
ID = 0x10 = start telegram
1)
ID = 0x68 = data telegram
ID = 0x16 = end telegram
ID1=0= Integer
ID1 = 1 = Real value as fixpoint
A
B
C
D
E
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:
0general data for the overall instrument
w
1 - 99 fixed function blocks
w
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:
0function general
w
1 - 99 other functions
w
1) 0x10 means 10 in hexadecimal
9499 040 5051116
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:
Order header with specification of code, FB no., fct. no., type and the following real and integer values.
Transmission of real data as fixedpoint and of integer values
Byte 0Byte 1Byte 2Byte 3Byte 4Byte 5Byte 6Byte 7
IDCountInteger
An end block provides the operation result
w
Structure of the end telegram:
Byte 0Byte 1Byte 2Byte 3Byte 4Byte 5Byte 6Byte 7
IDResult
Signification of result
0OK
4NAK
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
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.
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:
0x160x16Result
1)
Numb. integer values
3.6 Examples
3.6.1
3.6.2 Individual access
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:
This access (code xx) can be used for reading or writing an individual value of a function.
Valid values for ID1:
Configuration as
FixPoint:
Example 1: (message structure with data sending)
Transmission of parameter set number (ParNr = 1) to the controller (channel 2).
0 = integerreal values are transmitted as integer (without digits behind the decimal point)
1 = realreal values are transmitted as FixPoint (1 digit behind the decimal point)
This access can be used for reading or writing all parameter (code 178) and configuration data (code 179) of
a function. The following conditions are applicable to this access:
For writing the data with ‘code B3 = 179’, the instrument must be switched to the configuration mode
w
(Ä see page 27 ‘OpMod’). All entered new configuration data and parameters are effective only,
when the instrument was switched back to on-line.
All data of a message must be defined, omissions are not permissible.
w
The complete message must be transmitted also, if parts of a message in the controller are not used
w
(HW and SW options). Checking of the non-existing data is omitted.
With faulty block write accesses, the following is valid: a message is replied with NAK, if at least one
w
datum is faulty. Already valid values are accepted.
199499 040 50511
Process data
The message structure with block accesses with code B2/B3 is shown using two examples below. The order
of data to be transmitted is given in the relevant code table.
Valid values for ID1:
Configuration as FixPoint:0, 1 Transmission of real values each as a FixPoint value
Example 1: (message structure with data request)
Reading set-point parameters (W0, W100, W2, Grw+, Grw- and Grw2) of controller (channel 7).
Start telegram:
Data values are classified in data types for transmission.
FP
w
Floating point number (Real)
Range:as integer (in individual access) -9999 ... 0 ... 9999
as fix point-3000,0 ... 0,0 ... 3200,0
Exception:switch-off value ‘-32000’
INT
w
positive integer number
Range: 0 ... 32767
Range with configuration words: 0000 ... 9999 (Ä Page 27)
Exception: Switch-off value ‘-32000’
ST1
w
Status, bit-oriented, 1 byte Length
Range: 00H ... 3FH, transmitted: 40H...7FH
Only 6 bits can be used for information transmission, i.e. bit 0...5 (LSB = bit 0). Bit 6 must always be
set to ‘1’, in order to avoid confusion with the control characters. Bit 7 contains the parity bit.
ICMP (Integer Compact)
w
Bit information as integer transmission, max. 15 bits
Range: 0...32767; integer transmission is in ASCII format.
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’
990914219499 040 50511
Quick entrance
4Quick entrance
The disk enclosed in the engineering set includes the GSD file, project examples for a SIMATIC®S5 / S7,
the type file and configuration examples for COM PROFIBUS. Communication with a KS800-DP can be
built up easily by means of the configuration and a project.
4.1 Quick entrance with S5
Test environment
The following components are required for the test set-up:
Programming unit (PG740 recommended)
w
Automation unit
w
w
w
w
4.1.1 Example of a test environment:
A KS800-DP with address 5 is to be connected to an IM 308-C via PROFIBUS-DP. Process data module B
is selected (8 process data channels and parameter channel). Data shall be transmitted in fix point format.
The I/O addresses in the S5 start with 0 in the P area.
Before taking the test environment into operation, ensure that the automation units do not contain user
g
software (“initial clear”). The same applies to the IM 308-C memory card.
S5-115U, S5-135U or S5-155U with IM 308-C
-
KS800-DP
Engineering set (order no. 9407 999 09x11)
Cable
PROFIBUS cableautomation unit / IM 308-C i KS800-DP
-
programming unit i automation unit
-
Procedure:
Establishing the communications
w
Instrument configuration
w
-Adjust address 5 on KS800-DP (via coding switches or engineering tool) and connect it to the
network.
-Activate bus termination resistors at the controller connector and at the (S5) PLC connector.
PROFIBUS network configuration
w
-Insert the disk (engineering set) into programming unit.
-Call up COM PROFIBUS and load example (A:\KS800dp\type\example\Demo308i.et2)
- Select the correct CPU type with IM308C.
-
If necessary, adapt addressings and DP network and transmit them to the DP master (Ä Fig.: ).
Load S5 program
w
-
Insert disk (engineering set) into the programming unit.
-
Call up STEP
-
Load program example, e.g. (A:\KS800dp\s5_fb\example.fix\...)
-
If necesary, match the addresses for send / receive window (A-A/E-A in FB) and transmit them to
the automation unit.
-
Switch automation unit to run
®
5.
9499 040 5051122990914
Quick entrance
After taking the test set-up into operation, testing of the I/O area and parameter channel call-up are possible
by means of the graphic modules enclosed in the project.
Operanden:Signalzustände:
-Unit_StaEW0KM=00000000 00000000
Graphic module 1:
Shows all process data of channel 1 (fix point).
Example: (specified set-point = 30)
Value 300 is written in AW 4.
-UnitCntAAW0KM=00000000 00000000
-UnitCntBAW2KM=00000000 00000000
-Xeff_1EW2KF=+290
-Yeff_1EW4KF=+400
-HC_1EW6KF=+0
-Alarm_1EB8KM=00001100
-Status_1EB9KM=00010010
-Wvol_1AW4KF=+300
-Yman_1AW6KF=+400
-Cntrl_1AW8KM=00000000 00000001
Graphic module 2:
Access to the function module parameters for parameter
channel mapping is possible by means of this graphic
module.
Specify e.g. when reading values:
Code
w
Fbno
w
FCTno
w
•
Setting
Specify “1" when reading withSpecify ”1" when reading with
Operanden:Signalzustände:
-DWLRMW 52KF=+1
-DWLIMW 54KF=+0
-DWLCMW 56KF=+0
-Read/WrMW 58KH=0001
-CodeMW 60KF=+32
-FBno.MW 62KF=+50
-FCTno.MW 64KF=+1
-TypeMW 66KF=+0
-ANZWMW 68KM=00000000 00000010
-SettingMB0KM=00000000
.........DB 12
-DBval1DW 11KF=+300
IntegerRealIntegerReal
0000
ANZW gives the status and the result after completing the FB handling.
w
DWLR, DWLI, DWLC indicates the number of read values.
w
Graphic module 3:
This graphic module indicates the first data of the data
module into which data of the parameter channel are
written, or from which values are read.
239499 040 50511
Quick entrance
4.2 Quick entrance with S7
Test environment
The following components are required for the test set-up:
Programming unit (PG740 recommended)
w
Automation unit
w
w
w
w
4.2.1 Example of a test environment:
A KS800-DP with address 5 shall be connected to a CPU315-2 DP via PROFIBUS-DP. Process data module
B is selected (8 process data channels and parameter channel). Data shall be transmitted in fix point format.
Before taking the test environment into operation, you should ensure that the automation units do not contain
g
user software (“initial clear”).
Procedure:
w
w
w
CPU315-2 DP
-
KS800-DP
Engineering set (order no. 9407 999 09x11)
Cable
PROFIBUS cableautomation unit i KS800-DP
-
programming unit i automation unit
-
Establishing the communications
Configuring the instruments
Adjust address 5 on KS800-DP (via coding switch or engineering tool) and connect it to the
-
network.
-Activate bus terminating resistors at the controller connector and at the (S7) PLC connector.
PROFIBUS network configuration
-Insert the disk (engineering set) into
the programming unit.
-De-archive the project example.
(A:\KS800DP\S7_FB
\EXAMPLE
\KS800dmo.arj)
-Open project KS800dmo
-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, I/O
testing and calling up the parameter channel
are possible by means of the variable tables (VAT x) enclosed in the project.
9499 040 5051124
VAT 1:
Shows the process data of all channels (fix
point). Only channel 1 can be seen in the
figure opposite.
Example channel 1:
(set-point specification = 30
output variable = 40 %
manual operation)
VAT 2:
Access to the function module parameters
for parameter channel mapping is possible
by means of this variable table.
Quick entrance
Specify e.g. when reading fix point values:
CodeNo, FBNo, FKTNo, Type = 0
w
(Ä Chapter )
Service = 0x 0001
w
Start_FixP = 1
w
ANZW_FixP indicates the status and
w
the result after completing the FB
handling.
DWLR, DWLI, indicate the number
w
of read values.
The bottommost figure shows the first
data of a data module into which the
parameter channel data are written, or
from which values are read.
259499 040 50511
Function block protocol
5Function block protocol
5.1 Data structuring
Due to the variety of information to be processed in KS800, logically related data and actions are grouped
into function blocks. A function block has input data, output data, parameters and configuration data. 25
function blocks are defined for KS800. They are addressed via fixed block addresses (FB no.). Each block is
also grouped in individual functions. Functions are addressed via function numbers (fct. no.). Function
number 0 addresses function-specific data.
9499 040 5051126
5.2 CODE tables
5.2.1
Structure of configuration words (C.xxxx)
The configuration words given in the following code tables comprise several partial components, which can
be transmitted only in common.
The data in the table must be interpreted as follows:
Example (C100): CodeDescr. R/W TypeDescriptionRange
71C100R/W INTCFunc: Controller function
WFunc:Set-point function
DescriptionCFuncWFunc
Thousands HundredsOnes
Range
xxz
00 ... 070...1
(T,H)
(E)
Function block protocol
0..xx0z
Example: 2-pnt. controller;
Set-point / cascade
- For transmission of configuration words, see chapter page 19.
g
- The possible settings of the configuration words are given in the KS800
function description (order no.: 9499 040 49218)
5.2.2 INSTRUMENT(FB no.: 0type no.: 0)
All data which are valid for the overall instrument are grouped in function block ‘INSTRUMENT’.
Process data
General
Code Descr.R/W TypeDescriptionRangeRem.
01Unit_State 1RST1Status 1
10Block 13..15, 18RBlock
13Write ErrorRINTError during last write access0, 100...127
14Write Error
Position
15Read ErrorRINTError during last read access0, 100...127
16DPErrRICMP Error messages from DP module
17DPAdr_effRINTEffective PROFIBUS address0...126
18TypeRINTType no. of function block0
20Block 21...27RBlock
21HWbasRINTBasic HW options: module A, P
23SWoptRINTSW options 1
24SWcodRINTSW code no. 7th-10th digit of 12NCwxyz
25SWversRINTSW code no. 11th-12th digit of 12NC00xy
26OPVers
27EEPVers
31OpModR/W INTInstrument switch-over to configuration mode (only after 1) 0
32OstartgR/W INTStop/start self-tuning for all group controllers0..1
33UPDR/W INTAcknowledgement of local data change0..1
34HC_resetR/W INTHeating-current-reset / Quicktest0...3
1)
1)
RINTPosition of last write access error0...99
RINTOperating version
RINTEEPROM version
Instrument switch-over to online mode (only after 0)1
Cancellation of configuration mode (only after 0)2
0204
(Function no.: 0)
A
B
C
D
E
F
G
G2
1) Data are reserved for distinction of internal versions in future applications.
Bus access not successfulno errorerror
Faulty parameter setting telegram no errorerror
Faulty configurationno errorerror
No more data exchangeno errorerror
always ‘0’
COM200
TH Z E
Basic version without COM2
COM2 with CANopen
COM2 with PROFIBUS-DP
COM2 with ISO1745
Example: Value ‘HWbas = 0200‘ means that the addressed instrument has a COM2 interface with
PROFIBUS connection.
Rem. D SWopt
Basic version
Water cooling (so far not available)
Rem. E SWCod
THZE
7th digit8th digit9th digit10th digit
Example: Value ‘SWCod= 7239’ means that the software for the addressed instrument contains code
number 4012 157 239xx.
Rem. F SWvers
THZE
0011th digit12th digit
Example: Value ‘SWVers= 11‘ means that the software for the addressed instrument contains code number
4012 15x xxx11.
Rem. G UPD
Changing a parameter value or a configuration value via an interface is indicated in the UPD flag. After
power recovery, this bit is also set. The flag which can be read also via code UPD can be reset (value =0).
Rem. G2 HC_reset
Hc_reset = 0 normal
= 1 Reset of all heating currents
= 2 Starting a quicktest
= 3 Reset of all heating currents with following quicktest
After finishing of the chosen softwareroutine, the value of HC_reset is set 0 automatically.
00 0 0
01 0 0
02 0 0
03 0 0
Version00
TH Z E
00 0 0
01 0 0
9499 040 5051128
Function block protocol
I/O connection
Code Descr.R/W TypeDescriptionRangeRem.
0Block 1...2RBlock
1State_alarm_out RST1Status alarm outputs
2State_dioRST1Status digital inputs/outputs
20Block 21...24RBlock
21SnOEMOptRINTSerialnumber OEM-Field
22SnFabMonthRINTSerialnumber Produktion month
23SnCntHiRINTSerialnumber Counter High
24SncntLoRINTSerialnumber Counter Low
30Block 31...33RBlock
31Fdo1R/W INTForced digital outputs: OUT1 ... OUT8
32Fdo2R/W INTForced digital outputs: OUT9 ... OUT16
33Fdo3R/W INTForced digital outputs: OUT17 ... OUT19
Rem. H State_alarm_out
MSBLSB
D7D6D5D4D3D2D1D0
Bit no.NameAllocationStatus ‘0’Status ‘1’
R1Relay 1offon
D0
R2Relay 2offon
D1
R3Relay 3offon
D2
do1_12 AL Alarm outputshort circuit OUT1 ... OUT12offon
D3
HCscALAlarm message heating current short circuitoffon
Yeff1RINTEffective correcting variable of channel 1
HC1RINTHeating current of channel 1
Xeff2RINTEffective process value of channel 2
Yeff2RINTEffective correcting variable of channel 2
HC2RINTHeating current of channel 2
...
Xeff8RINTEffective process value of channel 8
Yeff8RINTEffective correcting variable of channel 8
HC8RINTHeating current of channel 8
State_alarm_out 1RST1Alarm output status of channel 1
State_alarm_out 2RST1Alarm output status of channel 2
...
State_alarm_out 8RST1Alarm output status of channel 8
GProcessPar
Code Descr..Channel R/W Type DescriptionRangeRem.
B2Wvol1R/W INTVolatile set-point of channel 1
W21R/W INTAdditional set-point of channel 1
Yman1R/W INTAbsolute correcting variable of channel 1
Wboost1R/W INT
Tboost1R/W INT
Wvol2R/W INTVolatile set-point of channel 2
W22R/W INTAdditional set-point of channel 2
Yman2R/W INTAbsolute correcting variable of channel 2
Wboost2R/W INT
Tboost2R/W INT
...
Wvol8R/W INTVolatile set-point of channel 8
W28R/W INTAdditional set-point of channel 8
Yman8R/W INTAbsolute correcting variable of channel 8
Wboost8R/W INT
Tboost8R/W INT
(Funktions-Nr: 10)
H
H
H
(Funktions-Nr: 11)
9499 040 5051130
Function block protocol
GControlPar
Code Descr.Channel R/W Type DescriptionRangeRem.
B2A/M1R/W INTAutomatic / manual switch-over of channel 1
Coff1R/W INTController on/off of channel 1
w/W21R/W INTSwitch-over w/W2 of channel 1
Ostart1R/W INTSelf-tuning start of channel 1
SoftStartEnable1R/W INT
BoostStartEnable 1R/W INT
A/M2R/W INTAutomatic / manual switch-over of channel 2
Coff2R/W INTController on/off of channel 2
w/W22R/W INTSwitch-over w/W2 of channel 2
Ostart2R/W INTSelf-tuning start of channel 2
SoftStartEnable2R/W INT
BoostStartEnable 2R/W INT
...
A/M8R/W INTAutomatic / manual switch-over of channel 8
Coff8R/W INTController on/off of channel 8
w/W28R/W INTSwitch-over w/W2 of channel 8
Ostart8R/W INTSelf-tuning start of channel 8
SoftStartEnable8R/W INT
BoostStartEnable 8R/W INT
(Funktions-Nr: 12)
GAlarmPar
Code Descr.Channel R/W Type DescriptionRangeRem.
B2LimL1R/W INTLow Alarm of channel 1
LimH1R/W INTHigh Alarm of channel 1
LimLL1R/W INTLow Low Alarm of channel 1
LimHH1R/W INTHigh High Alarm of channel 1
LimL2R/W INTLow Alarm of channel 2
LimH2R/W INTHigh Alarm of channel 2
LimLL2R/W INTLow Low Alarm of channel 2
LimHH2R/W INTHigh High Alarm of channel 2
...
LimL8R/W INTLow Alarm of channel 8
LimH8R/W INTHigh Alarm of channel 8
LimLL8R/W INTLow Low Alarm of channel 8
LimHH8R/W INTHigh High Alarm of channel 8
(Funktions-Nr: 13)
319499 040 50511
Function block protocol
GPIDPar
(Funktions-Nr: 14)
Code Descr.Channel R/W TypeDescriptionRangeRem.
B2Xp11R/W INTProportional band of channel 1
Tn11R/W INTIntegral time of channel 1
Tv11R/W INTDerivative time of channel 1
T11R/W INTmin. cycle time of channel 1
Xp12R/W INTProportional band of channel 2
Tn12R/W INTIntegral time of channel 2
Tv12R/W INTDerivative time of channel 2
T12R/W INTmin. cycle time of channel 2
...
Xp18R/W INTProportional band of channel 8
Tn18R/W INTIntegral time of channel 8
Tv18R/W INTDerivative time of channel 8
T18R/W INTmin. cycle time of channel 8
Parameter a. configuration data
General
CodeDescr.R/W TypeDescriptionRangeRem.
B371 C900
72 Adr1
COM1
1)
R/W INTProt: Protocol type
Baud: Baudrate
1)
R/W INTCOM1: Instrument address:0..99
(T)
(H,Z)
(function no.: 0)
0..xyy0
73 C904R/W INTFreq:Mains frequency 50/60
Alm-Ver: Alarm version
(T)
(H)
0..x000
Mode-out:Configuration-version of the
(Z)
(E)
(T)
(H,Z)
0..wxyz
0..99
0..255
0..126
(function no.: 2)
1)
74 C902
R/W INTProt: Protocol type
COM2
1)
75 Adr2
R/W INTCOM2: Instrument address: ISO1745 (def. 0)
I/O connection
analog outputs (old/new)
Mode-out current zero 0/4 mA
Function block ”Freely definable” defines data, which can be read only by block access 20 or 30. The
ComWrite data can also be changed by mean of keys 31 – 38. Additionally, this Profibus interface setting
provides the values for the relevant data modules.
Dependent of the adjusted parameter, the value is output as INT or status. Undefined values are output
in INT format with –31000.
9499 040 5051134
Parameter- a. Configuration-Data
Function block protocol
ComRead
CodeDescr.R/WTypeDescriptionRangeRem.
B241 ComReadBlock1R/WINTFunctionblocknumber for value 10 … 77
42 ComReadFctKey1R/WINTFunktionnumber and code for value 10 … 2999
43 ComReadBlock1R/WINTFunctionblocknumber for value 20 … 77
44 ComReadFctKey1R/WINTFunktionnumber and code for value 20 … 2999
45 ComReadBlock1R/WINTFunctionblocknumber for value 30 … 77
46 ComReadFctKey1R/WINTFunktionnumber and code for value 30 … 2999
47 ComReadBlock1R/WINTFunctionblocknumber for value 40 … 77
48 ComReadFctKey1R/WINTFunktionnumber and code for value 40 … 2999
49 ComReadBlock1R/WINTFunctionblocknumber for value 50 … 77
51 ComReadFctKey1R/WINTFunktionnumber and code for value 50 … 2999
52 ComReadBlock1R/WINTFunctionblocknumber for value 60 … 77
53 ComReadFctKey1R/WINTFunktionnumber and code for value 60 … 2999
54 ComReadBlock1R/WINTFunctionblocknumber for value 70 … 77
55 ComReadFctKey1R/WINTFunktionnumber and code for value 70 … 2999
56 ComReadBlock1R/WINTFunctionblocknumber for value 80 … 77
57 ComReadFctKey1R/WINTFunktionnumber and code for value 80 … 2999
ComRead
CodeDescr.R/WTypeDescriptionRangeRem.
B241 ComWriteBlock1R/WINTFunctionblocknumber for value 10 … 77
42 ComWriteFctKey1 R/WINTFunktionnumber and code for value 10 … 2999
43 ComWriteBlock1R/WINTFunctionblocknumber for value 20 … 77
44 ComWriteFctKey1 R/WINTFunktionnumber and code for value 20 … 2999
45 ComWriteBlock1R/WINTFunctionblocknumber for value 30 … 77
46 ComWriteFctKey1 R/WINTFunktionnumber and code for value 30 … 2999
47 ComWriteBlock1R/WINTFunctionblocknumber for value 40 … 77
48 ComWriteFctKey1 R/WINTFunktionnumber and code for value 40 … 2999
49 ComWriteBlock1R/WINTFunctionblocknumber for value 50 … 77
51 ComWriteFctKey1 R/WINTFunktionnumber and code for value 50 … 2999
52 ComWriteBlock1R/WINTFunctionblocknumber for value 60 … 77
53 ComWriteFctKey1 R/WINTFunktionnumber and code for value 60 … 2999
54 ComWriteBlock1R/WINTFunctionblocknumber for value 70 … 77
55 ComWriteFctKey1 R/WINTFunktionnumber and code for value 70 … 2999
56 ComWriteBlock1R/WINTFunctionblocknumber for value 80 … 77
57 ComWriteFctKey1 R/WINTFunktionnumber and code for value 80 … 2999
(Funktionsnr: 0)
(Funktionsnr: 0)
B
B
Rem. B Data structure
Definition to which data an access is made, the following entries are required:
Function block number r ComReadBlock or ComWriteBlock
w
Function number + individual code r ComReadFctKey or ComWriteFctKey
w
Example::
If the Wvol value for controller 2 (controller description1-8)forComRead must be selected,
the values are composed as follows:
All data which concern acquisition and processing of all input values (analog/digital) are grouped in function
block ‘INPUT’. The data are available once per controller channel.
Process data
General
Code Descr.R/WTypeDescriptionRangeRem.
00BlockRBlockBlock access (1, 3)
1Input_x_FailRST1Signal input x fail
3x1RFPMain variable
10BlockRBlockBlock access (13, 18)
13INP1RFPRaw measurement value before measured value correction
18Function TypeRINTType no. of function block112
Rem. A Status byte Input_X_Fail:
MSBLSB
D7D6D5D4D3D2D1D0
Bit no.NameAllocationStatus ‘0’Status ‘1’
INP1FInput 1 failnoyes
D0
D1...D5
‘0’always ‘0’
‘1’always ‘1’
D6
D7
Parity
input processing of analog signals(function no.: 0)
A
Parameter a. configuration data
ME/V1
CodeDescr.R/WType DescriptionRangeRem.
B241 X1
42 X1
43 X2
44 X2
B371 X0R/WFPPhys. value at 0%-999..9999
72 X100R/WFPPhys. value at 100%-999..9999
73 X
Fail
74 T
fm
75 T
kref
76 C200R/WINTType:sensor type
77 C205R/WINTFail:sensor break behaviour
78 C190R/WINTSignal allocation of digital signals:
R/WFPMeasured value correction X1 input-999..9999
in
R/WFPMeasured value correction X1 output-999..9999
out
R/WFPMeasured value correction X2 input-999..9999
in
R/WFPMeasured value correction X2 output-999..9999
out
R/WFPSubstitute value with sensor fail-999..9999
R/WFPFilter time const. measured value process.0.0 .. 999.9
R/WFPReference TC0...60 °C / 32...140°F
Measured value INP1 : acquisition and processing(function no.: 1)
(T,H)
0..xxy0
Unit:unit
STk:Source Tk
XKorr: enable process value corr.
Controller off
w/w2
(Z)
(T)
(H)
(Z)
(Z)
(E)
1..wxy0
0...00xy
9499 040 5051136990914
5.2.6 CONTR(FB no.: 50 ... 57Type no.: 91)
All data which concern the controller are grouped in function block ‘CONTR’. They are available once for
each controller channel.
Process data
General
CodeDescr.R/WTypeDescriptionRangeRem.
00BlockRBlockBlock access (1...9)
1Status 1RST1Status 1
3WRFPEff. set-point
4XRFPEff. process value
5YRFPEffective output value
6xwRFPControl deviation
13Status Alarm x RINTStatus x and Alarm xB1
18TypeRINTType no. of function block90
20BlockRBlockBlock access (21...26)
21XeffRFPEff. process value
22YeffRFPEffective output variable
23HCRFPHeating current measureement value
24Unit_StateRICMPInput values (di)Ä page 12
25Alarm_xRICMPAlarm valuesÄ page 13B2
26Status_xRICMPStatus informationÄ page 13
30BlockRBlockBlock access (31...38)
33A/MR/WINTAutomatic/manual switch-over0..1
34OStartR/WINTOptimization start0..1
35We/iR/WINTWext/Wint switch-over0..1
36w/w2R/WINTw/w2 switch-over0..1
38CoffR/WINTController off/on0..1C
00BlockRBlockBlock access (1, 3)
1State_Tune1RST1Status TuningD
3ParNeffRINTEff. parameter set number0...1
30BlockRBlockBlock access (31...39)
31ParNrR/W INTParameter set number effective0 .. 1
32Tu1RFPDelay time heating0...9999 s
33Vmax1RFPRate of increase heating0,000...9,999 %/s
34Kp1RFPProcess gain heating0,000...9,999
35MSG1RINTError code of self-tuning heating0...8
36Tu2RFPDelay time cooling0...9999 s
37Vmax2RFPRate of increase cooling0,000...9,999 %/s
38Kp2RFPProcess gain cooling0,000...9,999
39MSG2RINTError code of self-tuning cooling0...8
Parity
Output variable processing(function no.:4)
Self-tuning(function no.:5)
9499 040 5051138
Rem. D Status 1 Tuning ‘State_Tune1’
MSBLSB
D7D6D5D4D3D2D1D0
Bit no.NameAllocationStatus ‘0’Status ‘1’
OStabProcess at restnoyes
D0
OrunOptimization runoffon
D1
OerrOptimization resultOkerror
D2
D3...D5
‘0’always ‘0’
‘1’always ‘1’
D6
D7
Parity
Parameter a. configuration data
Function block protocol
General
CodeDescr.R/W Type DescriptionRangeRem.
0..xxyz
B371 C100R/W INT CFunc: Controller function
CType: Controller type
WFunc:set-point function
72 C101R/W INT CMode:Controller output action
CDiff: x/x-w Differentiat.
CFail: Behaviour with sensor fail
CAnf:Start-up circuit
73 C700R/W INT OMode:Optimization mode
OCond: Process at rest.
OGrp:Allocation group opt.
OCntr: Controlled adaptation mode
74 C180R/W INT SWext: Source for Wext(T)0..x000
Set-point
CodeDescr.R/WTypeDescriptionRangeRem.
B241 W0R/WFPMin. set-point limit f. Weff-999..9999
1) Datum has swich-off function; additional data value ‘-32000’
Control algorithm (function no.: 3)
399499 040 50511
(1)
Function block protocol
Output variable
CodeDescr. R/WTypeDescriptionRangeRem.
B241Y
42Y
43Y0R/WFPWorking point f. output variable-105..105 %
44YhR/WFPMax. mean value of output5..100%
45LYhR/WFPLimit for mean value formation0,1 .. 10,0
R/WFPMin. output limiting-105..105 %
min
R/WFPMax. output limiting-105..105 %
max
Tuning
CodeDescr.R/WTypeDescriptionRangeRem.
B241YOptmR/WFPOutput variable during process at rest-105..105
42dYoptR/WFPStep height during identification5..100
43POptR/WINTParameter set to be optimized0...1
44OXsdR/WFPHysteresis with parameter switch-over0.0..9999
45Trig1R/WFPTrigger point 10.0..9999
Paramset x
CodeDescr.R/WType DescriptionRangeRem.
B241Xp1R/WFPProportional band 10.1..999.9
42Tn1R/WFPIntegral time 10..9999
43Tv1R/WFPDerivative time 10..9999
44T1R/WFPMin. cycle time 10.4..999.9
45Xp2R/WFPProportional band 20.1..999.9
46Tn2R/WFPIntegral time 20..9999
47Tv2R/WFPDerivative time 20..9999
48T2R/WFPMin. cycle time 20.4..999.9
Output variable processing(function no.: 4)
Self-tuning(function no.: 5)
Control parameter set1/2(function no.: 6,7)
Start-up circuit
CodeDescr. R/WTypeDescriptionRangeRem.
B241YaR/WFPMaximum output value5 .. 100 %
42WaR/WFPStart-up set-point-999 .. 9999
43TPaR/WFPStart-up holding time0 .. 9999 min
(function no.: 10)
9499 040 5051140
5.2.7 ALARM(FB no.: 70 ... 77Type no.: 46)
Function block ‘ALARM’ defines the overall alarm processing of the relevant controller. The data are
available once per controller.
Process data
Function block protocol
General
CodeDescr.R/W TypeDescriptionRangeRem.
00BlockRBlockBlock access (1 .. 3)
1Status_Al1 RST1Alarm status 1
2Status_Al2 RST1Heating current alarm
3HCRFPHeating current meas. value
18TypeRINTType no. of function block46
Rem A Status_Al1
MSBLSB
D7D6D5D4D3D2D1D0
Bit no.NameAllocationStatus ‘0’Status ‘1’
Lim HHAlarm HHoffon
D0
Lim HAlarm Hoffon
D1
Lim LAlarm Loffon
D2
Lim LLAlarm LLoffon
D3
FailFailnoyes
D4
‘0’always ‘0’
D5
‘1’always ‘1’
D6
D7
Rem B Status_Al2
Bit no.NameAllocationStatus ‘0’Status ‘1’
HCAlHeating current alarm channeloffon
D0
LeckAlLeakage current alarm channeloffon
D1
LoopAlLoop-alarm channeloffon
D2
SSRAlShort circuit alarm channeloffon
D3
Fail_HFail-alarm Hoffon
D4
Fail_HHFail alarm HHoffon
D5
‘1’always ‘1’
D6
D7
Parity
MSBLSB
D7D6D5D4D3D2D1D0
Parity
(function no.: 0)
A
B
419499 040 50511
Function block protocol
Parameter a. configuration data
General
CodeDescr.R/WTypeDescriptionRangeRem.
B241LimLR/WFPLow alarm-999..9999
42LimHR/WFPHigh alarm-999..9999
43xsd1R/WFPHigh/low alarm switch. difference0..9999
44LimLLR/WFPLow low alarm-999..9999
45LimHHR/WFPHigh high alarm-999..9999
46LimHCR/WFPHeating current limit value0..HC100
1) Datum has swich-off function; additional data value ‘-32000’
9499 040 5051142
(T,H)
(Z)
(E)
(T)
(H)
(Z)
(E)
(function no.: 0)
1)
0..xxyz
0..wxyz
6Function modules
Function modules
6.1 Function module for SIMATIC
Function module FB206 serves for easy access to the controller parameter and configuration data (in P area).
6.1.1 Structure
The parameters of the function module are:
NameType
A-AKF
E-AKF
DB-SB
DWASW
DWLRW
DWLIW
DWLCW
SERVW
CODEW
FBNRW
FKNRW
TYPW
TIMEKH
ANZWW
Description / function
Start of output bytes for send window
Start of input bytes for receive window
Data module for parameter data
Data word start for order in DB
Number of real values
Number of integer values
d.c. always ‘0’
Service (read/write)
Code
Function block no.
Function no.
d.c. (always ‘0’)
Timeout in time units, decremented with each FB call, must be higher than timeout in DP module.
The current transmission status for the selected data area is given in the display word. The structure of
the display word is:
1514131211109876543210
®
S5
Timeout (FB)
Service faulty
not accepted)
NAK (access by controller
Parity error
Wait for end telegram
Timeout internal (controller)
Reset order
Service (0=Read; 1=Write)
Waits for acknowledgement
The function module reads or writes KS800 parameter/configuration data.
A-A, E-A
w
The input addresses or output addresses of the parameter channel are
entered into these parameters. The addresses are determined during
configuration of the unit connected to the PROFIBUS (Ä Fig.:
S.23)
DB-S
w
DB-S is used for allocation of the data module pertaining to the
function module, in which all FB operations are handled. It must have
been opened previously.
Data words 0...3 of the data module are “provisional markers”, which
FB206
A-A
E-A
DB-S
DWAS
DWLR
DWLI
DWLC
SERV
CODE
FBNR
FKNR
TYP
TIME
ANZW
are enabled again after FB handling.
DWAS
w
DWAS identifies the start of the data area in the data module. The first 4 words after DWAS are
required for internal use in the function module and must not be used for other purposes.Example: 2
data sets shall be stored with high packing density in DB25.
DBxx
...
...
Byte 11
Order ready with error
A-Adr.
P000
P002
P004
P006
...
error
O<%-2>rder ready without
E-Adr.
P000
P002
P004
P006
P007
P008
...
Order running
439499 040 50511
Function modules
FB296 / FB207DB25DB-S: 25
A-ADW 0Provisional marker
E-A...
DB-SDW3
DWASDW4Management call11. DWAS: 4
DWLR...
...DW7
ANZWDW8Data set 13 words user data
DWLR (real), DWLI (integer)
w
These parameters contain the relevant number of received data after a read access. With a write access,
the number of data to be transmitted is specified. DWLC is not required in KS800, value must be set to
0.
...
DW10
DW11Management call22. DWAS: 11
...
DW14
DW15Data set 210 words user data
...
DW24
SERV
w
This parameter determines the access type (write / read) Ä ID1.
Write access:F0 =IntegerRead access:0=Integer
F1 =Real1=Real
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 = integerreal values are transmitted as integer (without digits behind the decimal point)
1 = realreal values are transmitted as FixPoint (1 digit behind the decimal point)
Block access (tens block)
This access (code x0) can be used for reading max. nine process values (always as REAL values) of a
function.
Block acces (overall block)
This access can be used for reading or writing all parameter (code 178) and configuration data (code 179) of
a function. The following conditions are applicable to this access:
For writing the data with ‘code B3 = 179’, the instrument must be switched to the configuration mode
w
(Ä see page 27 ‘OpMod’). All entered new configuration data and parameters are effective only,
when the instrument was switched back to on-line.
All data of a message must be defined, omissions are not permissible.
w
The complete message must be transmitted also, if parts of a message in the controller are not used
w
(HW and SW options). Checking of the non-existing data is omitted.
With faulty block write accesses, the following is valid: a message is replied with NAK, if at least one
w
datum is faulty. Already valid values are accepted.
The message structure with block accesses with code B2/B3 is shown using two examples below. The order
of data to be transmitted is given in the relevant code table.
Valid values for ID1:
Configuration as FixPoint:0, 1 Transmission of real values each as a FixPoint value
CODE
w
The code identification is decimal and the range is within ‘00’...’99’
as well as ‘178’ = B2 and ‘179’ = B3.
9499 040 5051144
Function modules
FBNR. (function block number)
w
A function block is addressed by means of a function block number. This function block number
can be within ‘0’ and ‘250’.
Function block number ranges:
0general data for the overall instrument
1 - 99 fixed function blocks
FKTNR (function number)
w
A function as a partial address of a function block is also addressed with a function number.
This function number can be within ‘0’ and ‘99’.
Function number ranges:
0Function General
1 - 99other functions
TYP (function type)
w
A function type number is also assigned to each function block. This function type
number is within ‘0’ and ‘111’.
Function type range:
0Function type General
1 - 111 other function types
TIME
w
Timeout counter: Range 0x0000 ß TIME ß 0x7FFF
- is decremented during each PLC cycle (max. 32767)
- with 0 Timeout.
If the CPU is too fast, call up FB206/FB207 with delay via timer module.
ANZW
w
This display word represents the current transmission status. Bit 4 can be used as an input
for resetting the FB 206 / FB 207.
The S7-FB handling principle corresponds to the S5 variant. When starting an order and as long as the order
is active, calling up the FB is indispensable.
Dependent of S7-CPU and DP-Master, the I/O handling is different. With a CPU315-2 DP with on-board DP
interface, SFC modules 14 and 15 must be used for consistent data transmission. SFC modules 14 and 15
copy the I/O areas into the marker or data module area. When using an external CP (CP 342-5 DP), the
relevant DP-SEND and DP-RECEIVE FBs at the cycle start and end must be called up.
The FB has an instance DB, which must also be specified with FB call.
6.2.1 Structure
The call parameters of the function module are:
NameType
A-startPointer
E-startPointer
DB-ParaPointer
ServiceWORD
Code_nrWORD
FB_nrWORD
FKT_nrWORD
TypWORD
TimeoutDWORD
DWLRWORD
DWLIWORD
DWLCWORD
ANZWW
Description / function
Output word address area start (e.g. address data area ‘RECORD’ of SFC 15, Ax, y when using an
external CP). The DB no. must also be transmitted when specifying a data word (e.g. DB4.DBX0.0)
Input word address area start (e.g. address data area ‘RECORD’ of SFC 15, Ex, y when using an
external CP). The DB no. must also be transmitted when specifying a data word (e.g. DB4.DBX0.0)
Specification of data module with the parameter setting data. The entry comprises the data module
no. and the data word no. at which the parameter data start. Thereby,no
into account. The data are interpreted as parameter data (useful data) by the specified address. The
DB must be specified in the following form e.g. DB6.DBX10.0
Service (Read/Write)
Code
Function block no. (channel addressing)
Function no.
No function (always ‘0’)
Timeout value, is decremented with each call. With a value of = 1, the order is cancelled with error
message ‘timeout’.
Length of real values
Length of integer values
D.c. always ‘0’
The current transmision status for the selected data area is given in the display word. The structure of
the display word is:
1514131211109876543210
®
S7
offset needs being taken
Service faulty
Timeout (FB)
The function module reads or writes KS800 parameter/configuration data.
A-start, E-start
w
The parameter channel input addresses or output addresses are entered into these parameters. The
addresses are determined during configuration of the unit connected to the PROFIBUS (STEP 7 hardware configuration)
DB-Para
w
DB-Para is a pointer to the data module, into which read data are written or from which data are taken
when writing.
9499 040 5051146
not accepted)
NAK (access by controller
Parity error
Timeout internal (controller)
Waiting for end telegram
Service (0=Read; 1=Write)
Reset order
Waits for acknowledgement
Order finished with error
Order running
Order finished without error
Function modules
Service
w
This parameter determines the access type (write / read) Ä ID1.
Write access:F0 =IntegerRead access:0=Integer
F1 =Real1=Real
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 = integerreal values are transmitted as integer (without digits behind the decimal point)
1 = realreal values are transmitted as FixPoint (1 digit behind the decimal point)
Block access (tens block)
This access (code x0) can be used for reading max. nine process values (always as REAL values) of a
function.
Block acces (overall block)
This access can be used for reading or writing all parameter (code 178) and configuration data (code 179) of
a function. The following conditions are applicable to this access:
For writing the data with ‘code B3 = 179’, the instrument must be switched to the configuration mode
w
(Ä see page 27 ‘OpMod’). All entered new configuration data and parameters are effective only,
when the instrument was switched back to on-line.
All data of a message must be defined, omissions are not permissible.
w
The complete message must be transmitted also, if parts of a message in the controller are not used
w
(HW and SW options). Checking of the non-existing data is omitted.
With faulty block write accesses, the following is valid: a message is replied with NAK, if at least one
w
datum is faulty. Already valid values are accepted.
The message structure with block accesses with code B2/B3 is shown using two examples below. The order
of data to be transmitted is given in the relevant code table.
Valid values for ID1:
Configuration as FixPoint:0, 1 Transmission of real values each as a FixPoint value
CODE
w
The code identification is decimal and the range is within ‘00’...’99’
as well as ‘178’ = B2 and ‘179’ = B3.
FBNR. (function block number)
w
A function block is addressed by means of a function block number. This function block number
can be within ‘0’ and ‘250’.
Function block number ranges:
0general data for the overall instrument
1 - 99 fixed function blocks
FKTNR (function number)
w
A function as a partial address of a function block is also addressed with a function number. This
function number can be within ‘0’ and ‘99’.
Function number ranges:
0Function General
1 - 99other functions
TYP (function type)
w
A function type number is also assigned to each function block. This function type number is
within ‘0’ and ‘111’.
Function type range:
0Function type General
1 - 111 other function types
TIME
w
Timeout counter: Range 0x0000 ß TIME ß 0x7FFF
- is decremented during each PLC cycle (max. 32767)
- with 0 Timeout.
If the CPU is too fast, call up FB206/FB207 with delay via timer module.
DWLR (Real), DWLI (Integer)
w
These parameters contain the relevant number of received data after a read access. With a write access,
479499 040 50511
Function modules
the relevant number of data to be transmitted is filled in. DWLC is not required in KS800, value must
be set to 0.
ANZW
w
This display word represents the current transmission status. Bit 4 can be used as an input for resetting
the FB 206 / FB 207.
9499 040 5051148
7Annex
7.1 Terms
COM PROFIBUSConfiguration tool (formerly COM ET200) of the Siemens company for PROFIBUS
FBAbbr. f. function block
FktAbbr. f. function
ETAbbr. f. Engineering Tool
Functiona self-contained partial function of a function block seen from the interface
Function blockself-contained processing unit
GSD fileDevice-Database-File
HWAbbr. f. hardware
ISO1745Standard communication protocol ISO 1745, ASCII-based
PC-interfacefront-panel controller interface for connecting an engineering tool
PCIProcess Control Instrument
PCI protocolISO 1745-based protocol, implemented for PMA controllers
PNOPROFIBUS user organisation
PROFIBUS-DPStandard communication protocol acc. to EN50170 vol.2 (DP: decentral periphery)
RS422Standard 4-wire connection, full duplex, (EIA RS 422);
in this case: separate send/receive channels with up to 32 connected units
RS485Standard 2-wire connection, half duplex, (EIA RS 485)
S5 / S7Siemens AG PLC series
Serial interfacebussable rear-panel controller interface
SWAbbr. f. software
Type fileConfiguration file for COM ET200