[Beremiz-devel] Connect to target PLC

classic Classic list List threaded Threaded
10 messages Options
Reply | Threaded
Open this post in threaded view
|

[Beremiz-devel] Connect to target PLC

Beremiz-Devel mailing list
Hello,
As i am new to Beremiz. Everything is working correctly but i did not find any proper document of how to use the 'connect to the target PLC button' in IDE. So if possible guide me regarding this to run my program. I am using Ubuntu.

Regards
Suleman Jamil

Cell: +49 157 52992288

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Beremiz-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/beremiz-devel
Reply | Threaded
Open this post in threaded view
|

Re: [Beremiz-devel] Connect to target PLC

Beremiz-Devel mailing list
On 17-10-25 08:46, beremiz-devel--- via Beremiz-devel wrote:
> Hello,As i am new to Beremiz. Everything is working correctly but i
> did not find any proper document of how to use the 'connect to the
> target PLC button' in IDE. So if possible guide me regarding this to
> run my program. I am using Ubuntu.
https://www.youtube.com/channel/UCcE4KYI0p1f6CmSwtzyg-ZA


--
Best regards,
Andrey Skvortsov

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Beremiz-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/beremiz-devel

signature.asc (849 bytes) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: [Beremiz-devel] Connect to target PLC

Beremiz-Devel mailing list
I have watched these videos but i did not find any video video related to PYRO . I am getting these error
Pyro exception: connection failed
Cannot get PLC status - connection failed.
Connection failed to PYRO://127.0.0.1:300!


Regards
Suleman Jamil

Cell: +49 157 52992288


On Wednesday, October 25, 2017, 10:54:57 AM GMT+2, <[hidden email]> wrote:


On 17-10-25 08:46, beremiz-devel--- via Beremiz-devel wrote:

> Hello,As i am new to Beremiz. Everything is working correctly but i
> did not find any proper document of how to use the 'connect to the
> target PLC button' in IDE. So if possible guide me regarding this to
> run my program. I am using Ubuntu.

https://www.youtube.com/channel/UCcE4KYI0p1f6CmSwtzyg-ZA


--
Best regards,
Andrey Skvortsov
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Beremiz-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/beremiz-devel

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Beremiz-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/beremiz-devel
Reply | Threaded
Open this post in threaded view
|

Re: [Beremiz-devel] Connect to target PLC

Beremiz-Devel mailing list
Hi Suleman,

On 17-10-25 09:05, beremiz-devel--- via Beremiz-devel wrote:
> I have watched these videos but i did not find any video video
> related to PYRO . I am getting these errorPyro exception: connection
> failedCannot get PLC status - connection failed.Connection failed to
> PYRO://127.0.0.1:300!

Are you sure, that your Beremiz service is running on port 300?

$ netstat -tlnp | grep python
tcp        0      0 0.0.0.0:8009            0.0.0.0:*               LISTEN      23933/python        
tcp        0      0 0.0.0.0:3000            0.0.0.0:*               LISTEN      23933/python

Default is 3000 port.




> Regards
> Suleman Jamil
> Cell: +49 157 52992288
> Email: [hidden email]
>
>    On Wednesday, October 25, 2017, 10:54:57 AM GMT+2, <[hidden email]> wrote:
>  
>  On 17-10-25 08:46, beremiz-devel--- via Beremiz-devel wrote:
> > Hello,As i am new to Beremiz. Everything is working correctly but i
> > did not find any proper document of how to use the 'connect to the
> > target PLC button' in IDE. So if possible guide me regarding this to
> > run my program. I am using Ubuntu.
> https://www.youtube.com/channel/UCcE4KYI0p1f6CmSwtzyg-ZA
>
>
> --
> Best regards,
> Andrey Skvortsov

--
Best regards,
Andrey Skvortsov

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Beremiz-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/beremiz-devel

signature.asc (849 bytes) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: [Beremiz-devel] Connect to target PLC

Beremiz-Devel mailing list
I am following the instruction from the following link with heading 
Run standalone Beremiz service

In config i have the following
PYRO://127.0.0.1:3000

Before this Build was successful but after the Pyro config i am getting the following error.

Start build in /home/suleman/BremizTest2/build
Generating SoftPLC IEC-61131 ST/IL/SFC code...
Compiling IEC Program into C code...
Extracting Located Variables...
C code generated successfully.
PLC :
   [CC]  plc_main.c -> plc_main.o
