Your cart is currently empty!
How to Turn the Digital Output On and Off Using an LED Light
This tutorial shows you how to turn the Digital Output on and off with an HMI+PLC combo using an LED Light, while displaying on the user-interface.
Software Required
Hardware Required
- HMC4070A-M – Other HMC2000/HMC4000 models can also be used
- HMC3-M1212P0200 V2 – Other HMC3 I/O modules with Analog Inputs can also be used
- 24 VDC Power Supply (4010-0011)
Wiring and Circuit Design
This wiring diagram can also be applied to any HMC3 I/O Module with Digital Output capabilities.

Digital Output LED Wiring
Power Supply:
Red Wire: 24V Power from Power Supply
Black Wire: Output Signal to PLC/Controller
Digital Output:
Red Wire Y0: 24V to LED
Black Wire: Ground to LED
Software Code
IEC Ladder Diagram


Structured Text
Another type of IEC Language you can use:
Slot01_OP_Coil_00000 := OnOffSwitch ;
User Interface

Sample Project
The project shown above was designed for the specific hardware mentioned at the beginning of the tutorial and is intended to provide you guidance when programming your unit. If you are using models other than the ones specified in this sample project, similar steps can be duplicated within your own project.
Download MAPware Sample Project
Resources & Documentation
HMC/MAPware-7000 Resources
- MAPware-7000 Getting Started Guide
- MAPware-7000 Programming Manual
- IEC 61131-3 Programming Guide for MAPware-7000
- HMC3 I/O Module Guide
More
See our Support Center for a complete list of Quick Start and Installation Guides

About the Author