0% found this document useful (0 votes)
22 views22 pages

PR107

Uploaded by

hadi
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
22 views22 pages

PR107

Uploaded by

hadi
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 22

PROTOCOL COMMUNICATION pag.

1/22

02/06/08
NEMO 96HD/HD+
Profibus DP Interface

NEMO 96 HD/HD+
Profibus DP Interface

Application manual

Table of contents
1. General description
2. Installation of NEMO 96 HD Profibus
3. User Communication PLC – NEMO 96 HD
4. Control and status byte description
5. Telegram control
6. Assignment of measurements
7. Variables description
8. Nemo Manager Description

Revisione B: 02 – 06 - 2008
Revisione C:
Revisione D: Compilato Controllato Approvato
PT10789220
PROTOCOL COMMUNICATION
pag. 2/22

1. General description
The measuring instrument NEMO 96HD works in a Profibus network according to EN50170 with baud rates up to 3
Mbaud.

The functions through the Profibus interface are limited to the reading of the measured values.
The setting of parameters must be done in the local setup.

NEMO 96HD - measuring data can be processed in the PLC software and can be displayed e.g. with corresponding
visualisation systems or operator panels.

2. Installation of NEMO 96HD Profibus


In the PLC project, NEMO 96HD Profibus is to be installed with the corresponding GSD file.

The address space as a Profibus DP slave is between 01 to 126 decimal.


The parameter that must be set locally is :

The address : 01 .. 126

The selected address will be accepted after the device power up.

A module reserves, in the decentralised peripheral field, the following :

- 32 bytes input periphery


- 32 bytes output periphery
PT10789220
PROTOCOL COMMUNICATION
pag. 3/22

3. User Communication PLC - NEMO 96HD


On the application layer (PLC), the telegrams from and to the Profibus module of NEMO 96HD are shaped from 32 bytes
of the output- and input periphery. These telegrams consist fundamentally of a header, which uses 4 bytes and 28 bytes
user data for measured values.

Output Telegrams PLC - NEMO 96HD


Periphery – Output Address Meaning / contents Value

Header byte 0, Telegram - or block number of the segment to 1..MAX decimal


Base address output periphery - offset = be requested
0
Header byte 1 Reserved, not used at this time
Base address output periphery - offset =
1
Header byte 2 Bits for controlling the internal communication 8 Bit binary
Base address output periphery - offset =
2
Header byte 3 Reserved, not used at this time
Base address output periphery - offset =
3
Data byte 0..27 28 user data byte, not used at this time
Base address output periphery - offset =
4..31

Input Telegrams NEMO 96HD - PLC

Periphery – Input Address Meaning / contents Value

Header byte 0 Returned Telegram- / Block-number of the 1..MAX decimal


Base address input periphery - offset = 0 requested block
Header byte 1 Reserved, not used at this time
Base address input periphery - offset = 1
Header byte 2 Reserved, not used at this time
Base address input periphery - offset = 2
Header byte 3 Status messages 8 Bit binary
Base address input periphery - offset = 3
Data byte 0..27 28 bytes user data for measured values WORD, DWORD
Base address input periphery - offset =
4..31

For the transfer of all measured values form NEMO 96HD to the PLC, seven (7) telegrams are necessary.
PT10789220
PROTOCOL COMMUNICATION
pag. 4/22

4. Control and status byte description


Control byte (Output header byte 2 => NEMO 96HD)

Bit 0: Internal Request start/stop


Logical value 1 : this bit has to be set by PLC in order to start the internal retrieving process of data from
internal memory and preparing them for Profibus communication.
After this, the internal operation continues cyclically.

Note : for this reason it would be better to stop the internal processing to avoid the task overload of the
device.

Logical value 0 : this bit has to be reset by PLC in order to stop the internal processing.

Bits 1-7: Not used

Status byte (E-header byte 3 => NEMO 96HD)

Byte 3 of the data returned by NEMO 96HD includes error and status bits with the following meaning.

Bit 0: Not used


Bit 1: Logical value 1 : block number specified in BYTE 0 of the control telegram wrong.
Respect the limits (1..MAX).
Logical value 0 : OK
Bit 2: Internal error
Bit 3: Internal error
Bit 4: Logical value 1 : internal data processing still running
Logical value 0 : internal data processing not running
Bit 5: Logical value 1 : internal data processing completed
Logical value 0 : internal data processing not yet completed
Bit 6-7: Not used
PT10789220
PROTOCOL COMMUNICATION
pag. 5/22

