Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error in communication #14

Closed
svenhaitjema opened this issue Feb 7, 2020 · 2 comments
Closed

Error in communication #14

svenhaitjema opened this issue Feb 7, 2020 · 2 comments

Comments

@svenhaitjema
Copy link

svenhaitjema commented Feb 7, 2020

Dear All,

Thank you for fixing the code related to the connection issues. The PLC&TIA14 is now able to connect to the p-net software, however I have the following observation making me believe something is still off:

The PLC status alternates between 'connected' and 'connection error'.

The error reporting on the p-net side is:
[ERROR] PPM(479): iocs_len is zero
[ERROR] PPM(479): iocs_len is zero
[ERROR] PPM(479): iocs_len is zero
ABORT err_cls 253 err_code 5

OR

[ERROR] PPM(479): iocs_len is zero
[ERROR] PPM(479): iocs_len is zero
[ERROR] PPM(479): iocs_len is zero
ABORT err_cls 0 err_code 6

This seems to be resolvable by setting the 'max missed packet count' to 16 at the PLC side. So it appears a timing problem.

Kind regards,

Sven-Erik Haitjema

@pyhys
Copy link
Collaborator

pyhys commented Feb 13, 2020

Normally the p-net stack on Linux sends a cyclic data frame approx every 3 ms. When this increases to around 7 ms (due to load), the Simatic PLC sends an alarm indicating that the timing requirements not are met. Then the cyclic communication is shut down for a few seconds, until a new start-up happens.

We are looking into using the PREEMPT_RT patches to improve the Linux real time properties.

@pyhys
Copy link
Collaborator

pyhys commented Mar 4, 2020

You need to tweak the Linux real time properties to fulfil the Profinet timing requirements. We have started to document this on https://rt-labs.com/docs/p-net/linuxtiming.html

@hefloryd hefloryd closed this as completed Mar 4, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants