[Beremiz-devel] How to build Beremiz on Windows?

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

Re: [Beremiz-devel] How to use GUI

Beremiz-Devel mailing list
Hi Xiao,

On 17-11-01 08:15, [hidden email] wrote:

>     How to add my GUI in Bemeriz. I add one but don’t know how to use it. Would you give me a GUI sample? By the way, what is the difference of “WxGlade GUI” and “SVGUI”?
> [cid:image002.png@01D3532C.9CDFB790]

Have you looked at existing examples in Beremiz [1]?
They have comments inside.
There is YouTube channel with varios videos Beremiz [2].


1. https://bitbucket.org/skvorl/beremiz/src/e5ddbaf756cb16471538634b7253c7af8c77c393/tests/?at=default
2. https://www.youtube.com/user/andrewskvortzov

--
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] How to use GUI

Beremiz-Devel mailing list
In reply to this post by Beremiz-Devel mailing list

Hi Xiao,


01.11.2017 11:15, [hidden email] пишет:

Dear Sergey Surkov

 

    How to add my GUI in Bemeriz. I add one but don’t know how to use it. Would you give me a GUI sample? By the way, what is the difference of “WxGlade GUI” and “SVGUI”?

Actually, Beremiz contain folder with tests, there is wxGlade, svgui and wxHMI examples. The difference between wxGlade and svgui is that wxGlade just an editor where you can visually create standard wxPython forms (alike in wxFormBuilder), and wxGlade will generate Python code, that you can use on Linux-based PLC for your own HMI, and it will be a native X session, not a web service. On the other hand, svgui is a HMI, based on web server, where you can draw controls in SVG graphics.

 

    What is the source file structure of Beremiz Editor? Where can we find any explanation.

 

 

Best regards
Xiao
Beremiz store source files in xml. Structure of the file is not documented, but you can open any project in text editor and view it structure, just for overview. And you can look at xml parser (xmlclass.py) for understanding xml structure of project.

--
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
|

[Beremiz-devel] How to develop my own motion control FB?

Beremiz-Devel mailing list
In reply to this post by Beremiz-Devel mailing list

Dear Sergey Surkov,

 

         Thank you for your detailed reply.

 

         I have one question about matiec.  If I run bemeriz on Linux, it can build exe file like below rather than dll/so file. My question is how to set the configuration.

 

cid:image001.png@01D353CE.8B070DA0

        

 

 

        

         Another question is how to develop my own motion function block. I have no idea about how to control my servo motor via field bus(what is the overall structure). Where is the main function and in which module should I put my motion function block into? Would you give me any document about that?

 

 

 

 

 

 

 

 

 

 

 

华为技术有限公司 Huawei Technologies Co., Ltd.

 

Mobile: 15899917957

Email: [hidden email]

地址:深圳市龙岗区坂田华为基地 邮编:518129

Huawei Technologies Co., Ltd.

Bantian, Longgang District,Shenzhen 518129, P.R.China

http://www.huawei.com

 

本邮件及其附件含有华为公司的保密信息,仅限于发送给上面地址中列出的个人或群组。禁

止任何其他人以任何形式使用(包括但不限于全部或部分地泄露、复制、或散发)本邮件中

的信息。如果您错收了本邮件,请您立即电话或邮件通知发件人并删除本邮件!

This e-mail and its attachments contain confidential information from HUAWEI, which

is intended only for the person or entity whose address is listed above. Any use of the

information contained herein in any way (including, but not limited to, total or partial

disclosure, reproduction, or dissemination) by persons other than the intended

recipient(s) is prohibited. If you receive this e-mail in error, please notify the sender by

phone or email immediately and delete it!

 

 

 

-----邮件原件-----
发件人: [hidden email] [[hidden email]]
发送时间: 2017111 16:55
收件人: [hidden email]
抄送: Wuyongjie (Test & ATE); Tanshenglong (tangshenglong, 2012Labs)
主题: Re: [Beremiz-devel] 答复: 答复: 答复: 答复: 答复: How to build Beremiz on Windows?

 

Hi Xiao,

 

On 17-11-01 07:54, [hidden email] wrote:

>

> Dear Sergey Surkov

>

>     I install Beremiz-1.1_RC5.exe  run/build bemeriz successfully

>     like below( I have one question, why the final file is dll file

>     rather than exe file?)

Why do you use such an old version (1.1-RC5)? It's not supported for a long long time. Use at least 1.2-RC1 or better use latest version from [1].

 

DLL is loaded and then executed by runtime.

In case of Win32 target, it's Beremiz_service that is started and running in background on your computer.

 

 

> [<a href="cid:image002.png@01D35304.53F731C0">cid:image002.png@01D35304.53F731C0]

>

>

>     But if I copy the newest version skvorl-beremiz-614396cbffbf

>     in the same folder and build the same project, it prompt error

>     as below(by the way,

Most likely the problem is your very old matiec from 1.1-RC5. Some C headers have changed in matiec library and C code generated by Beremiz extensions (py_ext, svgui, wxhmi) depend on matiec's headers.

Therefore py_ext from latest Beremiz generates C code compatible with the latest matiec, but not with the old you have. As a result you get C compilation error.

 

 

> how to change language version, I want to use English version ):

> [<a href="cid:image003.png@01D35329.864D1700">cid:image003.png@01D35329.864D1700]

To change language, you need to change language settings for your Windows account (Control Panel - Region and Language).

 

 

1. https://bitbucket.org/skvorl/beremiz

 

 

--

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
Reply | Threaded
Open this post in threaded view
|

Re: [Beremiz-devel] How to develop my own motion control FB?

Beremiz-Devel mailing list
Hi Xiao,

On 17-11-02 07:41, [hidden email] wrote:
> Dear Sergey Surkov,
>
>          Thank you for your detailed reply.
I'm not Sergey, but you are welcome. ;-)

>
>
>          I have one question about matiec.  If I run bemeriz on
>          Linux, it can build exe file like below rather than dll/so
>          file. My question is how to set the configuration.

> [cid:image001.png@01D353CE.8B070DA0]
What do you mean by running Beremiz on GNU/Linux? I see on your
screenshot that Beremiz (IDE) is running on Windows.
I see you are using old Beremiz from LOLItech. I don't
know what is in this version.
In current Beremiz version PLC program always is compiled into dll
for Win32 target and so file for Linux/Xenomai targets.
What target do you compile project for?

>          Another question is how to develop my own motion function
>          block. I have no idea about how to control my servo motor
>          via field bus(what is the overall structure). Where is the
>          main function and in which module should I put my motion
>          function block into? Would you give me any document about
>          that?
If you are developing your own PLC function blocks or functions, you
have to put them into library. See Native library in Beremiz (source files:
Native.xml, Native.py). Libraries as well as extensions are registered in features.py.

--
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
|

[Beremiz-devel] How to connect to the target

Beremiz-Devel mailing list
Hi Andrey Skvortsov,


        When I run beremiz editor on windows and connect to the target(on windows),  I got error as below:
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
开始建立 C:\Program Files (x86)\Beremiz\Bemeriz-newest\tests\traffic_lights\build
生成软PLC IEC-61131 ST/IL/SFC 代码......
正在将IEC程序编译成C代码...
正在提取位置变量......
C代码生成成功。
PLC:
   [CC]  plc_main.c -> plc_main.o
   [CC]  plc_debugger.c -> plc_debugger.o
py_ext :
   [CC]  py_ext.c -> py_ext.o
PLC:
   [CC]  config.c -> config.o
   [CC]  resource1.c -> resource1.o
链接:
   [CC]  plc_main.o plc_debugger.o py_ext.o config.o resource1.o -> traffic_lights.dll
成功构建.
PLCobject : OFF LOG :NewPLC (6d4a2544167561e20f2bb73aa12d099a)
PLCobject : Traceback (most recent call last):
  File "C:\Program Files (x86)\Beremiz\Bemeriz-newest\runtime\PLCObject.py", line 150, in LoadPLC
传输失败
    self._PLClibraryHandle = dlopen(self._GetLibFileName())
WindowsError: [Error 193] %1 不是有效的 Win32

最新构建已经与当前目标匹配。正在传输中......
PLCobject : OFF LOG :NewPLC (6d4a2544167561e20f2bb73aa12d099a)
PLCobject : Traceback (most recent call last):
  File "C:\Program Files (x86)\Beremiz\Bemeriz-newest\runtime\PLCObject.py", line 150, in LoadPLC
传输失败
    self._PLClibraryHandle = dlopen(self._GetLibFileName())
WindowsError: [Error 193] %1 不是有效的 Win32
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""

        Would you give me an advice?





华为技术有限公司 Huawei Technologies Co., Ltd.

Mobile: 15899917957
Email: [hidden email]
地址:深圳市龙岗区坂田华为基地 邮编:518129
Huawei Technologies Co., Ltd.
Bantian, Longgang District,Shenzhen 518129, P.R.China
http://www.huawei.com 

本邮件及其附件含有华为公司的保密信息,仅限于发送给上面地址中列出的个人或群组。禁
止任何其他人以任何形式使用(包括但不限于全部或部分地泄露、复制、或散发)本邮件中
的信息。如果您错收了本邮件,请您立即电话或邮件通知发件人并删除本邮件!
This e-mail and its attachments contain confidential information from HUAWEI, which
is intended only for the person or entity whose address is listed above. Any use of the
information contained herein in any way (including, but not limited to, total or partial
disclosure, reproduction, or dissemination) by persons other than the intended
recipient(s) is prohibited. If you receive this e-mail in error, please notify the sender by
phone or email immediately and delete it!


-----邮件原件-----
发件人: [hidden email] [mailto:[hidden email]]
发送时间: 2017年11月2日 16:21
收件人: [hidden email]
抄送: Wuyongjie (Test & ATE); Tanshenglong (tangshenglong, 2012Labs)
主题: Re: [Beremiz-devel] How to develop my own motion control FB?

Hi Xiao,

On 17-11-02 07:41, [hidden email] wrote:
> Dear Sergey Surkov,
>
>          Thank you for your detailed reply.
I'm not Sergey, but you are welcome. ;-)

>
>
>          I have one question about matiec.  If I run bemeriz on
>          Linux, it can build exe file like below rather than dll/so
>          file. My question is how to set the configuration.

> [cid:image001.png@01D353CE.8B070DA0]
What do you mean by running Beremiz on GNU/Linux? I see on your screenshot that Beremiz (IDE) is running on Windows.
I see you are using old Beremiz from LOLItech. I don't know what is in this version.
In current Beremiz version PLC program always is compiled into dll for Win32 target and so file for Linux/Xenomai targets.
What target do you compile project for?

>          Another question is how to develop my own motion function
>          block. I have no idea about how to control my servo motor
>          via field bus(what is the overall structure). Where is the
>          main function and in which module should I put my motion
>          function block into? Would you give me any document about
>          that?
If you are developing your own PLC function blocks or functions, you have to put them into library. See Native library in Beremiz (source files:
Native.xml, Native.py). Libraries as well as extensions are registered in features.py.

--
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
Reply | Threaded
Open this post in threaded view
|

[Beremiz-devel] question about transfer failed

Beremiz-Devel mailing list
In reply to this post by Beremiz-Devel mailing list

 

Hi Andrey Skvortsov

 

 

         When I run beremiz editor on windows and connect to the target(on windows) and start to transfer plc,  I got  error as below:

 

Would you give me an advice?

 

 

 

 

 

华为技术有限公司 Huawei Technologies Co., Ltd.

 

Mobile: 15899917957

Email: [hidden email]

地址:深圳市龙岗区坂田华为基地 邮编:518129

Huawei Technologies Co., Ltd.

Bantian, Longgang District,Shenzhen 518129, P.R.China http://www.huawei.com

 

本邮件及其附件含有华为公司的保密信息,仅限于发送给上面地址中列出的个人或群组。禁

止任何其他人以任何形式使用(包括但不限于全部或部分地泄露、复制、或散发)本邮件中

的信息。如果您错收了本邮件,请您立即电话或邮件通知发件人并删除本邮件!

This e-mail and its attachments contain confidential information from HUAWEI, which is intended only for the person or entity whose address is listed above. Any use of the information contained herein in any way (including, but not limited to, total or partial disclosure, reproduction, or dissemination) by persons other than the intended

recipient(s) is prohibited. If you receive this e-mail in error, please notify the sender by phone or email immediately and delete it!

 

 

-----邮件原件-----

发件人: [hidden email] [[hidden email]]

发送时间: 2017112 16:21

收件人: [hidden email]

抄送: Wuyongjie (Test & ATE); Tanshenglong (tangshenglong, 2012Labs)

主题: Re: [Beremiz-devel] How to develop my own motion control FB?

 

Hi Xiao,

 

On 17-11-02 07:41, [hidden email] wrote:

> Dear Sergey Surkov,

>

>          Thank you for your detailed reply.

I'm not Sergey, but you are welcome. ;-)

 

>

>

>          I have one question about matiec.  If I run bemeriz on

>          Linux, it can build exe file like below rather than dll/so

>          file. My question is how to set the configuration.

 

> [<a href="cid:image001.png@01D353CE.8B070DA0">cid:image001.png@01D353CE.8B070DA0]

What do you mean by running Beremiz on GNU/Linux? I see on your screenshot that Beremiz (IDE) is running on Windows.

I see you are using old Beremiz from LOLItech. I don't know what is in this version.

In current Beremiz version PLC program always is compiled into dll for Win32 target and so file for Linux/Xenomai targets.

What target do you compile project for?

 

>          Another question is how to develop my own motion function

>          block. I have no idea about how to control my servo motor

>          via field bus(what is the overall structure). Where is the

>          main function and in which module should I put my motion

>          function block into? Would you give me any document about

>          that?

If you are developing your own PLC function blocks or functions, you have to put them into library. See Native library in Beremiz (source files:

Native.xml, Native.py). Libraries as well as extensions are registered in features.py.

 

--

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
Reply | Threaded
Open this post in threaded view
|

Re: [Beremiz-devel] How to connect to the target

Beremiz-Devel mailing list
In reply to this post by Beremiz-Devel mailing list
Hi Xiao,

Have you used Beremiz installer from the beremiz.org website or you
are backing something own?
is your python interpreter 64 or 32 bit?
is gcc generates code for 64 or 32 bit?

On 17-11-08 02:31, [hidden email] wrote:

> Hi Andrey Skvortsov,
>
>
> When I run beremiz editor on windows and connect to the target(on windows),  I got error as below:
> """""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
> 开始建立 C:\Program Files (x86)\Beremiz\Bemeriz-newest\tests\traffic_lights\build
> 生成软PLC IEC-61131 ST/IL/SFC 代码......
> 正在将IEC程序编译成C代码...
> 正在提取位置变量......
> C代码生成成功。
> PLC:
>    [CC]  plc_main.c -> plc_main.o
>    [CC]  plc_debugger.c -> plc_debugger.o
> py_ext :
>    [CC]  py_ext.c -> py_ext.o
> PLC:
>    [CC]  config.c -> config.o
>    [CC]  resource1.c -> resource1.o
> 链接:
>    [CC]  plc_main.o plc_debugger.o py_ext.o config.o resource1.o -> traffic_lights.dll
> 成功构建.
> PLCobject : OFF LOG :NewPLC (6d4a2544167561e20f2bb73aa12d099a)
> PLCobject : Traceback (most recent call last):
>   File "C:\Program Files (x86)\Beremiz\Bemeriz-newest\runtime\PLCObject.py", line 150, in LoadPLC
> 传输失败
>     self._PLClibraryHandle = dlopen(self._GetLibFileName())
> WindowsError: [Error 193] %1 不是有效的 Win32
>
> 最新构建已经与当前目标匹配。正在传输中......
> PLCobject : OFF LOG :NewPLC (6d4a2544167561e20f2bb73aa12d099a)
> PLCobject : Traceback (most recent call last):
>   File "C:\Program Files (x86)\Beremiz\Bemeriz-newest\runtime\PLCObject.py", line 150, in LoadPLC
> 传输失败
>     self._PLClibraryHandle = dlopen(self._GetLibFileName())
> WindowsError: [Error 193] %1 不是有效的 Win32
> """""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
>
> Would you give me an advice?
>
>
>
>
>
> 华为技术有限公司 Huawei Technologies Co., Ltd.
>
> Mobile: 15899917957
> Email: [hidden email]
> 地址:深圳市龙岗区坂田华为基地 邮编:518129
> Huawei Technologies Co., Ltd.
> Bantian, Longgang District,Shenzhen 518129, P.R.China
> http://www.huawei.com 
>
> 本邮件及其附件含有华为公司的保密信息,仅限于发送给上面地址中列出的个人或群组。禁
> 止任何其他人以任何形式使用(包括但不限于全部或部分地泄露、复制、或散发)本邮件中
> 的信息。如果您错收了本邮件,请您立即电话或邮件通知发件人并删除本邮件!
> This e-mail and its attachments contain confidential information from HUAWEI, which
> is intended only for the person or entity whose address is listed above. Any use of the
> information contained herein in any way (including, but not limited to, total or partial
> disclosure, reproduction, or dissemination) by persons other than the intended
> recipient(s) is prohibited. If you receive this e-mail in error, please notify the sender by
> phone or email immediately and delete it!
>
>
> -----邮件原件-----
> 发件人: [hidden email] [mailto:[hidden email]]
> 发送时间: 2017年11月2日 16:21
> 收件人: [hidden email]
> 抄送: Wuyongjie (Test & ATE); Tanshenglong (tangshenglong, 2012Labs)
> 主题: Re: [Beremiz-devel] How to develop my own motion control FB?
>
> Hi Xiao,
>
> On 17-11-02 07:41, [hidden email] wrote:
> > Dear Sergey Surkov,
> >
> >          Thank you for your detailed reply.
> I'm not Sergey, but you are welcome. ;-)
>
> >
> >
> >          I have one question about matiec.  If I run bemeriz on
> >          Linux, it can build exe file like below rather than dll/so
> >          file. My question is how to set the configuration.
>
> > [cid:image001.png@01D353CE.8B070DA0]
> What do you mean by running Beremiz on GNU/Linux? I see on your screenshot that Beremiz (IDE) is running on Windows.
> I see you are using old Beremiz from LOLItech. I don't know what is in this version.
> In current Beremiz version PLC program always is compiled into dll for Win32 target and so file for Linux/Xenomai targets.
> What target do you compile project for?
>
> >          Another question is how to develop my own motion function
> >          block. I have no idea about how to control my servo motor
> >          via field bus(what is the overall structure). Where is the
> >          main function and in which module should I put my motion
> >          function block into? Would you give me any document about
> >          that?
> If you are developing your own PLC function blocks or functions, you have to put them into library. See Native library in Beremiz (source files:
> Native.xml, Native.py). Libraries as well as extensions are registered in features.py.
>
> --
> 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
--
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
|

[Beremiz-devel] 答复: How to connect to the target

Beremiz-Devel mailing list

Hi Andrey Skvortsov

 

                   I have some question about this figure:

 

 

 

1.       What  does  IEC std lib  means? R_TRIG/ TON and so on? If so , which folder does the std lib lie in? I havent found them.

 

2.       How to access the located vars declared in other module (for example IO lib)? Extern variable? I am wondering in which circumstance should I access local vars or function by extern variable or by function calls?

 

 

 

Best regards,

xiao

 

华为技术有限公司 Huawei Technologies Co., Ltd.

 

Mobile: 15899917957

Email: [hidden email]

地址:深圳市龙岗区坂田华为基地 邮编:518129

Huawei Technologies Co., Ltd.

Bantian, Longgang District,Shenzhen 518129, P.R.China

http://www.huawei.com

 

本邮件及其附件含有华为公司的保密信息,仅限于发送给上面地址中列出的个人或群组。禁

止任何其他人以任何形式使用(包括但不限于全部或部分地泄露、复制、或散发)本邮件中

的信息。如果您错收了本邮件,请您立即电话或邮件通知发件人并删除本邮件!

This e-mail and its attachments contain confidential information from HUAWEI, which

is intended only for the person or entity whose address is listed above. Any use of the

information contained herein in any way (including, but not limited to, total or partial

disclosure, reproduction, or dissemination) by persons other than the intended

recipient(s) is prohibited. If you receive this e-mail in error, please notify the sender by

phone or email immediately and delete it!

 

 

-----邮件原件-----
发件人: [hidden email] [mailto:[hidden email]]
发送时间: 2017118 14:56
收件人: [hidden email]
抄送: Wuyongjie (Test & ATE); Tanshenglong (tangshenglong, 2012Labs)
主题: Re: [Beremiz-devel] How to connect to the target

 

Hi Xiao,

 

Have you used Beremiz installer from the beremiz.org website or you are backing something own?

is your python interpreter 64 or 32 bit?

is gcc generates code for 64 or 32 bit?

 

