| Author |
Message |
abondy
Joined: 06 May 2003 Posts: 4
|
06 May 2003 17:02 Some help with PPI protocol? |
|
|
|
I have captured some of the communication between a PC and a Siemens S7-200 when read and writing to VD0 with Step7-microWIN 32 software.
The PC outputs:
68 1B 1B 68 02 00 6C 32 01 00 00 00 00 00 0E 00 00 04 01 12 0A 10 02 00 04 00 01 84 00 00 00 6B 16
and after E5 and 10 02 00 5C 5E 16 the PC receives from th PLC:
68 19 19 68 00 02 08 32 03 00 00 00 00 00 02 00 08 00 00 04 01 FF 04 00 20 98 76 45 12 D6 16
The data in VD0 is 16#98764512 and I can see it in the received message near the end.
My question is: Can anyone explain or point me to a document that explains the information in the DATA part of the telegrams?
I realize that:
68 .. .. 68 are the "Start Delimiter"
.. 1B 1B .. is the length
the destination = 02
the source is = 00
and the checksum and the ED "end delimiter",
but what is explanation of the data from 68 1B 1B 68 02 00 .............
....to.... 68 16.
Thanks
AB
|
|
| Back to top |
|
 |
abondy
Joined: 06 May 2003 Posts: 4
|
18 Nov 2003 17:26 Re: Some help with PPI protocol? |
|
|
|
Posted for 6 months, 104 reads and no one has any suggestions or help about Siemens PPI protocol.
Guys I need your help or suggestions
Always Thankful,
Andy
|
|
| Back to top |
|
 |
Gabriele Corrieri
Joined: 31 Jul 2002 Posts: 11 Location: Italy
|
19 Nov 2003 22:35 Re: Some help with PPI protocol? |
|
|
|
Hi Andy
we of PlcForum.IT community have to start on these days a new online project finalized to make an OCX component to link S7-200 cpu's.
Let me if you're interested to join us ...
Our community speak always in italian language but if you want I can traduce some posts ... with my very poor english.
Best Regards
Gabriele Corrieri
|
|
| Back to top |
|
 |
onebit
Joined: 12 Dec 2003 Posts: 3
|
12 Dec 2003 18:04 Re: Some help with PPI protocol? |
|
|
|
| if you stil need it I can give you some points
|
|
| Back to top |
|
 |
abondy
Joined: 06 May 2003 Posts: 4
|
18 Dec 2003 4:00 Re: Some help with PPI protocol? |
|
|
|
Onebit,
Thanks for your offer.
Yes, I still need some help (info).
Namely, the code following the destination and source bytes, the meaning of 6C in some telegrams and 7C in others.
Also, the code for the type of PLC memory being addressed ( eg 01 84) for V type memory and so on.
I guess what I am asking for are the definitions of bytes sent to and received from the PLC, and also the '10 02 00 5C 5E 16' type of messages both sent or received.
Also, what is the reply from the PLC when there is a checksum error.
We normally see an E5 when the message is received correctly, but when there is and error, there appears to be a '10 DST SRC xx CS 16 message returned form the PLC. (DST-destination, SRC - source, CS - Checksum)
Thanks for any assistance you may give me.
Andy
|
|
| Back to top |
|
 |
onebit
Joined: 12 Dec 2003 Posts: 3
|
21 Dec 2003 14:23 Re: Some help with PPI protocol? |
|
|
|
Hi Andy,
I'm so sorry, I sent you answers last week by this forum and didn't check if my information appears in the forum. May be I did something wrong and as result my answer didn’t appear in this forum. I'll answer you again as soon as possible. By the way, you can contact me by e-mail. All information about me is in my web site www.bitman.ca. May be you can find an answer on you question there.
Best regards
Vladimir
|
|
| Back to top |
|
 |
Dirk
Joined: 19 Jan 2004 Posts: 1
|
19 Jan 2004 14:32 Re: Some help with PPI protocol? |
|
|
|
Hello,
I have some problems with the PPI protocol too.
My Problem is to build the checksum. I tried a lot of difference methods (CRC16, CRC32, CCITT,etc) , but I just didn't get the right FCS.
I also tried to take all the bytes instead of everything after the start delimiter.
Can anyboby tell me, how the FCS is builded?
Thanks, Dirk
|
|
| Back to top |
|
 |
abondy
Joined: 06 May 2003 Posts: 4
|
02 Mar 2004 22:37 Re: Some help with PPI protocol? |
|
|
|
Dirk,
The checksum is very simple. Just add all the bytes from after the "68 .. .. 68" header to the last byte of the data (just before the FCS).
For example:
68 15 15 68 02 00 6C 32 01 00 00 CC C1 00 08 00 00 F0 00 00 01 01 00 03 C0 EB 16
....................^--------------------------------------------------------------------------------^
The sum of all the hex digits from the first 02 up to just before the EB - is 3EB and least significant byte = EB (1 byte)
Regards,
Andy
|
|
| Back to top |
|
 |
wilson_150
Joined: 10 Jun 2008 Posts: 1
|
10 Jun 2008 10:17 Re: Some help with PPI protocol? |
|
|
|
Hello,
I have some problems to get complete PPI protocol info/spec. Please help on this.
Thanks!
|
|
| Back to top |
|
 |
AndrewDo
Joined: 11 Oct 2008 Posts: 8
|
11 Oct 2008 10:01 Re: Some help with PPI protocol? |
|
|
|
Hi Abondy,
I have the same interest of PPI description. I get some COM Port records, when PLC and Microwin connected. I also know the basic of frame as u but I can't go far to determine of other frame and data inside. Do you still study it? Do you have any news? Can you share It? (please send me Email [url]mailto:trading_4e(at)yahoo.com.sg[/url], If something you can't post)
Thanks[/url]
|
|
| Back to top |
|
 |