Comments (7)
Thanks for your question.
In general it's not easy to tell why a slave doesn't like a Cfg or Prm telegram.
In your case it doesn't like your Prm telegram. Therefore, there is some option set that your slave doesn't expect or some option is missing that your slave expects. And this includes the user-part of the Prm telegram, that you define in your user code that calls into pyprofibus. In general slaves are very picky about the contents of the Cfg and Prm telegram.
The only real way forward now is to learn about the Prm telegram and its format and then see what's wrong. The actual Prm telegram sent to the device is shown as hex dump in the logs.
from pyprofibus.
I got it to work
First I pulled the GSD file of a project that the modules were working.
Next it seems I misunderstood the config file comment in section modules.
It says to define the modules that are plugged IN TO THE SLAVE
So for me it was
module_0=750-610 Supply 24 V DC/DIA
module_1=750-430 8 DI/24 V DC/3.0 ms
module_2=750-430 8 DI/24 V DC/3.0 ms
module_3=750-430 8 DI/24 V DC/3.0 ms
module_4=750-430 8 DI/24 V DC/3.0 ms
module_5=750-430 8 DI/24 V DC/3.0 ms
module_6=750-430 8 DI/24 V DC/3.0 ms
module_7=75x-530 8DO/24V DC/0.5A
module_8=75x-530 8DO/24V DC/0.5A
module_9=75x-530 8DO/24V DC/0.5A
module_10=75x-530 8DO/24V DC/0.5A
module_11=75x-530 8DO/24V DC/0.5A
module_12=75x-530 8DO/24V DC/0.5A
module_13=75x-530 8DO/24V DC/0.5A
But in the end I defined also the interface module and it started working
Like this:
module_0=750-343 No PI Channel
module_1=750-610 Supply 24 V DC/DIA
module_2=750-430 8 DI/24 V DC/3.0 ms
module_3=750-430 8 DI/24 V DC/3.0 ms
module_4=750-430 8 DI/24 V DC/3.0 ms
module_5=750-430 8 DI/24 V DC/3.0 ms
module_6=750-430 8 DI/24 V DC/3.0 ms
module_7=750-430 8 DI/24 V DC/3.0 ms
module_8=75x-530 8DO/24V DC/0.5A
module_9=75x-530 8DO/24V DC/0.5A
module_10=75x-530 8DO/24V DC/0.5A
module_11=75x-530 8DO/24V DC/0.5A
module_12=75x-530 8DO/24V DC/0.5A
module_13=75x-530 8DO/24V DC/0.5A
module_14=75x-530 8DO/24V DC/0.5A
Like I said I am a noob regarding profibus and I thought the 750-343 is considered as slave device and not the first module
If you like I can send you the files and you can include them for someone else
from pyprofibus.
I'm very sorry for the confusion.
PB slaves are highly individual and therefore the Prm of these devices naturally also are individual.
This is a perfect example of special slave behavior that we can't really predict or prevent in the pyprofibus documentation and configuration.
Thank you very much for sharing your solution to the problem.
This will help other people. :)
If you like, please attach your files to this issue.
from pyprofibus.
I will just give me a few days so I can obtain a analog input and output module. So I can add them to the configuration to make it easier for other people.
from pyprofibus.
Hello
Sorry for the delay, I had a busy two weeks :)
Anyway here is a ZIP file containing the .py .conf and .gsd
I hope this helps someone
examples_wago.zip
from pyprofibus.
Thanks! :)
from pyprofibus.
No problem😁
from pyprofibus.
Related Issues (20)
- Terminating: GSD 'HIL_0B69.gsd': DPv1 User_Prm_Data is shorter than 3 bytes HOT 13
- CP5711: Is this CP supported? HOT 3
- Modules are sorted lexicographically, not numerically HOT 1
- Acyclic communcation support HOT 1
- Function code response error handling needs improvement HOT 3
- Siemens DP/AS-i LINK 20 support HOT 4
- Warning in GSD: User_Prm_Data truncated by User_Prm_Data_Len HOT 9
- Festo CPV Valve terminal HOT 40
- PC - FPGA interface HOT 2
- "input byte, "output byte" confusion HOT 6
- pyprofibus hardware documentation HOT 3
- TxDen pin Question HOT 4
- connecting Pyprofibus with DP/PA coupler to communcate with PA devices (Invalid telegram format) HOT 4
- Сonnection SIEMENS et200s HOT 4
- How to get to debugMsg to prompt them in Tkinker window HOT 1
- After slave was reset/reloaded timeout occurs and slave-object changes its state to STATE_INIT, but its fcb remained in previous state ( fcv=1 fcb=0/1 ) HOT 1
- Is there any communication function between the master station and the master station in this project? HOT 1
- GSD file reading error. HOT 1
- [Question] how to read data without write ? HOT 12
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pyprofibus.