<html><body><div style="color:#000; background-color:#fff; font-family:HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;font-size:16px"><div id="yui_3_16_0_1_1427443887985_2923">Thanks for your reply Richard,</div><div id="yui_3_16_0_1_1427443887985_2921"><br></div><div dir="ltr" id="yui_3_16_0_1_1427443887985_2831">Output of $ ethercat slaves</div><div id="yui_3_16_0_1_1427443887985_3173" dir="ltr">when the model is running, is still "PREOP"</div><div id="yui_3_16_0_1_1427443887985_5683" dir="ltr"><br></div><div id="yui_3_16_0_1_1427443887985_5874" dir="ltr">Command of</div><div id="yui_3_16_0_1_1427443887985_5875" dir="ltr">ethercat config -v -p1</div><div id="yui_3_16_0_1_1427443887985_5876" dir="ltr">does not give an output<br></div><div id="yui_3_16_0_1_1427443887985_4021" dir="ltr"><br></div><div id="yui_3_16_0_1_1427443887985_4646" dir="ltr">Output of <br></div><div id="yui_3_16_0_1_1427443887985_4308" dir="ltr">dmesg | tail -100</div><div id="yui_3_16_0_1_1427443887985_4313" dir="ltr">as follows;</div><div id="yui_3_16_0_1_1427443887985_4543" dir="ltr"><br></div><div id="yui_3_16_0_1_1427443887985_4644" dir="ltr">[ 8.851927] input: HDA Intel Rear Mic as /devices/pci0000:00/0000:00:1b.0/sound/card0/input7<br style="" class="">[ 8.853677] input: HDA Intel Front Headphone as /devices/pci0000:00/0000:00:1b.0/sound/card0/input8<br style="" class="">[ 8.855195] input: HDA Intel Line Out as /devices/pci0000:00/0000:00:1b.0/sound/card0/input9<br style="" class="">[ 8.973988] input: HP WMI hotkeys as /devices/virtual/input/input10<br style="" class="">[ 9.060136] systemd-udevd[330]: renamed network interface eth0 to enp31s0<br style="" class="">[ 9.080176] systemd-udevd[331]: renamed network interface eth1 to enp34s0<br style="" class="">[ 9.100173] systemd-udevd[338]: renamed network interface eth2 to enp35s0<br style="" class="">[ 9.152110] microcode: CPU1 sig=0x6fb, pf=0x4, revision=0xbc<br style="" class="">[ 9.173855] microcode: CPU2 sig=0x6f6, pf=0x4, revision=0xd2<br style="" class="">[ 9.219455] microcode: CPU3 sig=0x6fb, pf=0x4, revision=0xbc<br style="" class="">[ 9.223051] microcode: Microcode Update Driver: v2.00 <tigran@aivazian.fsnet.co.uk>, Peter Oruba<br style="" class="">[ 11.864566] EXT4-fs (sdb4): mounted filesystem with ordered data mode. Opts: acl,user_xattr<br style="" class="">[ 12.062315] Adding 4192252k swap on /dev/sdb6. Priority:-1 extents:1 across:4192252k <br style="" class="">[ 12.096565] systemd-journald[278]: Received request to flush runtime journal from PID 1<br style="" class="">[ 12.711769] fuse init (API version 7.18)<br style="" class="">[ 13.506191] ip6_tables: (C) 2000-2006 Netfilter Core Team<br style="" class="">[ 13.526547] nf_conntrack version 0.5.0 (16384 buckets, 65536 max)<br style="" class="">[ 13.529874] ip_tables: (C) 2000-2006 Netfilter Core Team<br style="" class="">[ 15.055590] e1000e 0000:22:00.0: irq 43 for MSI/MSI-X<br style="" class="">[ 15.161944] e1000e 0000:22:00.0: irq 43 for MSI/MSI-X<br style="" class="">[ 15.164101] ADDRCONF(NETDEV_UP): enp34s0: link is not ready<br style="" class="">[ 15.630779] e1000e 0000:23:00.0: irq 44 for MSI/MSI-X<br style="" class="">[ 15.733936] e1000e 0000:23:00.0: irq 44 for MSI/MSI-X<br style="" class="">[ 15.736198] ADDRCONF(NETDEV_UP): enp35s0: link is not ready<br style="" class="">[ 15.742290] tg3 0000:1f:00.0: irq 46 for MSI/MSI-X<br style="" class="">[ 15.777051] ADDRCONF(NETDEV_UP): enp31s0: link is not ready<br style="" class="">[ 15.808271] Bluetooth: Core ver 2.16<br style="" class="">[ 15.808296] NET: Registered protocol family 31<br style="" class="">[ 15.808298] Bluetooth: HCI device and connection manager initialized<br style="" class="">[ 15.808301] Bluetooth: HCI socket layer initialized<br style="" class="">[ 15.808303] Bluetooth: L2CAP socket layer initialized<br style="" class="">[ 15.808314] Bluetooth: SCO socket layer initialized<br style="" class="">[ 15.810786] Bluetooth: BNEP (Ethernet Emulation) ver 1.3<br style="" class="">[ 15.810789] Bluetooth: BNEP filters: protocol multicast<br style="" class="">[ 17.360848] tg3 0000:1f:00.0: enp31s0: Link is up at 100 Mbps, full duplex<br style="" class="">[ 17.360853] tg3 0000:1f:00.0: enp31s0: Flow control is off for TX and off for RX<br style="" class="">[ 17.361311] ADDRCONF(NETDEV_CHANGE): enp31s0: link becomes ready<br style="" class="">[ 17.537042] e1000e: enp35s0 NIC Link is Up 100 Mbps Full Duplex, Flow Control: None<br style="" class="">[ 17.537048] e1000e 0000:23:00.0: enp35s0: 10/100 speed: disabling TSO<br style="" class="">[ 17.537667] ADDRCONF(NETDEV_CHANGE): enp35s0: link becomes ready<br style="" class="">[ 19.053595] NET: Registered protocol family 17<br style="" class="">[ 20.853309] IPv4: martian source 255.255.255.255 from 10.92.54.159, on dev enp31s0<br style="" class="">[ 20.853316] ll header: 00000000: ff ff ff ff ff ff 80 ee 73 0a fb 5d 08 00 ........s..]..<br style="" class="">[ 20.917133] IPv4: martian source 255.255.255.255 from 10.92.54.135, on dev enp31s0<br style="" class="">[ 20.917138] ll header: 00000000: ff ff ff ff ff ff b4 b5 2f 8e 91 d1 08 00 ......../.....<br style="" class="">[ 20.919177] IPv4: martian source 255.255.255.255 from 10.92.54.135, on dev enp31s0<br style="" class="">[ 20.919180] ll header: 00000000: ff ff ff ff ff ff b4 b5 2f 8e 91 d1 08 00 ......../.....<br style="" class="">[ 20.919257] IPv4: martian source 255.255.255.255 from 10.92.54.135, on dev enp31s0<br style="" class="">[ 20.919260] ll header: 00000000: ff ff ff ff ff ff b4 b5 2f 8e 91 d1 08 00 ......../.....<br style="" class="">[ 21.066318] IPv4: martian source 255.255.255.255 from 10.92.54.253, on dev enp31s0<br style="" class="">[ 21.066325] ll header: 00000000: ff ff ff ff ff ff 24 be 05 20 e0 66 08 00 ......$.. .f..<br style="" class="">[ 21.656897] IPv4: martian source 255.255.255.255 from 10.92.54.36, on dev enp31s0<br style="" class="">[ 21.656905] ll header: 00000000: ff ff ff ff ff ff d8 d3 85 95 b5 0f 08 00 ..............<br style="" class="">[ 21.658937] IPv4: martian source 255.255.255.255 from 10.92.54.36, on dev enp31s0<br style="" class="">[ 21.658941] ll header: 00000000: ff ff ff ff ff ff d8 d3 85 95 b5 0f 08 00 ..............<br style="" class="">[ 22.032341] IPv4: martian source 255.255.255.255 from 10.92.54.159, on dev enp31s0<br style="" class="">[ 22.032348] ll header: 00000000: ff ff ff ff ff ff 80 ee 73 0a fb 5d 08 00 ........s..]..<br style="" class="">[ 23.112376] IPv4: martian source 255.255.255.255 from 10.92.54.159, on dev enp31s0<br style="" class="">[ 23.112383] ll header: 00000000: ff ff ff ff ff ff 80 ee 73 0a fb 5d 08 00 ........s..]..<br style="" class="">[ 23.295294] IPv4: martian source 255.255.255.255 from 10.92.53.162, on dev enp31s0<br style="" class="">[ 23.295301] ll header: 00000000: ff ff ff ff ff ff 00 23 7d 2d cb cf 08 00 .......#}-....<br style="" class="">[ 29.152007] enp31s0: no IPv6 routers present<br style="" class="">[ 29.880008] enp35s0: no IPv6 routers present<br style="" class="">[ 66.877536] EtherCAT: Master driver 1.5.2 2eff7c993a63<br style="" class="">[ 66.877659] EtherCAT: 1 master waiting for devices.<br style="" class="">[ 67.216469] ec_e1000e: EtherCAT-capable Intel(R) PRO/1000 Network Driver - 1.9.5-k-EtherCAT<br style="" class="">[ 67.216473] ec_e1000e: Copyright(c) 1999 - 2012 Intel Corporation.<br style="" class="">[ 67.216565] ec_e1000e 0000:22:00.0: Disabling ASPM L0s L1<br style="" class="">[ 67.218986] ec_e1000e 0000:22:00.0: (unregistered net_device): Interrupt Throttling Rate (ints/sec) set to dynamic conservative mode<br style="" class="">[ 67.220666] ec_e1000e 0000:22:00.0: (unregistered net_device): Failed to initialize MSI-X interrupts. Falling back to MSI interrupts.<br style="" class="">[ 67.222280] ec_e1000e 0000:22:00.0: irq 43 for MSI/MSI-X<br style="" class="">[ 67.340477] ec_e1000e 0000:22:00.0: eth0: (PCI Express:2.5GT/s:Width x1) 00:01:05:1b:43:2c<br style="" class="">[ 67.340482] ec_e1000e 0000:22:00.0: eth0: Intel(R) PRO/1000 Network Connection<br style="" class="">[ 67.341000] ec_e1000e 0000:22:00.0: eth0: MAC: 3, PHY: 8, PBA No: FFFFFF-0FF<br style="" class="">[ 67.341021] ec_e1000e 0000:23:00.0: Disabling ASPM L0s L1<br style="" class="">[ 67.346016] ec_e1000e 0000:23:00.0: (unregistered net_device): Interrupt Throttling Rate (ints/sec) set to dynamic conservative mode<br style="" class="">[ 67.348550] ec_e1000e 0000:23:00.0: (unregistered net_device): Failed to initialize MSI-X interrupts. Falling back to MSI interrupts.<br style="" class="">[ 67.351785] ec_e1000e 0000:23:00.0: irq 44 for MSI/MSI-X<br style="" class="">[ 67.432131] systemd-udevd[1407]: renamed network interface eth0 to enp34s0<br style="" class="">[ 67.477063] EtherCAT: Accepting 00:01:05:1B:43:2D as main device for master 0.<br style="" class="">[ 67.600237] EtherCAT 0: Starting EtherCAT-IDLE thread.<br style="" class="">[ 67.600295] ec_e1000e 0000:23:00.0: (unregistered net_device): (PCI Express:2.5GT/s:Width x1) 00:01:05:1b:43:2d<br style="" class="">[ 67.600299] ec_e1000e 0000:23:00.0: (unregistered net_device): Intel(R) PRO/1000 Network Connection<br style="" class="">[ 67.600461] ec_e1000e 0000:23:00.0: (unregistered net_device): MAC: 3, PHY: 8, PBA No: FFFFFF-0FF<br style="" class="">[ 67.614797] ec_e1000e 0000:22:00.0: irq 43 for MSI/MSI-X<br style="" class="">[ 67.717956] ec_e1000e 0000:22:00.0: irq 43 for MSI/MSI-X<br style="" class="">[ 67.720152] ADDRCONF(NETDEV_UP): enp34s0: link is not ready<br style="" class="">[ 69.477043] e1000e: ecm0 NIC Link is Up 100 Mbps Full Duplex, Flow Control: None<br style="" class="">[ 69.477050] ec_e1000e 0000:23:00.0: (unregistered net_device): 10/100 speed: disabling TSO<br style="" class="">[ 69.477055] EtherCAT 0: Link state of ecm0 changed to UP.<br style="" class="">[ 69.480019] EtherCAT 0: 2 slave(s) responding on main device.<br style="" class="">[ 69.480023] EtherCAT 0: Slave states on main device: INIT.<br style="" class="">[ 69.480236] EtherCAT 0: Scanning bus.<br style="" class="">[ 69.706145] EtherCAT ERROR 0-1: SDO upload 0x1C13:01 aborted.<br style="" class="">[ 69.706149] EtherCAT ERROR 0-1: SDO abort message 0x06090011: "Subindex does not exist".<br style="" class="">[ 69.706152] EtherCAT ERROR 0-1: Failed to read index of assigned PDO 1 from SM3.<br style="" class="">[ 69.706155] EtherCAT 0: Bus scanning completed in 224 ms.<br style="" class="">[ 69.706158] EtherCAT 0: Using slave 0 as DC reference clock.<br style="" class="">[ 69.708018] EtherCAT 0: Slave states on main device: INIT, PREOP.<br style="" class="">[ 69.720015] EtherCAT 0: Slave states on main device: PREOP.</div><div id="yui_3_16_0_1_1427443887985_5877" dir="ltr"><br></div><div id="yui_3_16_0_1_1427443887985_5878" dir="ltr">Thank you.</div><div id="yui_3_16_0_1_1427443887985_5913" dir="ltr">Best.<br style="" class=""><br></div> <div style="" class="" dir="ltr" id="yui_3_16_0_1_1427443887985_2831"><span id="yui_3_16_0_1_1427443887985_3622" style="" class=""><br style="" class=""></span></div><br><div class="qtdSeparateBR"><br><br></div><div style="display: block;" class="yahoo_quoted"> <div style="font-family: HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif; font-size: 16px;"> <div style="font-family: HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif; font-size: 16px;"> <div dir="ltr"> <font face="Arial" size="2"> On Friday, March 27, 2015 9:13 AM, Richard Hacker <ha@igh.de> wrote:<br> </font> </div> <br><br> <div class="y_msg_container">Look at the output of<br clear="none">$ ethercat slaves<br clear="none">The slave should be in OP when your model is running<br clear="none"><br clear="none">What does your kernel log say:<br clear="none">$ cat /var/log/messages<br clear="none">or<br clear="none">$ dmesg | tail -100<br clear="none"><br clear="none">What is the current configuration while running:<br clear="none">$ ethercat config -v -p1<br clear="none"><br clear="none"><br clear="none">- Richard<br clear="none"><div class="yqt0855079616" id="yqtfd46121"><br clear="none">On 26.03.2015 17:17, Doga wrote:<br clear="none">> Hey everyone,<br clear="none">><br clear="none">> I'm working on OpenSUSE 13.1 x64 with MATLAB R2014b.<br clear="none">><br clear="none">> I have installed and configured everything in accordance with the<br clear="none">> following guideline;<br clear="none">><br clear="none">> <a shape="rect" href="http://www.symbitron.eu/wiki/index.php?title=EtherLab_Installation" target="_blank">http://www.symbitron.eu/wiki/index.php?title=EtherLab_Installation</a><br clear="none">> <<a shape="rect" href="http://www.symbitron.eu/wiki/index.php?title=EtherLab_Installation" target="_blank">http://www.symbitron.eu/wiki/index.php?title=EtherLab_Installation</a>><br clear="none">><br clear="none">> In the Terminal screen when I type "sudo ethercat slaves" to reveal the<br clear="none">> connected hardwares, I get the following response, which is what I expect;<br clear="none">><br clear="none">> 0 0:0 PREOP + EK1101 EtherCAT-Koppler (2A E-Bus, ID-Switch)<br clear="none">> 1 0:1 PREOP + EL4038 8K. Ana. Ausgang +/-10V, 12bit<br clear="none">><br clear="none">> So, my master module is BeckHoff EK 1101 and its master id is 0 and<br clear="none">> slave id is also 0. Likewise another module connected to EK1101, which<br clear="none">> is an analog output module named EL4038, has the master id of 0 and<br clear="none">> slave id of 1<br clear="none">><br clear="none">> I have created a simulink file. Configured everything according to above<br clear="none">> mentioned guideline, such as code generation options and other things.<br clear="none">><br clear="none">> I have EK1101 infrastructure module on my model, which was provided in<br clear="none">> the etherlab_lib. I also copied the EL4002 analog I/O module from the<br clear="none">> same library to my simulink file and configured it as EL4038 from<br clear="none">> "Device Model" option.<br clear="none">><br clear="none">> I set the master and slave indexes of both models accordingly.<br clear="none">> I connected a "Constant" block, which outputs value of "1" and this is<br clear="none">> connected to input port of EL4038 module.<br clear="none">> When I build the model, there is no error or something. When I run the<br clear="none">> model, it runs. However I do not read any voltage on the EL4038 module's<br clear="none">> output pin when I measure it with a multimeter.<br clear="none">><br clear="none">> Under help section of EL4xxx module it is written that the maximum input<br clear="none">> ranges from -1 to 1 for bipolar terminals. Any value over the range is<br clear="none">> saturated. However, I get no voltage from my analog output module at all.<br clear="none">><br clear="none">> I appreciate any kind of help.<br clear="none">> All the best.</div><br clear="none">><br clear="none">><br clear="none">><br clear="none">> _______________________________________________<br clear="none">> etherlab-users mailing list<br clear="none">> <a shape="rect" ymailto="mailto:etherlab-users@etherlab.org" href="mailto:etherlab-users@etherlab.org">etherlab-users@etherlab.org</a><br clear="none">> <a shape="rect" href="http://lists.etherlab.org/mailman/listinfo/etherlab-users" target="_blank">http://lists.etherlab.org/mailman/listinfo/etherlab-users</a><br clear="none">><br clear="none">_______________________________________________<br clear="none">etherlab-users mailing list<br clear="none"><a shape="rect" ymailto="mailto:etherlab-users@etherlab.org" href="mailto:etherlab-users@etherlab.org">etherlab-users@etherlab.org</a><br clear="none"><a shape="rect" href="http://lists.etherlab.org/mailman/listinfo/etherlab-users" target="_blank">http://lists.etherlab.org/mailman/listinfo/etherlab-users</a><div class="yqt0855079616" id="yqtfd84648"><br clear="none"></div><br><br></div> </div> </div> </div></div></body></html>