Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » 4DIAC - Framework for Distributed Industrial Automation and Control » Installing WAGO-PFC-BSP-2018.2.1
Installing WAGO-PFC-BSP-2018.2.1 [message #1787447] Fri, 25 May 2018 14:37 Go to next message
Muhammad Obaid Khan is currently offline Muhammad Obaid KhanFriend
Messages: 32
Registered: September 2017
Member
Hello 4DIAC Team,
I am using virtual machine with Ubuntu 16.04 version to install and cross compile forte for Wago PFC 200 by following the tutorial "Installation/Forte for WagoPFCs".
I am having some errors during installation of WAGO-PFC-BSP-2018.2.1.
According to tutorial step this;

2.4) Let the package manager list available toolchains for the cortexa8 (just to see if repository is working correctly).

>apt-cache search cortexa8-linux-gnueabihf

I am supposed to see the repository working but it doesn´t show anything after the command entered "apt-cache search cortexa8-linux-gnueabihf" and after step 2.5,

2.5) Install "oselas.toolchain-2012.12.1-arm-cortexa8-linux-gnueabihf-...

>sudo apt-get install oselas.toolchain-2012.12.1-arm-cortexa8-linux-gnueabihf-gcc-4.7.3-glibc-2.16.0-binutils-2.22-kernel-3.6-sanitized
------------------------------------------------------------------------------
Repository will install the cross toolchain into folder:
/opt/OSELAS.Toolchain-2012.12.1/arm-cortexa8-linux-gnueabihf/gcc-4.7.3-glibc-2.16.0-binutils-2.22-kernel-3.6-sanitized/bin/
------------------------------------------------------------------------------

I am facing some errors which are shown in screenshot I shared. Please have a look and help me out.
Thanks a lot for your support