5. Telegram Control
The basic operations that must be performed in order to get data from NEMO 96HD are described in the following part of
the document.

Note

1. In the following of the document when referring to a bit, the notation "B.b" will be used where 'B' means BYTE and 'b'
means bit. So, for example, 3.4 means bit 4 of BYTE 3.
2. There is a variable, named "block number" which is initialized to 1 at the beginning.

The simplified sequence for retrieving data from NEMO is :

1. PLC sets bit 2.0 ( = 1 ).


The next telegram sends the information to NEMO 96HD => the internal retrieving process starts
2. If the internal sequence has started (bit 3.4), PLC resets bit 2.0 and waits for the completion of the internal operation
(bit 3.4 or bit 3.5)
3. The first telegram from NEMO that contains the end condition also contains the first data packet.
4. By other 6 telegrams the PLC requires the other 6 data packet from NEMO 96HD and then the whole process may
restart again.

Note : in multi-byte data, the adjustment of the BYTEs is as following :

MSB MB2 MB1 LSB

E.g.

Decimal 123456 = 01e240

MSB MB2 MB1 LSB


00 01 e2 40
PT10789220
PROTOCOL COMMUNICATION
pag. 6/22

The schematic conceptual flow of the program FB is the following :

block number = 1; /* init the number of block to be required to NEMO 96HD */


status = 1; /* init the internal status of the software */

while (TRUE) begin


case (status) :
if 1 begin
bit 2.0 (output header) = 1; /* start NEMO 96HD internal processing */
BYTE 0 (Output header) = block number;
status = 2;
end case

if 2 begin
if (bit 3.4 = 1) begin /* internal processing running */
bit 2.0 (output header) = 0; /* stop NEMO 96HD internal processing
after the completion of the
current operation */
status = 3;
end

end case

if 3 begin
if (bit 3.5 = 1) begin /* internal processing finished */
( data in the telegram are valid )

if (telegram is OK) begin /* block number between input and


output headers agree … */
transfer data from telegram in the PLC area;
block number = +1;
if (block number > 7) begin
block number = 1;
status = 1; /* restart */
else begin
status = 3; /* next request */
end

end

end
end case
End while
PT10789220
PROTOCOL COMMUNICATION
pag. 7/22

6. Assignment of measurements
Telegram Number 1 = Block Number 1

Input byte Value NEMO 96HD Byte Format Note


Base
address +
0 Header byte 0 (Returned Block Number) Decimal =1
1 Header byte 1 (not used)
2 Header byte 2 (not used)
3 Header byte 3 (Status) 8 Bit binary
4 Phase 1 : phase voltage MSB DWORD
5 MB2
6 MB1
7 LSB
8 Phase 2 : phase voltage MSB DWORD
9 MB2
10 MB1
11 LSB
12 Phase 3 : phase voltage MSB DWORD
13 MB2
14 MB1
15 LSB
16 Phase 1 : phase current MSB DWORD
17 MB2
18 MB1
19 LSB
20 Phase 2 : phase current MSB DWORD
21 MB2
22 MB1
23 LSB
24 Phase 3 : phase current MSB DWORD
25 MB2
26 MB1
27 LSB
28 Neutral current MSB DWORD
29 MB2
30 MB1
31 LSB
PT10789220
PROTOCOL COMMUNICATION
pag. 8/22

Telegram Number 2 = Block Number 2

Input byte Value NEMO 96HD Byte Format Note


Base
address +
0 Header byte 0 (Returned Block Number) Decimal =2
1 Header byte 1 (not used)
2 Header byte 2 (not used)
3 Header byte 3 (Status) 8 Bit binary
4 Chained voltage 1-2 MSB DWORD
5 MB2
6 MB1
7 LSB
8 Chained voltage 2-3 MSB DWORD
9 MB2
10 MB1
11 LSB
12 Chained voltage 3-1 MSB DWORD
13 MB2
14 MB1
15 LSB
16 3-Phase: active Power MSB DWORD
17 MB2
18 MB1
19 LSB
20 3-Phase: reactive Power MSB DWORD
21 MB2
22 MB1
23 LSB
24 3-Phase: apparent Power MSB DWORD
25 MB2
26 MB1
27 LSB
28 Active Power sign HB WORD
29 LB
30 Reactive Power sign HB WORD
31 LB
PT10789220
PROTOCOL COMMUNICATION
pag. 9/22

