• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Cannot start container
#1
Dear,

I have tried many times to follow all instructions on how to setup a netPi RTE 3 to work as
a Codesys RTE master for etherCat, ie a PLC.

I have come so far that I am online to the device from a google chrome browser.
No it did not work with address of the network interface. I had to find the taken
DHCP ip-adress and browse to that one.
I have activated the docker service.
I have added a container and follows all instructions how to fill out the parameters,
But every time it fails when I try to start the container.

It says

ERROR
No such Image: hilschernetpi/netpi-codesys-basis

What to do??

netPI RTE 3 is new item. Portainer is version 1.12.4


Best Regards
Magnus Torell
  Reply
#2
Hello Magnus,

I am pretty sure that do did not setup the system time of your netPI. You should follow this video https://www.youtube.com/watch?v=CB6bYfMbFhA.

The alternative is to update your netPI with system software 1.2.0.0 where we automatically have configured sime default NTP servers to get the current time automatically.

I know the ERROR "No such image" is missleading. But this is the normal return text of the Docker Hub, if time is not sychronized.

Thx
Armin
You never fail until you stop trying.“, Albert Einstein (1879 - 1955)

  Reply
#3
Thanks Armin,

I followed the link and all was fine with the container start.

I also saw some posts about a Codesys PLC as master and Ethernet interfaces.

Hmm...
My initial thought was to use the RTE ports for a master EtherCat, but
reading other posts I understand that the recommended way is to
use the "std" RPi ethernet interface for a etherCat master and instead use the
RTEs for normal ethernet traffic and development from another computer
with Codesys development.
Is that correct understood?
If so how do you install the EtherCat driver to this interface.
and activate the others for normal traffic (I think DHCP will do)
Is there a video for just the case of getting a netPI RTE as a:
- "Codesys PLC with an EtherCAT master"
  Reply
#4
Yes Magnus your understanding is 100% correct.

The CODESYS driver for EtherCAT is already included in CODESYS by default. There is no need to install it additionally. So the eth0 interface (single Ethernet port) can be used as EtherCAT master right away.
You never fail until you stop trying.“, Albert Einstein (1879 - 1955)

  Reply
#5
Here is a picture of my setup I made with PROFINET as master. But it is the same as setting up an EtherCAT master. You just have to select a different device to add to your project.

Look how it looks like

   

First you have to add an Ethernet interface and then an EtherCAT master followed by your EtherCat slaves (in my case PROFINET slaves)
You never fail until you stop trying.“, Albert Einstein (1879 - 1955)

  Reply
#6
But before you can use the eth0 interface as a EtherCAT master with netPI RTE 3 you have to start the container with the IP parameters to activate the 2 x RJ45 RTE ports as standard ethernet interface additionally. Once this is done you can connect the container and its CODESYS runtime over the 2xRTE ports with your CODESYS Development System. Then eth0 is "free" for any use ... your EtherCAT master.
You never fail until you stop trying.“, Albert Einstein (1879 - 1955)

  Reply
#7
(October-16th-2019, 11:46 AM)Armin@netPI Wrote: But before you can use the eth0 interface as a EtherCAT master with netPI RTE 3 you have to start the container with the IP parameters to activate the 2 x RJ45 RTE ports as standard ethernet interface additionally. Once this is done you can connect the container and its CODESYS runtime over the 2xRTE ports with your CODESYS Development System. Then eth0 is "free" for any use ... your EtherCAT master.

Thanks for support,

In order to - "start the container with the IP parameters"

Can I do that on an existing container or do I have to make new
container.
I saw that I can start a terminal/command-session in the container.

and

What entries and where do I make them to activate RTE as ethernet interfaces?


Best Regards

Magnus Torell
  Reply
#8
Hello Magnus,

Docker allows to specifiy mapped device and environment variables and other settings only during the first container start. So you have no chance to set those parameters afterwards. This is no a Hilscher restriction but a Docker one.

As described in the readme https://hub.docker.com/r/hilschernetpi/n...sys-basis/ you have to add at least the ENV variable "IP_ADDRESS" set to value "dhcp". And do not forget to map devices /dev/spidev0.0 and /dev/net/tun to the container.

A very cool thing with Docker Web GUI on netPI is that you can click on a running container and then "Duplicate/Edit". It then copy the current settings of your container and you can add more parameters if you want. When you deploy the container then, the old container will be deletet and a new one started.

But of course you already loaded CODESYS runtime is gone since the container is new.

Thx
armin
You never fail until you stop trying.“, Albert Einstein (1879 - 1955)

  Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Start Up Queries yongzhi 3 2,189 July-20th-2021, 11:50 AM
Last Post: Armin@netPI
  TOSILOCK for CONTAINER COswald 3 2,184 July-13th-2021, 11:32 AM
Last Post: Armin@netPI
  Access to RTC from my own container application tad 1 3,521 March-19th-2021, 02:58 PM
Last Post: Armin@netPI
  [SOLVED] Starting services/commands/scripts at startup of a container Jonas.Sellmann@outlook.de 9 6,016 March-9th-2021, 08:47 AM
Last Post: WalterSchaefer
  docker.service start failed EUROKEY 13 9,166 January-17th-2021, 07:52 PM
Last Post: Armin@netPI
  OpenVPN container Armin@netPI 0 1,615 January-3rd-2021, 12:13 PM
Last Post: Armin@netPI
  operating Console of a container on netPI connected to Wi-Fi tethering tad 3 2,612 December-3rd-2020, 12:32 PM
Last Post: tad
  NIOT-E-NPIX-4DI4DO with netpi-netx container WalterSchaefer 3 6,476 November-25th-2020, 01:06 PM
Last Post: zen89
  NPIX-4DI4DO and NetPi-Nodered container issues alhammi 4 7,584 November-16th-2020, 01:35 PM
Last Post: alhammi
  Get host MAC via REST API inside container bschandra 4 3,641 November-16th-2020, 09:26 AM
Last Post: bschandra

Forum Jump:


Users browsing this thread: 1 Guest(s)