Roald87 / roald87.github.io

Mostly cooking and coding in TwinCAT.
https://cookncode.com
MIT License
4 stars 2 forks source link

twincat/2022/08/11/twincat-bsd #31

Open utterances-bot opened 2 years ago

utterances-bot commented 2 years ago

TwinCAT/BSD installation and tutorial

TwinCAT/BSD is a new operating system for the TwinCAT runtime. It has a small footprint and it’s free. Furthermore, TwinCAT/BSD allows you to run TwinCAT code locally when you have Hyper-V enabled if you install it on a virtual machine. In this tutorial, I go over the installation of TwinCAT/BSD on VMware and Virtual Box and show some basic usages of Tc/BSD.

https://cookncode.com/twincat/2022/08/11/twincat-bsd.html

runtimevic commented 2 years ago

Hello, I don't know if you've seen this... https://github.com/r9guy/TwinCAT-BSD-VM-creator

Roald87 commented 2 years ago

@runtimevic yes I link to it in the article.

runtimevic commented 2 years ago

@runtimevicSí, lo enlazo en el artículo.

sorry, https://github.com/PTKu/TwinCAT-BSD-VM-creator

Bulkje commented 2 years ago

So you can have a local runtime? While hyperV is enabled on the host computer?

Roald87 commented 2 years ago

@Bulkje yes. You have the VM running on your computer which has hyper-v enabled.

NilsJohannsen commented 2 years ago

Some more details about TwinCAT/BSD in our Webinar:

NilsJohannsen commented 2 years ago

... also available in english here:

JustusRijke commented 2 years ago

Great instructions @Roald87! Thank you. When installing TC/BSD on a VMware ESXi server, some extra steps are needed. These steps are explained here: https://github.com/IndustrialBrains/TCBSD_ESXI_Installation

Roald87 commented 2 years ago

@JustusRijke thanks! And kudos for sharing the instructions how to install it on Esxi. I was struggling with this myself the other day. In the end I just made a vm on my own PC and then copied it. Good to see there is also another way!

It is really annoying that the TcBSD iso is not bootable. I already asked support if they can make their isos bootable. Hopefully that will happen for future releases.

JustusRijke commented 2 years ago

Ah, well if you hear something from support please let me know!

In your article you describe that the ADS route should be IP-based (not hostname). You've probably experienced the same issues as I have when using hostnames when using TC/BSD (being unable to create routes); I didn't dig into this problem yet (just ended up using the IP address), but maybe you have, and if so, anything you've learned?

rruiter87 commented 1 year ago

@JustusRijke they initially said that was not the goal of Tc/BSD to install it on VM's. I told them that it is relatively easy to make a bootable ISO. Let's hope they will make one for the following release.

Regarding creating a route based on the hostname, see this StackOverflow post.

deividasn1234 commented 1 year ago

Hello i have CX2020 plc with windows 7 standart 32 bit. it is possible to instal Twincat/Bsd on my CX2020? (i have another CF fast cart 32 gb)?

Roald87 commented 1 year ago

@deividasn1234 not sure. It probably works, but I wouldn't risk it. Probably good to check with Beckhoff first.

thunder-weasel commented 1 year ago

I had great success in installing TC/BSD on a CX2040 that was originally Windows based. I'm currently struggling, however, to get a CX2062 to boot the BSD install on a USB stick. The CX2062 boots SystemRescue just fine from a USB stick, but it fails to boot the BSD USB stick.

vanoo1983 commented 1 year ago

Hello and thank you for this great tutorial,

I wanted to install the OPC-UA Server (TF6100-OPC-UA-beta-4.0.339_7.pkg) on my virtual machine. The installation worked but I don't know how to start the service now. Can you help me further?

I would like to have an OPC-UA connection on my virtual machine.

Thanks a lot

rruiter87 commented 1 year ago

Hi @vanoo1983. Glad to hear you find it useful!

Someone else also experienced issues. but there are no responses.

What I would do is check with top if any opcua service is running. If that is not the case, you can try to consult the manual of the opcua service itself. I'm not sure what the name is, but assuming it is called opcua, call that with the -h or --help argument from the console.

vanoo1983 commented 1 year ago

I added TcOpcUaServer_enable="YES" in the rc.conf and opened the port 4840. Now it works.

Desmon18 commented 11 months ago

Hi, Thank you for this tutorial. I was able to install the TwinCAT/BSD on my virtual machine. What should be my login details after starting the machine for the first time?

Roald87 commented 11 months ago

@Desmon18 Administrator with password 1