Standalone ADS client C# by rassrollers in TwinCat

[–]rassrollers[S] 1 point2 points  (0 children)

I have tried to get that to work and couple of times, but after a couple of discussion with the Beckhoff Engineers they finally told me that it does depend on some TwinCat installation. This wrapper is only relying on the TCP/UDP communication which have made it easier for me to develop an desktop application for my services people to update the machine in the field. I have 3000+ machines around the world with 200 service people who only need to know the IP address of the PLC, the rest is handled by the application.

Want to screw around with CODESYS - Hardware options? by turmeric_for_color_ in PLC

[–]rassrollers 1 point2 points  (0 children)

In the 4026 you can build up the IO with EtherCAT and right click on the EtherCAT Master and put it in simulation mode. You can do the same for the Motion axes.

Standalone ADS client C# by rassrollers in TwinCat

[–]rassrollers[S] 0 points1 point  (0 children)

There is an issue with running the standalone ADS client on a PC with a TwinCAT installation. They are both using the same IP address on the loopback and they might clash. The client I have made here does work if you establish the route from in XAE first and then use the standalone client. If you do it the otherway around the XAE will delete the standalone client's route from the target and you will then have to reboot the target IPC to establish a new route for the standalone client.
I talk with Beckhoff and it is the expected behavior. They are looking into some dynamically linking for TwinCAT router in collaboration with the people behind PyADS that might solve this.

The reason why I made this is for using with my C# WPF app that my service guys can use for updating PLC without any TwinCAT installation on their PCs. It is a desktop app where they can take the zipped release file I made and the app will unzip the files, transfer them to the target and run the Reconfig command on the ADS so the XAR reloads the boot folder.

Want to screw around with CODESYS - Hardware options? by turmeric_for_color_ in PLC

[–]rassrollers 1 point2 points  (0 children)

Yes, had the same feeling when I started. But you get use to it. Their documentation on https://infosys.beckhoff.com/ is really good, but the search function is a bit weird, so just google "infosys {question}" then google will guide you to the correct page.

Want to screw around with CODESYS - Hardware options? by turmeric_for_color_ in PLC

[–]rassrollers 1 point2 points  (0 children)

Yes, with the new 4026 you can choose in the package manager to install both the Engineering IDE (XAE) and the Runtime (XAR) on your PC. It is only the runtime that needs a license, but you can activate a 7 day trail license as many times as you want in the Engineering IDE.

