Home Blog Page 45

Timers and Counters Used In Mitsubishi PLCs

Like most programmable logic controllers on the market, Mitsubishi has its versions of both timers and counters.

These are similar but not necessarily set up the same as the other manufacturers.

There are two critical pieces to programming each timer or counter.

The first being the label creation when inserting the function into your code. This is where the data type is selected.

Local/Global Label Registration

The second is that you can set the global or local scope as well as if it is strictly a variable, a constant, or a retained variable class type.

Class selection during Label Registration

Timers

With timers, there are commonly used Time ON timers (TON) and Time OFF timers (TOF).

There are versions (Data Types) of the timer functions that have an added EN (enable) added to the input to control when the time starts to lapse. These functions usually have an “_E” in the name of the function definition (TON_E).

Continuing with the variations of timers, you can add the function to your program in a couple of ways.  You can just start typing TON of TOF or you can drag and drop the POU (function) from the element selection bar usually on the right of the editor.

Label with data type of TOF_E and Global

In Mitsubishi programs, there are a few ways you can use a timer function in your programming.  We will stick with the ladder and the functional block diagram formats for this article.  Both styles have their pros and cons, but for the timer and counter functions, they behave very similarly.

Examples of FBD TOF and TOF_E

As you can see, they have similar formats when inserted into the logic.  They have the same inputs and the same format for entering the preset time.

Ladder Examples of TOF and TOF_E

The PT input is a TIME data type. This is important to remember.  With Timers, you start with a “T#” followed by the time of preset you wish to use.  After the time, you will need to designate whether the time is in seconds (S) or milliseconds (ms).

With these functions, it is strictly preference but perhaps ease of integration, if you are adding logic to an existing program or selecting a preferred style of logic in a new project.

If declaring a Timer and you realize you need a large time preset, using the TIME data type for the preset on the Timer gives you the range up to a 32-bit unsigned value.  The value, 0 to 2,147,483,647, is still limited to lower than the true 32-bit maximum due to the TIME data type and how it is structured in the PLC firmware.

This is one of those instances that the data type limits the value to less than the actual numeric data type.  Like many other things in Mitsubishi, you can modify the setting of the long-timer value by using the engineering tool.

For example, if the setting is 0.001ms, then the preset range will be from T#1ms to T#2147483ms.  If the timer setting value is at 1000ms the preset range will go up to T#1000ms to T#2147483000ms.

Series timers with output coils

Just as preferences differ from programmer to programmer and even from project to project, so do the ways to use, isolate, and manipulate timers and counters.

As shown here, you can even stage the timers and counters by using the Q output to trigger a coil and the input (or enable) of another function.

One simple example of something I do frequently is set a timer to trigger a SET function.  This is particularly handy when latching an alarm or warning bit that you feel should require a definite manual reset.

Timer with a set bit for an alarm

Counters

Now we have come this far without so much as an example of the counter functions.

In the Mitsubishi GX Works 3, you have the UDCNT function available in the ladder and the FBD programming structure.

Ladder style Up-Down Counter

On the ladder-style, you can see that the rung from the power rail is the same as the EN input on the FBD style block.

FBD style Up-Down Counter

While the X0 is in the S1 blank and the K3, in these examples, is a constant entered for the counter preset.

The symbol used at S1 should be a Boolean type and declared as something that can be an array of two.  The [0] position of the array is the pulse increment/decrement while the [1] position of the array sets the direction of the counter.

In these examples, every pulse to the S1 (rising edge of X0) will increase the count value by 1. If the value reaches 3 (or whatever is set at S2), the output will go high.

In this case, the ladder could use an N.O. contact of a C0 transition from 0 to 1 and the FBD style will turn on the COUNT_DONE coil.

One other item to remember, if the value at the array X1 goes high, the pulses seen at S1 will cause the count register to decrement.

So, it is a very simple function block that is two functions in one.  How efficient!

Written by Paul Hunt
Senior Automation Engineer and Freelance Writer

Have a question? Join our community of pros to take part in the discussion! You'll also find all of our automation courses at TheAutomationSchool.com.

Sponsor and Advertise: Get your product or service in front of our 75K followers while also supporting independent automation journalism by sponsoring or advertising with us! Learn more in our Media Guide here, or contact us using this form.

Paul Hunt
 

First Look: Retroreflective Sensor with IO-Link, Pepperl+Fuchs OBR7500-R100-2EP-IO (M5E25)

We take a first look at the OBR7500-R100-2EP-IO Retroreflective Photoelectric Sensor from Pepperl+Fuchs in this episode of The Automation Minute.



The Automation Minute, Season 5 Episode 25 Show Notes:

Special thanks to Pepperl+Fuchs for sending us a sample of their OBR7500-R100-2EP-IO Retroreflective Photoelectric Sensor!


Join our new community at TheAutomationBlog.com/join!

Become part of our community to take part in the Q&A as well as get early access to many of our Podcasts and Shows with a one-time or monthly pledge of $5

Vendors: Would you like your product featured on the Podcast, Show or Blog? If you would, please contact me at: https://theautomationblog.com/contact

Until next time, Peace ✌️ 

If you enjoy this episode please give it a Like, and consider Sharing as this is the best way for us to find new guests to come on the show.

