S7 - SFC14 read data from DP slave

miami_vice

Member
Join Date
Aug 2010
Location
Aruba
Posts
9
Hi guys,

I'm finding some difficulties to understand or meaning where the Siemens Profibus Encoder type 6FX2001-5FP24 write the data (feedback, etc, etc,) using SFC14.

Premise that hardware setup in S7 is ok, CPU led about the fieldbus (2DP) is green ON, I'd like to know the mean of the data write in the address assigned in RECORD of SFC14.

The address area assigned to RECORD is P#M100.0 BYTE 12.
So the encoder write the value from MW100 to MW106.
So I'd like to know what contains the MW100-MW101-MW102 till MW106.

I've tried to look on Siemens Automation and Drive weblink under section Manuals,Download,FAQ etc. etc.,
but the only example are for technology CPU and others application.

Someone has some informations of as interpret the data read?

Thanks
 
LADDR points to the 1st byte of the configured DP inputs. Notice hexadecimal format.

RECORD points to where you want to have the data stored.

So as an example, if the DP slaves starts at IB300 (W16#12C), and RECORD starts at M100.0, then MB100 contains data from IB300, MB101 from IB301 and so forth.

In your example, if RECORD is P#M100.0 BYTE 12, then the adresses from MW100 to MW110 will be used (not MW100 to MW106 as you write).

Just to be sure: You do know that MW100 contains the bytes MB100+MB101 ? And MW102 contains MB102+MB103 ? Words shall always start on even boundaries, even if it possible to specify uneven boundaries.
 
For Maitomies:

-CPU is 313C 2DP (6ES7 313-6CF03-0AB0) firmware V2.0
-No CP (Encoder is connect directly to 2DP CPU port)
-Encoder type 6FX2001-5FP24 (resolutions 13+14 bit multiturns)version 2.2.

For JesperMP:

Yes you're right....I'm wrong when wrote:
"So I'd like to know what contains the MW100-MW101-MW102 till MW106" right area is MW100-MW102...till MW112.

In S7 hardware configuration, the encoder starting address is E260 and final is E271 (total 12 bytes) so I write in LADDR of SFC14 W#16#104 and in RECORD P#M100.0 BYTE 12.

My problem is don't find a documentation about the mean of addreesses.
For Example: What represents the value displayed on MW100, is a fault code??,is encoder feedback or something else??.
and MW102 or MD102 till MW106??

I need to find the "map" with the mean of the addresses read.

Thanks
 
Note to TurpoUrpo;
It is not an insult to have your post deemed as good as one from Jesper's...
👨🏻‍🏫
Regards,
Daniel Chartier
 
TurpoUrpo....My apologized for the committed error.

Sorry again, now everything solved reading the manual.

Thanks also to Jasper for correct me again about the right lenght of the pointer P#M100.0 BYTE 12.
 
Last edited:

Similar Topics

Hello I am trying to open SFC14 and SFC15 but these blocks are protected. I tried to unprotect them using Microsoft Access but when I opened DBF...
Replies
3
Views
2,240
Hello, I have an S7-300 CPU 315/2DP and wants to send data to a Profibus controller. The problem is that this CPU the SFC14 and SFC15 not...
Replies
3
Views
2,191
Hi again I am currently ready inputs through SFC14 and then I am using the DB nr as input to a FB. Within the FB I use indirect addressing to...
Replies
6
Views
5,672
Hey, Is there a way to read the diagnostics of a DP slave through the process image table of S7 315-DP-2? I have the diagnostics address of 2044...
Replies
2
Views
3,603
Hello, I have a profibus network with the CPU 315-2dp and an inverter as slave from Lenze. In the hardware configuration I have the adresses...
Replies
2
Views
2,827
Back
Top Bottom