Application Note

Configuring MDrive I/O: Sinking I/O

Description

A sinking device provides a path for the current to ground. Terms used to describe sinking devices include NPN, Open Collector, Normally High, and IEC Negative Logic. 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

DC power supply
Optional: +5 to +34 VDC Auxiliary supply
+5 to +24 VDC I/O supply (if using sourcing outputs).
Input and/or output devices
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

NPN input

This setup example uses the hardware configuration shown in the illustration labeled A on the right. In this example case, we will assume that we need a PLC output to stop the motion of an axis due to an event elsewhere in the system. Thus we will configure I/O point 1 as a Soft Stop Input which will activate when LOW.

The command:

will set I/O1 to function as we desire:

  • S1=: setup I/O 1
  • 5: Soft Stop input function
  • 0: Active when LOW
  • 0: Sinking input type

Switch input

In this example case we will assume a linear actuator is needing positive and negative limit switches. We will use I/O3 as the positive limit and I/O4 as the negative limit.

The commands:

will set I/O 3 and 4 to function as we desire:

  • S3=: setup I/O 3
  • 2: Positive Limit input function
  • 0: Active when LOW
  • 0: Sinking input type
  • S4=: setup I/O 4
  • 3: Negative Limit input function
  • 0: Active when LOW
  • 0: Sinking input type

Inductive load output

In this example case we will configure a sinking output. When active, the output will open a relay which will de-energize another part of the system on an error or fault.

The command:

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

  • S2=: setup I/O 2
  • 18: Fault/Error output function
  • 1: Active when HIGH
  • 0: Sinking output type

LED output

In this example case we will configure an output to illuminate a LED indicator when the axis is in motion.

The command:

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

  • S1=Moving output function
  • 0: Active when LOW
  • 0: Sinking output type