Shawn M Tierney
Technology Enthusiast & Content Creator

Eliminate commercials and gain access to my weekly full length hands-on, news, and Q&A sessions by becoming a member at The Automation Blog or on YouTube. You'll also find all of my affordable PLC, HMI, and SCADA courses at TheAutomationSchool.com.

Paul Hunt

First Look: SCALANCE XC206-2SFP Managed Switch from Siemens (M5E24)

We take a first look at the SCALANCE XC206-2SFP Managed Switch from Siemens in this episode of The Automation Minute.



The Automation Minute, Season 5 Episode 24 Show Notes:

Special thanks to Siemens for sending us a sample of their SCALANCE XC206-2SFP Managed Switch!


Join our new community at TheAutomationBlog.com/join!

Become part of our community to take part in the Q&A as well as get early access to many of our Podcasts and Shows with a one-time or monthly pledge of $5

Vendors: Would you like your product featured on the Podcast, Show or Blog? If you would, please contact me at: https://theautomationblog.com/contact

Until next time, Peace ✌️ 

If you enjoy this episode please give it a Like, and consider Sharing as this is the best way for us to find new guests to come on the show.

Shawn M Tierney
Technology Enthusiast & Content Creator

Eliminate commercials and gain access to my weekly full length hands-on, news, and Q&A sessions by becoming a member at The Automation Blog or on YouTube. You'll also find all of my affordable PLC, HMI, and SCADA courses at TheAutomationSchool.com.

Paul Hunt

Common Data Types Used In Mitsubishi PLCs

As a PLC programmer or troubleshooter, you’re already be aware of certain things such as data types.

Sometimes they may be referred to differently depending on the platform, such as in one platform a floating point data type may be refereed to as a REAL, whereas in another it may be refereed to as a FLOAT.

Regardless of how they are referred to, you’ll want to understand the basic construct of the various commonly used types in the PLCs you use, and in this article I’ll cover several of the data types, access types, and ranges that can be set in a Mitsubishi PLC and GX Works3 project.

For this article I’ll start by starting a new project, but you can also start with a previous project and change the processor type under the Project drop-down menu.

Figure 2 New Project

In my example I’ll be working with one of the newer processors available, FX5U (part of the iQ-F series). How you choose to continue, of course, is optional.

Figure 3 Change PLC Type – FX5U selected

You can start by adding tags (“label names”) before doing any programming.  You can also add them as you progress through the chosen programming structure type you have chosen (Ladder, Structured Text, Function Block Diagram, etc.)

Figure 1 Project Explorer showing Global Labels

This is where you can choose to do straight symbol names or add addresses (“Device/Label”) such as a D100 or M52.

What designation of the data type you choose to use in the device will also limit what data type you can use.

The D designation is typically used for numeric values like Integers or Floats.  If you use one for a Bit, it will look something like D100.0. The M device designation mentioned previously will be used for Boolean instances only.

Giving the device a label name is just good programming practice.  This would fall under the commenting part of a program and is helpful not only to yourself as you proceed but later when you’re recalling this program or being reviewed by another programmer, and possibly any maintenance personnel that is looking at your code that needs to get a manufacturing line back up and running again as quickly as possible.

The data types available can make quite a long list as these can also include any number of SDT (structured data types) supplied by an OEM with a hardware import or generally custom defined by you as needed for the application.

As shown above, this is a simple SDT used to group standard built-in addresses in the FX5U processor.  These SDTs can be quite involved.  You can also have labels defined with nested data types.

The flexibility with Mitsubishi is definite here, you can make it as complex or as simple as you choose.

Figure 5 Label with SDT showing Device Details

Here you can declare something like a “PLC_Status” label with the data type of the previously declared SDT FX5U_Status.  When you pull up the label, in the Global label set (or other custom label sets), you will see the “Detailed Setting” under the Assign (Device/Label) column.  When you click on this, you can then manually or automatically assign the device for each item in the structured label.

So, of course, you have the standard Boolean (Bit) data type.  Used for normally open, normally closed, and pulse bits throughout the program.  These can be defined as internal, local, global, and I/O bits (inputs, outputs, and HMI interface bits).

Figure 6 Data Type Listing

Then you have the Word (16-bit) and Double Word (32-bit) data types.  These can be declared the same (local, global), but you will need to be sure if you are using a 16-bit value (-32,768 to 32,767) or the 32-bit (-65,536 to 65,535).  Now, these are the signed integer ranges.  If you are using the unsigned integers, your values can be 0 to 65,535 for the 16-bit and 32-bit value can go from 0 to 4,294,967,296.  If declaring a Timer, for instance, you can select a Long Timer and it will be able to use a range up to the 32-bit unsigned value as a preset.

The next items in the list to look at and is standard among most PLCs are the Float (Real) and String data types.  A float can be a range from -2128 to -2-126, 0, and 2-126 to 2128 for single precision and -21024 up to 21024 if using the LREAL or Double Precision Float data type.

The string data type is set up with 255 one-byte characters as a maximum.  Just as most other popular PLCs, when selecting any of these data types, you can also select if the declaration is to be an array and how many elements will be set up.

Just as preferences differ from programmer to programmer and even from project to project, so do the ways to use, isolate, and manipulate data and the registers defined.