On 17-11-08 02:31, [hidden email] wrote:

> Hi Andrey Skvortsov

>

>

>      When I run beremiz editor on windows and connect to the target(on windows),  I got error as below:

> """""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""

> 开始建立 C:\Program Files

> (x86)\Beremiz\Bemeriz-newest\tests\traffic_lights\build

> 生成软PLC IEC-61131 ST/IL/SFC 代码......

> 正在将IEC程序编译成C代码...

> 正在提取位置变量......

> C代码生成成功。

> PLC

>    [CC]  plc_main.c -> plc_main.o

>    [CC]  plc_debugger.c -> plc_debugger.o py_ext :

>    [CC]  py_ext.c -> py_ext.o

> PLC

>    [CC]  config.c -> config.o

>    [CC]  resource1.c -> resource1.o

> 链接:

>    [CC]  plc_main.o plc_debugger.o py_ext.o config.o resource1.o ->

> traffic_lights.dll

> 成功构建.

> PLCobject : OFF LOG :NewPLC (6d4a2544167561e20f2bb73aa12d099a)

> PLCobject : Traceback (most recent call last):

>   File "C:\Program Files

> (x86)\Beremiz\Bemeriz-newest\runtime\PLCObject.py", line 150, in

> LoadPLC

> 传输失败

>     self._PLClibraryHandle = dlopen(self._GetLibFileName())

> WindowsError: [Error 193] %1 不是有效的 Win32

>

> 最新构建已经与当前目标匹配。正在传输中......

> PLCobject : OFF LOG :NewPLC (6d4a2544167561e20f2bb73aa12d099a)

> PLCobject : Traceback (most recent call last):

>   File "C:\Program Files

> (x86)\Beremiz\Bemeriz-newest\runtime\PLCObject.py", line 150, in

> LoadPLC

> 传输失败

>     self._PLClibraryHandle = dlopen(self._GetLibFileName())

> WindowsError: [Error 193] %1 不是有效的 Win32

> """""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""

>

>      Would you give me an advice?

>

>

>

>

>

> 华为技术有限公司 Huawei Technologies Co., Ltd.

>

> Mobile: 15899917957

> Email: [hidden email]

> 地址:深圳市龙岗区坂田华为基地 邮编:518129

> Huawei Technologies Co., Ltd.

> Bantian, Longgang District,Shenzhen 518129, P.R.China

> http://www.huawei.com

>

> 本邮件及其附件含有华为公司的保密信息,仅限于发送给上面地址中列出的个人或群组。禁

> 止任何其他人以任何形式使用(包括但不限于全部或部分地泄露、复制、或散发)本邮件中

> 的信息。如果您错收了本邮件,请您立即电话或邮件通知发件人并删除本邮件!

> This e-mail and its attachments contain confidential information from

> HUAWEI, which is intended only for the person or entity whose address

> is listed above. Any use of the information contained herein in any

> way (including, but not limited to, total or partial disclosure,

> reproduction, or dissemination) by persons other than the intended

> recipient(s) is prohibited. If you receive this e-mail in error,

> please notify the sender by phone or email immediately and delete it!

>

>

> -----邮件原件-----

> 发件人: [hidden email]

> [[hidden email]]

> 发送时间: 2017112 16:21

> 收件人: [hidden email]

> 抄送: Wuyongjie (Test & ATE); Tanshenglong (tangshenglong, 2012Labs)

> 主题: Re: [Beremiz-devel] How to develop my own motion control FB?

>

> Hi Xiao,

>

> On 17-11-02 07:41, [hidden email] wrote:

> > Dear Sergey Surkov,

> >

> >          Thank you for your detailed reply.

> I'm not Sergey, but you are welcome. ;-)

>

> >

> >

> >          I have one question about matiec.  If I run bemeriz on

> >          Linux, it can build exe file like below rather than dll/so

> >          file. My question is how to set the configuration.

>

> > [<a href="cid:image001.png@01D353CE.8B070DA0">cid:image001.png@01D353CE.8B070DA0]

> What do you mean by running Beremiz on GNU/Linux? I see on your screenshot that Beremiz (IDE) is running on Windows.

> I see you are using old Beremiz from LOLItech. I don't know what is in this version.

> In current Beremiz version PLC program always is compiled into dll for Win32 target and so file for Linux/Xenomai targets.

> What target do you compile project for?

>

> >          Another question is how to develop my own motion function

> >          block. I have no idea about how to control my servo motor

> >          via field bus(what is the overall structure). Where is the

> >          main function and in which module should I put my motion

> >          function block into? Would you give me any document about

> >          that?

> If you are developing your own PLC function blocks or functions, you have to put them into library. See Native library in Beremiz (source files:

> Native.xml, Native.py). Libraries as well as extensions are registered in features.py.

>

> --

> 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

 

--

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
Reply | Threaded
Open this post in threaded view
|

Re: [Beremiz-devel] 答复: How to connect to the target

Beremiz-Devel mailing list
Hi Xiao,

On 17-12-06 01:55, [hidden email] wrote:

> Hi Andrey Skvortsov,
>
>
>
>                    I have some question about this figure:
>
> [cid:image001.png@01D36E76.AA016210]
>
>
>
>
>
>
>
> 1.       What  does  “IEC std lib”  means? R_TRIG/ TON and so on? If
> so , which folder does the std lib lie in? I haven’t found them.
Yes, IEC std lib is library with POUs defined by standard IEC 61131-3.
Implementation is in plcopen/Standard_Function_Blocks.xml

>
>
> 2.       How to access the located vars declared in other module
> (for example IO lib)?
You access located variables by assigning location address to local
variables in your POUs. See "Location" column in variable declaration table.

> Extern variable?
These are IEC variables external for a current POU.
Read IEC 61131-3 standard.

> I am wondering in which
> circumstance should I access local vars or function by extern
> variable or by function calls?
It depends on your program design.



