[etherlab-users] Simulink compile error using Beckhoff EtherLab library blocks

Ralph Oosterveld r.n.oosterveld at student.utwente.nl
Wed Apr 2 17:27:19 CEST 2014


Hello,

I have changed the file ec_slave3.c in two folders but still getting the
same error:

/vol/opt/etherlab/src/etherlab-2.1.0/rtw/blocks/EtherCAT/ec_slave3.c
> /vol/opt/etherlab/rtw/blocks/EtherCAT/ec_slave3.c

In MATLAB I can open the first one with the command ">> open ec_slave3.c"
and this is the new file.

When I open Beckhoff folder in the EtherLab library I get the
following messages in the command window from MATLAB:

Warning: Error reported by S-function 'ec_slave3' in
> 'etherlab_lib/EtherCAT/Beckhoff/EL3356_0':
>
> Variable context: PORT_CONFIG.output(1).pdo_data_type
> Unknown data type
> Warning: Error reported by S-function 'ec_slave3' in
> 'etherlab_lib/EtherCAT/Beckhoff/EL5021_0':
>
> Variable context: PORT_CONFIG.output(1).pdo_data_type
> Unknown data type
> Warning: Error reported by S-function 'ec_slave3' in
> 'etherlab_lib/EtherCAT/Beckhoff/EL51xx_0':
>
> Variable context: PORT_CONFIG.output(1).pdo_data_type
> Unknown data type
>

If I use the total rtw/blocks/EtherCAT folder from sourceforge instead of
my current folder there are no errors in the command window, but when I
compile the model the following error occurs:

Error in S-function 'untitled/EL2xxx_0': S-Function 'ec_slave3' does not
> exist


I hope this information gives a better picture of the problem, so it can be
solved.

Thank you in advance,
*Ralph Oosterveld*


2014-04-02 14:08 GMT+02:00 <etherlab-users-request at etherlab.org>:

Send etherlab-users mailing list submissions to
>         etherlab-users at etherlab.org
>
> To subscribe or unsubscribe via the World Wide Web, visit
>         http://lists.etherlab.org/mailman/listinfo/etherlab-users
> or, via email, send a message with subject or body 'help' to
>         etherlab-users-request at etherlab.org
>
> You can reach the person managing the list at
>         etherlab-users-owner at etherlab.org
>
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of etherlab-users digest..."
>
>
> Today's Topics:
>
>    1. Re: Simulink compile error using Beckhoff EtherLab library
>       blocks (Richard Hacker)
>
>
> ----------------------------------------------------------------------
>
> Message: 1
> Date: Wed, 02 Apr 2014 14:08:24 +0200
> From: Richard Hacker <ha at igh.de>
> To: Ralph Oosterveld <r.n.oosterveld at student.utwente.nl>,
>         etherlab-users at etherlab.org
> Subject: Re: [etherlab-users] Simulink compile error using Beckhoff
>         EtherLab library blocks
> Message-ID: <533BFDB8.9060208 at igh.de>
> Content-Type: text/plain; charset="iso-8859-1"; Format="flowed"
>
> Am 04/01/2014 04:54 PM, schrieb Ralph Oosterveld:
> > hello,
> >
> > I want to control a Beckhoff EL2008 module using the EtherLab library in
> > Simulink. For this I am running MATLAB R2013b and EtherLab 2.1.0 on a
> > Linux Mint Debian 64bit (201403) operating system. By using the terminal
> > I can run the EtherCAT 1.5.2 protocol and I can see which modules are
> > connected. Now I want to make a Simulink model using the Beckhoff blocks
> > from the EtherLab library. When I have one Beckhoff digital output block
> > in my Simulink model, I get the following error message during compiling.
> >
> >         Block error:
> >
> >         Error reported by S-function 'ec_slave3' in
> >         'test_program1/EL2xxx_0':
> >         Variable context: PORT_CONFIG.output(1).pdo_data_type
> >         Unknown data type
> Mathworks changed the way that they handle Simulink data types from the
> release that you are using. Attached please find the new ec_slave3.c or
> download the latest version from sourceforge.
>
> - Richard
> -------------- next part --------------
> A non-text attachment was scrubbed...
> Name: ec_slave3.c
> Type: text/x-csrc
> Size: 81745 bytes
> Desc: not available
> URL: <
> http://lists.etherlab.org/pipermail/etherlab-users/attachments/20140402/cf83e324/attachment.c
> >
>
> ------------------------------
>
> _______________________________________________
> etherlab-users mailing list
> etherlab-users at etherlab.org
> http://lists.etherlab.org/mailman/listinfo/etherlab-users
>
>
> End of etherlab-users Digest, Vol 83, Issue 3
> *********************************************
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.etherlab.org/pipermail/etherlab-users/attachments/20140402/f91f0d6b/attachment-0004.htm>


More information about the Etherlab-users mailing list