Control from a Festo valve terminal

More
18 Dec 2022 15:23 #259825 by mgm
I have now managed to get rid of the "file not found" error with absolute file paths for the directory and the two files , BUT ...

Something is not right on the system from me!
I get an error message that in the pyprofibus.conf file are invalid characters like ";" ...

I guess I'm just doing something very wrong when running the demo version.
What I have done is this:
- Downloaded zip from git and unzipped it
- Copied the unzipped folder into linuxcnc/configs folder
To call the demo versinon I open via applications and linuxcnc in the appearing list under pyprofibus-master / linuxcnc-demo-cpv10-g / linuxcnc-demo

Is this procedure right or wrong?

I have so far assumed that the demo goes WITHOUT Hardwaer is that right?

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

More
18 Dec 2022 17:16 #259839 by Aciera
The config doesn't work with the hardware attached. In that sense the word "demo" is a misnomer but you should get specific errors pointing to profibus not being able to configure the port. See my attached terminal output below.

Since I don't have the machine anymore that I used to test pyprofibus I just tried it on a machine with a RIP installation:

- Downloaded zip from git and unzipped it
- Copied the unzipped folder into linuxcnc/configs folder
then I run
$ linuxcnc
and select pyprofibus-master / linuxcnc-demo-cpv10-g / linuxcnc-demo

This is what I get with no hardware attached or correct port configured:

Warning: Spoiler!



I did have to change 'profibus.hal' to this in order to find the file:
loadusr -Wn profibus ../pyprofibus-linuxcnc-hal pyprofibus.conf

So you might want to start linuxcnc from a terminal:
$ linuxcnc
That will give you more debug information.

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

More
18 Dec 2022 17:19 #259840 by Aciera
I'm sorry I meant to say

The config doesn't work WITHOUT the hardware attached!

Didn't want to edit the post above because I would likely have had to write the whole post again because of the crazy forum editor.

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

More
18 Dec 2022 19:00 #259845 by mgm
Thanks for testing ....
I now get the same error message as you !

Ok then I have understood the demo differently.

Then I will make now times the hardware ready .... or get
I have two valve islands a 8 valves in cpv 14.

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

More
01 Jan 2023 18:26 #260720 by mgm
So now that I have my components together I have started testing.
As expected, there are of course schierigkeiten, which it is now to eliminate!
so I have this control unit: CPV14 GE DIO1-8
                                                       165811 R007
                                                        HW 2.11.00
                                                        SW 14.01.99
 
In addition the connector FSB-SUB-9-GS-DP-B
                                                        532216 R007
 
and a USB to RS485 TTL Serial
 

After I have wired and connected everything I have the following situation:
- at the valve island the power LED is permanently green
- the red BUS LED flashes every second!
- the DEMO of LCNC starts and I get the following in the terminal:
Warning: Spoiler!

The settings in the connector are as follows:
 

My first question would be:
- do I need another gse file?

 
Attachments:

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

More
01 Jan 2023 18:45 #260722 by mgm
I can answer the question myself
Yes I need a new gse file named:
VI1000C9.GSE
The following user(s) said Thank You: endian

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

More
01 Jan 2023 20:27 #260727 by mgm
I have now inserted the gse file into the Profibus.conf unfortunately no change of the described state
On the converter the RX LED flashes but the TX LED does nothing.
It looks like there is no connection to the module!
I have the two data lines on the module labeled A and B and connected to the converter with A and P so:
A --> A
B --> P
is that correct?

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

More
02 Jan 2023 12:03 #260761 by mgm
Update:
I can not figure out what it is that I can not get a connection to the valve block!
currently I get the following error message in the terminal:
PHY-serial: TX   10 08 02 49 53 16
PHY-serial: TX   10 08 02 49 53 16
PHY-serial: TX   10 08 02 49 53 16
PHY-serial: RX (fragment)   00 00 00
DPM1: RX error: PHY-serial: Failed to get received telegram size: Invalid telegram format.
 

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

More
02 Jan 2023 12:59 #260763 by Aciera
Hard to say from afar but my first guess would be a misconfiguration of the RS485 adapter. Would help if you had a scope to see if it's actually putting out the data to the line.

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

More
02 Jan 2023 17:18 #260777 by mgm
Now I have changed the converter and now I get the following output in the terminal:
PHY-serial: TX   10 08 02 49 53 16
PHY-serial: RX   10 08 02 49 53 16
PHY-serial: TX   10 08 02 49 53 16
PHY-serial: RX   10 08 02 49 53 16
PHY-serial: TX   10 08 02 49 53 16
PHY-serial: RX   10 08 02 49 53 16
PHY-serial: TX   10 08 02 49 53 16
PHY-serial: RX   10 08 02 49 53 16
PHY-serial: TX   10 08 02 49 53 16
PHY-serial: RX   10 08 02 49 53 16
PHY-serial: TX   10 08 02 49 53 16
PHY-serial: RX   10 08 02 49 53 16
PHY-serial: TX   10 08 02 49 53 16
PHY-serial: RX   10 08 02 49 53 16
Nevertheless, there is still something wrong with the connection!

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

Time to create page: 0.152 seconds
Powered by Kunena Forum