> Best regards,
>
> xiao
>
>
>
> 华为技术有限公司 Huawei Technologies Co., Ltd.
>
>
>
> Mobile: 15899917957
>
> Email: [hidden email]
>
> 地址:深圳市龙岗区坂田华为基地 邮编:518129
>
> Huawei Technologies Co., Ltd.
>
> Bantian, Longgang District,Shenzhen 518129, P.R.China
>
> http://www.huawei.com
>
>
>
> 本邮件及其附件含有华为公司的保密信息,仅限于发送给上面地址中列出的个人或群组。禁
>
> 止任何其他人以任何形式使用(包括但不限于全部或部分地泄露、复制、或散发)本邮件中
>
> 的信息。如果您错收了本邮件,请您立即电话或邮件通知发件人并删除本邮件!
>
> This e-mail and its attachments contain confidential information from HUAWEI, which
>
> is intended only for the person or entity whose address is listed above. Any use of the
>
> information contained herein in any way (including, but not limited to, total or partial
>
> disclosure, reproduction, or dissemination) by persons other than the intended
>
> recipient(s) is prohibited. If you receive this e-mail in error, please notify the sender by
>
> phone or email immediately and delete it!
>
>
> -----邮件原件-----
> 发件人: [hidden email] [mailto:[hidden email]]
> 发送时间: 2017年11月8日 14:56
> 收件人: [hidden email]
> 抄送: Wuyongjie (Test & ATE); Tanshenglong (tangshenglong, 2012Labs)
> 主题: Re: [Beremiz-devel] How to connect to the target
>
>
>
> Hi Xiao,
>
>
>
> Have you used Beremiz installer from the beremiz.org website or you are backing something own?
>
> is your python interpreter 64 or 32 bit?
>
> is gcc generates code for 64 or 32 bit?
>
>
>
> On 17-11-08 02:31, [hidden email]<mailto:[hidden email]> wrote:
>
> > Hi Andrey Skvortsov,
>
> >
>
> >
>
> >      When I run beremiz editor on windows and connect to the target(on windows),  I got error as below:
>
> > """""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
>
> > 开始建立 C:\Program Files
>
> > (x86)\Beremiz\Bemeriz-newest\tests\traffic_lights\build
>
> > 生成软PLC IEC-61131 ST/IL/SFC 代码......
>
> > 正在将IEC程序编译成C代码...
>
> > 正在提取位置变量......
>
> > C代码生成成功。
>
> > PLC:
>
> >    [CC]  plc_main.c -> plc_main.o
>
> >    [CC]  plc_debugger.c -> plc_debugger.o py_ext :
>
> >    [CC]  py_ext.c -> py_ext.o
>
> > PLC:
>
> >    [CC]  config.c -> config.o
>
> >    [CC]  resource1.c -> resource1.o
>
> > 链接:
>
> >    [CC]  plc_main.o plc_debugger.o py_ext.o config.o resource1.o ->
>
> > traffic_lights.dll
>
> > 成功构建.
>
> > PLCobject : OFF LOG :NewPLC (6d4a2544167561e20f2bb73aa12d099a)
>
> > PLCobject : Traceback (most recent call last):
>
> >   File "C:\Program Files
>
> > (x86)\Beremiz\Bemeriz-newest\runtime\PLCObject.py", line 150, in
>
> > LoadPLC
>
> > 传输失败
>
> >     self._PLClibraryHandle = dlopen(self._GetLibFileName())
>
> > WindowsError: [Error 193] %1 不是有效的 Win32
>
> >
>
> > 最新构建已经与当前目标匹配。正在传输中......
>
> > PLCobject : OFF LOG :NewPLC (6d4a2544167561e20f2bb73aa12d099a)
>
> > PLCobject : Traceback (most recent call last):
>
> >   File "C:\Program Files
>
> > (x86)\Beremiz\Bemeriz-newest\runtime\PLCObject.py", line 150, in
>
> > LoadPLC
>
> > 传输失败
>
> >     self._PLClibraryHandle = dlopen(self._GetLibFileName())
>
> > WindowsError: [Error 193] %1 不是有效的 Win32
>
> > """""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
>
> >
>
> >      Would you give me an advice?
>
> >
>
> >
>
> >
>
> >
>
> >
>
> > 华为技术有限公司 Huawei Technologies Co., Ltd.
>
> >
>
> > Mobile: 15899917957
>
> > Email: [hidden email]<mailto:[hidden email]>
>
> > 地址:深圳市龙岗区坂田华为基地 邮编:518129
>
> > Huawei Technologies Co., Ltd.
>
> > Bantian, Longgang District,Shenzhen 518129, P.R.China
>
> > http://www.huawei.com
>
> >
>
> > 本邮件及其附件含有华为公司的保密信息,仅限于发送给上面地址中列出的个人或群组。禁
>
> > 止任何其他人以任何形式使用(包括但不限于全部或部分地泄露、复制、或散发)本邮件中
>
> > 的信息。如果您错收了本邮件,请您立即电话或邮件通知发件人并删除本邮件!
>
> > This e-mail and its attachments contain confidential information from
>
> > HUAWEI, which is intended only for the person or entity whose address
>
> > is listed above. Any use of the information contained herein in any
>
> > way (including, but not limited to, total or partial disclosure,
>
> > reproduction, or dissemination) by persons other than the intended
>
> > recipient(s) is prohibited. If you receive this e-mail in error,
>
> > please notify the sender by phone or email immediately and delete it!
>
> >
>
> >
>
> > -----邮件原件-----
>
> > 发件人: [hidden email]<mailto:[hidden email]>
>
> > [mailto:[hidden email]]
>
> > 发送时间: 2017年11月2日 16:21
>
> > 收件人: [hidden email]<mailto:[hidden email]>
>
> > 抄送: Wuyongjie (Test & ATE); Tanshenglong (tangshenglong, 2012Labs)
>
> > 主题: Re: [Beremiz-devel] How to develop my own motion control FB?
>
> >
>
> > Hi Xiao,
>
> >
>
> > On 17-11-02 07:41, [hidden email]<mailto:[hidden email]> wrote:
>
> > > Dear Sergey Surkov,
>
> > >
>
> > >          Thank you for your detailed reply.
>
> > I'm not Sergey, but you are welcome. ;-)
>
> >
>
> > >
>
> > >
>
> > >          I have one question about matiec.  If I run bemeriz on
>
> > >          Linux, it can build exe file like below rather than dll/so
>
> > >          file. My question is how to set the configuration.
>
> >
>
> > > [cid:image001.png@01D353CE.8B070DA0]
>
> > What do you mean by running Beremiz on GNU/Linux? I see on your screenshot that Beremiz (IDE) is running on Windows.
>
> > I see you are using old Beremiz from LOLItech. I don't know what is in this version.
>
> > In current Beremiz version PLC program always is compiled into dll for Win32 target and so file for Linux/Xenomai targets.
>
> > What target do you compile project for?
>
> >
>
> > >          Another question is how to develop my own motion function
>
> > >          block. I have no idea about how to control my servo motor
>
> > >          via field bus(what is the overall structure). Where is the
>
> > >          main function and in which module should I put my motion
>
> > >          function block into? Would you give me any document about
>
> > >          that?
>
> > If you are developing your own PLC function blocks or functions, you have to put them into library. See Native library in Beremiz (source files:
>
> > Native.xml, Native.py). Libraries as well as extensions are registered in features.py.
>
> >
>
> > --
>
> > 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]<mailto:[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


--
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
|

[Beremiz-devel] 答复: 答复: How to connect to the target

Beremiz-Devel mailing list
Hi Andrey Skvortsov,



> I am wondering in which
> circumstance should I access local vars or function by extern variable
> or by function calls?
>It depends on your program design.


        So, if I develop my own motion control lib, which method should I use for the communication between the SoftPLC and Motion lib?










华为技术有限公司 Huawei Technologies Co., Ltd.

Mobile: 15899917957
Email: [hidden email]
地址:深圳市龙岗区坂田华为基地 邮编:518129
Huawei Technologies Co., Ltd.
Bantian, Longgang District,Shenzhen 518129, P.R.China
http://www.huawei.com 

本邮件及其附件含有华为公司的保密信息,仅限于发送给上面地址中列出的个人或群组。禁
止任何其他人以任何形式使用(包括但不限于全部或部分地泄露、复制、或散发)本邮件中
的信息。如果您错收了本邮件,请您立即电话或邮件通知发件人并删除本邮件!
This e-mail and its attachments contain confidential information from HUAWEI, which
is intended only for the person or entity whose address is listed above. Any use of the
information contained herein in any way (including, but not limited to, total or partial
disclosure, reproduction, or dissemination) by persons other than the intended
recipient(s) is prohibited. If you receive this e-mail in error, please notify the sender by
phone or email immediately and delete it!



-----邮件原件-----
发件人: [hidden email] [mailto:[hidden email]]
发送时间: 2017年12月6日 16:31
收件人: [hidden email]
抄送: Wuyongjie (Test & ATE); Tanshenglong (tangshenglong, 2012Labs)
主题: Re: [Beremiz-devel] 答复: How to connect to the target

Hi Xiao,

On 17-12-06 01:55, [hidden email] wrote:

> Hi Andrey Skvortsov,
>
>
>
>                    I have some question about this figure:
>
> [cid:image001.png@01D36E76.AA016210]
>
>
>
>
>
>
>
> 1.       What  does  “IEC std lib”  means? R_TRIG/ TON and so on? If
> so , which folder does the std lib lie in? I haven’t found them.

Yes, IEC std lib is library with POUs defined by standard IEC 61131-3.
Implementation is in plcopen/Standard_Function_Blocks.xml

>
>
> 2.       How to access the located vars declared in other module
> (for example IO lib)?
You access located variables by assigning location address to local variables in your POUs. See "Location" column in variable declaration table.

> Extern variable?
These are IEC variables external for a current POU.
Read IEC 61131-3 standard.

> I am wondering in which
> circumstance should I access local vars or function by extern variable
> or by function calls?
It depends on your program design.



> Best regards,
>
> xiao
>
>
>
> 华为技术有限公司 Huawei Technologies Co., Ltd.
>
>
>
> Mobile: 15899917957
>
> Email: [hidden email]
>
> 地址:深圳市龙岗区坂田华为基地 邮编:518129
>
> Huawei Technologies Co., Ltd.
>
> Bantian, Longgang District,Shenzhen 518129, P.R.China
>
> http://www.huawei.com
>
>
>
> 本邮件及其附件含有华为公司的保密信息,仅限于发送给上面地址中列出的个人或群组。禁
>
> 止任何其他人以任何形式使用(包括但不限于全部或部分地泄露、复制、或散发)本邮件中
>
> 的信息。如果您错收了本邮件,请您立即电话或邮件通知发件人并删除本邮件!
>
> This e-mail and its attachments contain confidential information from
> HUAWEI, which
>
> is intended only for the person or entity whose address is listed
> above. Any use of the
>
> information contained herein in any way (including, but not limited
> to, total or partial
>
> disclosure, reproduction, or dissemination) by persons other than the
> intended
>
> recipient(s) is prohibited. If you receive this e-mail in error,
> please notify the sender by
>
> phone or email immediately and delete it!
>
>
> -----邮件原件-----
> 发件人: [hidden email]
> [mailto:[hidden email]]
> 发送时间: 2017年11月8日 14:56
> 收件人: [hidden email]
> 抄送: Wuyongjie (Test & ATE); Tanshenglong (tangshenglong, 2012Labs)
> 主题: Re: [Beremiz-devel] How to connect to the target
>
>
>
> Hi Xiao,
>
>
>
> Have you used Beremiz installer from the beremiz.org website or you are backing something own?
>
> is your python interpreter 64 or 32 bit?
>
> is gcc generates code for 64 or 32 bit?
>
>
>
> On 17-11-08 02:31, [hidden email]<mailto:[hidden email]> wrote:
>
> > Hi Andrey Skvortsov,
>
> >
>
> >
>
> >      When I run beremiz editor on windows and connect to the target(on windows),  I got error as below:
>
> > """""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
>
> > 开始建立 C:\Program Files
>
> > (x86)\Beremiz\Bemeriz-newest\tests\traffic_lights\build
>
> > 生成软PLC IEC-61131 ST/IL/SFC 代码......
>
> > 正在将IEC程序编译成C代码...
>
> > 正在提取位置变量......
>
> > C代码生成成功。
>
> > PLC:
>
> >    [CC]  plc_main.c -> plc_main.o
>
> >    [CC]  plc_debugger.c -> plc_debugger.o py_ext :
>
> >    [CC]  py_ext.c -> py_ext.o
>
> > PLC:
>
> >    [CC]  config.c -> config.o
>
> >    [CC]  resource1.c -> resource1.o
>
> > 链接:
>
> >    [CC]  plc_main.o plc_debugger.o py_ext.o config.o resource1.o ->
>
> > traffic_lights.dll
>
> > 成功构建.
>
> > PLCobject : OFF LOG :NewPLC (6d4a2544167561e20f2bb73aa12d099a)
>
> > PLCobject : Traceback (most recent call last):
>
> >   File "C:\Program Files
>
> > (x86)\Beremiz\Bemeriz-newest\runtime\PLCObject.py", line 150, in
>
> > LoadPLC
>
> > 传输失败
>
> >     self._PLClibraryHandle = dlopen(self._GetLibFileName())
>
> > WindowsError: [Error 193] %1 不是有效的 Win32
>
> >
>
> > 最新构建已经与当前目标匹配。正在传输中......
>
> > PLCobject : OFF LOG :NewPLC (6d4a2544167561e20f2bb73aa12d099a)
>
> > PLCobject : Traceback (most recent call last):
>
> >   File "C:\Program Files
>
> > (x86)\Beremiz\Bemeriz-newest\runtime\PLCObject.py", line 150, in
>
> > LoadPLC
>
> > 传输失败
>
> >     self._PLClibraryHandle = dlopen(self._GetLibFileName())
>
> > WindowsError: [Error 193] %1 不是有效的 Win32
>
> > """""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
>
> >
>
> >      Would you give me an advice?
>
> >
>
> >
>
> >
>
> >
>
> >
>
> > 华为技术有限公司 Huawei Technologies Co., Ltd.
>
> >
>
> > Mobile: 15899917957
>
> > Email: [hidden email]<mailto:[hidden email]>
>
> > 地址:深圳市龙岗区坂田华为基地 邮编:518129
>
> > Huawei Technologies Co., Ltd.
>
> > Bantian, Longgang District,Shenzhen 518129, P.R.China
>
> > http://www.huawei.com
>
> >
>
> > 本邮件及其附件含有华为公司的保密信息,仅限于发送给上面地址中列出的个人或群组。禁
>
> > 止任何其他人以任何形式使用(包括但不限于全部或部分地泄露、复制、或散发)本邮件中
>
> > 的信息。如果您错收了本邮件,请您立即电话或邮件通知发件人并删除本邮件!
>
> > This e-mail and its attachments contain confidential information
> > from
>
> > HUAWEI, which is intended only for the person or entity whose
> > address
>
> > is listed above. Any use of the information contained herein in any
>
> > way (including, but not limited to, total or partial disclosure,
>
> > reproduction, or dissemination) by persons other than the intended
>
> > recipient(s) is prohibited. If you receive this e-mail in error,
>
> > please notify the sender by phone or email immediately and delete it!
>
> >
>
> >
>
> > -----邮件原件-----
>
> > 发件人:
> > [hidden email]<mailto:[hidden email]
> > eforge.net>
>
> > [mailto:[hidden email]]
>
> > 发送时间: 2017年11月2日 16:21
>
> > 收件人:
> > [hidden email]<mailto:[hidden email]
> > eforge.net>
>
> > 抄送: Wuyongjie (Test & ATE); Tanshenglong (tangshenglong, 2012Labs)
>
> > 主题: Re: [Beremiz-devel] How to develop my own motion control FB?
>
> >
>
> > Hi Xiao,
>
> >
>
> > On 17-11-02 07:41, [hidden email]<mailto:[hidden email]> wrote:
>
> > > Dear Sergey Surkov,
>
> > >
>
> > >          Thank you for your detailed reply.
>
> > I'm not Sergey, but you are welcome. ;-)
>
> >
>
> > >
>
> > >
>
> > >          I have one question about matiec.  If I run bemeriz on
>
> > >          Linux, it can build exe file like below rather than
> > > dll/so
>
> > >          file. My question is how to set the configuration.
>
> >
>
> > > [cid:image001.png@01D353CE.8B070DA0]
>
> > What do you mean by running Beremiz on GNU/Linux? I see on your screenshot that Beremiz (IDE) is running on Windows.
>
> > I see you are using old Beremiz from LOLItech. I don't know what is in this version.
>
> > In current Beremiz version PLC program always is compiled into dll for Win32 target and so file for Linux/Xenomai targets.
>
> > What target do you compile project for?
>
> >
>
> > >          Another question is how to develop my own motion function
>
> > >          block. I have no idea about how to control my servo motor
>
> > >          via field bus(what is the overall structure). Where is
> > > the
>
> > >          main function and in which module should I put my motion
>
> > >          function block into? Would you give me any document about
>
> > >          that?
>
> > If you are developing your own PLC function blocks or functions, you have to put them into library. See Native library in Beremiz (source files:
>
> > Native.xml, Native.py). Libraries as well as extensions are registered in features.py.
>
> >
>
> > --
>
> > 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]<mailto:[hidden email]
> > eforge.net>
>
> > 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