/home/suleman/BremizTest2/build/plc_main.c:106:21: fatal error: windows.h: No such file or directory
 #include <windows.h>
                     ^
compilation terminated.
"gcc" -c "/home/suleman/BremizTest2/build/plc_main.c" -o "/home/suleman/BremizTest2/build/plc_main.o"  "-I/home/suleman/Beremiz/matiec/lib/C" -Wno-unused-function
exited with status 1 (pid 4707)
C compilation of plc_main.c failed.
C Build failed.



Regards
Suleman Jamil

Cell: +49 157 52992288


On Wednesday, October 25, 2017, 11:15:40 AM GMT+2, <[hidden email]> wrote:


Hi Suleman,

On 17-10-25 09:05, beremiz-devel--- via Beremiz-devel wrote:
> I have watched these videos but i did not find any video video
> related to PYRO . I am getting these errorPyro exception: connection
> failedCannot get PLC status - connection failed.Connection failed to
> PYRO://127.0.0.1:300!

Are you sure, that your Beremiz service is running on port 300?

$ netstat -tlnp | grep python
tcp        0      0 0.0.0.0:8009            0.0.0.0:*              LISTEN      23933/python       
tcp        0      0 0.0.0.0:3000            0.0.0.0:*              LISTEN      23933/python

Default is 3000 port.




> Regards
> Suleman Jamil
> Cell: +49 157 52992288
> Email: [hidden email]
>
>    On Wednesday, October 25, 2017, 10:54:57 AM GMT+2, <[hidden email]> wrote:

>  On 17-10-25 08:46, beremiz-devel--- via Beremiz-devel wrote:
> > Hello,As i am new to Beremiz. Everything is working correctly but i
> > did not find any proper document of how to use the 'connect to the
> > target PLC button' in IDE. So if possible guide me regarding this to
> > run my program. I am using Ubuntu.
> https://www.youtube.com/channel/UCcE4KYI0p1f6CmSwtzyg-ZA
>
>
> --
> Best regards,
> Andrey Skvortsov


--
Best regards,
Andrey Skvortsov
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Beremiz-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/beremiz-devel

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Beremiz-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/beremiz-devel
Reply | Threaded
Open this post in threaded view
|

Re: [Beremiz-devel] Connect to target PLC

Beremiz-Devel mailing list

Hi Suleman,

From this gcc traceback, I can guess that you use Win32 target platform? Try to build your project using Linux target 


25.10.2017 12:27, beremiz-devel--- via Beremiz-devel пишет:
I am following the instruction from the following link with heading 
Run standalone Beremiz service

In config i have the following
PYRO://127.0.0.1:3000

Before this Build was successful but after the Pyro config i am getting the following error.

Start build in /home/suleman/BremizTest2/build
Generating SoftPLC IEC-61131 ST/IL/SFC code...
Compiling IEC Program into C code...
Extracting Located Variables...
C code generated successfully.
PLC :
   [CC]  plc_main.c -> plc_main.o
/home/suleman/BremizTest2/build/plc_main.c:106:21: fatal error: windows.h: No such file or directory
 #include <windows.h>
                     ^
compilation terminated.
"gcc" -c "/home/suleman/BremizTest2/build/plc_main.c" -o "/home/suleman/BremizTest2/build/plc_main.o"  "-I/home/suleman/Beremiz/matiec/lib/C" -Wno-unused-function
exited with status 1 (pid 4707)
C compilation of plc_main.c failed.
C Build failed.



Regards
Suleman Jamil

Cell: +49 157 52992288


--
Best regards, Sergey Surkov

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Beremiz-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/beremiz-devel
Reply | Threaded
Open this post in threaded view
|

Re: [Beremiz-devel] Connect to target PLC