Telegram Number 3 = Block Number 3

Input byte Value NEMO 96HD Byte Format Note


Base
address +
0 Header byte 0 (Returned Block Number) Decimal =3
1 Header byte 1 (not used)
2 Header byte 2 (not used)
3 Header byte 3 (Status) 8 Bit binary
4 3 phase : positive active energy MSB DWORD
5 MB2
6 MB1
7 LSB
8 3 phase : positive reactive energy MSB DWORD
9 MB2
10 MB1
11 LSB
12 3 phase : negative active energy MSB DWORD
13 MB2
14 MB1
15 LSB
16 3 phase : negative reactive energy MSB DWORD
17 MB2
18 MB1
19 LSB
20 Power Factor 3-phase HB WORD
21 LB
22 Power Factor Sector HB WORD
23 LB
24 Frequency HB WORD
25 LB
26 3-Phase : average power MSB DWORD
27 MB2
28 MB1
29 LSB
30 3 phase : peak maximum demand MSB DWORD
31 MB2
PT10789220
PROTOCOL COMMUNICATION
pag. 10/22

Telegram Number 4 = Block Number 4

Input byte Value NEMO 96HD Byte Format Solution


Base
address +
0 Header byte 0 (Returned Block Number) Decimal =4
1 Header byte 1 (not used)
2 Header byte 2 (not used)
3 Header byte 3 (Status) 8 Bit binary
4 3 phase : peak maximum demand MB1
5 LSB
6 Average power pointer HB WORD
7 LB
8 Phase 1 : phase active power MSB DWORD
9 MB2
10 MB1
11 LSB
12 Phase 2 : phase active power MSB DWORD
13 MB2
14 MB1
15 LSB
16 Phase 3 : phase active power MSB DWORD
17 MB2
18 MB1
19 LSB
20 Phase 1 : active power sign HB WORD
21 LB
22 Phase 2 : active power sign HB WORD
23 LB
24 Phase 3 : active power sign HB WORD
25 LB
26 Phase 1 : phase reactive power MSB DWORD
27 MB2
28 MB1
29 LSB
30 Phase 2 : phase reactive power MSB DWORD
31 MB2
PT10789220
PROTOCOL COMMUNICATION
pag. 11/22

Telegram Number 5 = Block Number 5

Input byte Value NEMO 96HD Byte Format Note


Base
address +
0 Header byte 0 (Returned Block Number) Decimal =5
1 Header byte 1 (not used)
2 Header byte 2 (not used)
3 Header byte 3 (Status) 8 Bit binary
4 Phase 2 : phase reactive power MB1
5 LSB
6 Phase 3 : phase reactive power MSB DWORD
7 MB2
8 MB1
9 LSB
10 Phase 1 : reactive power sign HB WORD
11 LB
12 Phase 2 : reactive power sign HB WORD
13 LB
14 Phase 3 : reactive power sign HB WORD
15 LB
16 Phase 1 : phase apparent power MSB DWORD
17 MB2
18 MB1
19 LSB
20 Phase 2 : phase apparent power MSB DWORD
21 MB2
22 MB1
23 LSB
24 Phase 3 : phase apparent power MSB DWORD
25 MB2
26 MB1
27 LSB
28 Phase 1 : Power Factor HB WORD
29 LB
30 Phase 2 : Power Factor HB WORD
31 LB
PT10789220
PROTOCOL COMMUNICATION
pag. 12/22

Telegram Number 6 = Block Number 6

Input byte Value NEMO 96HD Byte Format Note


