---
title: "Control Basics: The Difference Between Sink and Source Logic"
description: The difficulty starts when engineers or manufacturers use different wiring terminology. 
image: https://blog.orientalmotor.com/hubfs/Example%20of%20sink%20logic.jpg
---

[![Oriental Motor U.S.A. Corp.](https://blog.orientalmotor.com/hs-fs/hubfs/OM-logo-200px.jpg?width=200&height=47&name=OM-logo-200px.jpg)](https://www.orientalmotor.com/index.html)

- <https://blog.orientalmotor.com>
- [Products](https://www.orientalmotor.com/products/index.html)
- [Motor Sizing](https://www.orientalmotor.com/motor-sizing/index.html)
- [Technology](https://www.orientalmotor.com/technology/index.html)
- [FAQ](https://faq.orientalmotor.com/)
- [Contact Us](https://www.orientalmotor.com/contact/index.html)

- [Stepper Motors](https://www.orientalmotor.com/stepper-motors/index.html)
- [Servo Motors](https://www.orientalmotor.com/servo-motors/index.html)
- [Industrial Robots](https://www.orientalmotor.com/industrial-robots/index.html)
- [AC Motors & Gear Motors](https://www.orientalmotor.com/ac-motors-gear-motors/index.html)
- [Brushless DC Motors](https://www.orientalmotor.com/brushless-dc-motors-gear-motors/index.html)
- [Linear Actuators](https://www.orientalmotor.com/linear-actuators/index.html)
- [Rotary Actuators](https://www.orientalmotor.com/rotary-actuators/index.html)
- [Network Products](https://www.orientalmotor.com/network-products/index.html)
- [Cooling Fans](https://www.orientalmotor.com/cooling-fans/index.html)
- [Encoders](https://www.orientalmotor.com/encoders-sensors/index.html)

Engineering Notes

## Engineering Notes by Oriental Motor

# [Control Basics: The Difference Between Sink and Source Logic](https://blog.orientalmotor.com/what-is-the-difference-between-sink-and-source-logic)

 \[fa icon="calendar"\] Originally posted on Apr 30, 2020, 9:16:14 PM   
Last updated on June 17, 2021 / by [Johann Tang](https://blog.orientalmotor.com/author/johann-tang)

![Johann Tang](https://app.hubspot.com/settings/avatar/8cc777610596a2b2230de2963e906c0b)

- [Tweet](https://twitter.com/share)

For someone who has never had experience wiring I/O for motion control, it can be scary the first time.  If devices are not wired correctly, it can cause a range of issues from a motor simply not doing what's expected to irreversible product damage.  I still get that nervous feeling before I press the START button on a demo.  Murphy's Law, anyone?

The difficulty starts when engineers or manufacturers use different wiring terminology.  How can you be sure that you're talking apples to apples?  For example, is a sourcing logic the same as a PNP logic?  "Are we sinking or taking a sinked source?"  In our experience supporting motion control applications, we've heard it all.

Most of the time, tech support engineers will direct you to a wiring diagram and advise you to follow it.  What does sink logic and source logic really mean?  Let's start with some basic terminology.

| **Terminology** |
| --- |

**Electronic Circuit (Digital)**

An electronic circuit contains electronic components, such as resistors, transistors, capacitors, inductors and/or diodes.  These are connected by conductive wires or traces on a PCB.  It requires a voltage and ground, where ground acts as earth to measure the potential voltage.  A digital electronic circuit uses DC voltage and discrete values (on/off).  A DC power source flows from positive to negative. 

**I/O**

I/O is defined as inputs/outputs, which in its simplest terms, is anything that executes an output based on an input.  It could be a keyboard (input) and a monitor (output).  In this case, I/O describes the signal communication between two devices (such as a PLC and a stepper driver) using on/off binary logic.

**Electrical Load**

An electrical load is an electrical component or portion of a circuit that consumes electric power.  This is the opposite of a power source, such as a battery or generator, which produces power.  Examples of loads are light bulbs and motors.  In this case, we're talking about an input circuit.  

**Logic Circuit**

A logic circuit is defined as an electric circuit (I/O) whose output is a function of the input.  It can include one or more binary inputs (on/off) and a single binary output.  It can consist of any binary electric or electronic devices, including switches, relays, solid-state diodes, and transistors.

| **Sink Logic vs Source Logic** |
| --- |

Sink and source logic circuits are commonly associated with PLC I/O signals, and they only apply to DC circuits.  They differ by the type of component used and define the current flow.

- Logic is defined by the type of components in the circuit.
- Logic defines current flow in the circuit.
- Whatever logic you use for the output, the opposite is required for the input.

**Sink Logic**

For a sink logic, an **NPN transistor** provides a path to ground for the electrical load.  For an NPN transistor circuit to work, it must be connected to a PNP transistor circuit.  In other words, a sink logic circuit needs to be connected to a source logic circuit.

Figure 1 shows a sinking digital output that is connected to a sourcing digital input.  The input circuit is connected between the positive power supply side (Vcc) and NPN transistor.

![Example of sink logic](https://blog.orientalmotor.com/hs-fs/hubfs/Example%20of%20sink%20logic.jpg?width=491&name=Example%20of%20sink%20logic.jpg)

**Source Logic**

For a source logic, a **PNP transistor** provides a path to voltage for the electrical load.  For a PNP transistor circuit to work, it must be connected to a NPN transistor circuit.  In other words, a source logic circuit needs to be connected to a sink logic circuit.

Figure 2 shows a sourcing digital output that is connected to a sinking digital input.  The input circuit is connected between the PNP transistor and power supply GND (0v).

 

![Example of source logic](https://blog.orientalmotor.com/hs-fs/hubfs/Example%20of%20source%20logic.jpg?width=499&name=Example%20of%20source%20logic.jpg)

A useful mnemonic trick for sink vs source logic is to think of a source logic circuit as the voltage source (it provides a path to the source), and sink logic circuit as sinking towards the ground (it provides a path to ground).

 

| **TIP : Compare wiring diagrams side by side** |
| --- |
| When dealing with wiring I/O between a PLC and a servo or stepper driver, a helpful trick that has worked for me is to print out the wiring diagrams from both the PLC and the driver, then put the two side by side.  This helps you visualize the current flow from the voltage source to load to the ground.   |

| **Trace the Current Flow** |
| --- |

A lot of my support was done remotely on the phone.  That made wiring support very challenging.  To be sure that I don't damage my customers' PLCs, I used to print the wiring diagrams out and then trace the current flow from the voltage source, to the electrical load, all the way to ground.  By supporting remotely, I also learned that it was very important to know exactly which side of the I/O the customer is referring to.

In order for a PLC sourcing output to trigger a sinking input on the driver, we need to make sure that everything has the power it needs.  Sufficient voltage and current need to enter a positive terminal from the PLC side, through the output circuit, to the input circuit (electric load), and then exit out from another terminal back to ground of the power supply to complete the circuit.  On a PLC, each individual I/O signal should provide 2 terminals for connection: one for current going in, and one for going out.  In order to save space, *sometimes* terminals are grouped together and thus called "common".  This "common" could either be the voltage source, or ground.  More info later.

| **TIP: Don't forget power requirements for I/O** |
| --- |
| It's also important to pay attention to voltage and current requirements for both inputs and outputs.  If the output calls for current-limiting resistors, use Ohm's Law to calculate your external resistance, but don't forget about the internal resistance.  Remember that you have to meet both the voltage and current requirement of the input. |

| **Which is Safer?** |
| --- |

It's important to pay attention to the type of logic or transistor in order to determine the correct wiring method.  In addition, there is also a difference with regard to safety.  If by any chance something happens to the customer's device and causes an I/O signal line earth leakage or short circuit of the ground (0v) line, it could be potentially dangerous.

![Sink logic short circuit](https://blog.orientalmotor.com/hs-fs/hubfs/Sink%20logic%20short%20circuit.jpg?width=507&name=Sink%20logic%20short%20circuit.jpg)

However, if the source logic was used, the input circuit is not directly connected to the positive power side (Vcc), therefore earth leakage or short circuit of a signal line would not turn the input on.  That's why it's considered as one of the safer connection methods.

![Source logic short circuit](https://blog.orientalmotor.com/hs-fs/hubfs/Source%20logic%20short%20circuit.jpg?width=511&name=Source%20logic%20short%20circuit.jpg)

| **Summary** |
| --- |
| Sink and Source are terms used to define the flow of direct current in an electric circuit.   - A sinking input or output circuit provides a path to ground for the electric load. - A sourcing input or output provides the voltage source for the electric load.  Logic is defined by the type of components in the circuit. - A sourcing input or output circuit requires a PNP transistor. - A sinking input or output circuit requires an NPN transistor. A simple electronic circuit consists of one digital input connected to a digital output.  To power the circuit, a voltage source, a ground, and a load is necessary. - A sourcing input or output circuit provides the necessary voltage for the circuit. - A sinking input or output circuit provides the necessary ground for the circuit. - The digital I/O provides the electrical load required for the circuit to work. |

 

| **For Flexibility, Use Products That Offer Both Sink and Source Logic** |
| --- |

Certain products in the market offer both sink and source logic for flexibility in connections.  What makes this possible are the bidirectional diodes wired in parallel.  Photo couplers also help minimize wiring damages.  Use these products if flexibility is desired, or if you plan to repurpose them later.  

![Bidirectional diodes & photo coupler](https://blog.orientalmotor.com/hs-fs/hubfs/image-173.png?width=196&name=image-173.png)

Here's what the actual wiring diagrams look like for the [![BLE2 Series brushless motor drivers](https://hubspot-no-cache-na2-prod.s3.amazonaws.com/cta/default/2284573/c04f37fa-0291-4add-8151-02827ab7aaee.png)](https://hubspot-cta-redirect-na2-prod.s3.amazonaws.com/cta/redirect/2284573/c04f37fa-0291-4add-8151-02827ab7aaee).    There is one diagram for connecting sink logic outputs and another diagram for source logic outputs.  The PLC, or "Programmable Controller", is on the left, and the motor driver on the right.  The INx designations are inputs, and the OUTx designations are outputs. 

Take a look at the first input "IN-COM0" (Inputs Common).  On the top wiring diagram, it's connected to 24 VDC, and the input has a path to ground.  On the bottom diagram, the "IN-COM0" is connected to the 0v, and the input has a path to the voltage source. The bidirectional diodes in the input circuits allow this.

![BLE2 sink, source wiring diagrams](https://blog.orientalmotor.com/hs-fs/hubfs/BLE2%20sink%2c%20source%20wiring%20diagrams.jpg?width=572&name=BLE2%20sink%2c%20source%20wiring%20diagrams.jpg)

Hopefully this helps.  Most of our newer drivers offer both sink and source logic.  If you need help locating them, please ask our helpful [![tech support engineers  ](https://hubspot-no-cache-na2-prod.s3.amazonaws.com/cta/default/2284573/9233bc13-6aab-4195-80ef-76ce911a9a85.png)](https://hubspot-cta-redirect-na2-prod.s3.amazonaws.com/cta/redirect/2284573/9233bc13-6aab-4195-80ef-76ce911a9a85).

[![Contact Us](https://hubspot-no-cache-na2-prod.s3.amazonaws.com/cta/default/2284573/e64b3511-e058-4331-988a-7b02387c7450.png)](https://hubspot-cta-redirect-na2-prod.s3.amazonaws.com/cta/redirect/2284573/e64b3511-e058-4331-988a-7b02387c7450)

Thanks for reading this far and please subscribe!

 

 Topics: [AC Motors](https://blog.orientalmotor.com/topic/ac-motors), [Stepper Motors](https://blog.orientalmotor.com/topic/stepper-motors), [Alphastep Hybrid Control](https://blog.orientalmotor.com/topic/alphastep-hybrid-control), [Linear Actuators](https://blog.orientalmotor.com/topic/linear-actuators), [Speed Control](https://blog.orientalmotor.com/topic/speed-control), [BLDC Motors](https://blog.orientalmotor.com/topic/bldc-motors), [Servo Motors](https://blog.orientalmotor.com/topic/servo-motors), [Motion Control Basics](https://blog.orientalmotor.com/topic/motion-control-basics)

![Johann Tang](https://app.hubspot.com/settings/avatar/8cc777610596a2b2230de2963e906c0b)

#### Written by [Johann Tang](https://blog.orientalmotor.com/author/johann-tang)

Johann Tang is a Product Specialist at Oriental Motor USA Corp. Before joining the marketing team, he spent 14 years in sales and technical application support, and he also led product training on various types of fractional-horsepower electric motors, gear motors, actuators, drivers, and controllers. If you have any questions, please feel free to use the live chat window, 1-800-GO-VEXTA (1-800-468-3982), or techsupport@orientalmotor.com, to reach our product support team. Sorry, comments have been turned off.

[\[fa icon="linkedin-square"\]Linkedin](https://www.linkedin.com/in/johanntang/)

Search

### Subscribe Here!

- Recent
- Popular
- Categories

### Lists by Topic

- [Stepper Motors (62)](https://blog.orientalmotor.com/topic/stepper-motors)
- [VIDEOS (61)](https://blog.orientalmotor.com/topic/videos)
- [Application Examples (48)](https://blog.orientalmotor.com/topic/application-examples)
- [Speed Control (47)](https://blog.orientalmotor.com/topic/speed-control)
- [BLDC Motors (46)](https://blog.orientalmotor.com/topic/bldc-motors)
- [Alphastep Hybrid Control (40)](https://blog.orientalmotor.com/topic/alphastep-hybrid-control)
- [Absolute Positioning (36)](https://blog.orientalmotor.com/topic/absolute-positioning)
- [Linear Actuators (34)](https://blog.orientalmotor.com/topic/linear-actuators)
- [AC Motors (32)](https://blog.orientalmotor.com/topic/ac-motors)
- [Robotics (26)](https://blog.orientalmotor.com/topic/robotics)
- [Motion Control Basics (20)](https://blog.orientalmotor.com/topic/motion-control-basics)
- [Gearheads (17)](https://blog.orientalmotor.com/topic/gearheads)
- [Software (17)](https://blog.orientalmotor.com/topic/software)
- [Incremental Positioning (16)](https://blog.orientalmotor.com/topic/incremental-positioning)
- [Servo Motors (15)](https://blog.orientalmotor.com/topic/servo-motors)
- [Product Introductions (14)](https://blog.orientalmotor.com/topic/product-introductions)
- [Factory Automation (13)](https://blog.orientalmotor.com/topic/factory-automation)
- [Motor Sizing (13)](https://blog.orientalmotor.com/topic/motor-sizing)
- [Conveyors (12)](https://blog.orientalmotor.com/topic/conveyors)
- [Medical (11)](https://blog.orientalmotor.com/topic/medical)
- [Network (11)](https://blog.orientalmotor.com/topic/network)
- [Food & Packaging (10)](https://blog.orientalmotor.com/topic/food-packaging)
- [Technical Manual Series (9)](https://blog.orientalmotor.com/topic/technical-manual-series)
- [Stepper Drivers (8)](https://blog.orientalmotor.com/topic/stepper-drivers)
- [Rotary Actuators/Index Tables (7)](https://blog.orientalmotor.com/topic/rotary-actuators-index-tables)
- [Encoders (6)](https://blog.orientalmotor.com/topic/encoders)
- [Troubleshooting (6)](https://blog.orientalmotor.com/topic/troubleshooting)
- [Washdown (6)](https://blog.orientalmotor.com/topic/washdown)
- [Case Studies (5)](https://blog.orientalmotor.com/topic/case-studies)
- [Grip Conveyors (5)](https://blog.orientalmotor.com/topic/grip-conveyors)
- [Semiconductors (5)](https://blog.orientalmotor.com/topic/semiconductors)
- [Product Demos (4)](https://blog.orientalmotor.com/topic/product-demos)
- [Smooth Drive (4)](https://blog.orientalmotor.com/topic/smooth-drive)
- [Torque Limit (Push Motion, Tension Control) (4)](https://blog.orientalmotor.com/topic/torque-limit-push-motion-tension-control)
- [Vertical Lifts (4)](https://blog.orientalmotor.com/topic/vertical-lifts)
- [XYZ/Cartesian/Gantry (4)](https://blog.orientalmotor.com/topic/xyz-cartesian-gantry)
- [AGV/AMR (3)](https://blog.orientalmotor.com/topic/agv-amr)
- [Bottle Capping (3)](https://blog.orientalmotor.com/topic/bottle-capping)
- [Cooling Fans (3)](https://blog.orientalmotor.com/topic/cooling-fans)
- [Service Life (3)](https://blog.orientalmotor.com/topic/service-life)
- [Laboratory (2)](https://blog.orientalmotor.com/topic/laboratory)
- [Pumps (2)](https://blog.orientalmotor.com/topic/pumps)
- [Chemical Mechanical Polishing (1)](https://blog.orientalmotor.com/topic/chemical-mechanical-polishing)
- [Wafer Handling (1)](https://blog.orientalmotor.com/topic/wafer-handling)
- [Wafer Pin Lifters (1)](https://blog.orientalmotor.com/topic/wafer-pin-lifters)

see all

### Posts by Topic

- [Stepper Motors (62)](https://blog.orientalmotor.com/topic/stepper-motors)
- [VIDEOS (61)](https://blog.orientalmotor.com/topic/videos)
- [Application Examples (48)](https://blog.orientalmotor.com/topic/application-examples)
- [Speed Control (47)](https://blog.orientalmotor.com/topic/speed-control)
- [BLDC Motors (46)](https://blog.orientalmotor.com/topic/bldc-motors)
- [Alphastep Hybrid Control (40)](https://blog.orientalmotor.com/topic/alphastep-hybrid-control)
- [Absolute Positioning (36)](https://blog.orientalmotor.com/topic/absolute-positioning)
- [Linear Actuators (34)](https://blog.orientalmotor.com/topic/linear-actuators)
- [AC Motors (32)](https://blog.orientalmotor.com/topic/ac-motors)
- [Robotics (26)](https://blog.orientalmotor.com/topic/robotics)
- [Motion Control Basics (20)](https://blog.orientalmotor.com/topic/motion-control-basics)
- [Gearheads (17)](https://blog.orientalmotor.com/topic/gearheads)
- [Software (17)](https://blog.orientalmotor.com/topic/software)
- [Incremental Positioning (16)](https://blog.orientalmotor.com/topic/incremental-positioning)
- [Servo Motors (15)](https://blog.orientalmotor.com/topic/servo-motors)
- [Product Introductions (14)](https://blog.orientalmotor.com/topic/product-introductions)
- [Factory Automation (13)](https://blog.orientalmotor.com/topic/factory-automation)
- [Motor Sizing (13)](https://blog.orientalmotor.com/topic/motor-sizing)
- [Conveyors (12)](https://blog.orientalmotor.com/topic/conveyors)
- [Medical (11)](https://blog.orientalmotor.com/topic/medical)
- [Network (11)](https://blog.orientalmotor.com/topic/network)
- [Food & Packaging (10)](https://blog.orientalmotor.com/topic/food-packaging)
- [Technical Manual Series (9)](https://blog.orientalmotor.com/topic/technical-manual-series)
- [Stepper Drivers (8)](https://blog.orientalmotor.com/topic/stepper-drivers)
- [Rotary Actuators/Index Tables (7)](https://blog.orientalmotor.com/topic/rotary-actuators-index-tables)
- [Encoders (6)](https://blog.orientalmotor.com/topic/encoders)
- [Troubleshooting (6)](https://blog.orientalmotor.com/topic/troubleshooting)
- [Washdown (6)](https://blog.orientalmotor.com/topic/washdown)
- [Case Studies (5)](https://blog.orientalmotor.com/topic/case-studies)
- [Grip Conveyors (5)](https://blog.orientalmotor.com/topic/grip-conveyors)
- [Semiconductors (5)](https://blog.orientalmotor.com/topic/semiconductors)
- [Product Demos (4)](https://blog.orientalmotor.com/topic/product-demos)
- [Smooth Drive (4)](https://blog.orientalmotor.com/topic/smooth-drive)
- [Torque Limit (Push Motion, Tension Control) (4)](https://blog.orientalmotor.com/topic/torque-limit-push-motion-tension-control)
- [Vertical Lifts (4)](https://blog.orientalmotor.com/topic/vertical-lifts)
- [XYZ/Cartesian/Gantry (4)](https://blog.orientalmotor.com/topic/xyz-cartesian-gantry)
- [AGV/AMR (3)](https://blog.orientalmotor.com/topic/agv-amr)
- [Bottle Capping (3)](https://blog.orientalmotor.com/topic/bottle-capping)
- [Cooling Fans (3)](https://blog.orientalmotor.com/topic/cooling-fans)
- [Service Life (3)](https://blog.orientalmotor.com/topic/service-life)
- [Laboratory (2)](https://blog.orientalmotor.com/topic/laboratory)
- [Pumps (2)](https://blog.orientalmotor.com/topic/pumps)
- [Chemical Mechanical Polishing (1)](https://blog.orientalmotor.com/topic/chemical-mechanical-polishing)
- [Wafer Handling (1)](https://blog.orientalmotor.com/topic/wafer-handling)
- [Wafer Pin Lifters (1)](https://blog.orientalmotor.com/topic/wafer-pin-lifters)

see all

### Recent Posts

[![New call-to-action](https://hubspot-no-cache-na2-prod.s3.amazonaws.com/cta/default/2284573/f24cd0b7-792e-4246-a809-1f6331235405.png)](https://hubspot-cta-redirect-na2-prod.s3.amazonaws.com/cta/redirect/2284573/f24cd0b7-792e-4246-a809-1f6331235405)

[![product-guide-gray-drop-shadow](https://hubspot-no-cache-na2-prod.s3.amazonaws.com/cta/default/2284573/interactive-194050460599.png)](https://blog.orientalmotor.com/hs/cta/wi/redirect?encryptedPayload=AVxigLI0tx%2BI%2BC6%2B5C%2Faqb%2Fy9Y4mlitUIX73CGx%2FbHqMtw0hHLAcGi6a9Lt%2B7huWzTGlbVh8%2Fpsaao2kwOPR%2BMFkraO1I75z%2FQT9y2vxwaRetlP2fjcdU2rBq0a7ed55BDKwozLMg0HJyMex8Ct5AA03r4MbRPPVfu6iTrGay3esrJ6guFdnCJKM%2BrbsCgS6Rj5c%2F6LsufoUDmq3H7A%3D&webInteractiveContentId=194050460599&portalId=2284573)

#### About Us

Oriental Motor offers an extensive product line-up of about 50,000 different products that provide the optimal motion system. For over a century we have concentrated on technological advancement and product design improvement. This emphasis is evident in the sophisticated devices that we market today. Oriental Motor's sales and service network is international, with offices throughout North America, Europe and Asia.

#### More Links

- [\[fa icon="caret-right"\] Home](http://www.orientalmotor.com)
- [\[fa icon="caret-right"\] About Us](http://www.orientalmotor.com/company/index.html)
- [\[fa icon="caret-right"\] Contact Us](http://www.orientalmotor.com/contact/index.html)

#### Contact Us

\[fa icon="phone"\]  1-800-GO-VEXTA (468-3982)

\[fa icon="envelope"\]  sales@orientalmotor.com

\[fa icon="home"\]  570 Alaska Avenue, Torrance CA 90503

\[fa icon="chevron-up"\]Back to top

```json
{
  "@context" : "https://schema.org",
  "@type" : "BlogPosting",
  "author" : {
    "@type" : "Person",
    "name" : "Johann Tang",
    "url" : "https://blog.orientalmotor.com/author/johann-tang"
  },
  "dateModified" : "2021-06-17T00:57:36.165Z",
  "datePublished" : "2020-05-01T01:16:14.000Z",
  "headline" : "Control Basics: The Difference Between Sink and Source Logic",
  "image" : [ "https://blog.orientalmotor.com/hubfs/Example%20of%20sink%20logic.jpg" ],
  "mainEntityOfPage" : {
    "@id" : "https://blog.orientalmotor.com/what-is-the-difference-between-sink-and-source-logic",
    "@type" : "WebPage"
  },
  "publisher" : {
    "@type" : "Organization",
    "logo" : {
      "@type" : "ImageObject",
      "url" : "https://blog.orientalmotor.com/hubfs/OM-brand-logo-640x83.jpg"
    },
    "name" : "Oriental Motors"
  }
}
```