Skip to main content

Posts

Showing posts with the label Application Notes

Application Note: How to Get Printer's Status to Allen-Bradley's PLC?

You can read this post on  LinkedIn  as well. Disclaimer: This article isn't sponsored by RealTime Automation, Zebra, or Rockwell Automation. This is an independent application note. Plus, there is no commission from links below. Introduction: Zebra printer seems to be quite popular in the industry. The Japanese grocery store Maruichi, the Vietnamese restaurant Pho Minh Ky, my ex (employer, not girlfriend), etc. However, it can be painful if you need to integrate a printer with an Allen-Bradley CompactLogix controller. If your printer only has light indicators but not an integrated display like ZD420/421, you'll have to look up the troubleshooting guide to figure out the meaning. (And yes, we don't like looking it up online if there is already an HMI around.) If you dig around on the Internet, you'll probably see an article on PLC.net that talks about opening sockets for communication. However, that can be tricky and time-consuming if you don't have sufficient IT kn...

Application Note: How to Handle Unicode-formatted ASCII Object in EasyBuilder Pro (EBPro)?

You can read this post on  LinkedIn  as well. Introduction The support on string datatype in EBPro Macro falls short. I complained about it in my last article GetData()/SetData() and Error C45 in EasyBuilder Pro (EBPro) . When I contacted Maple Systems' technical support, they couldn't answer my question and played dead in hope that I would walk away. And I did, disappointedly... Luckily, the solution dawned on me last night. Now let's learn! Section 1: Limitations of String Datatype in EBPro Macro If you create an ASCII input object in EBPro, you can choose from Unicode or UTF-8 encoding. For Unicode, each word reads 2 bytes . In contrast, each word reads 1 byte for UTF-8. Section 2: The Problem with Extra Spacing in ASCII Objects If you limit your usage to very basic functions on HMI, you have nothing to worry about. However, if you write a Macro to play with these ASCII objects or read/write them to/from your PLC controller. You may run into a problem like this. ...

Application Note: GetData()/SetData() and Error C45 in EasyBuilder Pro (EBPro)

You can read this post on  LinkedIn  as well. Introduction: I started my PLC and HMI programming journey with Allen-Bradley products in 2020. Due to a career change, I landed in the Greater Boston Area in 2021 and launched an excursion to learn the Maple Systems HMI (and how powerful a Macro function can be). However, learning Macro isn't all that bright and shiny. I ran into a problem when using PLC tags (still an Allen-Bradley CompactLogix controller). When I compiled the Macro, it gave me a C45 error message saying "The tag can't be found." What? I SUCCESSFULLY imported every single tag already! That burning feeling brings me back to the objected-oriented programming class in 2013. I struggled and couldn't make any progress. Later, my colleague told me why that happened when he checked in with me. So here we go to learn what was the root cause! Section 1: Understanding the Controller and Program Tags For a 5000 series controller from Allen-Bradley, you use Logi...

Application Note: 5069-SERIAL Communication through Generic ASCII and RS-485

You can read this post on  LinkedIn  as well. Introduction: The Allen-Bradley module 5069-SERIAL, released in 2018, offers enhanced communication capabilities for various protocols, including DH-485 and DF1, through a firmware update V2.012 in 2020. While the user manual lacks practical examples for sensor communication, this comprehensive application note aims to fill that gap. Specifically, we will focus on integrating the module with the Panasonic HL-G112 Laser Displacement Sensor. By following the outlined setup process, you can avoid pitfalls and accelerate your prototype development. Fig. 1 Section 1: Understanding Sensor Specifications: In this Application Note, I pick Panasonic HL-G112 Laser Displacement Sensor for development. I'll walk you through the entire setup process so that you can stay away from traps and have your prototype hit the ground running earlier! Fig. 2 Let's start with the sensor specification sheet. ( Download Link ) I use R...

Application Note: ProSave Security Backdoor? Access HMI Settings without Password?

You can read this post on  LinkedIn  as well. Introduction: ProSave is a powerful software tool developed by SIEMENS. It's designed to streamline data management tasks for Siemens S7-1200 and S7-1500 series PLCs. It also communicates with SIMATIC HMI devices. ProSave provides backup, restore, and data transfer operations so that we can use ProSave for project management and ensure system reliability. Join me as we uncover the power of backups, explore the realm of password-protected projects, and uncover a surprising discovery that may leave you running to check your devices. Section 1: Backups for Peace of Mind In the vast landscape of ProSave, we encounter a crucial feature that stands tall—the ability to generate backups of PLC/HMI projects. These backups serve as a safety net, offering swift restoration in the face of PLC/HMI failures or during project migrations. Whether you seek to safeguard the entire project or specific components such as hardware configurations, user ...

Application Note: How to Triger a Digital Alarm Using a PLC Tag in FactoryTalk View?

You can read this post on  LinkedIn  as well. Introduction: Ah, FactoryTalk View, the realm of alarms and triggers—a landscape where digital statuses flicker and cause headaches aplenty. Today, we embark on a journey to unravel the mysteries of alarm triggers in this enigmatic realm. Join me as we navigate the realm of Value, Bit, and LSBit triggers, and discover the unexpected twists and turns that await us. Brace yourselves, fellow adventurers, for we delve into the captivating world of FactoryTalk View! Section 1: The Curious Case of Digital Alarms In our quest for alarm enlightenment, we stumble upon three intriguing types of triggers: Value, Bit, and LSBit . Intuitively, one might assume that digital alarms should employ Bit triggers—the natural choice for binary states of on (1) or off (0). However, hold onto your hats, for a revelation awaits! Rockwell Automation Technical Support, unveils the surprising truth: Value triggers are the key to digital alarm mastery. Prepar...

Application Note: How to Fix FactoryTalk View ME Resolution/Scaling?

You can read this post on  LinkedIn  as well. *Updates on Windows 10 Windows 10 seems to be using different font file types now. If you go to Registry Editor, you'll only see .TTC and .TTF but not .FON. However, you can still download these three font files and install them on your laptop. Just remember to pick a trustworthy website! Introduction: Wait! What's this? A font-related conundrum that threatens to derail our path to seamless operation? Fear not, fellow troubleshooters! Today, we venture into the realm of Windows 10 font file types and the quest to tame FactoryTalk View's stubborn typographic quirks. Join me as we navigate this treacherous terrain with wit and determination! Section 1: The Elusive Solution In the vast expanse of the internet, we stumble upon a glimmer of hope—a thread of fellow sufferers who claim to have unearthed a solution after hours of tireless exploration. Their remedy involves venturing into the Compatibility tab, checking the m...

What If You See Error Code 16#0204 on FactoryTalk View?

You can read this post on  LinkedIn  as well. Introduction: Embarking on a journey through the intricate realm of Allen Bradley controllers can be both rewarding and bewildering. But fear not, fellow adventurers! Today, we delve into the enigma of Error Code 16#0204 , a puzzle that has left many scratching their heads. Prepare to unravel this perplexing riddle as we navigate the intricate web of local and remote I/Os. Grab your magnifying glass and join me on this thrilling escapade! If it is an all-or-none case, you can check ABB's article SLOGIX 5000 ERROR CODES WHEN USING ETHERNET IP AND ABB DRIVES . Section 1: Understanding the Issue When using a CompactLogix 5380 controller with two 1747-AENTR Ethernet communication modules and two 1746-A13 chassis, it was observed that only the last two modules (1746-IA16 and 1746-OW16) were not being recognized by the controller. Several assumptions were made initially, such as module failure or power consumption issues, but they turned...

Application Note: How to Show Parameters from drive.web Savvy on C-MORE HMI?

You can read this post on  LinkedIn  as well. Introduction: In the spirit of Austin Kleon's wisdom that "You don't have to be a genius!" in the book SHOW YOUR WORK . I am here to share my experiences and newfound knowledge as a full-time Electrical Engineer. Join me as we explore my first project, where I encountered a PLC (Programmable Logic Controller) controlled machine, a C-MORE touch panel HMI, and the intriguing puzzle of their arrangement. Together, we will navigate the challenges and triumphs of modifying the setup, configuring parameters, and establishing communication. So, let's dive in! Section 1: Unveiling the Setup Upon closer inspection, an unconventional arrangement revealed itself—a PLC-controlled machine with a mixture of local and remote I/O modules, programmed in DirectSOFT, and a C-MORE touch panel HMI, all connected through a switch. An eyebrow raises, and a realization dawns: the Ethernet cable should connect the HMI panel directly to the swi...

Application Note: How to enable Specialty Modules via CompactLogix? (e.g. 1746-NT8, a thermocouple module from Allen Bradley)

You can read this post on  LinkedIn  as well. Introduction: Greetings, fellow control enthusiasts! So, you've embarked on the journey of upgrading your trusty SLC-500 series controller to the mighty CompactLogix 5000 series. However, you've encountered a pesky problem: those elusive specialty modules named 1746-XXXX just won't cooperate. Fret not, for I shall shed light on this mystery and guide you to a solution that'll leave you feeling like a true control wizard! Section 1: The Enigmatic Configuration Ah, the allure of module configuration! In the world of CompactLogix 5000 series controller, things work a bit differently compared to the SLC-500 series' way. Those familiar right-clicks and property modifications won't yield the desired results for your 1746-XXXX modules. But fear not, dear reader, for I'll show you a workaround that shall unravel the magic! Section 2: A Case Study Imagine this: you find yourself in an environment with a CompactLogix 5380 ...