Skip to content

Latest commit

 

History

History

IotProject

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 

IotProject

Table of Contents

  1. Folder Structure
  2. Purpose
  3. Tools Used
  4. Demo

Folder Structure

IotProject

|---images (all images for README.md file)
|---|---basementlightdemo.gif (program demo)

|---src (source code)
|---|---BasementLightControl.zap16 (PLC & HMI Code for V16)

|---TIAPortalScreenshots.pdf (TIA screenshots of PLC & HMI programming)
|---README.md (helpful readme file)

Purpose

To implement a 3-way switch control logic in a PLC program for a Basement Control Light System. There are two switches: one for upper-level and one for lower-level. Both of the switch control the Basement light. When both of the switches are in the same position, the light must be OFF, when one switch is ON and the other is OFF, then only the light is OFF. Below is a Truth table describing the logic.

Upper Level Switch Lower Level Switch Light Output
OFF OFF OFF
OFF ON ON
OFF ON ON
ON ON OFF

Tools Used

  1. SIMATIC STEP 7 (TIA Portal V16)
  2. WinCC RT Advanced (TIA Portal V16 option)
  3. PLCSIM

Demo

Get Time Demo



S7 Communication Demo



OPC-UA Communication Demo



MQTT Communication Demo



Running Python Script Demo



Running C++ App Demo



MindSphere Cloud Connection Demo



Notes

  • getting started with node-red (getTime)
  • S7 communication with PLC ()
  • OPC-UA communication with PLC ()
  • MQTT communication with PLC ()