Categories

Entries for the 'Beckhoff and TwinCAT' Category

Indusoft Tips and Tricks
Nikhil Holay

Indusoft Tips and Tricks

Indusoft is an HMI/SCADA platform that can be used with a variety of different PLCs. At DMC, we’ve used Indusoft with several PLC platforms, including Beckhoff, Omron, and Mitsubishi. Below, I’ve outlined a few tips and tricks that I’ve used to accelerate Indusoft development.   Indusoft Tip 1: Refer to the PLC Make sure that your driver sheet I/O addresses refer to something in the PLC. If you are using symbolic tags, the tag must exist in the PLC or Indusoft wil...

Continue reading →


Beckhoff TwinCAT3 Scope
Nikhil Holay

Beckhoff TwinCAT3 Scope

For anyone debugging a program, a scope can be an extremely efficient tool for determining the cause of an issue. A scope allows you to monitor a variable (or multiple) in real time, which is a great way of viewing and debugging specific parts of the machine process.  In Beckhoff, TwinCAT 3 offers a very straightforward built-in scope. In this article, I'll detail how to set up a scope to debug a program. Like TwinCAT 3, the TwinCAT 3 Scope is integrated into...

Continue reading →


How to Upload and Monitor Code on a Beckhoff TwinCAT 3 PLC
Nicklas Thystrup

How to Upload and Monitor Code on a Beckhoff TwinCAT 3 PLC

This guide will get you started with Beckhoff PLCs by showing step by step how to go online with an existing PLC to monitor or troubleshoot existing code on a running PLC. To upload the code from the PLC for modification or backup, just follow step 1. Upload PLC code Open the TwinCAT XAE in Visual Studio. Select File > Open > Open Project From Target… Select the PLC, then OK. See this guide for finding and connecting to a PLC. Select location on local compute...

Continue reading →


How to Connect to Beckhoff TwinCAT 3 PLCs
Nicklas Thystrup

How to Connect to Beckhoff TwinCAT 3 PLCs

This guide will get you started with Beckhoff PLCs by showing step by step how to connect to a Beckhoff PLC.     Download and install Beckhoff TwinCAT 3 programming environment. Once the programming environment is installed, this icon  will appear in the system tray. Select > Router > Edit Routes. In the TwinCAT Static Routes window that pops up, select Add... The Add Route Dialog will appear:  For most situations, the Broadcast Search option wi...

Continue reading →


Beckhoff Drive Diagnostics
Nikhil Holay

Beckhoff Drive Diagnostics

Recently, I was working with a client that was using TwinCAT 3 and Beckhoff drives to control machinery. One night, as they were running this machine, the drive faulted. Without any diagnostic message visible on the HMI, they were completely in the dark as to why the drive failed. Typically, as a programmer, I'll diagnose this by opening up Drive Manager and taking a look at the diagnostic message.     As this is useful information for an operator to see, this led m...

Continue reading →


Sharing Tags between Beckhoff PLCs Using ADS Read
Nicklas Thystrup

Sharing Tags between Beckhoff PLCs Using ADS Read

Often it becomes necessary to read a few tags from another Beckhoff PLC without setting up a full publisher subscriber EAP system. Automation Device Specification (ADS) reads and writes can be used to do this with very minimal setup, as long as both PLCs are on the same network. Setup consists of mapping the variable in the source PLC at a static memory location, and then reading it from the destination PLC using an ADS Read command. Steps Define the variable in the source PLC...

Continue reading →


UDP Communication on Beckhoff’s TwinCAT 3
Sudeep Gowrishankar

UDP Communication on Beckhoff’s TwinCAT 3

Have you ever received a tweet from a machine on the factory floor? These days, modern PLCs interact with the typical PC and Information Technology world (Ethernet, SMTP/emails, SMS/text messaging, cloud technologies), but there often are caveats. You might need an OPC server to talk to the PLC and then a separate web service to interface with the your intranet. You might need to send messages out from the PLC to a PC-based server, specially configured to listen and interpret. You might need ...

Continue reading →


MS SQL Stored Procedures Directly from Beckhoff TwinCAT PLC
Nicklas Thystrup

MS SQL Stored Procedures Directly from Beckhoff TwinCAT PLC

Beckhoff TwinCAT 2 and 3 PLCs have the ability to execute SQL stored procedures to read or write data without the need for an HMI. This is achieved by setting up TwinCAT Database Server on the PLC to manage the database connections, and using functions from the TcDatabase library to execute stored procedures. This blog will go through the steps to setup the TwinCAT Database Server and execute a pre-existing stored procedure. 1. Setup your SQL database and write your stored procedure. 2....

Continue reading →


Beckhoff Automation and Programming Demo at DMC
Simon Healey

Beckhoff Automation and Programming Demo at DMC

Beckhoff visited the DMC Chicago office not long ago in order to demo some cool automation equipment. Many of us are already familiar with Beckhoff’s products, but it was really valuable to be able to take a step back from working with the equipment just to see it from an operational standpoint. For those DMC engineers who don’t work with Beckhoff equipment as often, this was an amazing opportunity to get more intimately acquainted with the hardware.  For those who don’...

Continue reading →


Categories