Beyond being familiar with the data types, you should be somewhat familiar with the way the system is built to fully understand how the numbers work and can be converted if needed.

As with some other PLC manufacturers, the Hex numbering system is the base and can have an impact on the flexibility of certain data types and program types (i.e., simple ladder, FBD, and structured text).

Keep that in mind, organize, and comment your program so that you are not the only one being called at 3 a.m. to get it running again.  I will say again, it can be as simple or as complicated as you make it.

You’re the programmer so understand the system and the data types and the rest is just “ones and zeroes” as a shop foreman once jokingly said to me.

Written by Paul Hunt
Senior Automation Engineer and Freelance Writer

Have a question? Join our community of pros to take part in the discussion! You'll also find all of our automation courses at TheAutomationSchool.com.

Sponsor and Advertise: Get your product or service in front of our 75K followers while also supporting independent automation journalism by sponsoring or advertising with us! Learn more in our Media Guide here, or contact us using this form.

Paul Hunt
 

Cybersecurity: IT and OT Working Together (P79)

I sit down with Mariam Coladonato of Phoenix Contact to talk about how IT and OT can come together to implement Cybersecurity in episode 79 of The Automation Podcast.

For more information, check out the “Show Notes” located below the video.


Watch the Podcast:



The Automation Podcast is also available on most Video and Podcasting platforms, and direct links to each can be found here.


Listen to the Podcast:


The Automation Podcast, Episode 79 Show Notes:

Special thanks to Mariam for coming back on the show to talk about Cybersecurity and how IT and OT can work together.

To learn more about Cybersecurity, check out the below links:


Vendors: Would you like your product featured on the Podcast, Show or Blog? If you would, please contact me at: https://theautomationblog.com/contact

Until next time, Peace ✌️ 

If you enjoy this episode please give it a Like, and consider Sharing as this is the best way for us to find new guests to come on the show.

Shawn M Tierney
Technology Enthusiast & Content Creator

Eliminate commercials and gain access to my weekly full length hands-on, news, and Q&A sessions by becoming a member at The Automation Blog or on YouTube. You'll also find all of my affordable PLC, HMI, and SCADA courses at TheAutomationSchool.com.

Paul Hunt

ControlLogix – Simulator: All-In-One Logix Controller, IO, RSLogix/Studio 5000, and Application Simulation (D009)

Learn how to program ControlLogix and CompactLogix applications without having to buy thousands of dollars of hardware and software in Episode 9 of The Automation Demo (originally episode 5 of Automation Tech Tips.)

For more information, check out the “Show Notes” located below the video.



The Automation Demo Episode 9 Show Notes (originally Tech Tips Episode 5:)

To grab a copy of my course AND a lifetime license of PLCLogix 5000 for only $279.99, visit TheAutomationSchool.com.

You can also pick up my course for $29.99 hereand use the free 15 Day Trial version of PLCLogix 5000.

You can also get the vendor’s “two week trial” without my course here, however please not that the two week limit cannot be reset.


If you’re a vendor who’d like your product featured on our site or show, please contact us at: https://theautomationblog.com/guest

Until next time, Peace ✌️ 

If you enjoy this episode please give it a Like, and consider Sharing as this is the best way for us to find new guests to come on the show.

Shawn M Tierney
Technology Enthusiast & Content Creator

Eliminate commercials and gain access to my weekly full length hands-on, news, and Q&A sessions by becoming a member at The Automation Blog or on YouTube. You'll also find all of my affordable PLC, HMI, and SCADA courses at TheAutomationSchool.com.

Paul Hunt

First Look: Inductive Positioning System with Analog Out and IO-Link, Pepperl+Fuchs PMI80-F90-IU2EP-IO (M5E23)

We take a first look at the PMI80-F90-IU2EP-IO Inductive Positioning System from Pepperl+Fuchs in this episode of The Automation Minute.



The Automation Minute, Season 5 Episode 23 Show Notes:

Special thanks to Pepperl+Fuchs for sending us a sample of their PMI80-F90-IU2EP-IO Inductive Positioning System!


Join our new community at TheAutomationBlog.com/join!

Become part of our community to take part in the Q&A as well as get early access to many of our Podcasts and Shows with a one-time or monthly pledge of $5

Vendors: Would you like your product featured on the Podcast, Show or Blog? If you would, please contact me at: https://theautomationblog.com/contact

Until next time, Peace ✌️ 

If you enjoy this episode please give it a Like, and consider Sharing as this is the best way for us to find new guests to come on the show.

Shawn M Tierney
Technology Enthusiast & Content Creator

Eliminate commercials and gain access to my weekly full length hands-on, news, and Q&A sessions by becoming a member at The Automation Blog or on YouTube. You'll also find all of my affordable PLC, HMI, and SCADA courses at TheAutomationSchool.com.

Paul Hunt

Industrial Computers from Global American (P78)

I sit down with Leah Walsh of Global American Inc. to learn about their unique line of Industrial PCs in episode 78 of The Automation Podcast.

For more information, check out the “Show Notes” located below the video.


Watch the Podcast:



The Automation Podcast is also available on most Video and Podcasting platforms, and direct links to each can be found here.


Listen to the Podcast:


The Automation Podcast, Episode 78 Show Notes:

Special thanks to Leah for taking the time to come on the show and give us an update on Global American’s unique industrial computer line, as well as for making this episode “Ad Free!”

