This post is written for individuals familiar with the Arduino family of microcontrollers who wish to delve into the world of industrial control systems. In this short post we will explore how to select and then connect digital devices to the input of the Arduino Opta Programmable Logic Controller.
The Opta seamlessly integrates into the 24 VDC ecosystem associated with many industrial control systems. Consequently, we will focus exclusively on the 24 VDC compatibility feature and exclude the 12 VDC compliant variants.
The Arduino Opta is suited for two general types of input devices including contact and PNP types. There are some important distinctions that must be understood to select compatible devices.
Contact Type Inputs
A contact can be a switch, sensor, or relay that features a contact closure that provides continuity to a PLC input. For example, in this sketch you can see a variety of inputs including contacts from the Master Control Relay (MCR) and a variety of normally open and normally closed switches to control the operation of the PLC. Collectively these are known as field device inputs.
Observe that one side of each field device is tied to the 24 VDC rail while the other is connected to the associated PLC inputs. Depending on the state of the field device, 24 VDC may or may not be sent to the Opta’s input. There is no need for external pull-up or pull-down resistors. The Opta has the equivalent of a 9 kΩ input resistor.
Tech Tip: A natural question concerns selection of normally open vs normally closed contacts. As a rule, select the contact type so that field devices that start the machine are normally open while things that stop the machine are normally closed. This will provide a measure of failsafe operation against a broken wire or loose connection. The PLC program is modified to accommodate the switch polarity.
Semiconductor PNP Type Inputs
Many industrial sensors feature semiconductor outputs. An example is the proximity (prox) sensor shown in the schematic above. We must be careful when selecting semiconductor sensors as they come in two different configurations. In one version, the sensor will “pull” low while the other version will “pull” high. In the industry, these are known as NPN and PNP respectively. The name is a description of the output transistor used to control the sensor’s output. The NPN transistor will pull low like the open collector device you may have encountered in a digital logic class. The PNP transistor will pull high.
Knowing the transistor configuration is essential as it determines how sensor will interface with the PLC. Choose the PNP configuration for direct connection with the Opta!
Tech Tip: An NPN sensor may be used with the Opta. However, an external pull-up resistor must be included. This post describes how to configure the NPN sensor.
When selecting a sensor from DigiKey’s parametric search engine, you can filter for the desired sensor configuration by selecting PNP from the “Output Type” field as shown here.
There are thousands of available field devices allowing you to optimize your process and control systems. As you build your industrial control system, please consider DigiKey’s offering by first visiting the Automation & Control page. The page contains a series of pictures showcasing the products to help you quickly locate the desired components.
We look forward to hearing from you as you design, build, troubleshoot, and repair your industrial control systems. Your feedback is invaluable to us and our readers. Please share your comments and question about this material on this page or back on DigiKey’s primary TechForum page.
\definecolor{royalgreen}{rgb}{0.0, 0.4, 0.0} \color{royalgreen} \Huge{Inquire\ and\ Inspire!}
Best Wishes,
APDahlen