EasyManua.ls Logo

IME NEMO 96 HD+ - Page 21

IME NEMO 96 HD+
22 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
PROTOCOL COMMUNICATION
PT10789220
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