To learn more about Global American’s products, check out the below links:


Vendors: Would you like your product featured on the Podcast, Show or Blog? If you would, please contact me at: https://theautomationblog.com/contact

Until next time, Peace ✌️ 

If you enjoy this episode please give it a Like, and consider Sharing as this is the best way for us to find new guests to come on the show.

Shawn M Tierney
Technology Enthusiast & Content Creator

Eliminate commercials and gain access to my weekly full length hands-on, news, and Q&A sessions by becoming a member at The Automation Blog or on YouTube. You'll also find all of my affordable PLC, HMI, and SCADA courses at TheAutomationSchool.com.

Paul Hunt

First Look: SCALANCE XC124 Unmanaged Switch from Siemens (M5E22)

We take a first look at the SCALANCE XC124 Unmanaged Switch from Siemens in this episode of The Automation Minute.



The Automation Minute, Season 5 Episode 22 Show Notes:

Special thanks to Siemens for sending us a sample of their SCALANCE XC124 Unmanaged Switch!


Join our new community at TheAutomationBlog.com/join!

Become part of our community to take part in the Q&A as well as get early access to many of our Podcasts and Shows with a one-time or monthly pledge of $5

Vendors: Would you like your product featured on the Podcast, Show or Blog? If you would, please contact me at: https://theautomationblog.com/contact

Until next time, Peace ✌️ 

If you enjoy this episode please give it a Like, and consider Sharing as this is the best way for us to find new guests to come on the show.

Shawn M Tierney
Technology Enthusiast & Content Creator

Eliminate commercials and gain access to my weekly full length hands-on, news, and Q&A sessions by becoming a member at The Automation Blog or on YouTube. You'll also find all of my affordable PLC, HMI, and SCADA courses at TheAutomationSchool.com.

Paul Hunt

First Look: Ultrasonic Sensor with IO-Link, Pepperl+Fuchs UC250-F77-EP-IO (M5E21)

We take a first look at the UC250-F77-EP-IO Ultrasonic sensor from Pepperl+Fuchs in this episode of The Automation Minute.



The Automation Minute, Season 5 Episode 21 Show Notes:

Special thanks to Pepperl+Fuchs for sending us a sample of their UC250-F77-EP-IO Ultrasonic Sensor!


Join our new community at TheAutomationBlog.com/join!

Become part of our community to take part in the Q&A as well as get early access to many of our Podcasts and Shows with a one-time or monthly pledge of $5

Vendors: Would you like your product featured on the Podcast, Show or Blog? If you would, please contact me at: https://theautomationblog.com/contact

Until next time, Peace ✌️ 

If you enjoy this episode please give it a Like, and consider Sharing as this is the best way for us to find new guests to come on the show.

Shawn M Tierney
Technology Enthusiast & Content Creator

Eliminate commercials and gain access to my weekly full length hands-on, news, and Q&A sessions by becoming a member at The Automation Blog or on YouTube. You'll also find all of my affordable PLC, HMI, and SCADA courses at TheAutomationSchool.com.

Paul Hunt

Solve Difficult Detection, Tracking, and Lighting Vision Applications with Next Gen Smart Cameras (P77)

I sit down with Yassir Rizwan, CEO of Labforge, to learn how their Smart Cameras use cutting edge features like Neural Network based object detection to solve difficult detection, tracking, and lighting applications in episode 77 of The Automation Podcast.

For more information, check out the “Show Notes” located below the video.


Watch the Podcast:



The Automation Podcast is also available on most Video and Podcasting platforms, and direct links to each can be found here.


Listen to the Podcast:


The Automation Podcast, Episode 77 Show Notes:

Special thanks to Yassir Rizwan for taking the time to come on the show and give us an update on labforge!

To learn more about labforge products, check out the below links:


Vendors: Would you like your product featured on the Podcast, Show or Blog? If you would, please contact me at: https://theautomationblog.com/contact

Until next time, Peace ✌️ 

If you enjoy this episode please give it a Like, and consider Sharing as this is the best way for us to find new guests to come on the show.

Shawn M Tierney
Technology Enthusiast & Content Creator

Eliminate commercials and gain access to my weekly full length hands-on, news, and Q&A sessions by becoming a member at The Automation Blog or on YouTube. You'll also find all of my affordable PLC, HMI, and SCADA courses at TheAutomationSchool.com.

Paul Hunt

First Look: Productivity 2000 PLC Starter Kit (M5E20)

We take a first look at the Productivity 2000 PLC Starter Kit from Automation Direct in this episode of The Automation Minute.



The Automation Minute, Season 5 Episode 20 Show Notes:

Special thanks to Automation Direct for sending us a sample of their Productivity 2000 Starter Kit!


Join our new community at TheAutomationBlog.com/join!

Become part of our community to take part in the Q&A as well as get early access to many of our Podcasts and Shows with a one-time or monthly pledge of $5

Vendors: Would you like your product featured on the Podcast, Show or Blog? If you would, please contact me at: https://theautomationblog.com/contact

Until next time, Peace ✌️ 

If you enjoy this episode please give it a Like, and consider Sharing as this is the best way for us to find new guests to come on the show.

Shawn M Tierney
Technology Enthusiast & Content Creator