--
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
Reply | Threaded
Open this post in threaded view
|

Re: [Beremiz-devel] 答复: 答复: How to connect to the target

Beremiz-Devel mailing list
On 17-12-06 09:39, [hidden email] wrote:

> Hi Andrey Skvortsov,
>
>
>
> > I am wondering in which
> > circumstance should I access local vars or function by extern variable
> > or by function calls?
> >It depends on your program design.
>
>
> So, if I develop my own motion control lib, which method should I use for the communication between the SoftPLC and Motion lib?
>

IMHO you should implement library standard function blocks [1] for motion
control and use their standard interface.

1. http://www.plcopen.org/pages/tc2_motion_control/index.htm


>
>
>
>
>
>
>
>
>
> 华为技术有限公司 Huawei Technologies Co., Ltd.
>
> Mobile: 15899917957
> Email: [hidden email]
> 地址:深圳市龙岗区坂田华为基地 邮编:518129
> Huawei Technologies Co., Ltd.
> Bantian, Longgang District,Shenzhen 518129, P.R.China
> http://www.huawei.com 
>
> 本邮件及其附件含有华为公司的保密信息,仅限于发送给上面地址中列出的个人或群组。禁
> 止任何其他人以任何形式使用(包括但不限于全部或部分地泄露、复制、或散发)本邮件中
> 的信息。如果您错收了本邮件,请您立即电话或邮件通知发件人并删除本邮件!
> This e-mail and its attachments contain confidential information from HUAWEI, which
> is intended only for the person or entity whose address is listed above. Any use of the
> information contained herein in any way (including, but not limited to, total or partial
> disclosure, reproduction, or dissemination) by persons other than the intended
> recipient(s) is prohibited. If you receive this e-mail in error, please notify the sender by
> phone or email immediately and delete it!
>
>
>
> -----邮件原件-----
> 发件人: [hidden email] [mailto:[hidden email]]
> 发送时间: 2017年12月6日 16:31
> 收件人: [hidden email]
> 抄送: Wuyongjie (Test & ATE); Tanshenglong (tangshenglong, 2012Labs)
> 主题: Re: [Beremiz-devel] 答复: How to connect to the target
>
> Hi Xiao,
>
> On 17-12-06 01:55, [hidden email] wrote:
> > Hi Andrey Skvortsov,
> >
> >
> >
> >                    I have some question about this figure:
> >
> > [cid:image001.png@01D36E76.AA016210]
> >
> >
> >
> >
> >
> >
> >
> > 1.       What  does  “IEC std lib”  means? R_TRIG/ TON and so on? If
> > so , which folder does the std lib lie in? I haven’t found them.
>
> Yes, IEC std lib is library with POUs defined by standard IEC 61131-3.
> Implementation is in plcopen/Standard_Function_Blocks.xml
>
> >
> >
> > 2.       How to access the located vars declared in other module
> > (for example IO lib)?
> You access located variables by assigning location address to local variables in your POUs. See "Location" column in variable declaration table.
>
> > Extern variable?
> These are IEC variables external for a current POU.
> Read IEC 61131-3 standard.
>
> > I am wondering in which
> > circumstance should I access local vars or function by extern variable
> > or by function calls?
> It depends on your program design.
>
>
>
> > Best regards,
> >
> > xiao
> >
> >
> >
> > 华为技术有限公司 Huawei Technologies Co., Ltd.
> >
> >
> >
> > Mobile: 15899917957
> >
> > Email: [hidden email]
> >
> > 地址:深圳市龙岗区坂田华为基地 邮编:518129
> >
> > Huawei Technologies Co., Ltd.
> >
> > Bantian, Longgang District,Shenzhen 518129, P.R.China
> >
> > http://www.huawei.com
> >
> >
> >
> > 本邮件及其附件含有华为公司的保密信息,仅限于发送给上面地址中列出的个人或群组。禁
> >
> > 止任何其他人以任何形式使用(包括但不限于全部或部分地泄露、复制、或散发)本邮件中
> >
> > 的信息。如果您错收了本邮件,请您立即电话或邮件通知发件人并删除本邮件!
> >
> > This e-mail and its attachments contain confidential information from
> > HUAWEI, which
> >
> > is intended only for the person or entity whose address is listed
> > above. Any use of the
> >
> > information contained herein in any way (including, but not limited
> > to, total or partial
> >
> > disclosure, reproduction, or dissemination) by persons other than the
> > intended
> >
> > recipient(s) is prohibited. If you receive this e-mail in error,
> > please notify the sender by
> >
> > phone or email immediately and delete it!
> >
> >
> > -----邮件原件-----
> > 发件人: [hidden email]
> > [mailto:[hidden email]]
> > 发送时间: 2017年11月8日 14:56
> > 收件人: [hidden email]
> > 抄送: Wuyongjie (Test & ATE); Tanshenglong (tangshenglong, 2012Labs)
> > 主题: Re: [Beremiz-devel] How to connect to the target
> >
> >
> >
> > Hi Xiao,
> >
> >
> >
> > Have you used Beremiz installer from the beremiz.org website or you are backing something own?
> >
> > is your python interpreter 64 or 32 bit?
> >
> > is gcc generates code for 64 or 32 bit?
> >
> >
> >
> > On 17-11-08 02:31, [hidden email]<mailto:[hidden email]> wrote:
> >
> > > Hi Andrey Skvortsov,
> >
> > >
> >
> > >
> >
> > >      When I run beremiz editor on windows and connect to the target(on windows),  I got error as below:
> >
> > > """""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
> >
> > > 开始建立 C:\Program Files
> >
> > > (x86)\Beremiz\Bemeriz-newest\tests\traffic_lights\build
> >
> > > 生成软PLC IEC-61131 ST/IL/SFC 代码......
> >
> > > 正在将IEC程序编译成C代码...
> >
> > > 正在提取位置变量......
> >
> > > C代码生成成功。
> >
> > > PLC:
> >
> > >    [CC]  plc_main.c -> plc_main.o
> >
> > >    [CC]  plc_debugger.c -> plc_debugger.o py_ext :
> >
> > >    [CC]  py_ext.c -> py_ext.o
> >
> > > PLC:
> >
> > >    [CC]  config.c -> config.o
> >
> > >    [CC]  resource1.c -> resource1.o
> >
> > > 链接:
> >
> > >    [CC]  plc_main.o plc_debugger.o py_ext.o config.o resource1.o ->
> >
> > > traffic_lights.dll
> >
> > > 成功构建.
> >
> > > PLCobject : OFF LOG :NewPLC (6d4a2544167561e20f2bb73aa12d099a)
> >
> > > PLCobject : Traceback (most recent call last):
> >
> > >   File "C:\Program Files
> >
> > > (x86)\Beremiz\Bemeriz-newest\runtime\PLCObject.py", line 150, in
> >
> > > LoadPLC
> >
> > > 传输失败
> >
> > >     self._PLClibraryHandle = dlopen(self._GetLibFileName())
> >
> > > WindowsError: [Error 193] %1 不是有效的 Win32
> >
> > >
> >
> > > 最新构建已经与当前目标匹配。正在传输中......
> >
> > > PLCobject : OFF LOG :NewPLC (6d4a2544167561e20f2bb73aa12d099a)
> >
> > > PLCobject : Traceback (most recent call last):
> >
> > >   File "C:\Program Files
> >
> > > (x86)\Beremiz\Bemeriz-newest\runtime\PLCObject.py", line 150, in
> >
> > > LoadPLC
> >
> > > 传输失败
> >
> > >     self._PLClibraryHandle = dlopen(self._GetLibFileName())
> >
> > > WindowsError: [Error 193] %1 不是有效的 Win32
> >
> > > """""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
> >
> > >
> >
> > >      Would you give me an advice?
> >
> > >
> >
> > >
> >
> > >
> >
> > >
> >
> > >
> >
> > > 华为技术有限公司 Huawei Technologies Co., Ltd.
> >
> > >
> >
> > > Mobile: 15899917957
> >
> > > Email: [hidden email]<mailto:[hidden email]>
> >
> > > 地址:深圳市龙岗区坂田华为基地 邮编:518129
> >
> > > Huawei Technologies Co., Ltd.
> >
> > > Bantian, Longgang District,Shenzhen 518129, P.R.China
> >
> > > http://www.huawei.com
> >
> > >
> >
> > > 本邮件及其附件含有华为公司的保密信息,仅限于发送给上面地址中列出的个人或群组。禁
> >
> > > 止任何其他人以任何形式使用(包括但不限于全部或部分地泄露、复制、或散发)本邮件中
> >
> > > 的信息。如果您错收了本邮件,请您立即电话或邮件通知发件人并删除本邮件!
> >
> > > This e-mail and its attachments contain confidential information
> > > from
> >
> > > HUAWEI, which is intended only for the person or entity whose
> > > address
> >
> > > is listed above. Any use of the information contained herein in any
> >
> > > way (including, but not limited to, total or partial disclosure,
> >
> > > reproduction, or dissemination) by persons other than the intended
> >
> > > recipient(s) is prohibited. If you receive this e-mail in error,
> >
> > > please notify the sender by phone or email immediately and delete it!
> >
> > >
> >
> > >
> >
> > > -----邮件原件-----
> >
> > > 发件人:
> > > [hidden email]<mailto:[hidden email]
> > > eforge.net>
> >
> > > [mailto:[hidden email]]
> >
> > > 发送时间: 2017年11月2日 16:21
> >
> > > 收件人:
> > > [hidden email]<mailto:[hidden email]
> > > eforge.net>
> >
> > > 抄送: Wuyongjie (Test & ATE); Tanshenglong (tangshenglong, 2012Labs)
> >
> > > 主题: Re: [Beremiz-devel] How to develop my own motion control FB?
> >
> > >
> >
> > > Hi Xiao,
> >
> > >
> >
> > > On 17-11-02 07:41, [hidden email]<mailto:[hidden email]> wrote:
> >
> > > > Dear Sergey Surkov,
> >
> > > >
> >
> > > >          Thank you for your detailed reply.
> >
> > > I'm not Sergey, but you are welcome. ;-)
> >
> > >
> >
> > > >
> >
> > > >
> >
> > > >          I have one question about matiec.  If I run bemeriz on
> >
> > > >          Linux, it can build exe file like below rather than
> > > > dll/so
> >
> > > >          file. My question is how to set the configuration.
> >
> > >
> >
> > > > [cid:image001.png@01D353CE.8B070DA0]
> >
> > > What do you mean by running Beremiz on GNU/Linux? I see on your screenshot that Beremiz (IDE) is running on Windows.
> >
> > > I see you are using old Beremiz from LOLItech. I don't know what is in this version.
> >
> > > In current Beremiz version PLC program always is compiled into dll for Win32 target and so file for Linux/Xenomai targets.
> >
> > > What target do you compile project for?
> >
> > >
> >
> > > >          Another question is how to develop my own motion function
> >
> > > >          block. I have no idea about how to control my servo motor
> >
> > > >          via field bus(what is the overall structure). Where is
> > > > the
> >
> > > >          main function and in which module should I put my motion
> >
> > > >          function block into? Would you give me any document about
> >
> > > >          that?
> >
> > > If you are developing your own PLC function blocks or functions, you have to put them into library. See Native library in Beremiz (source files:
> >
> > > Native.xml, Native.py). Libraries as well as extensions are registered in features.py.
> >
> > >
> >
> > > --
> >
> > > 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]<mailto:[hidden email]
> > > eforge.net>
> >
> > > 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
>
>
> --
> 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
--
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
12