Best Regards
Obaid Khan
Re: Installing WAGO-PFC-BSP-2018.2.1 [message #1787473 is a reply to message #1787447] Fri, 25 May 2018 21:49 Go to previous messageGo to next message
Alois Zoitl is currently offline Alois ZoitlFriend
Messages: 1560
Registered: January 2014
Senior Member

if the apt-cache search does not show a list of supported toolchains it means that the step in 2.1 or 2.3 didn't work as it should. Could you recheck if apt-get update checks for updates at http://debian.pengutronix.de/debian/?
Re: Installing WAGO-PFC-BSP-2018.2.1 [message #1787589 is a reply to message #1787473] Tue, 29 May 2018 17:26 Go to previous messageGo to next message
Muhammad Obaid Khan is currently offline Muhammad Obaid KhanFriend
Messages: 32
Registered: September 2017
Member
Hello Mr. Alois,
I have rechecked the steps 2.1 and 2.3, screen shots are attached as an attachment please have a look to it. It does not check for updates at http://debian.pengutronix.de/debian/?. In fact it check for updates at http://ubuntu-master.mirror.tudos.de/ubuntu/.

Thanks
Best Regards
Obaid Khan
Re: Installing WAGO-PFC-BSP-2018.2.1 [message #1787601 is a reply to message #1787589] Tue, 29 May 2018 21:07 Go to previous messageGo to next message
Alois Zoitl is currently offline Alois ZoitlFriend
Messages: 1560
Registered: January 2014
Senior Member

Hi,

it looks like that somehow you created a directory '/ect/apt/soruces.list.d/pengutronix.list'
How I would proceed is to delete this directory and recrating this file. I personally prefere to use the editor nano which I think is installed per default in ubuntu.
nano /etc/apt/soruces.ist.d/pengutronix.list
and place there the line
deb http://debian.pengutronix.de/debian/ sid main contrib non-free

save it and close it.
you can afterwards checkt with the less command (less /etc/apt/soruces.ist.d/pengutronix.list) if you have the correct content in your file.

I hope this helps.

Cheers,
Alois

Re: Installing WAGO-PFC-BSP-2018.2.1 [message #1788393 is a reply to message #1787601] Wed, 30 May 2018 17:19 Go to previous messageGo to next message
Muhammad Obaid Khan is currently offline Muhammad Obaid KhanFriend
Messages: 32
Registered: September 2017
Member
Hello,

The directory '/etc/apt/sources.list.d/pengutronix.list' is unable to delete from my system as it is saved in Computer (Please check the attachments). From nano editor when i tried to save the file it gives 'Permission denied'.

Thanks
Best Regards
Obaid Khan
Re: Installing WAGO-PFC-BSP-2018.2.1 [message #1789993 is a reply to message #1788393] Fri, 01 June 2018 19:31 Go to previous messageGo to next message
Alois Zoitl is currently offline Alois ZoitlFriend
Messages: 1560
Registered: January 2014
Senior Member

Hi,

you can only perform changes there with super user rights. So you have to do the following in a console:

sudo su
cd /etc/apt/source.list.d
rm -rf pengutronix.list
nano pegnutronix.list

I hope this helps,
Alois
Re: Installing WAGO-PFC-BSP-2018.2.1 [message #1790060 is a reply to message #1789993] Mon, 04 June 2018 10:40 Go to previous messageGo to next message
Muhammad Obaid Khan is currently offline Muhammad Obaid KhanFriend
Messages: 32
Registered: September 2017
Member
Hello Mr. Alois,
Thanks a lot for the help and support. It is solved and now I am at step "(7.1) Compile all packages of PFC firmware" from the same tutorial "How to install WAGO-PFC-BSP". During compilation I was having some errors. Please have a look at an attachment file.
Is this step 7.1 is also the last step for installing WAGO-PFC-BSP? and then I should proceed to Building FORTE for WAGO tutorial?

Best Regards
Obaid Khan
Re: Installing WAGO-PFC-BSP-2018.2.1 [message #1790067 is a reply to message #1790060] Mon, 04 June 2018 11:37 Go to previous messageGo to next message
Alois Zoitl is currently offline Alois ZoitlFriend
Messages: 1560
Registered: January 2014
Senior Member

hi, as I understood the documentation (I haven't build forte on wago myself yet) this is the last step. However you have to find out the root-cause of your issue. For that normally you need to find the first error in your console output. Which I don't see on your screenshot.
Re: Installing WAGO-PFC-BSP-2018.2.1 [message #1790071 is a reply to message #1790067] Mon, 04 June 2018 11:54 Go to previous messageGo to next message
Muhammad Obaid Khan is currently offline Muhammad Obaid KhanFriend
Messages: 32
Registered: September 2017
Member
Hello
Please find an attachment screen-shot. I think this could be the root cause of my issue.

Thanks
Best Regards
Obaid Khan
Re: Installing WAGO-PFC-BSP-2018.2.1 [message #1790083 is a reply to message #1790071] Mon, 04 June 2018 13:34 Go to previous messageGo to next message
Alois Zoitl is currently offline Alois ZoitlFriend
Messages: 1560
Registered: January 2014
Senior Member

can you try if "sudo apt-get install libtool" solves your issue.
Re: Installing WAGO-PFC-BSP-2018.2.1 [message #1790136 is a reply to message #1790083] Tue, 05 June 2018 17:25 Go to previous messageGo to next message
Muhammad Obaid Khan is currently offline Muhammad Obaid KhanFriend
Messages: 32
Registered: September 2017
Member
Hello Mr. Alois,
I tried this command "sudo apt-get install libtool" but it shows that I already had the newest version installed. Please have a look at screen shot as an attachment. After this when I tried again "ptxdist go -q". The result is still the same.

Best Regards
Obaid Khan
Re: Installing WAGO-PFC-BSP-2018.2.1 [message #1790155 is a reply to message #1790136] Wed, 06 June 2018 08:12 Go to previous messageGo to next message
Milan Vathoopan is currently offline Milan VathoopanFriend
Messages: 45
Registered: August 2016
Member
Hi ,

I have not yet tried the latest wago build by myself. From the last build I tried, I remember the dependency of Ubunutu 14.01 LTS 32 bit for a flawless build.
Could you please check this with the latest build system?

cheers
Milan

[Updated on: Wed, 06 June 2018 08:12]

Report message to a moderator

Re: Installing WAGO-PFC-BSP-2018.2.1 [message #1790175 is a reply to message #1790155] Wed, 06 June 2018 13:37 Go to previous messageGo to next message
Muhammad Obaid Khan is currently offline Muhammad Obaid KhanFriend
Messages: 32
Registered: September 2017
Member
Hi,
I am using ubuntu 16.04 LTS now.
Are you suggesting me to use ubuntu 14.04 LTS instead of ubuntu 16.04?

Thanks
Best Regards
Obaid khan
Re: Installing WAGO-PFC-BSP-2018.2.1 [message #1790205 is a reply to message #1790175] Thu, 07 June 2018 02:05 Go to previous messageGo to next message
Milan Vathoopan is currently offline Milan VathoopanFriend
Messages: 45
Registered: August 2016
Member
Hi,

I could not check the latest BSP because of my limited internet connectivity. The dependency I mentioned is based on my last experience with BSP released in 2017. Eventhough I am not sure about Ubuntu version 14/16, I would say 32 bit version is a must. Please verify this from the installation guide coming along with the BSP WAGO-PFC-BSP-2018.2.1\HowTo_Install_WAGO-PFC-BSP-2018.2.1.txt". Hope this helps.

Milan
Re: Installing WAGO-PFC-BSP-2018.2.1 [message #1790386 is a reply to message #1790205] Sat, 09 June 2018 01:07 Go to previous messageGo to next message
Muhammad Obaid Khan is currently offline Muhammad Obaid KhanFriend
Messages: 32
Registered: September 2017
Member
Hello Milan,

Thanks a lot for your time and support.
I am already following the tutorial (How to install WAGO-PFC-BSP-latest) but I was using Ubuntu 16.04 64 bit LTS. As you mentioned that 32 bit version is must so I tried in Ubuntu 14.05 32 bit LTS and I think it works. I am still not sure that either all packages were installed or not. So I took some of the screen shots during compilation in step "7.1" (Compile all packages of PFC firmware) of the tutorial (How to install WAGO-PFC-BSP-latest).

Please have a look at the screen shots as an attachment for verification of warnings, errors and successful compilation.
How would we know that all the necessary packages are installed?

Best Regards
Obaid
  • Attachment: 1.png
    (Size: 263.81KB, Downloaded 257 times)
  • Attachment: 2.png
    (Size: 233.75KB, Downloaded 249 times)
  • Attachment: 3.png
    (Size: 253.21KB, Downloaded 249 times)
  • Attachment: 4.png
    (Size: 276.50KB, Downloaded 284 times)
  • Attachment: Last .png
    (Size: 239.49KB, Downloaded 285 times)
Re: Installing WAGO-PFC-BSP-2018.2.1 [message #1790396 is a reply to message #1790386] Sat, 09 June 2018 08:35 Go to previous messageGo to next message
Milan Vathoopan is currently offline Milan VathoopanFriend
Messages: 45
Registered: August 2016
Member
Hello Obaid,

Good to know that it worked for you. Your last screen shot shows that your BSP installation is complete and is ready to use. As far as I understood, the BSP checks for all the necessary packages, so you can ignore the warnings. You can try with some sample projects or directly forte installation at this stage. Hopefully it should work.

Cheers
Milan
Re: Installing WAGO-PFC-BSP-2018.2.1 [message #1790433 is a reply to message #1790396] Sun, 10 June 2018 20:56 Go to previous messageGo to next message
Muhammad Obaid Khan is currently offline Muhammad Obaid KhanFriend
Messages: 32
Registered: September 2017
Member
Hello Milan,
Now I am trying to do installation for Building FORTE as following the tutorial. Step 1 says;

1. Create forte_wago project in PTXDist: From FORTE/buildsupport/wago_pfc200/, copy the rule files forte_wago.in and forte_wago.make to wago/ptxproj-2.2.20/rules (creates a new package). Within the copied rule file .../ptxproj-2.2.20/forte_wago.make edit the line FORTE_WAGO_URL: file:///<path to FORTE main directory> to the absolute path of your FORTE main directory. To (de)activate specific modules (library parts) of FORTE edit .../ptxproj-2.2.20/wago.make line FORTE_WAGO_CONF_OPT := ...

I have question from line "Within the copied rule file .../ptxproj-2.2.20/forte_wago.make edit the line FORTE_WAGO_URL: file:///<path to FORTE main directory> to the absolute path of your FORTE main directory."Which path I have to give here?

Also when I tried to open the dialogue it shows that "ptxdist: error: refusing to run PTXdist as root"

I have attached screen shot as an attachment. Please have a look at it.
Thanks a lot
BR
Obaid
Re: Installing WAGO-PFC-BSP-2018.2.1 [message #1790454 is a reply to message #1790433] Mon, 11 June 2018 10:54 Go to previous messageGo to next message
Milan Vathoopan is currently offline Milan VathoopanFriend
Messages: 45
Registered: August 2016
Member
Hello Obaid,

1) The path FORTE_WAGO_URL: file:///<path to FORTE main directory> , should point to the directory where you placed(downloaded) the forte source

2) The command ptxdist will work only from the specific directory where you installed the BSP, for exmaple Wago2018/ptxdist-xxx. And make sure you execute this as a normal user and not as root.

Hope this will help.

[Updated on: Mon, 11 June 2018 10:57]

Report message to a moderator

Re: Installing WAGO-PFC-BSP-2018.2.1 [message #1790489 is a reply to message #1790454] Mon, 11 June 2018 16:52 Go to previous messageGo to next message
Muhammad Obaid Khan is currently offline Muhammad Obaid KhanFriend
Messages: 32
Registered: September 2017
Member
Hi Milan,

Thanks a lot for your support.

As you said in step " (1) The path FORTE_WAGO_URL: file:///<path to FORTE main directory> " I have to point the directory where FORTE source is downloaded. But I am now building FORTE for WAGO PLC, so how would I will know that which path to mention here?

Ptxdist command line had worked. I was executing it with the root user not with normal user. Thanks once again...

In step 3,
> cd wago/ptxproj-2.8.26
> ptxdist targetinstall forte_wago
I am facing following errors and it is hard for me to identify it. Please have a look on screen shot as attachment for identification of an error.

Best Regards
Obaid
Re: Installing WAGO-PFC-BSP-2018.2.1 [message #1790493 is a reply to message #1790489] Mon, 11 June 2018 19:18 Go to previous messageGo to next message
Milan Vathoopan is currently offline Milan VathoopanFriend
Messages: 45
Registered: August 2016
Member
Hi Obaid,

FORTE_WAGO is just a random name we used for the project, and FORTE_WAGO_URL refers to the source of the project. You are cross compiling wago BSP along with forte from your ubuntu virtual machine. So in your case the source is the forte source you downloaded in your virtual machine. In my machine it looks something like this, FORTE_WAGO_URL:= file:///home/org.eclipse.4diac.forte.

Unfortunately I cannot see your attachment and thus the rest of the description

Milan
Re: Installing WAGO-PFC-BSP-2018.2.1 [message #1790497 is a reply to message #1790493] Mon, 11 June 2018 21:05 Go to previous messageGo to next message
Alois Zoitl is currently offline Alois ZoitlFriend
Messages: 1560
Registered: January 2014
Senior Member

As the message in your screenshot above says. You should not run ptxdist as user root. Does it change when you run it as normal user?
Re: Installing WAGO-PFC-BSP-2018.2.1 [message #1790525 is a reply to message #1790497] Tue, 12 June 2018 11:41 Go to previous messageGo to next message
Muhammad Obaid Khan is currently offline Muhammad Obaid KhanFriend
Messages: 32
Registered: September 2017
Member
Hi Milan,

I don´t have the FORTE source in my ubuntu virtual machine or any URL with this name "org.eclipse.4diac.forte". Does it comes along with 4DIAC-IDE when we download it or we have to build separately ?

I have one more information to add that in future I will going to use 4diac OPC UA communication features as a communication protocol between RPI and WAGO PLC. I had already build FORTE with Open62541 source code in my Ubuntu virtual machine. In past, I also asked the question in group about that possibility and I got the answer YES it is possible as we have to cross compile both FORTE.

For step 3 error (ptxdist targetinstall forte_wago), I am attaching screen shots again. Please have a look at them. I hope it will be visible this time.

Alois = Yes it changed when I executed it with normal user. It was showing error when I was running it with root user.

Thanks a lot
Obaid
Re: Installing WAGO-PFC-BSP-2018.2.1 [message #1790567 is a reply to message #1790525] Wed, 13 June 2018 05:33 Go to previous messageGo to next message
Milan Vathoopan is currently offline Milan VathoopanFriend
Messages: 45
Registered: August 2016
Member
Hi Obaid,

You have to download the 4diac rte(forte) source from the following link https://www.eclipse.org/4diac/en_dow.php. Please get it and place it somewhere in your virtual machine and point FORTE_WAGO_URL to this directory.

From the screenshot, I did not understand how you were able to compile without specifying any source. Could you please make a try with the latest source as shown above?
Building open62541 is also possible following the same procedure for cross compiling. You can also check it in Wago howtos.
Re: Installing WAGO-PFC-BSP-2018.2.1 [message #1790743 is a reply to message #1790567] Fri, 15 June 2018 10:11 Go to previous messageGo to next message
Muhammad Obaid Khan is currently offline Muhammad Obaid KhanFriend
Messages: 32
Registered: September 2017
Member
Hello Milan,

I have downloaded forte rte source code and tried it, but the result is still same. I am still having the same error which I was facing before during compilation of command (> ptxdist targetinstall forte_wago).

Please have a look at the screen shots that either the forte source and its URL is correct?

With the 4DIAC-ide download from website (https://www.eclipse.org/4diac/en_dow.php.) we don´t have the build-In RTE in it. So I download it from clone source as (git clone -b develop git://git.eclipse.org/gitroot/4diac/org.eclipse.4diac.forte.git).

Thanks a lot
Best Regards
Obaid
Re: Installing WAGO-PFC-BSP-2018.2.1 [message #1790744 is a reply to message #1790743] Fri, 15 June 2018 12:36 Go to previous messageGo to next message
Jose Maria Jesus Cabral Lassalle is currently offline Jose Maria Jesus Cabral LassalleFriend
Messages: 199
Registered: February 2016
Senior Member
The compiler error you had before was a bug in the forte code. It was fixed in branch 1.9.x. please, go into your org.eclipse.4diac.forte folder in the terminal and execute
git checkout 1.9.x
. If you then compile, you shouldn't get the error
Re: Installing WAGO-PFC-BSP-2018.2.1 [message #1790817 is a reply to message #1790744] Mon, 18 June 2018 13:46 Go to previous messageGo to next message
Muhammad Obaid Khan is currently offline Muhammad Obaid KhanFriend
Messages: 32
Registered: September 2017
Member
Hello Jose Maria,

Thanks for your time and support.
I have tried to execute the command "git checkout 1.9.x" from the desired terminal "org.eclipse.4diac.forte" and then execute the command for compilation,
> cd wago/ptxproj-2.8.26
> ptxdist targetinstall forte_wago
but I still have the errors. I have attached the screenshots of both the commands output after execution and compilation. Please find it as an attachment.

Best Regards
Obaid
Re: Installing WAGO-PFC-BSP-2018.2.1 [message #1790874 is a reply to message #1790817] Tue, 19 June 2018 12:44 Go to previous messageGo to next message
Milan Vathoopan is currently offline Milan VathoopanFriend
Messages: 45
Registered: August 2016
Member
Hello Obaid,

After making any changes in your source, you have to rebuild the project. You can do this as follows,
#Remove all previously created time stamps from your project.
ptxdist clean forte_wago
#Rebuild as normal 
ptxdist targetinstall forte_wago

Hope this solve your problem.

Milan

[Updated on: Tue, 19 June 2018 12:46]

Report message to a moderator

Re: Installing WAGO-PFC-BSP-2018.2.1 [message #1791158 is a reply to message #1790874] Mon, 25 June 2018 10:25 Go to previous messageGo to next message
Jose Maria Jesus Cabral Lassalle is currently offline Jose Maria Jesus Cabral LassalleFriend
Messages: 199
Registered: February 2016
Senior Member
And maybe a
git pull origin 1.9.x
to update to the last version
Re: Installing WAGO-PFC-BSP-2018.2.1 [message #1791256 is a reply to message #1791158] Tue, 26 June 2018 21:22 Go to previous messageGo to next message
Muhammad Obaid Khan is currently offline Muhammad Obaid KhanFriend
Messages: 32
Registered: September 2017
Member
Hello Jose and Milan,
Thanks a lot for help. It´s been solved with step:
. git checkout 1.9.x
then,
. ptxdist clean forte_wago
. ptxdist targetinstall forte_wago

Now I am proceeded to next step of the tutorial which is,
"Build and Debug FORTE remotely on Wago PFC with Eclipse"

Best Regards
Obaid
Re: Installing WAGO-PFC-BSP-2018.2.1 [message #1791550 is a reply to message #1791256] Mon, 02 July 2018 12:06 Go to previous messageGo to next message
Muhammad Obaid Khan is currently offline Muhammad Obaid KhanFriend
Messages: 32
Registered: September 2017
Member
Hello Milan and Jose,

I have a question to ask. I am now following the tutorial as mentioned above "Build and Debug FORTE remotely on Wago PFC with Eclipse" and I am on step:
"Within the Remote System Explorer perspective create a New Connection by clicking on New Connection button. Choose Linux and press Next. Enter the IP of our Wago PFC as Host name and type any Connection Name e.g. wagoPFC200 and press finish".

My question is what is the IP of our Wago PFC? How I could find the IP address.

Thanks a lot
Sincerely,
Obaid
Re: Installing WAGO-PFC-BSP-2018.2.1 [message #1791822 is a reply to message #1791550] Thu, 05 July 2018 15:23 Go to previous messageGo to next message
Muhammad Obaid Khan is currently offline Muhammad Obaid KhanFriend
Messages: 32
Registered: September 2017
Member
Hello 4DIAC Team,
I still have the same question to ask which was my last message. Please help me out if someone knows about it.
Does for the step "Enter the IP of our Wago PFC as Host name", I have to connect PLC for that also?
I have one more question to ask as I am new to PLC communicating, so I have a lack of knowledge.
If in case we don´t need to connect the PLC for step "Enter the IP of our Wago PFC as Host name", then when or which step I have to connect the controller to my PC?

I will be very thankful for your support.

Best Regards
Obaid
Re: Installing WAGO-PFC-BSP-2018.2.1 [message #1791840 is a reply to message #1791822] Fri, 06 July 2018 06:54 Go to previous messageGo to next message
Milan Vathoopan is currently offline Milan VathoopanFriend
Messages: 45
Registered: August 2016
Member
Hello Obaid,

Please refer to your Wago PFC manual, to learn how to set a custom IP/ use the fixed IP from Wago. Once you set the IP of your PFC make sure you can ping your PFC from your PC. You do not need to connect your Wago PFC when you enter the static parameters in Eclipse remote system explorer. Once you set up everything, you can connect to your PFC remotely using remote system explorer "connect" button.

Also please note that "building using Eclipse CDT is only an alternative to directly building and running forte from terminals using PTXDist. Eclipse based build is recommended when you need remote debugging of forte from your PC using Eclipse or when you feel more comfortable with Eclipse based build (using again PTXdist as build environment) than a PTXdist build from terminal.

If you have already built forte using PTXDist, after setting IP of your PFC, you can use tools like "Putty" for communicating with your PFC and and also for transferring forte executables you built using PTXDist.

Hope this helps.
Milan
Re: Installing WAGO-PFC-BSP-2018.2.1 [message #1800367 is a reply to message #1791840] Wed, 26 December 2018 04:25 Go to previous messageGo to next message
Muhammad Obaid Khan is currently offline Muhammad Obaid KhanFriend
Messages: 32
Registered: September 2017
Member
Hello Milan,
I am again building forte for wago PFC. Due to some problem I have to rebuild it again but this time I am facing different type of error during step;

> cd wago/ptxproj-2.8.35
> ptxdist targetinstall forte_wago

I am attaching a screen-shot of current error please have a look at it.

Thanks
Sincerely,
Obaid
Re: Installing WAGO-PFC-BSP-2018.2.1 [message #1800561 is a reply to message #1800367] Wed, 02 January 2019 13:39 Go to previous messageGo to next message
Milan Vathoopan is currently offline Milan VathoopanFriend
Messages: 45
Registered: August 2016
Member
Hi Obaid,

I have not faced this error before. My guess is that, you are using space instead of tab in line no 35 of your rule file aka makefile (forte_wago.make) as shown here https://stackoverflow.com/questions/16931770/makefile4-missing-separator-stop/42195571. Hope this helps you.

Milan
Re: Installing WAGO-PFC-BSP-2018.2.1 [message #1800898 is a reply to message #1800561] Wed, 09 January 2019 13:50 Go to previous messageGo to next message
Muhammad Obaid Khan is currently offline Muhammad Obaid KhanFriend
Messages: 32
Registered: September 2017
Member
Hello Milan,

Thanks a lot for your help. It is solved

Sincerely,
Obaid
Re: Installing WAGO-PFC-BSP-2018.2.1 [message #1802284 is a reply to message #1800898] Wed, 06 February 2019 00:15 Go to previous messageGo to next message
Muhammad Obaid Khan is currently offline Muhammad Obaid KhanFriend
Messages: 32
Registered: September 2017
Member
Hello Milan,
Can you please explain your second last message statement:

"Also please note that "building using Eclipse CDT is only an alternative to directly building and running forte from terminals using PTXDist. Eclipse based build is recommended when you need remote debugging of forte from your PC using Eclipse or when you feel more comfortable with Eclipse based build (using again PTXdist as build environment) than a PTXdist build from terminal".

Unfortunately I am unable to understand this.

Thanks a lot
Sincerely,
Obaid
Re: Installing WAGO-PFC-BSP-2018.2.1 [message #1802312 is a reply to message #1787447] Wed, 06 February 2019 08:29 Go to previous messageGo to next message
Ben Schneider is currently offline Ben SchneiderFriend
Messages: 25
Registered: February 2017
Junior Member
Hi,

this means that if you want to remotely debug forte (i.e., forte running on a Wago PLC and the debugging console running on your development PC in eclipse) than you should use the eclipse-based build insted of building it directly in the ptxdist environment.

Does this help?

Cheers,
Ben
Re: Installing WAGO-PFC-BSP-2018.2.1 [message #1807876 is a reply to message #1802312] Tue, 11 June 2019 11:07 Go to previous messageGo to next message
Sezer Aglikat is currently offline Sezer AglikatFriend
Messages: 4
Registered: June 2019
Junior Member
Hello,
I have also tried to follow the instructions. You can see my exact procedure in the videos under the following link. the terminal code for the wago instructions is also attached as a text file.

https://drive.google.com/open?id=1uv9gpyE_wVtjMx2S2ZNDbWvIwM3SFcO5

My problem is the step "A Terminal view should open as well as a Remote System Details view". There, I don't have the same output and can't connect to the wago plc.

I am grateful for any help and support.
best regards
Sezer

[Updated on: Tue, 11 June 2019 14:05]

Report message to a moderator

Re: Installing WAGO-PFC-BSP-2018.2.1 [message #1807904 is a reply to message #1807876] Wed, 12 June 2019 06:54 Go to previous messageGo to next message
Milan Vathoopan is currently offline Milan VathoopanFriend
Messages: 45
Registered: August 2016
Member
Hi,

First of all thanks to the video which you created, I think this will make life easier for many 4diac- Wago enthusiasts. One thing in advance, the Eclipse based build and debugging is required only when you require remote dubugging of your 4diac project on Wago PFC target device. For the initial testing of your compiled forte (4diac run time env) on wago, succeeding the step
 ptxdist targetinstall forte_wago 
you may use any file transfer utility like filezilla, putty , etc, to transfer the binary obtained on to the target Wago PFC. After/before copying the binary make sure you kill the Codesys run time using
kill plclinux_rt 
Then you may execute your forte as normal
 > ./forte 
Hopefully it will work.
Coming to your eclipse use case, the problem is that the behavior of the remote system plugin may vary from version to version. I think you you have everything ready in your case. You are already connected to the wago. In your last step(3-3) at 16.27-17:27, you have a terminal window where you can execute all embedded linux commands and expand the root node of the remote system device, you may get the same root tree as shown in the help file.

I would be happy to know if it helps and see a full video.
Re: Installing WAGO-PFC-BSP-2018.2.1 [message #1808059 is a reply to message #1807904] Sat, 15 June 2019 19:25 Go to previous messageGo to next message
Sezer Aglikat is currently offline Sezer AglikatFriend
Messages: 4
Registered: June 2019
Junior Member
Hi Milan,

you're welcome! I have now uploaded the videos on youtube. All videos have a timestamp to each step in the description.:

Building 4diac FORTE for Wago (1-3) wago manual
https://youtu.be/CqV-g_DYrzs

Building 4diac FORTE for Wago (2-3) eclipse manual
https://youtu.be/wb48uDva-8k

Building 4diac FORTE for Wago (3-3) eclipse manual
https://youtu.be/C-GAD0L3F6U

Install filezilla on ubuntu 14.04 LTS
https://youtu.be/y0OUOxY2d9g

I followed your advice: I'm getting the same root tree as shown in the help file. Nevertheless there is a difference in the file size (see attachment).

1. Where was I supposed to execute that command: ubuntu terminal or the terminal in "Remote System Explorer"?
ptxdist targetinstall forte_wago


2. How should I connect to my wago via filezilla? Which login information should I enter? (See video: https://drive.google.com/open?id=1uv9gpyE_wVtjMx2S2ZNDbWvIwM3SFcO5)

3. Does it make a difference if the file sizes are not the same? (See attachment)

Thank you in advance.

[Updated on: Sat, 15 June 2019 21:03]

Report message to a moderator

Re: Installing WAGO-PFC-BSP-2018.2.1 [message #1808077 is a reply to message #1808059] Mon, 17 June 2019 07:59 Go to previous message
Milan Vathoopan is currently offline Milan VathoopanFriend
Messages: 45
Registered: August 2016
Member
Hi,

Once again thank you for the videos. I know "ptxdist targetinstall forte_wago" is a confusing command, one might expect that it should install the executable directly on the target. Yes it does, but this happens in the target system linux tree generated in your local host Ubuntu machine. These files are not transferred automatically to the actual remote Wago hardware. Our help files assumes that you create a bootable SD card as mentioned in the wago help file. This means you transfer your whole embedded linux tree on to your bootable SD card, and then boot with this SD card. You do not need to manually transfer the files in this case.

Subsequently you might need to connect to your remote hardware (Wago_PFC), where some tools like Putty, filezilla, Eclipse remote system explorer, etc., may be handy. We recommended Eclipse remote system explorer because it offers a more user-friendly experience for standard ssh and ftp connection offered by FileZilla and Putty. In addition, Eclipse remote system explorer offers remote debugging functionality, which will be really helpful, once we start playing with "forte" on remote hardware (Wago_PFC) . With any of the tools mentioned above, you may use the standard credentials from wago to establish an SSH connection.

Then comes the second case. If you do not want to create a bootable image and want to use the wago image on the shipped device OR do not want to disturb the bootable image already created, then you have to manually transfer the executable files generated in .../ptxproj-2.2.20/platform-wago-pfc200/buid-target/forte_wago-1.6.2-build/src to the target remote hardware (Wago_PFC). Here you may once again use any of the tools mentioned above. With filezilla or Eclipse remote system explorer, you get a tree view of the local file system (Host device) and remote system (target Wago_PFC) separately. You can use drag and drop functionality to execute a file transfer. It is recommended that a generated binary is copied on to /usr/bin directory of remote hardware (Wago_PFC).

Coming back your questions,

(1) Any of the command with prefix "ptxdist" works on only in the ptxdist build system project environment, ie for example ~wago/ptxproj-2.2.xx on the host machine

(2)You have already set up a Eclispe remote system explorer connection to the target wago PFC. So if you have used a bootable SD card, then your forte_wago might be there in the /usr/bin directory of the Wago_PFC. Otherwise you might have to drag and drop forte_wago binary from .../ptxproj-2.2.20/platform-wago-pfc200/buid-target/forte_wago-1.6.2-build/src directory of the host machine to /usr/bin directory of the target device

(3) The file sizes may not be an issue. As mentioned in the documentation, the help file, was created based on WAGO-PFC-BSP-2014.10.3, wago may have optimized their BSP in between.

Once you get an executable on the remote hardware(Wago_PFC), you may run any standard commands on the remote hardware(Wago_PFC) shell. For example
 ./forte

Previous Topic:dll import in programming
Next Topic:MQTT Implementation in 4diac
Goto Forum:
  


Current Time: Thu Mar 28 09:28:24 GMT 2024

Powered by FUDForum. Page generated in 0.08346 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top