Base
address +
0 Header byte 0 (Returned Block Number) Decimal =6
1 Header byte 1 (not used)
2 Header byte 2 (not used)
3 Header byte 3 (Status) 8 Bit binary
4 Phase 2 : Power Factor HB WORD
5 LB
6 Phase 1 : power factor sector HB WORD
7 LB
8 Phase 2 : power factor sector HB WORD
9 LB
10 Phase 3 : power factor sector HB WORD
11 LB
12 Phase 1 : THD phase V1 or V1-2 HB WORD
13 LB
14 Phase 2 : THD phase V2 or V2-3 HB WORD
15 LB
16 Phase 3 : THD phase V3 or V3-1 HB WORD
17 LB
18 Phase 1 : THD phase current HB WORD
19 LB
20 Phase 2 : THD phase current HB WORD
21 LB
22 Phase 3 : THD phase current HB WORD
23 LB
24 Phase 1 : thermal current MSB DWORD
25 MB2
26 MB1
27 LSB
28 Phase 2 : thermal current MSB DWORD
29 MB2
30 MB1
31 LSB
PT10789220
PROTOCOL COMMUNICATION
pag. 13/22

Telegram Number 7 = Block Number 7

Input byte Value NEMO 96HD Byte Format Note


Base
address +
0 Header byte 0 (Returned Block Number) Decimal =7
1 Header byte 1 (not used)
2 Header byte 2 (not used)
3 Header byte 3 (Status) 8 Bit binary
4 Phase 3 : thermal current MSB DWORD
5 MB2
6 MB1
7 LSB
8 Phase 1 : peak of thermal current MSB DWORD
9 MB2
10 MB1
11 LSB
12 Phase 2 : peak of thermal current MSB DWORD
13 MB2
14 MB1
15 LSB
16 Phase 3 : peak of thermal current MSB DWORD
17 MB2
18 MB1
19 LSB
20 3 phase : partial positive active energy MSB DWORD
21 MB2
22 MB1
23 LSB
24 Current ratio KTI HB WORD
25 LB
26 Voltage ratio KTV HB WORD
27 LB
28 Ratio KTI*KTV*10 HB WORD
29 LB
30
31
PT10789220
PROTOCOL COMMUNICATION
pag. 14/22

7. Variables description

BLOCK 1

Phase voltage 1 / 2 / 3 (block 1.1 / 1.2 / 1.3)

This is the phase to neutral voltage. This measure is available also in the 2 systems connection (Aron).
Format : DWORD
Measurement unit : mV
Example : 100V => 100000 mV => 0x00 01 86 a0

Phase current 1 / 2 / 3 (block 1.4 / 1.5 / 1.6)

Format : DWORD
Measurement unit : mA
Example : 5.4A => 5400 mA => 0x00 00 15 18

Neutral current (block 1.7)

The neutral current is the real time sum of the 3 single phase currents.
Format : DWORD
Measurement unit : mA
Example : 5.4A => 5400 mA => 0x00 00 15 18
PT10789220
PROTOCOL COMMUNICATION
pag. 15/22

BLOCK 2

Phase to phase voltage 12, 23, 13 (block 2.1 / 2.2 / 2.3)

This is the phase to phase voltage.


Format : DWORD
Measurement unit : mV

Active power (block 2.4)

This is the 3-phase active power.


Format : DWORD
Measurement unit : hundredths of W => if KTA*KTV < 6000
W => if KTA*KTV 6000
Example : 900W => 90000 => if KTA*KTV < 6000
=> 900 => if KTA*KTV > 6000

Reactive power (block 2.5)

This is the 3-phase reactive power.


Format : DWORD
Measurement unit : hundredths of var => if KTA*KTV < 6000
var => if KTA*KTV 6000
Example : 900 var => 90000 => if KTA*KTV < 6000
=> 900 => if KTA*KTV > 6000

Apparent power (block 2.6)

This is the 3-phase apparent power.


Format : DWORD
Measurement unit : hundredths of VA => if KTA*KTV < 6000
VA => if KTA*KTV 6000
Example : 900 VA => 90000 => if KTA*KTV < 6000
=> 900 => if KTA*KTV > 6000

Active power sign (block 2.7)

Format : WORD
Measurement unit : //
Values : 0x01 => negative single phase or 3-phase active power
0x00 => positive single phase or 3-phase active power

Reactive power sign (block 2.8)


Same as block 2.7
PT10789220
PROTOCOL COMMUNICATION
pag. 16/22

BLOCK 3

Positive active energy (block 3.1)

This is, conventionally, the energy actually consumed by the user.


Format : DWORD
Measurement unit :

Transformer ratio Measurement unit

1< KTA*KTV < 10 xxxxxx.yy kWh