Eliminate commercials and gain access to my weekly full length hands-on, news, and Q&A sessions by becoming a member at The Automation Blog or on YouTube. You'll also find all of my affordable PLC, HMI, and SCADA courses at TheAutomationSchool.com.

Paul Hunt

Siemens – Quickly Find Documents and Downloads (D008)

Learn how to quickly find Siemens Documents and Downloads in Episode 8 of The Automation Demo (originally episode 4 of Automation Tech Tips.)

For more information, check out the “Show Notes” located below the video.



The Automation Demo Episode 8 Show Notes (originally Tech Tips Episode 4:)

Special thanks to Luis from Siemens for coming on the show and showing us how to effectively use the Siemens Industry Support Site, as well as to Siemens for making this episode “Ad Free!”

For a direct link to the Siemens SIOS site, click here.


If you’re a vendor who’d like your product featured on our site or show, please contact us at: https://theautomationblog.com/guest

Until next time, Peace ✌️ 

If you enjoy this episode please give it a Like, and consider Sharing as this is the best way for us to find new guests to come on the show.

Shawn M Tierney
Technology Enthusiast & Content Creator

Eliminate commercials and gain access to my weekly full length hands-on, news, and Q&A sessions by becoming a member at The Automation Blog or on YouTube. You'll also find all of my affordable PLC, HMI, and SCADA courses at TheAutomationSchool.com.

Paul Hunt

First Look: MOXA SDS-3000 Smart Industrial Ethernet Switches (M5E19)

We take a first look at the SDS-3000 line of Industrial Ethernet Smart Switches from MOXA in this episode of The Automation Minute.



The Automation Minute, Season 5 Episode 19 Show Notes:

Special thanks to MOXA for sending us a sample of their SDS-3016 and 3008 Smart Industrial Ethernet Switches, as well as making this episode Ad Free! For more information see the below links:

Moxa’s SDS-3000 Series Industrial Smart Switches Product Details
Moxa Industrial Smart Switches Overview
Moxa Industrial Ethernet Switches Overview


Join our new community at TheAutomationBlog.com/join!

Become part of our community to take part in the Q&A as well as get early access to many of our Podcasts and Shows with a one-time or monthly pledge of $5

Vendors: Would you like your product featured on the Podcast, Show or Blog? If you would, please contact me at: https://theautomationblog.com/contact

Until next time, Peace ✌️ 

If you enjoy this episode please give it a Like, and consider Sharing as this is the best way for us to find new guests to come on the show.

Shawn M Tierney
Technology Enthusiast & Content Creator

Eliminate commercials and gain access to my weekly full length hands-on, news, and Q&A sessions by becoming a member at The Automation Blog or on YouTube. You'll also find all of my affordable PLC, HMI, and SCADA courses at TheAutomationSchool.com.

Paul Hunt

What’s New With PI (Profinet, Profibus, IOLink, …) (P76)

I sit down with Michael Bowne of PI North America to learn about what’s new and happening with Profinet Profibus International, including updates on PI working with OPC UA, IOLink, and Omlox in episode 76 of The Automation Podcast.

For more information, check out the “Show Notes” located below the video.


Watch the Podcast:



The Automation Podcast is also available on most Video and Podcasting platforms, and direct links to each can be found here.


Listen to the Podcast:


The Automation Podcast, Episode 76 Show Notes:

Special thanks to Michael Bowne for taking the time to come on the show and give us an update on PI North America.


Vendors: Would you like your product featured on the Podcast, Show or Blog? If you would, please contact me at: https://theautomationblog.com/contact

Until next time, Peace ✌️ 

If you enjoy this episode please give it a Like, and consider Sharing as this is the best way for us to find new guests to come on the show.

Shawn M Tierney
Technology Enthusiast & Content Creator

Eliminate commercials and gain access to my weekly full length hands-on, news, and Q&A sessions by becoming a member at The Automation Blog or on YouTube. You'll also find all of my affordable PLC, HMI, and SCADA courses at TheAutomationSchool.com.

Paul Hunt

Specifying Robotics: Simple Guidelines and Pitfalls to Avoid

I have several hundred hours in setup and training behind Fanuc, Kuka, Motoman, ABB, and UR.  With that said, there is, without a doubt, a push for automating processes and doing everything possible to get that done with the use of robotics.

This is due to several factors that have been very prevalent lately.  Among these are difficulties due to hiring, employee retention, labor costs, and the need for more throughput or even quality demands on the existing throughput.

In this article, I want to focus on the hazards of incorrectly approaching an automation project that specifically includes robotics.  If you have hundreds, thousands, or ten hours of experience with robots, some things still need to be considered on every project.

The scope of a project, details and other items need to be reviewed to help make the integration successful.

Agriculture Photo by ThisisEngineering RAEng on Unsplash

Robots have been around for decades doing the monotonous and dangerous…but now it’s time for something a little different.  It’s time to look at the collaboration efforts, assistive components, and getting them to automate processes for reasons that they did in the past, and focus on what they can do next.

Processes and application assistance that reside outside the walls of that dangerous or monotonous box.

To start, you need to know what the common problems seen are so that you can work around them and even mitigate these before they happen to you.

