Application Note

Configuring MDrive I/O: Sourcing I/O

Description

A sourcing device provides the power or a positive potential to an I/O point. Sourcing devices ‘push’ the current through the load. Other terms used to describe sourcing devices include PNP, Open Emitter, Normally Low, and IEC Positive Logic. Note that sourcing outputs are only available on Motion Control devices equipped with Plus2 expanded features. For this part of the tutorial we will use the same hardware configuration examples as was used in the Connecting Power and I/O tutorial to show the configuration of I/O points to various I/O uses.

Topics

  • Getting Started
  • MCode OS
  • Programmable I/O

Applicable Product

  • MDrive Linear Actuator
  • MDrive Plus
  • MForce

Requirements

  1. DC power supply
  2. Optional: +5 to +34 VDC Auxiliary supply
  3. +5 to +24 VDC I/O supply (if using sourcing outputs).
  4. Input and/or output devices
  5. Cabling: 22 AWG shielded twisted pairs for I/O, Shielded twisted pair for power, AWG determined by length and current.

Resource Files

[wpdm_package id=2520 template=

Details

PNP Input

In this example case we will assume that we need a PNP Sensor connected to an input to trigger events within an MDrive program. Thus we will configure I/O point 1 as a General Input which will activate when HIGH.

The command:

will set I/O1 to function as we desire:

  • S1=: setup I/O 1
  • 0: General purpose input function
  • 1: Active when HIGH
  • 1: Sourcing input type

Switch Input

In this example case we need a Start switch to execute an MDrive program.

The commands:

will set I/O 1 to function as we desire:

  • S1=: setup I/O 1
  • 4: G0 input function
  • 1: Active when HIGH
  • 1: Sourcing input type

Inductive Load Output

In this example case we will configure a sourcing output. When active, the output will energize a solenoid which in turn will activate another system process based upon an event inside an MDrive program.

The command:

will set I/O 12 to function as we desire:

  • S12=: setup I/O 12
  • 16: FGeneral purpose output function
  • 1: Active when HIGH
  • 0: Sourcing output type