10 < KTA*KTV < 100 xxxxxxx.y kWh
100 < KTA*KTV < 1000 xxxxxxxx kWh
1000 < KTA*KTV < 10000 xxxxxx.yy MWh
10000 < KTA*KTV < 100000 xxxxxxx.y MWh

Positive reactive energy (block 3.2)

Format : DWORD
Measurement unit :

Transformer ratio Measurement unit

1< KTA*KTV < 10 xxxxxx.yy kvarh


10 < KTA*KTV < 100 xxxxxxx.y kvarh
100 < KTA*KTV < 1000 xxxxxxxx kvarh
1000 < KTA*KTV < 10000 xxxxxx.yy Mvarh
10000 < KTA*KTV < 100000 xxxxxxx.y Mvarh

Negative active energy (block 3.3)


Same as block 3.1

Negative reactive energy (block 3.4)


Same as block 3.2
PT10789220
PROTOCOL COMMUNICATION
pag. 17/22

Power factor (3-phase) (block 3.5)

Format : WORD
Measurement unit : //
Values : multiplied by 100
Example : 0.98 => 98 => 0x00 62

Power factor sector (3-phase) (block 3.6)

Format : WORD
Measurement unit : //
Values : 0x00 => PF is 1
0x01 => PF is inductive
0x02 => PF is capacitive

Frequency (block 3.7)

Format : WORD
Measurement unit : tenth of Hz
Example : 50 Hz => 500 => 0x01 f4

Average power (block 3.8)

This is the power calculated with the shifting average algorithm. It is updated each minute.
Format : DWORD
Measurement unit : it depends on the type of the selected power and so it can be W, var o VA
with the same restrictions due to the product KTV*KTA

Peak maximum demand (block 3.9 / 4.1)

This is the power obtained as the maximum of the average powers and it is updated every minute.
Format : DWORD
Measurement unit : it depends on the type of the selected power and so it can be W, var o VA with the
same restrictions due to the product KTV*KTA

BLOCK 4

Average power pointer (block 4.2)

It gives an indication of the current minute in the time interval and its range is, obviously, between 0 and the (average
time – 1)
Format : WORD
Measurement unit : //
Example : average time = 15 minutes
counter = 10 means that the current minute is the 11th

Active power phase 1 / 2 / 3 (block 4.3 / 4.4 / 4.5)


Same as block 2.4

Active power phase 1 / 2 /3 sign (block 4.6 / 4.7 / 4.8)


Same as block 2.7

Reactive power phase 1 (block 4.9)


Same as block 2.5

Reactive power phase 2 (block 4.10 / 5.1)


Same as block 2.5
PT10789220
PROTOCOL COMMUNICATION
pag. 18/22

BLOCK 5

Reactive power phase 3 (block 5.2)


Same as block 2.5

Reactive power phase 1 / 2 / 3 sign (block 5.3 / 5.4 / 5.5)


Same as block 2.7

Apparent power phase 1 / 2 / 3 (block 5.6 / 5.7 / 5.8)


Same as block 2.6

Power factor phase 1 / 2 (block 5.9 / 5.10)


Same as block 3.5

BLOCK 6

Power factor phase 3 (block 6.1)


Same as block 3.5

Power factor sector phase 1 / 2 / 3 (block 6.2 / 6.3 / 6.4)


Same as block 3.6

THD phase voltage phase 1 / 2 / 3 (or chained voltage V12 / V23 / V13) (block 6.5 / 6.6 / 6.7)
Format : WORD
Measurement unit : % with 1 decimal

THD current phase 1 / 2 / 3 (block 6.8 / 6.9 / 6.10)


Format : WORD
Measurement unit : % with 1 decimal

Thermal current phase 1 / 2 (block 6.11 / 6.12)


The thermal currents are the phase currents integrated in the desidered time period.
Format : DWORD
Measurement unit : mA

BLOCK 7

Thermal current phase 3 (block 7.1)


Same as block 6.11

Peak of thermal current phase 1 / 2 / 3 (block 7.2 / 7.3 / 7.4)


Same as block 6.11

Partial positive active energy (block 7.5)


Same as block 3.1
PT10789220
PROTOCOL COMMUNICATION
pag. 19/22

Current ratio (KTI) (block 7.6)

The current transformer ratio is the ratio between the rated primary value and the rated secondary value.
For example, if a CT primary/secondary ratio is 100/5, the value to be set in NEMO96HD is 20 and this is also the value
given on the remote line.
Format : WORD
Measurement unit : //

