How to Turn the Digital Output On Or Off Or Blink Every 1 Second

How to Turn the Digital Output On Or Off Or Blink Every 1 Second

This tutorial shows you how to turn the Digital Output on and off for an LED light using an HMI+PLC combo, while utilizing a Timer function to Blink every one second and 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)
  • 24 VDC LED Light – 2.2k Ω

HMI + PLC Combo

Wiring and Circuit Design

Digital Output LED Wiring

Power Supply:
Red Wire – 24V to Power Supply
Black Wire 0V – Ground to Power Supply
Digital Output:
Red Wire Y0: 24V to LED
Black Wire 0V: Ground to LED

This wiring diagram can also be applied to any HMC3 I/O Module with Digital Output capabilities

Software Code (Ladder Diagram)

Operands

Time Diagram

Logic Block (Not Configured yet)

Ladder Diagram – Logic Block

When the Input Coil is FALSE the Output signal is FALSE. The CYCLE input is the complete period of the blinking signal.

When the Input Coil is set to TRUE the Blinker Function cycles every one second. This results in the Output Coil to pulse off and on every one second.

Software Code (Structured Text)

Another type of IEC Language you can use:

User Interface

LED Light – Blinks every one second when the light switch is pressed to the ON position.

OFF

1 second

ON

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

More

See our Support Center for a complete list of Quick Start and Installation Guides

Scroll to Top