Meaf 66499 1 en 0701
Meaf 66499 1 en 0701
Meaf 66499 1 en 0701
Operating instructions
Profibus-DP Protocol
MEAF-66499-1-en-0701
2 Table of contents Profibus-DP Protocol
Copyright
Bühler reserves all rights to this document and the device described therein.
Without the prior written permission of Bühler, this document must not, either in
whole or in part, be reproduced, copied or, in any form, in whole or in part, made
accessible to a third party, or be used for any purpose other than that for which it
was made available to the recipient.
Contents
These operating instructions contain basic information on the structure, function,
assembly, start-up, operation and maintenance of the serial device interfaces.
All appendices are integral parts of the operating instructions.
Safety
These devices are built in compliance with the recognized safety engineering
principles. In spite of this, inexpert use may result in damage to persons or
property.
Warranty
Non-compliance with the operating instructions will result in the lapse of the
warranty; this also applies to alterations or repairs to the control unit without the
prior written permission of Bühler. Similarly, Bühler cannot accept any liability for
damage or accidents caused by inexpert handling, overloading of the equipment or
circumstances beyond our control.
Liability
Bühler is only liable for direct damage to persons and property under the applicable
product liability law if the control unit is used within the area specified in these
operating instructions, or in a contractually agreed application.
Bühler is not liable for any damage not originating in the control unit itself
(loss of use, production and profit or other direct or indirect damage).
Note:
These operating instructions apply from program version
SCALEV38D
BAGDV13G
MYFC/MOZF27B
DevCTRL21A
Table of contents
1 Safety................................................................................................................7
1.1 General ..............................................................................................................................7
1.1.1 Duty of instruction...............................................................................................7
1.1.2 Accident prevention ............................................................................................7
1.2 Notes on safety at work .....................................................................................................7
1.2.1 Start-up and installation......................................................................................7
1.2.2 Operation of the control unit ...............................................................................7
1.2.3 Electrical wiring...................................................................................................8
1.3 Safety concept for control units .........................................................................................8
2 Description.......................................................................................................9
2.1 Summary............................................................................................................................9
2.2 Order numbers for Profibus-DP option ..............................................................................9
2.3 Technical data..................................................................................................................10
21 Examples........................................................................................................91
21.1 Schematic structure of the data communication..............................................................91
21.1.1 Simple example: read actual value ..................................................................91
21.1.2 More complex example: transmit nominal values, control signals and query
actual values.....................................................................................................92
21.2 Example: S5 as Profibus master, MEAF as slave ...........................................................94
1 Safety
1.1 General
Note:
These operating instructions must always be kept to hand near the control unit.
Note:
Safety devices, warning and instruction signs must be kept clean and should
never be removed or covered.
Damaged warning and instruction signs must be replaced immediately with
new ones.
2 Description
2.1 Summary
To complement the Bühler host protocol, an extension with Profibus-DP built to the
standard EN 50170 is offered which is suitable for all types of scales.
The sub-module in question is equipped with a Siemens SPC3 Profibus controller.
This removes the need for any additional wiring, as the connecting speed can be
selected so as to allow even critical control functions.
In the event of a failure of the MEAF control unit (deadlock), the corresponding
diagnostic flags are set in the protocol. These can then be evaluated by a master
unit so that suitable action can be taken. Conversely, in the event of a master
failure or connection problems the MEAF control unit can effect a control stop in
order to restore the plant to a safe condition.
If ordered together with a complete MEAF control unit See special instructions
(chapter 3.3)
Subsequent orders, PCB as individual part EKP-84183-81
24 V DC
{ }
Option Profibus
1 2 3 4
A B
X49
X20 S4
F3
b } 1 2 3 4
A B
X42
A B
X41
X11
c X1 S3 X9
X2 X3 X4 X5 X6 X7 X8
Fig. 3.1
SYS.TYP The structure of the transmitted and received data varies according to the
selected type of scales.
SYS.REM The transmitted data are only accepted by the device if the parameter is
set to REMP. The received data can be read with any setting.
HOST.ADR Profibus-DP and host address
HOST.WFOR 2) Weight format for Profibus and serial interface
FIX Fixed format
kg with DUMP, DIFFG, DIFF and DCOS
with BAG according to ADC.DIV
g with DIFFM via Profibus
DIV according to ADC.DIV
g with DIFFM via Profibus
P-DP 1) Profibus-DP diagnosis
0= Timeout / communication interrupted
1= Fault during initializing
2= No fault
3) Extended Profibus-DP diagnosis
It is possible to switch between the individual displays of the extended
Profibus diagnosis by simultaneously pressing the «F» key and the
«Plus» or «Minus» key. The displays B0 to B3 correspond to the received
control flags bytes 0 to 3. The displays WR1 to WR4 represent the data
records that were transmitted from a PLC to the MEAF. RD1 to RD4 on
the other hand represent the received data records of the PLC. A flashing
"ERR" together with a WR-display indicates that incorrect nominal values
were transmitted or that configuration of the MEAF is wrong. The exact
cause can be determined by analyzing the data record concerned.
The display can be updated by pressing the «Enter» key. In this case the
data received next will be recorded.
TCON.MPDP 1) Only with the DMS transmitter it is possible to choose between the
protocols «Standard», «Compact» or Compact consistent». For all other
types of scales, the standard protocol is automatically selected.
ADC.DIV Weight resolution
This is referred to simply as DIV in these operating instructions.
4 Protocol structure
The standard protocol consists of 12 words of consistently transmitted and
received data with a symmetrical structure. These include 4 bytes each of control
or status bits which are transmitted in all cases. 16 bytes contain variable data
(data records) which are defined by a number and an index (number/index of
transmitted and received data record; one byte each).
In these 16 bytes, 16 bit (WORD) or 32 bit (DWORD) data can also be transmitted.
The high-order byte is transmitted to the lowest address.
Only via special functions, the consistent data can be read / written
in the connected control units
(e.g.: SIMATIC S5 = FB192, SIMATIC S7 = SFC14/SFC15).
1)
of data record
BAGDn (1/2/3)
DIFFx (G/-/M)
Transmitted
Received
Meaning
Number
CHECK
DevCtrl
PEARL
DMS-T
MZMN
DUMP
DCOS
SLIDE
MYFC
MOZF
DFCO
FBAL
Index
BAG
0 – X X Empty data record 2) X X X X X X X X X X X X X X X
1 – X Default actual values X X X X X X X X X X X X X X X
2 – X Actual values part 2 X X X X X
3 - X Actual values part 3 X
11 0…255 X Parameter query X X X X X X X X X X X X X
12 0…255 X Parameter query X X X X X X X X X X X X X
126 – X X Date/Time X X X X X X X X X X X X
127 – X General informations X X X X X X X X X X X X X
128 – X X Default nominal values X X X X X X X X X X X X X X X
129 – X X Nominal values part 2 X
136 0…50 X X Recipe X X X X X X X X
137 0…50 X X Recipe part 2 X X
1) For the DMS-T, it is also possible to use the compact protocol, which is described in manual 66388-2.
2) Only valid control or status bit values are transmitted.
The clock can be read with the received data record, permitting a sychronization of
the time.
Transmitted data record 136 (recipe) Index: 0…50 as recipe No. (0 = working recipe)
Byte Name Range [unit] Description
8…9 Relative density 10…300 [0.01 kg/l] Relative density of product (REC.DENS)
(0.10…3.00)
10…11 Gain factor 100…2000 [0.1] Gain factor feeding rate (REC.FACT)
(10.0…200.0)
12…13 Cut-off weight 0…9999 [DIV] Cut-off weight for small batch feeding (REC.CWT)
14…22 n.u.
23 Autom. gain 0…1 Automatic correction of gain factor (REC.CFAC)
factor correction (0 = OFF / 1 = ON)
Received data record 136 (recipe) Index: 0…50 as recipe No. (0 = working recipe)
For data contents, see transmitted data record 136
Transmitted data record 136 (recipe) Index: 0…50 as recipe No. (0 = working recipe)
Byte Name Range [unit] Description
8…9 Relative density 10…300 [0.01 kg/l] Relative density of product (REC.DENS)
(0.10…3.00)
10…11 Correction factor 500…2000 [0.1] Correction factor for adapting actual rate (REC.FACT)
(50.0…200.0)
12…13 n.u.
14…15 Nominal rate 0…1‘000 [0.1 %] For nominal rates < 2%, the value 0 is adopted.
(0.0…100.0 %) (REC.FLOS)
16…17 Mixer frequency 1‘000…7‘000 Frequency of mixer (REC.MIX)
[0.01 Hz]
(10.00…70.00 Hz)
18…19 Type rate 0…9999 [l/h] Volumetric type rate (REC.FTYP)
20…21 n.u.
22 Agitator cutout 0…90 [%] The agitator cuts out the relevant percentage or the
mode speed is accordingly reduced (REC.IOFF)
23 n.u.
Received data record 136 (recipe) Index: 0…50 as recipe No. (0 = working recipe)
For data contents, see transmitted data record 136
Transmitted data record 136 (recipe) Index: 0…50 as recipe No. (0 = working recipe)
Byte Name Range [unit] Description
8…9 Nominal bag MINB…MAXB [DIV] Nominal bag weight (net weight) (REC.SIZE)
weight The nominal bag weight must be between the minimum
(TCON.MINB) and maximum (TCON.MAXB) nominal
bag weights.
10…11 Empty bag 0…MAXB [DIV] Weight of empty bag (tare weight) (REC.EBAG)
weight
12…13 Tolerance 1 0…999 [DIV] Bag overweight or outside tolerance if bag weight >
positive nominal bag weight + tolerance 1 positive (REC.T1+).
0 = no monitoring
14…15 Tolerance 1 0…999 [DIV] Bag underweight or outside tolerance if bag weight <
negative nominal bag weight – tolerance 1 negative (REC.T1–).
0 = no monitoring
16…17 Tolerance 2 0…SIZE [DIV] Bag overweight or outside tolerance if bag weight >
positive nominal bag weight + tolerance 2 positive (REC.T2+).
0 = no monitoring (common alarm)
18…19 Tolerance 2 0…SIZE [DIV] Bag underweight or outside tolerance if bag weight <
negative nominal bag weight – tolerance 2 negative (REC.T2–).
0 = no monitoring (common alarm)
20 Additional time 0…10 [0.1 s] Time delay in addition to TCON.TSTD until weight is
delay for weight (0.0…1.0 s) adopted (REC.TSD+)
check
21…23 n.u.
Received data record 136 (recipe) Index: 0…50 as recipe No. (0 = working recipe)
For data contents, see transmitted data record 136
Transmitted data record 136 (recipe) Index: 0…50 as recipe No. (0 = working recipe)
Byte Name Range [unit] Description
8…9 Nominal bag MINB…MAXB [DIV] Nominal bag weight (Net weight) (REC.SIZE)
weight The nominal bag weight must be between the minimum
(TCON.MINB) and maximum (TCON.MAXB) nominal
bag weight
10…11 Empty weight 10…9999 [DIV] Start closure of discharge gate when weight falls below
this threshold (REC.EWT)
12…13 Tolerance 0…999 [DIV] Tolerance alarm when bag weight > nominal bag weight
positive + tolerance positive (REC.TOL+)
0 = no monitoring
14…15 Tolerance 0…999 [DIV] Tolerance alarm when bag weight < nominal bag weight
negative – tolerance negative (REC.TOL–)
0 = no monitoring
16…17 Fast flow trigger 0…9999 [DIV or Fast flow cut-off point or time according to REC.DOSW.
value 0.01 s] (REC.STRT)
0 = No fast flow
18…19 Dribble flow cut- 0…2000 [DIV] Dribble flow cut-off weight for switching off dribble flow
off weight (REC.CUTW)
20…23 n.u.
n.u. = not used (data are ignored by MEAF)
Transmitted data record 137 (recipe part 2) Index: 0…50 as recipe No. (0 = working recipe)
Byte Name Range [unit] Description
8 Check cycle 1…50 Check weight of every nth bag only (REC.CCYC)
1 = Check every bag
9 Fast feeding by 0…1 1 = Fast feeding by weight (REC.DOSW)
weight 0 = Fast feeding by time
10 Dribble flow 10…200 [0.1 s] Dribble flow nominal time for control system (REC.TDRI)
nominal time (1.0…20.0 s)
11 Fast feed rate 3…99 [%] Fast feed rate (REC.FFLO)
12 Dribble feed rate 3…99 [%] Dribble feed rate (REC.DFLO)
13…23 n.u.
n.u. = not used (data are ignored by MEAF)
Received data record 136 (recipe) Index: 0…50 as recipe No. (0 = working recipe)
For data contents, see transmitted data record 136
Received data record 137 (recipe part 2) Index: 0…50 as recipe No. (0 = working recipe)
For data contents, see transmitted data record 137
Transmitted data record 136 (recipe) Index: 0…50 as recipe No. (0 = working recipe)
Byte Name Range [unit] Description
8…9 Nominal bag MINB…MAXB [DIV] Nominal bag weight (REC.SIZE)
weight
10…11 n.u.
12…13 Tolerance 0…999 [DIV] Tolerance alarm when bag weight > nominal bag weight
positive + tolerance positive (REC.TOL+)
0 = no monitoring
14…15 Tolerance 0…999 [DIV] Tolerance alarm when bag weight < nominal bag weight
negative – tolerance negative (REC.TOL–)
0 = no monitoring
16…17 Fast flow trigger 0…9999 Fast feeding cut-off point or time according to
value [DIV or 0.01 s] REC.DOSW. (REC.STRT)
0 = no fast feeding
(In the case of fast feeding according to weight
[REC.DOSW=1] the value has to smaller than the
nominal bag weight [REC.SIZE])
18…19 Dribble flow cut- 0…2000 [DIV] Dribble flow cut-off weight for switching off dribble feed
off weight (REC.CUTW)
20…21 Relative density 10…300 [0.01 kg/l] Relative density of product (REC.DENS)
(0.10…3.00 kg/l)
22…23 n.u.
Transmitted data record 137 (recipe part 2) Index: 0…50 as recipe No. (0 = working recipe)
Byte Name Range [unit] Description
8 Check cycle 1…50 Check weight of every nth bag only (REC.CCYC)
1 = Check every bag (BAGD1 only)
9 Fast feeding by 0…1 1 = Fast feeding by weight (REC.DOSW)
weight 0 = Fast feeding by time
10 Nominal dribble 10…200 [0.1 s] Nominal dribble feeding time for control system
feeding time (1.0…20.0 s) (REC.TDRI)
11 Fast feeding rate 3…99 [%] Fast feeding rate (REC.FFLO)
12 Dribble feeding 3…99 [%] Dribble feeding rate (REC.DFLO)
rate
13 Recipe output A 0…1 1 = Status bit «Recipe output A» = 1 (REC.RDOA)
14 Recipe output B 0…1 1 = Status bit «Recipe output B» = 1 (REC.RDOB)
15 Actuating signal 0…99 [%] Actuating signal at analog output 2 (REC.RAO2)
at AO2 (BAGD1 only)
16…23 n.u.
Received data record 136 (recipe) Index: 0…50 as recipe No. (0 = working recipe)
For data contents, see transmitted data record 136
Received data record 137 (recipe part 2) Index: 0…50 as recipe No. (0 = working recipe)
For data contents, see transmitted data record 137
Transmitted data record 136 (recipe) Index: 0…20 as recipe number (0 = Working recipe)
Byte Name Range [unit] Description
8…9 Nominal value 0…25.0 [%] With function mode «Percent dampening»:
Nominal dampening MOZE/F in 0.1 % of the product
throughput
With function mode «Control»:
Nominal moisture in 0.1 %
10…11 n.u.
12…13 Moisture offset –99.99…99.99 [%] Moisture offset MYFC in 0.01 %
(for adaptation to the laboratory)
14…15 Maximum dosing 0…6500,0 [l/h] Maximum dosing capacity MOZE/F in 0.1 l/h
capacity
16 Product group 0…9 Product group MYFC
17…23 n.u.
Received data record 136 (recipe) Index: 0…20 as recipe number (0 = Working recipe)
For data contents, see transmitted data record 136
Transmitted data record 136 (recipe) Index: 0…8 as recipe No. (0 = Working recipe)
Byte Name Range [unit] Description
8…9 Free silo number 1) 3) Free silo number, which appears among other things on
the printout (REC.BIN)
10…13 Nominal weight 1) 2) 3) Nominal weight (REC.WTS)
in kg
14…15 Weight tolerance 1) 2) 3) Weight tolerance positive in kg (REC.TOL+)
positive
16…17 Weight tolerance 1) 2) 3) Weight tolerance negative in kg (REC.TOL–)
negative
18…19 Fast flow trigger 1) 2) 3) Fast flow trigger value
value Change-over weight in kg (REC.STRT)
Change-over
Value = 1: no fast flow
weight
20…21 Dribble flow 1) 2) 3) Dribble flow cut-off weight in kg (REC.CUTW)
cut-off weight
22 Fast feed rate 1) 3) Fast feed rate in % (REC.FFLO)
23 Dribble feed rate 1) 3) Dribble feed rate in % (REC.DFLO)
Contrary to most Bühler scales with Profibus connection the recipe loaded last is edited in the case of DCOS
with index 0. However, if another index is selected then this recipe is loaded.
n.u. = not used (data are ignored by MEAF)
1) = 0: value is not accepted
2) Decimal places according to setting DIV / HOST.WFOR (standard no decimal places / fixed format)
3) Nominal value is only accepted in step 1 or 8
Received data record 136 (recipe) Index: 0…8 as recipe No. (0 = Working recipe)
For data contents, see transmitted data record 136
Note the Operating Instructions 66604-1 for the description of the devices.
21 Examples
21.1 Schematic structure of the data communication
21.1.1 Simple example: read actual value
In the case of a dump scale (Dump) only the non-erasable total must be read.
Refer also to chapter 7 for this.
Byte 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23
Hex 0 – – 0 0 0 1 0 X X X –
xxxx xxx0
0
In order for the control bits (bytes 0…3) not to have any influence, bit 0 / byte 3
«Control signals valid» has to be set to 0. Byte 4 = 0 means that the transmitted
data (bytes 8…23) are not considered by the MEAF control unit. When setting byte
6 to 1 the received data record 1 is requested.
Received data
(input at host device)
Byte 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23
Hex X – – X 0 0 1 0 X X X X – X X
Non-e. total
0
The data record numbers, which were previously requested in the transmitted data,
are acknowledged by the bytes 4 and 6. The «non-erasable total» (32 bit value)
can be read at the bytes 16…19.
X) Indeterminate value
–) Not used
21.1.2 More complex example: transmit nominal values, control signals and query actual values
A nominal rate of 10’000 kg/h must be specified for a flow balancer (FBAL) and the
actual rate must be read. First the flow balancer must be started and then stopped.
Refer also to chapter 10 for this.
Step 1, set nominal rate 10'000 kg/h and request actual rate
Transmitted data (output at host device)
Byte 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23
Hex 0 – – 0 80 0 1 0 2710 0 –
10‘000
128
In order to be able to transmit a nominal rate, the transmitted data record 128 must
be selected (byte 4).
Byte 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23
Hex 1 – – 1 0 0 1 0 X X –
0000 0001
0000 0001
0
Byte 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23
Hex X – – X 0 0 1 0 X X X – X X
Actual rate
0
The actual rate is read at the bytes 8…11 (32 bit value).
Byte 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23
Hex 0 – – 1 0 0 1 0 X X –
0000 0000
0000 0001
0
X) Indeterminate value
–) Not used
View of I/O-configuration MEAF. The fields I address/O address are shaded in gray.
It is not possible and there is no need to configure an address:
Write output
SPA FB 192
NAME :IM308C
DPAD : KH F800 default address IM308C
IMST : KY 0,5 IM-Nr.=0;DP-Adr-Slave=5
FCT : KC WO Function=WO (Write Output)
GCGR : KM 00000000 00000000 Not used
TYP : KY 0,100 DB/DX=0 (DB=0/DX=1),No=100
STAD : KF +50 StartAdress=10 (DW50)
LENG : KF -1 Length in byte = -1 (Joker)
ERR : DW 49 ErrCode L=CntByte R=Error
Selection of the preset configuration (only if the MEAF is configured the first time)
MEAF = 12WordIn, 12WordOut consistent
(DMS-transmitter = 4ByteIn, 1ByteOut)
LADDR : Configured start address from the I area of the module from which the
data will be read.
RET_VAL: If an error occurs while the function is active, the return value contains
an error code.
(see STEP7-Help for SFC14/15)
RECORD: Destination / source area for the user data that were read/written.
This must be exactly as long as you configured for the selected
module with STEP 7. Only the data type BYTE is permitted
(e.g.: P#DB100.DBX10.0 BYTE 24).