Pape
Posts: 2
Joined: Wed Jul 20, 2016 10:31 am

pi 3B with codesys and ethercat coupler

Wed Jul 20, 2016 10:56 am

Hi,
I am new user and trying to connect raspi 3B with codesys and ethercat coupler (Kuhnke FIO coupler).

this is how I connect them:

My labtop is connected through the raspi USB with USB/RJ45 adapter
the ethercat coupler is connected the raspi through RJ45(I did static address for eth1: 192.168.137.100)
CODESYS Control for Raspberry Pi SL is installed on codesys but cannot find the raspi

this is what I get when I do ''ifconfig''
[email protected]:~ $ ifconfig
eth0 Link encap:Ethernet HWaddr b8:27:eb:68:8e:a6
inet addr:169.254.72.156 Bcast:169.254.255.255 Mask:255.255.0.0
inet6 addr: fe80::9a24:8dea:e130:9af6/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:248 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 B) TX bytes:79798 (77.9 KiB)

eth1 Link encap:Ethernet HWaddr 00:00:00:00:35:54
inet addr:192.168.137.100 Bcast:192.168.137.255 Mask:255.255.255.0
inet6 addr: fe80::98a6:9b0b:a56a:24b8/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:2533 errors:0 dropped:0 overruns:0 frame:0
TX packets:214 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:184845 (180.5 KiB) TX bytes:38818 (37.9 KiB)

lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:65536 Metric:1
RX packets:1508 errors:0 dropped:0 overruns:0 frame:0
TX packets:1508 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:122584 (119.7 KiB) TX bytes:122584 (119.7 KiB)

wlan0 Link encap:Ethernet HWaddr b8:27:eb:3d:db:f3
inet6 addr: fe80::ba27:ebff:fe3d:dbf3/64 Scope:Link
UP BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:1117 errors:0 dropped:1117 overruns:0 frame:0
TX packets:29 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:501648 (489.8 KiB) TX bytes:5598 (5.4 KiB)

[email protected]:~ $

can you help solve this
Thanks

ranpitime
Posts: 75
Joined: Sat Mar 23, 2013 5:21 am

Re: pi 3B with codesys and ethercat coupler

Thu Jul 21, 2016 6:05 pm

Hi,
this should work.

-could you login by ssh from your CODESYS pc to the PI?
-could you please check:

cat /tmp/codesyscontrol.log

and give us the output on this,

BR
ranpitime

Pape
Posts: 2
Joined: Wed Jul 20, 2016 10:31 am

Re: pi 3B with codesys and ethercat coupler

Thu Jul 21, 2016 7:12 pm

Hi ranpitime,

it finally works, I had to updated the codesys control for raspberry.

Thanks a lot for your reply
Papi

Return to “Beginners”