Voltage ratio (KTU) (block 7.7)

The voltage transformer ratio is the ratio between the rated primary value and the rated secondary value.
For example, if a VT primary/secondary is 380/100, the value to be set in NEMO96HD is 3.8
For the TVs, the first decimal of the ratio is kept and so the value given on the remote line is multiplied by 10, in this case
38.
Format : WORD
Measurement unit : //

Ratio KTV * KTU (block 7.8)

Format : DWORD
Measurement unit : //
PT10789220
PROTOCOL COMMUNICATION
pag. 20/22

8. Nemo Manager Description

The NEMO Manager is the SIMATIC S7 Project for Data Management of the Measuring Instrument NEMO Profibus and
NEMO Profibus-DP Link-Module.

Description of Software Function


The core of the NEMO-MANAGER is the function block FB80, that organises the transfer of measured data to the PLC of
every NEMO instrument, which is connected to Profibus DP. Both versions of interface technology can be served, the
NEMO with internal interface and the external Link Module .

In the S7 software a call of the function block has to be installed with an own instance data block and an own destination
data block for measured values for every connected NEMO

Because the amount of data from one NEMO is larger than 32 bytes, several transfer cycles are necessary. In every
multiplex cycle the Profibus master reads a data block from the Profibus consisting of a 4 byte header and 28 data byte.

The sequences in function block FB80 for reading values are started by a release bit. When the FB 80 serves a single
Profibus NEMO, the release bit must always be set TRUE before calling the FB. This bit can always be the same, because
the base addresses are different.

Example for single Profibus NEMOs:

SET
= M2.0 // Release bit is set to 1

CALL FB80, DB80 // Call the manager with instance data block DB90
BASEADR_DP :=96 // Projected start address of peripheral input/output area in the hardware
configuration
DEVICE_ADR := // Not used for single Profibus NEMOs
DEST_DB :=DB61 // Destination data block for values
...
RELEASE :=M2.0 // Release bit for this call
NEXT_INST:= // Not used for single Profibus NEMOs

***

SET
= M2.0 // Release bit is set to 1

CALL FB80, DB81 // Call the manager with instance data block DB91
BASEADR_DP :=128 // Projected start address of peripheral input/output area in the hardware
configuration
DEVICE_ADR := // Not used for single Profibus NEMOs
DEST_DB :=DB62 // Destination data block for values
...
RELEASE :=M2.0 // Release bit for this call
NEXT_INST:= // Not used for single Profibus NEMOs

When an external Link Module is connected with several instruments, only 1 release bit with status TRUE is allowed. This
is valid for calls with the same base address DP. In this case all release bits must be different.
At power on a service routine has to guarantee that only one of the release bits is controlled to 1 and the other to 0 status.
PT10789220
PROTOCOL COMMUNICATION
pag. 21/22

Example for Profibus Link Module with 2 linked NEMOs:

CALL FB80, DB80 // Call the manager with instance data block DB95
BASEADR_DP :=96 // Projected start address of peripheral input/output area in the hardware
configuration
DEVICE_ADR :=1 // Adjusted bus address for this NEMO
DEST_DB :=DB70 // Destination data block for values
...
RELEASE :=M2.0 // Release bit for this call
NEXT_INST:=M2.1
// Release bit for the second NEMO

***

CALL FB80, DB81 // Call the manager with instance data block DB96
BASEADR_DP :=96 // Projected start address of peripheral input/output area in the hardware
configuration
DEVICE_ADR :=2 // Adjusted bus address for this NEMO
DEST_DB :=DB71 // Destination data block for values
...
RELEASE :=M2.1 // Release bit for this call
NEXT_INST:=M2.0 // Release bit for the first NEMO

When the sequence starts, the function block FB80 sends the telegram number 1 to the NEMO and in case of servicing
an external Link Module additionally the NEMO address, from which the values should be requested.
Then the internal data refresh or data request are enabled by a control bit in the header.
After that the prepared data are ready for transfer and will be sent in blocks of 4 byte header + 28 data byte to the master.
The telegram number is the block number of the data area. The FB80 stores the 28 data byte in the destination data block
at the start address “(telegram number – 1) x 28”. By incrementing the telegram number all data are transmitted.

