Linuxcnc and Profibus

More
08 Aug 2022 19:39 #249364 by blauerklappstuhl
hi, i changed it accordingly,but still state machine timeouts:


DPM1: State machine timeout! Trying to re-initializing slave 8...
DPM1: Trying to initialize slave 8...
PHY-serial: TX 10 08 03 49 54 16
PHY-serial: RX 10 03 08 00 0B 16
DPM1: slave[08].state --> 'wait for diag'
DPM1: Requesting Slave_Diag from slave 8...
PHY-serial: TX 68 05 05 68 88 83 7D 3C 3E 02 16
PHY-serial: RX 68 0B 0B 68 83 88 08 3E 3C 02 05 00 FF 00 C9 5C 16
DPM1: slave[08].state --> 'wait for Prm'
DPM1: Sending Set_Prm to slave 8...
PHY-serial: TX 68 13 13 68 88 83 5D 3D 3E B8 32 01 00 0A 35 01 00 00 00 82 00 00 00 90 16
PHY-serial: RX 10 03 08 02 0D 16
PHY-serial: TX 68 13 13 68 88 83 7D 3D 3E B8 32 01 00 0A 35 01 00 00 00 82 00 00 00 B0 16
PHY-serial: RX 10 03 08 02 0D 16
DPM1: State machine timeout! Trying to re-initializing slave 8...

Please Log in or Create an account to join the conversation.

More
08 Aug 2022 20:14 #249365 by Aciera
Replied by Aciera on topic Linuxcnc and Profibus
PHY-serial: TX 10 08 03 49 54 16

Hm. Not quite sure what is going on or if it's even important but your master has changed its address from 02 in your previous post to 03.

can you attach your current pyprofibus.conf please?

Please Log in or Create an account to join the conversation.

More
08 Aug 2022 20:22 #249368 by Aciera
Replied by Aciera on topic Linuxcnc and Profibus
Also I just noticed that your cpv module looks more modern than the one i used.
Can you check the part number on yours please?
ie something like CPV10-GE-DI02-8
The following user(s) said Thank You: blauerklappstuhl

Please Log in or Create an account to join the conversation.

More
08 Aug 2022 20:29 - 08 Aug 2022 20:37 #249370 by Aciera
Replied by Aciera on topic Linuxcnc and Profibus
And also try with the DIP switch "8" set to OFF.

Edit:
I have run out of time for today.
Last edit: 08 Aug 2022 20:37 by Aciera.

Please Log in or Create an account to join the conversation.

More
09 Aug 2022 09:06 #249384 by blauerklappstuhl
Found the issue: cpv dio1 uses different gse than dio2....took me until 2am this morning. All components are working now too (16input+8output). I will share gse and config later today.
By the way usb to rs485 seems to work ok. When triggering inputs slight delay is recognizable.Baudrate could be higher, but I will try with comport to rs485 later today if there are higher baudrates possible. Pci to rs485 could be an option, but I have no free slot.

Please Log in or Create an account to join the conversation.

More
09 Aug 2022 12:42 #249392 by Aciera
Replied by Aciera on topic Linuxcnc and Profibus
Great, glad you got it working.

Please Log in or Create an account to join the conversation.

More
23 Aug 2022 09:37 #250247 by blauerklappstuhl
Short update: I was able to achieve 3mbit with an usb to rs485 adapter with ftdi 232rl chip
Attachments:
The following user(s) said Thank You: Aciera

Please Log in or Create an account to join the conversation.

More
23 Aug 2022 09:44 #250248 by blauerklappstuhl
Next step is to use an ft2232h with an proper rs485 converter to get so 12mbit. I know its over usb and pyprofibus is not realtime due to userspace, but for adding more profibus slaves baudrate cant be high enough. A real bummer would be to implement profibus to the uart of a mesa card, but my capabilities in this direction are really limited.
The following user(s) said Thank You: tommylight

Please Log in or Create an account to join the conversation.

More
24 Aug 2022 13:42 #250324 by andypugh
Replied by andypugh on topic Linuxcnc and Profibus

Next step is to use an ft2232h with an proper rs485 converter to get so 12mbit. I know its over usb and pyprofibus is not realtime due to userspace, but for adding more profibus slaves baudrate cant be high enough. A real bummer would be to implement profibus to the uart of a mesa card, but my capabilities in this direction are really limited.

It shouldn't be that much harder than what you have already done, I don't think. 

What code are you using to build the packets? 

Please Log in or Create an account to join the conversation.

More
19 Dec 2022 06:31 #259876 by foxington
Replied by foxington on topic Linuxcnc and Profibus
hello gentelmen, is this thread still alive? 

very interesting reading and great job. I think when you want industial standard interface(widly used in global scale) it is great beginning spot. It is possible to configure siemens PLC stuff with I/Q and safety other features.

Is it possible to connect more slave on this stuff or have anybody any working example of that please?

Regards slav

Please Log in or Create an account to join the conversation.

Time to create page: 0.150 seconds
Powered by Kunena Forum