Beremiz-Devel mailing list
Yup you are exactly right but still getting this error :(
Pyro exception: connection failed
Cannot get PLC status - connection failed.
Connection failed to PYRO://127.0.0.1:3000!


Regards
Suleman Jamil

Cell: +49 157 52992288


On Wednesday, October 25, 2017, 11:39:27 AM GMT+2, <[hidden email]> wrote:


Hi Suleman,

From this gcc traceback, I can guess that you use Win32 target platform? Try to build your project using Linux target 


25.10.2017 12:27, beremiz-devel--- via Beremiz-devel пишет:
I am following the instruction from the following link with heading 
Run standalone Beremiz service

In config i have the following
PYRO://127.0.0.1:3000

Before this Build was successful but after the Pyro config i am getting the following error.

Start build in /home/suleman/BremizTest2/build
Generating SoftPLC IEC-61131 ST/IL/SFC code...
Compiling IEC Program into C code...
Extracting Located Variables...
C code generated successfully.
PLC :
   [CC]  plc_main.c -> plc_main.o
/home/suleman/BremizTest2/build/plc_main.c:106:21: fatal error: windows.h: No such file or directory
 #include <windows.h>
                     ^
compilation terminated.
"gcc" -c "/home/suleman/BremizTest2/build/plc_main.c" -o "/home/suleman/BremizTest2/build/plc_main.o"  "-I/home/suleman/Beremiz/matiec/lib/C" -Wno-unused-function
exited with status 1 (pid 4707)
C compilation of plc_main.c failed.
C Build failed.



Regards
Suleman Jamil

Cell: +49 157 52992288


--
Best regards, Sergey Surkov
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Beremiz-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/beremiz-devel

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Beremiz-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/beremiz-devel
Reply | Threaded
Open this post in threaded view
|

Re: [Beremiz-devel] Connect to target PLC

Beremiz-Devel mailing list
In reply to this post by Beremiz-Devel mailing list
Now its working thanks a lot also connected to the target plc :)

Regards
Suleman Jamil

Cell: +49 157 52992288


On Wednesday, October 25, 2017, 11:39:27 AM GMT+2, <[hidden email]> wrote:


Hi Suleman,

From this gcc traceback, I can guess that you use Win32 target platform? Try to build your project using Linux target 


25.10.2017 12:27, beremiz-devel--- via Beremiz-devel пишет:
I am following the instruction from the following link with heading 
Run standalone Beremiz service

In config i have the following
PYRO://127.0.0.1:3000

Before this Build was successful but after the Pyro config i am getting the following error.

Start build in /home/suleman/BremizTest2/build
Generating SoftPLC IEC-61131 ST/IL/SFC code...
Compiling IEC Program into C code...
Extracting Located Variables...
C code generated successfully.
PLC :
   [CC]  plc_main.c -> plc_main.o
/home/suleman/BremizTest2/build/plc_main.c:106:21: fatal error: windows.h: No such file or directory
 #include <windows.h>
                     ^
compilation terminated.
"gcc" -c "/home/suleman/BremizTest2/build/plc_main.c" -o "/home/suleman/BremizTest2/build/plc_main.o"  "-I/home/suleman/Beremiz/matiec/lib/C" -Wno-unused-function
exited with status 1 (pid 4707)
C compilation of plc_main.c failed.
C Build failed.



Regards
Suleman Jamil

Cell: +49 157 52992288


--
Best regards, Sergey Surkov
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Beremiz-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/beremiz-devel

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Beremiz-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/beremiz-devel
Reply | Threaded
Open this post in threaded view
|

Re: [Beremiz-devel] Connect to target PLC