The Profibus NEMO needs 7 and the external Link Module needs 4 multiplex cycles.

When the sequences of the FB80 are finished, it is signalled by the status bit „DATA_COMPLETE“
in the instance data of the function call.
This message is also generated, when an error occurred during running the sequences. In the case of error all functions in
the FB80 are aborted and the content of the error byte in the instance is not zero.
Additionally at the end of the sequences the release bit for this call is cleared and the instance bit NEXT_INSTR is set.
This bit is the release bit for the function call for the next NEMO.

The sequences of the function block FB80 are supervised by a internal watchdog counter, which is clocked by the
instance bit „CLOCK“ (1 sec pulse).

When there is any reason that causes the sequences in FB80 to „hang“ (for example new- or restart Profibus or no
answer from NEMO / Link Module), the watchdog counter decrements to 0 in 5 sec, all internal sequence control bits and
the release bit are cleared and the bit „NEXT_INSTR“ is set.

Address area and Data Blocks


The base address (or start address) of the input/output peripheral area is free selectable and may be set to any address
that the type of CPU allows.

The projected base addresses of the decentralised input and output areas must be the same.

The minimum length of destination data blocks for values are:


- for Profibus NEMO 28 x 7 = 196 byte
- for external Link Module: 28 x 4 = 112 byte
PT10789220
PROTOCOL COMMUNICATION
pag. 22/22

Instance of the Function Block

Name Declaration Type Description

Projected base address input / output decentralised


BASEADR_DP IN INT
periphery
Device address NEMO on external interface bus,
DEVICE_ADR IN INT
not used at single Profibus NEMO
DEST_DB IN BLOCK_DB Destination data block number for NEMO values
Amount of 28-byte-blocks to be requested (7:intern. 4:external
NO_BLOCKS IN INT
interface)
CLOCK IN BOOL 1 sec clock pulse for decrementing the watchdog counter
Enables the functions in the FB for this call.
RELEASE IN_OUT BOOL This bit is cleared internally with the message
„DATA_COMPLETE“ (with or without error).
This bit is the release bit for the next call of the FB80 for the next
NEMO. This bit is set internally with the message
NEXT_INSTR IN_OUT BOOL
„DATA_COMPLETE“ (with or without error).
Not used at single Profibus NEMO
Message from function block: data transfer to PLC is complete
DATA_COMPLETE IN_OUT BOOL
Error status is available in the error byte
ERR_BYTE OUT BYTE Error status of communication Interface - NEMO

S7 Sample Project „NEMO-MANAGER“

Table of Contents
FB 10 NEMO Management ext. / calls the Manager for every NEMO on interface bus
FB 11 NEMO Management int. / calls the Manager for every Profibus NEMO
FB80 NEMO-Manager, controls the requests, multiplex sequences and downloading
DB61 Formatted data block with the structure of measure values from Profibus NEMO 1
DB62 Formatted data block with the structure of measure values from Profibus NEMO 2
DB70 Formatted data block with the structure of measure values from NEMO via Link Module
DB71 Formatted data block with the structure of measure values from NEMO via Link Module
DB80 Instance data block
DB81 Instance data block
OB1 Cycle Execution
OBxx Error organisation blocks
VAT61 Variable table data block 61 (Values NEMO 1 (internal version) )
VAT62 Variable table data block 62 (Values NEMO 2 (internal version) )
VAT70 Variable table data block 70 (Values NEMO 1 (external version) )
VAT71 Variable table data block 71 (Values NEMO 2 (external version) )
VAT80 Variable table instance data block 80
VAT96 Variable table input / output status decentralised peripheral byte 96 – 127

The project NEMO MANAGER is made for a PLC type SIMATIC S7 315 2DP. This project runs in combination
with 1 Profibus NEMO (int.) without any changes. Other constellations must be arranged in the FB10 / 11.

In the organisation block OB1 the management function FB11 is called (for NEMO internal version).
The function block FB10 (NEMO management ext.) contains 2 calls for a net constellation 1 external interface with 2
NEMOS. It shows the working of the release bits.

When it is necessary to change the CPU due to another type, it is to check whether the mark byte MB1 is available as the
clock byte in CPU hardware parameterisation, because the mark bit M1.5 is used for the 1 sec clock pulse.

You might also like