From my reading and experience, the top three mistakes just lead back to the necessity of better planning and approach.

  • Purchasing before the decision of how to use
  • Purchasing before the breakdown of the target application
  • Underestimating time for commissioning the final integration

I would also add the importance of getting the operator or technician that will be responsible for watching or maintaining the process involved from the very start.

They will have some great insight on the process as it currently is and ideas on the application that could lean the project toward successful completion.

Science Photo by Science in HD on Unsplash

Identify what has been referred to in some of my readings as the three Ds; Dirty, Dull, or Dangerous.  This is also, like mentioned earlier, where you should open the window and look outside the box of “Ds” for other applications as well.

You will need to determine the goal to accomplish.  I feel that three of the four on this list directly relate to the final part cost.  Depending on your point of view, all four kind of do.  If you don’t have quality, no one will want to buy your product.

  • Quality à demand and returning customer loyalty
  • Lower Product Cost à cost competitiveness (happy customers)
  • Improve production à output and/or part cost (more customers)
  • Decrease labor cost à part cost (competitive in the market)

The technical parameters of your chosen robotic application will need to be defined.  One of the first might be the physical reach or work area that is needed to be covered.  This will get you in the right ballpark to focus on a specific manufacturer or model offered by your company’s standard robotic vendor.

Another consideration that will narrow down what to look at is the payload capability or force ability.  Some have significant variations.  Some may be as little as 1 pound or as big as hundreds of kilograms.  Check out one of the largest offered by robotics company ABB, IRB8700!

You will want to look at the number of axes that are necessary for your application.  You may need six, two, or even a combination of multiple axes robots to get the job done.  Repeatability and accuracy also need to be evaluated as to how important of a role it plays in the process.

Kuka Photo by Mika Baumeister on Unsplash

Interfacing ability to other line controls, safety assessments, and possibly even the IP rating may be of particular importance to our application.  Communicating to a local bridge PLC or other robots would be key to any integration.

On top of that, NEVER underestimate the importance of a safety assessment.  This may restrict what robot you look at and has the chance to affect the footprint.

It is also important to look at the priorities of the goal you are trying to achieve.  The scope of any project is important, but when an application such as a robotic one then starts to involve how much it will control, be controlled, or what collaboration will be needed with human operators, it is essential to have that defined.

You will need to know if the robot will work along with humans, closed off in a fence, how big of a footprint you will want to keep, and the overall project budget.

To wrap up the possible pitfalls, without expanding the scope of your current project, look at the possibilities of future capacity and even moving the robot to another location to help with a separate process.

If you plan and take into consideration the main pitfalls learned from the past and others, there is no reason that your robotic integration will not be a success and prove to have a speedy ROI and large cost savings in the coming years.

Written by Paul Hunt
Senior Automation Engineer and Freelance Writer

Have a question? Join our community of pros to take part in the discussion! You'll also find all of our automation courses at TheAutomationSchool.com.

Sponsor and Advertise: Get your product or service in front of our 75K followers while also supporting independent automation journalism by sponsoring or advertising with us! Learn more in our Media Guide here, or contact us using this form.

Paul Hunt
 

S7-1200, Profinet – Communicating to a Third Party Device (Q&A)

Siemens S7-1200 (click for source)

In this edition of “Community Q & A,” one of our readers sent in a question about how to go about using a third party product on Profinet with an S7-1200.

Note: To see a list of all our ControlLogix videos and articles, click HERE.

Community Question:

What is the easiest way to configure 128 bytes out of a Profinet hardware device (Example Keyence vision system) into a DB block in a Siemens S7-1200 using TIA Portal.

In Allen-Bradley you can map it straight to the hardware device, but I’m not sure if I can do it with Siemens?

Shawn’s Reply:

Good morning,

I’ve never tried this before with Siemens, so I reached out to one of my connections and here’s the response I received:


Hi Shawn,

This sounds like he is trying to integrate a 3rd party device into a PLC project.

If the product supports Profinet natively, then you can download the “GSDML” file from the vendor (i.e. Keyance”). Once you bring this into the device catalog, the data should be automatically mapped to the PLC I/O process image (address space).

The steps to import hardware from a GSD file are below:

  1. In the “Options” menu, select the “Manage general station description files (GSD)” command.

  2. In the “Installed GSDs” tab, select the directory in which the GSD files are stored.

  3. Choose one or more files from the list of displayed GSD files.

  4. Click on the “Install” button. The selected GSD files are now being installed.

  5. To create a log file for the installation, click on the “Save log file” button.

    Any problems during the installation can be tracked down using the log file.

  6. Click “Close”. You are notified that the DP slaves or potential equalization components from the installed GSD files are entered into the hardware catalog. This process can take a few seconds.

To give you an idea of how this works, I downloaded a GSD file from Keyance and will share the procedure for bringing this into a TIA project:

Image courtesy of Siemens
Image courtesy of Siemens
Image courtesy of Siemens
Image courtesy of Siemens
Image courtesy of Siemens
Image courtesy of Siemens
Image courtesy of Siemens
Image courtesy of Siemens
Image courtesy of Siemens

Define tags in the PLC tag table:

Image courtesy of Siemens
Image courtesy of Siemens

Instead of defining IO tags in a tag table (since this particular Keyance device I used has soooo much IO tags), you could also create a DB with an array[1..128] of BYTE (or any data you need).