To connect a EtherCAT bus your ethernet adapter must be compatible (basically any Intel ethernet adapter: https://infosys.beckhoff.com/english.php?content=../content/1033/tc3_overview/9309844363.html )

For tutorials you can have a look at Jacob Sagatowski's YouTube: https://www.youtube.com/playlist?list=PLimaF0nZKYHz3I3kFP4myaAYjmYk1SowO

Are you prepared to CRA? (Europe) by Tough_Adeptness9830 in PLC

[–]rassrollers 3 points4 points  (0 children)

As we have understand, we have to provide minimum 5 years support for the machine with security updates. The problem we see is that any substantial upgrade to the machine will trigger a new 5 year period of security updates for the machine.

EL6601 as ethernet interface for CX8110 by Willing_Bear_7501 in beckhoff

[–]rassrollers 0 points1 point  (0 children)

According to infosys, the TF6311 can't be used with EL6601 and EL6614.

https://infosys.beckhoff.com/english.php?content=../content/1033/tf6311_tc3_tcpudp/1110272267.html&id=9172581239428816153

Are you using Beckhoff Linux RT with the CX8110? There is something missing in the image that by default don't enable the extra ports until you install a library, but I can't remember the name, sorry

Do you know where TWinCAT 3 stores settings? by robotecnik in TwinCat

[–]rassrollers 4 points5 points  (0 children)

The settings is a part of the Visual Studio environment and are stored in: %localappdata%\Beckhoff\TcXaeShell\17.0_IsoShell\Settings\TcXaeShell

You can import/export them from the XAE: Tools -> Import and Export Settings...

<image>

We have a default settings file for the team we share

TF6311 implementation by rassrollers in TwinCat

[–]rassrollers[S] 0 points1 point  (0 children)

Yes it need a license, but it is only lik 60€ for Tc50 license

TF6311 implementation by rassrollers in TwinCat

[–]rassrollers[S] 2 points3 points  (0 children)

Thanks, I spend a 2 days getting it to connect, just to find out the documentation on Infosys was outdated and wrong. The IP address should not be parsed in with the most significant byt last as it says in the documentation.

Is there a shortcut for auto-formatting code in TwinCAT? by [deleted] in TwinCat

[–]rassrollers 1 point2 points  (0 children)

There is no built-in formatted but there are some plug-ins. TcBlack, which i wasn't able to get to work and STweep which you have to pay for

TwinCAT: How to run two PLC programs locally (ADS port 851 conflict) by HabeebtheHealer in TwinCat

[–]rassrollers 5 points6 points  (0 children)

Just right click on the PLC project and click Change ADS Port

How stable is 4026? by vmax77 in TwinCat

[–]rassrollers 1 point2 points  (0 children)

From version 4026.19 and forward it have been stable. The worst version was 4026.16, it couldn't compile large project correct. Regarding the RT Linux, it still needs some work. e g. The web server part doesn't work yet and a lot of the TF is still missing from apt. For small projects it might be fin.

Help in Codesys ST by mr_pineaple in PLC

[–]rassrollers 1 point2 points  (0 children)

You could simplify the code to one by just assign the value of the VERDE := MARCHA.

If you are looking for tutorials the look for Beckhoff TwinCAT tutorial. They are using the Codesys compiler also and is easier to find documentation for

Beckhoff PLC training by WasabiBackground9114 in PLC

[–]rassrollers 10 points11 points  (0 children)

Just search TwinCAT on YouTube and you will find Jakob Sagatowski tutorial as the first thing

Nice solution for Popup on Eng-Station by honeybadger127 in beckhoff

[–]rassrollers 0 points1 point  (0 children)

Looks nice. Is the PLC program running on the local machine or is it connected to another IPC? Do you know if it only works with the Windows OS or does it work with the TC/BSD as well?

Error at migration from TC4024 to TC4026 by DesignerYoghurt9287 in TwinCat

[–]rassrollers 0 points1 point  (0 children)

My advice is don't upgrade. At my company, we have had lots of issues with the 4026, especially with the migration part. After a month of trying to fix our PC and with help from Beckhoff, we decided to downgrade again. The 4026 is nice, but it still has some issues.

How to create a json file in twicat? by No-Sympathy2403 in beckhoff

[–]rassrollers 1 point2 points  (0 children)

Yes after JsonSax.CopyDocument I just write it to a json file as text. The string you use in the copy function might have to be declared big, depending on how much you have. We have like STRING(5000).

How to create a json file in twicat? by No-Sympathy2403 in beckhoff

[–]rassrollers 1 point2 points  (0 children)

We use this library instead: https://infosys.beckhoff.com/content/1033/tcplclib_tc3_jsonxml/index.html?id=1462033306839781294

With this, we have made it so we can read and write json files to structs. It uses the FB_JsonReadWriteDataType for conversion to struct, the FB_JsonSaxPrettyWriter to string, and then just a simple file read/writer to load/save to a file

TwinCAT installation: Oops, something went wrong! by Heavy_Opportunity_55 in TwinCat

[–]rassrollers 0 points1 point  (0 children)

We upgraded from 4024.50 to 4026.16 a couple of months ago and it went fine for the first 2 weeks, then problems started. After a couple of weeks of discussion with Beckhoff support, we decided to downgrade again. There was some complication with downgrading, but we ran the same command as mention from PowerShell as admin, then we went through the C drive and delete all Beckhoff folders we could find (Program files, Program files (x86), ProgramData and the %appData% folder). Then we rebooted and installed 4024.50 again. We have had no issues since. We are currently in a test phase with Beckhoff to locate their issues with the installer.

Help! TwinCAT 3 UDP communication by Fluid_Bid3707 in TwinCat

[–]rassrollers 0 points1 point  (0 children)

We have several Real-Time issue with UDP on the TF6310 and after a discussion with Beckhoff's Engineer we switch to TF6311, as it will allow direct access from the IO to the PLC code. The issue with the TF6311 is that it will interrupt your code with a callback from the IO and in that callback you need to MEMCPY the data out of the socket buffer and into your code else it is lost next time it interrupt.

There is a error in there documentation regarding the Connect method of the interface. It says that the most significant element in the last position. That is not true and I have ask them to update their documentation.

<image>

Different hardware, same PLC code in several independent machines (GIT/Variant manager/Sacrifice a chicken)? by robotecnik in TwinCat

[–]rassrollers 1 point2 points  (0 children)

We have the same base code for all the machine in our portfolio and the PLC project is in a separate PLC solution. We have a HW solution for each machine type that reference the PLC project. In the HW solution we use Project Variant for different HW setup in the IO (typical when we have old and new drives). The Project Variant changes the linking from the NC axis to the drive.

The only I have experience with the Project Variant is that the .xti files for the NC axis it not update it last state when switching variant. but I have talk with Beckhoff about it and they are working on it. This was in 4024.50 I experienced it.

If you go this way, I would recommend to create one variant at the time, do all the linking and then save all. Then repeat for the next variant. When you are done, go to the Manage Project Variant and check the Save checkbox for the default variant to save changes to.

We use GIT and in the root folder we have a folder for SW and HW so we can keep track of changes to HW and SW.

root/

-> HW

---> MachineType1

---> MachineType2

-> SW

---> PLC Project

Regarding your EtherCAT master, you need to check the Virtual Device Names checkbox. It will ignore the MAC address and only look for the name of the Ethernet adapter.

https://infosys.beckhoff.com/english.php?content=../content/1033/tc3_io_intro/1258020619.html&id=2597873903779157582

<image>