PR107
PR107
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.
The selected address will be accepted after the device power up.
For the transfer of all measured values form NEMO 96HD to the PLC, seven (7) telegrams are necessary.
PT10789220
PROTOCOL COMMUNICATION
pag. 4/22
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.
Byte 3 of the data returned by NEMO 96HD includes error and status bits with the following meaning.
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.
E.g.
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 )
end
end
end case
End while
PT10789220
PROTOCOL COMMUNICATION
pag. 7/22
6. Assignment of measurements
Telegram Number 1 = Block Number 1
7. Variables description
BLOCK 1
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
Format : DWORD
Measurement unit : mA
Example : 5.4A => 5400 mA => 0x00 00 15 18
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
Format : WORD
Measurement unit : //
Values : 0x01 => negative single phase or 3-phase active power
0x00 => positive single phase or 3-phase active power
BLOCK 3
Format : DWORD
Measurement unit :
Format : WORD
Measurement unit : //
Values : multiplied by 100
Example : 0.98 => 98 => 0x00 62
Format : WORD
Measurement unit : //
Values : 0x00 => PF is 1
0x01 => PF is inductive
0x02 => PF is capacitive
Format : WORD
Measurement unit : tenth of Hz
Example : 50 Hz => 500 => 0x01 f4
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
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
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
BLOCK 5
BLOCK 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
BLOCK 7
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 : //
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 : //
Format : DWORD
Measurement unit : //
PT10789220
PROTOCOL COMMUNICATION
pag. 20/22
The NEMO Manager is the SIMATIC S7 Project for Data Management of the Measuring Instrument NEMO Profibus and
NEMO Profibus-DP 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.
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
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.
The projected base addresses of the decentralised input and output areas must be the same.
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.