Beremiz-Devel mailing list
In reply to this post by Beremiz-Devel mailing list
On 17-10-25 09:48, beremiz-devel--- via Beremiz-devel wrote:
> Yup you are exactly right but still getting this error :(Pyro
> exception: connection failedCannot get PLC status - connection
> failed.Connection failed to PYRO://127.0.0.1:3000!

Are you sure that your Beremiz service is running and it's running on
port 3000? Have you checked this with netstat?

>
> Regards
> Suleman Jamil
> Cell: +49 157 52992288
> Email: [hidden email]
>
>    On Wednesday, October 25, 2017, 11:39:27 AM GMT+2, <[hidden email]> wrote:
>  
>  
> Hi Suleman,
>  
> From this gcc traceback, I can guess that you use Win32 target platform? Try to build your project using Linux target 
>  
>  
>  25.10.2017 12:27, beremiz-devel--- via Beremiz-devel пишет:
>  
>  
>    I am following the instruction from the following link with heading  Run standalone Beremiz service
>   https://bitbucket.org/skvorl/beremiz
>  
>   In config i have the following PYRO://127.0.0.1:3000
>  
>   Before this Build was successful but after the Pyro config i am getting the following error.
>   Start build in /home/suleman/BremizTest2/build Generating SoftPLC IEC-61131 ST/IL/SFC code... Compiling IEC Program into C code... Extracting Located Variables... C code generated successfully. PLC :    [CC]  plc_main.c -> plc_main.o /home/suleman/BremizTest2/build/plc_main.c:106:21: fatal error: windows.h: No such file or directory  #include <windows.h>                      ^ compilation terminated. "gcc" -c "/home/suleman/BremizTest2/build/plc_main.c" -o "/home/suleman/BremizTest2/build/plc_main.o"  "-I/home/suleman/Beremiz/matiec/lib/C" -Wno-unused-function exited with status 1 (pid 4707) C compilation of plc_main.c failed. C Build failed.
>  
>  
>   Regards
>  Suleman Jamil
>  Cell: +49 157 52992288
> Email: [hidden email]  
>  
>  --
> Best regards, Sergey Surkov ------------------------------------------------------------------------------
> Check out the vibrant tech community on one of the world's most
> engaging tech sites, Slashdot.org! http://sdm.link/slashdot_______________________________________________
> Beremiz-devel mailing list
> [hidden email]
> https://lists.sourceforge.net/lists/listinfo/beremiz-devel
>  

> ------------------------------------------------------------------------------
> Check out the vibrant tech community on one of the world's most
> engaging tech sites, Slashdot.org! http://sdm.link/slashdot

> _______________________________________________
> Beremiz-devel mailing list
> [hidden email]
> https://lists.sourceforge.net/lists/listinfo/beremiz-devel


--
Best regards,
Andrey Skvortsov

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Beremiz-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/beremiz-devel

signature.asc (849 bytes) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: [Beremiz-devel] Connect to target PLC

Beremiz-Devel mailing list
Yes its running and the port is  61149.
PYRO://127.0.0.1:61194

Regards
Suleman Jamil

Cell: +49 157 52992288


On Wednesday, October 25, 2017, 11:53:49 AM GMT+2, <[hidden email]> wrote:


On 17-10-25 09:48, beremiz-devel--- via Beremiz-devel wrote:
> Yup you are exactly right but still getting this error :(Pyro
> exception: connection failedCannot get PLC status - connection
> failed.Connection failed to PYRO://127.0.0.1:3000!

Are you sure that your Beremiz service is running and it's running on
port 3000? Have you checked this with netstat?

>
> Regards
> Suleman Jamil
> Cell: +49 157 52992288
> Email: [hidden email]
>
>    On Wednesday, October 25, 2017, 11:39:27 AM GMT+2, <[hidden email]> wrote:


> Hi Suleman,

> From this gcc traceback, I can guess that you use Win32 target platform? Try to build your project using Linux target 


>  25.10.2017 12:27, beremiz-devel--- via Beremiz-devel пишет:


>    I am following the instruction from the following link with heading  Run standalone Beremiz service
https://bitbucket.org/skvorl/beremiz

>  In config i have the following PYRO://127.0.0.1:3000

>  Before this Build was successful but after the Pyro config i am getting the following error.
>  Start build in /home/suleman/BremizTest2/build Generating SoftPLC IEC-61131 ST/IL/SFC code... Compiling IEC Program into C code... Extracting Located Variables... C code generated successfully. PLC :    [CC]  plc_main.c -> plc_main.o /home/suleman/BremizTest2/build/plc_main.c:106:21: fatal error: windows.h: No such file or directory  #include <windows.h>                      ^ compilation terminated. "gcc" -c "/home/suleman/BremizTest2/build/plc_main.c" -o "/home/suleman/BremizTest2/build/plc_main.o"  "-I/home/suleman/Beremiz/matiec/lib/C" -Wno-unused-function exited with status 1 (pid 4707) C compilation of plc_main.c failed. C Build failed.


>  Regards
>  Suleman Jamil
>  Cell: +49 157 52992288
> Email: [hidden email] 

>  --
> Best regards, Sergey Surkov ------------------------------------------------------------------------------
> Check out the vibrant tech community on one of the world's most
> engaging tech sites, Slashdot.org! http://sdm.link/slashdot_______________________________________________
> Beremiz-devel mailing list
> [hidden email]
> https://lists.sourceforge.net/lists/listinfo/beremiz-devel

> ------------------------------------------------------------------------------
> Check out the vibrant tech community on one of the world's most
> engaging tech sites, Slashdot.org! http://sdm.link/slashdot

> _______________________________________________
> Beremiz-devel mailing list
> [hidden email]
> https://lists.sourceforge.net/lists/listinfo/beremiz-devel



--
Best regards,

Andrey Skvortsov
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Beremiz-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/beremiz-devel

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Beremiz-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/beremiz-devel