Then use the GETIO instruction to read from the respective “submodule” and put into a DB. Then use the DB tag in your program.

Image courtesy of Siemens

Huge thanks to Luis at Siemens for sending over the above information.

If you’d like to see our previous Q & A’s, click here.

To submit a question for us to consider covering in a future blog, click here.

Those readers who’d like to ask me questions directly, can do so here.

Until next time, Peace ✌️ 

If you enjoy this episode please give it a Like, and consider Sharing as this is the best way for us to find new guests to come on the show.

Shawn M Tierney
Technology Enthusiast & Content Creator

Eliminate commercials and gain access to my weekly full length hands-on, news, and Q&A sessions by becoming a member at The Automation Blog or on YouTube. You'll also find all of my affordable PLC, HMI, and SCADA courses at TheAutomationSchool.com.

Paul Hunt

Designing and Specifying for Industrial Automation, Part 2

In this second part of my two part series, I want to talk about the largest portion of any controls engineer’s duties… specifying the components for your automation project.

As mentioned in part one, the power-up and commissioning is my favorite part (I am sure that I am not alone) and can be very rewarding if the proper amount of thought into the design is done upfront.

This is the continuation of the simple overview of what steps I take on a general design as I get started. These steps, of course, can vary depending on the scope as well as the engineer’s approach.

Here is the list again of what I would consider my main steps.

  1. Concept (Scope) – Part One
  2. General components – Part One
  3. Panel size – Part One
  4. Layout – Part One
  5. Design Detail/Schematics Generation – Part Two
  6. Connectivity and Additional components added – Part Two
  7. BOM – Part Two

Design Detail and Schematics:

In this step, I take what I have laid out with the roughed-in panel drawings and get started with more detail.  More detail in the panel component and location in relation to items that work best when closer together.

Historical Photo by Museums Victoria on Unsplash

The most detail will most likely be in the wiring schematics needed for main power and controls power to bring life to the components on the back panel.  This step could (and should) take the longest in the design portion of a project.  A lot of time is spent reviewing and reading user manuals for any power requirements, fusing needs, connection requirements, minimum wiring sizes, heat dissipation, etc.

In the Cad drawing(s), depending on the abilities of the assembly personnel and your design department processes or standards, it is important to include wire gauge sizing.  This could be just as important (or more) than dimensions on the panel layout.  NFPA and any other codes that are pertinent (i.e., IEC and UL) should be kept close as the design progresses.

It is nice habit to get in to have any additional notes on drawings. These could include dip switch settings, parameters, cable numbers, and any motor sizing or part number information.  This is very helpful not only for assembly verification but also for reviewing or using these prints for similar jobs in the future.

Additional Components:

As the detail and design phase progresses, there may be previously unknown additional items needed in conjunction with parts in the design or even system/machine design change requests.

Robot Photo by Possessed Photography on Unsplash

These may be anything from items needed to actuate or activate specific controls, limiting functionality, more complexity such as robotics or additional automated system, or unforeseen safety items. Allow yourself room, time, and schematic space to add a page or two for unknowns.

This is easier to do when a set schematic standard or format is used for controls systems designs (i.e., a page for safety relay or power supply page).  Keep in mind the needed panel spacing requirements for any additional components.

You want to be sure that space is not too compact, there is enough free air flow available, and it is not too challenging for not only the assembly personnel but for future access by any maintenance or support personnel that need to access items for preventive work and repair.

BOM:

Here it is, the last and final object of the design.  The last chance to check your work before submitting purchase requests or being released to the floor for assembly.

I feel that it is best to use the bill of material to double-check your drawings.  Sometimes an engineer is hard-pressed to take the precious time to do this step.  Even so, it is very important.  Go page by page and review the panel and/or enclosure layouts comparing the BOM as you go.  I typically use a highlighter for this step.

I will go one line at a time and highlight the schematic drawing of a component while also highlighting the BOM line.  This way you can be sure that all the items on the drawing are located on the BOM and vice-versa.  It is a good way to be sure any details haven’t been missed.

One other key thing to remember on the BOM…update it even as the project build progresses.  You don’t want to order another system in the future and forget that one little item.  This will cause frustration and possibly lengthy delays in the build or commissioning.

Written by Paul Hunt
Senior Automation Engineer and Freelance Writer

Have a question? Join our community of pros to take part in the discussion! You'll also find all of our automation courses at TheAutomationSchool.com.

Sponsor and Advertise: Get your product or service in front of our 75K followers while also supporting independent automation journalism by sponsoring or advertising with us! Learn more in our Media Guide here, or contact us using this form.

Paul Hunt
 

Community Q & A: Questions of the Week

This week a lot of readers made use of our “submit a question” link to send us topics they’d like to see us cover, and today I’ll share a few of them along with my take on how to resolve each question.

Note: Readers can ask submit questions directly to me at TheAutomationBlog.com/join, or submit them here on the blog if they’d like us to consider covering them in future Q & As.


Question:

Recently I was working for a PanelView Plus project, and I am getting the below error while restoring an .MER project to FactoryTalk ViewStudio:

“Unable to load Activex control for display DatastorePlus.
Medatastore Plus-newer file version of activex control required.”

Shawn’s Take:

We typically see this error when we try to open a Graphic Display in ViewStudio that has objects on it that are newer than the ones we have installed.

One way this can happen is when the person creating the Graphic Display has first installed an update, aka Patch Roll-up, which in turn has updated components and controls used in the project.

In this specific case, I’d suggest installing the latest version of the free DataStorePlus ActiveX, which you should find comes in the latest patch roll-up for your version of ViewStudio.

This free tech note has links to most of the Patch Roll-ups in question.


Question:

Where could I find the initial release dates of 1756-L83E, 1756-EN2TR, 1756-EN2T, 1794-AENTR, 1783-ETAP1F and 1794-IB10xOB6/A?

Shawn’s Take:

While Rockwell does a good job of identifying product Life Cycle Status here, I don’t know of a good way to find when a product was actually released.

Probably the best option is to look at the release notes for the earliest firmware version here.

For instance, the earliest firmware I can find for the 1756-L83E is dated 11/2015, which matches what I had previously blogged about the L83E being released for sale in December 2015.

Question:

We have an issue. Two days ago we cycled power on a redundant rack and 4/5 comm cards came up in ‘test’. A little investigation revealed Rockwell KB BF18065, which basically says ‘never cycle power’ if your comm cards are in this date range.

The date correspond nicely with our original build so we may have over 100 cards in this category. Unfortunately we did not record serial numbers or born on dates. So we are looking for a way to gather this information efficiently and Rockwell System Ferret came up.

We are concerned about how much load this will put on our peer to peer network which handles process data and wanted to talk to someone that has used it at least a few times.

We have our RSLinx drivers split up so there is no more than ~30 per driver and it looks like we could do it one driver at a time instead of the entire 200+ device network.

Shawn’s Take:

I’ve written about System Ferret previously here, however I’m not sure it’s still available to download?

That said, if you do get a copy of it I think once you open and use the utility you’ll find you can scan a single chassis at a time (if I remember correctly.)


Question:

Can I have Compact GuardLogix Safety Controller use Safety Remote I/O modules such as FLEX I/O 5000? Or is this Flex I/O 5000 restricted to CompactLogix 5380 and not to Compact Guardlogix 5380?

Shawn’s Take:

To find out I had to look it up in the Flex 5000 Users Manual here, in which Table 1 shows that Flex5000 Saftey I/O is (only) compatible with the GuardLogix 5580 and 5380.

I’m honestly not sure why the 5370 and 5570 GuardLogix models wouldn’t be supported, but at least it sounds like you’re in good shape.

Question:

Do you happen to have the 24.052 redundant firmware revision for Contrologix?

AB has “retired” it and I can’t find the firmware so that I can go online with the controller.

Shawn’s Take:

This question actually leads to a bigger question that gets asked quite a lot, and I cover it in detail in my ControlLogix course.

The way it works is, only the Major Rev of Studio 5000 and ControlLogix controller firmware need to match. In fact, it’s nearly impossible to match the minor revs.

So to be up-to-date, you just need to download the latest version of Studio 5000 v24 from Rockwell, and once installed (and activated) you’ll be able to connect to any ControlLogix and CompactLogix controllers no matter what version of v24 firmware is installed.

That said, you probably wouldn’t want to load old firmware or software since Rockwell often retires them when there is a know issue with that particular revision.


If you’d like to see our previous Q & A’s, click here.

To submit a question for us to consider covering in a future blog, click here.

Those readers who’d like to ask me questions directly, can do so here.

Until next time, Peace ✌️ 

If you enjoy this episode please give it a Like, and consider Sharing as this is the best way for us to find new guests to come on the show.

Shawn M Tierney
Technology Enthusiast & Content Creator

Eliminate commercials and gain access to my weekly full length hands-on, news, and Q&A sessions by becoming a member at The Automation Blog or on YouTube. You'll also find all of my affordable PLC, HMI, and SCADA courses at TheAutomationSchool.com.

Paul Hunt

Cybersecurity and Remote Connectivity with Phoenix Contact (P75)

I sit down with Mariam Coladonato of Phoenix Contact to learn about Cybersecurity and the mGuard line of remote connectivity products in episode 75 of The Automation Podcast.

For more information, check out the “Show Notes” located below the video.


Watch the Podcast:



The Automation Podcast is also available on most Video and Podcasting platforms, and direct links to each can be found here.


Listen to the Podcast:


The Automation Podcast, Episode 75 Show Notes:

Special thanks to Mariam Coladonato of Phoenix Contact for taking the time to come on the show and give us an update on Cyber Security and Phoenix Contact’s remote connectivity products.

Please check out the below links they provided that directly relate to our podcast:

I also want to thank Phoenix Contact for sponsoring this episode and making it “ad free”!


Vendors: Would you like your product featured on the Podcast, Show or Blog? If you would, please contact me at: https://theautomationblog.com/contact

Until next time, Peace ✌️ 

If you enjoy this episode please give it a Like, and consider Sharing as this is the best way for us to find new guests to come on the show.

Shawn M Tierney
Technology Enthusiast & Content Creator

Eliminate commercials and gain access to my weekly full length hands-on, news, and Q&A sessions by becoming a member at The Automation Blog or on YouTube. You'll also find all of my affordable PLC, HMI, and SCADA courses at TheAutomationSchool.com.

Paul Hunt