Skip to content

kbasar/CODESYSPractice

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 

Repository files navigation

CODESYSPractice [ MUCT AUTOMATION ]

PLC Programming using Codesys

Day 1 Session 1 - Overview: PLC Programming using Codesys ( Day 1 Session 1 - Overview )

  • Topic Covered *
  1. Introductions of Trainer and Joinee

  2. Have gone through the PLC Training Material Sequence.pdf file to say what are the topics to be covered in the upcoming trainingprograms.

  3. Have gone through the jobs available for engineers for various roles in different companies, specially in Agile framework. ..1. Site Engineer/ troubleshooting jobs ..2. Project Engineer / Developer ..3. Software / Application Tester ..4. Integration Engineer ..5. Commissioning engineer ..6. Sales / marketting Engineer ..7. PO - Product Owner, ..8. Architect or SME ( Subject Matter expert) ..9. Consultant Engineer ..10. Automation Engineer / Professional ..11. Scrum Master / RTE and so on.

  4. Have gone through the use case of CODESYS with Github: How to develop codesys project and have public repository in Github, so everyone can contribute and share same project across the globe.

  5. We will update this notes and other notes here and gitrepository after every training session.

Day 1 Session 2 - Overview: PLC Programming using Codesys ( Day 1 Session 2 - Overview )

We have gon through more detail about the PLC Training Program.

  1. We shall start from installation of the Codesys software ( including how to download it)
  2. We have plan to start with basic ST ( Structured text) instructions and then moving towards implementing sensors, actuators and finally creating some example projects.
  3. Talked about how we use Github to store our Codesys codes in repository as Public, so every one can access it from anywhere.
  4. Talked in detail: How to choose company, when to switch company, knowing each others.

Day 2 - Installation and preparing PLC first project: PLC Programming using Codesys ( Day 2 - Installation and Basics of Codesys Project, Blocks and Variables )

  1. Downloading & Installation of Codesys software
  2. Finding Soft PLC in Start Menu and How to Start it.
  3. Creating very first Codesys Project
  4. Different Codesys blocks - PRG, FB & FC: How they are called inside another block.
  5. Declaring Standard Variables inside blocks.
  6. Assigning variable or values into another variable: through the example of Starting or stopping a motor.
  7. NO/NC (Normally open/Normally Close) type pushbutton/Switch/Sensor: How it behaves in real-life with PLC software.
  8. Single line Comment/ Multi-line comments

Day 3 - Simple Temperature COntrol System: PLC Programming using Codesys

  1. Started with creating new Codesys project from Empty Template vs Standard Template.
  2. Working with multiple instances of codesys software
  3. Exporting by OpenExport/Import option
  4. Creating Codesys blocks - PRG, FB & FC
  5. Declaring Standard Variables inside blocks.
  6. Example 1: Temperature COntrol is implemented where one temperature sensor and one digital Control Output is control based on Hi limit and low limit. Output is off when temperature is higher than Hi limit and output is On when Temperature lower than low limit. There is two timers - OnDelay (5s) and OffDelay(5s) is also used to prevent quick on/off of heating element connected to the Output.

Problem to fix

There was one issue we faced - we declared the TON inside FB but it was saying the variable is not defined. It was due to library not available in the newly installed Codesys. Single line Comment/ Multi-line comments

Day 4 - Simple Temperature COntrol System Logic used for Flashing Light: How to adapt one logic to other different tasks & FOR LOOP

Example -1 Flashing light logic created using two TON timers.

  1. Simulated the logic.
  2. Made explanation as how to adapt one logic to others tasks - such as temperature control logic used in flashing light solution.

Example -2 - FOR LOOP : A simple example project

  1. FOR LOOP is programmed to calculate average of 5 power monitor's KW variable and also return total KW
  2. Used ChatGPT to write code for FOR LOOP, WHILE DO loop and Repeat Until Loop - possibility is too impressive

Day 5 (9-May, Tuesday): What is Laser Sensor & How it Works?

  1. Laser (Light Amplification by Simulated Emission of Radiation)
  2. Link to Automation.com article:
  1. Example-1: Detect box and count.

Day 6 (12-May, Friday): What are alarm, trip point, and alarm priority in DCS & PLC?

  1. Refer following article: https://automationforum.co/what-are-alarm-trip-point-and-alarm-priority-in-dcs-plc/
  2. Understanding various types of alarms
  3. ###Example-1 : Making alarm logic
  4. Understanding Remote Job in PLC/HMI/SCADA (Automation/Test/Dev) job: Cloud Computing/ AWS/Azure ####> Random function in codesys to generate number

Day 7 (16-May, Tuesday): Everything about Valves, DO, DI, Control, Open/Close, Fail alarms?

Understanding Valves

Valve Manufacturers:

Understanding IOs/ Connections / Communication with PLC

- How many IOs required for a valve?

Example-1 : Making different valve control logic

Day 8 (19-May-2023, Friday): Understanding Instruments & ISA symbols, P&ID, Control Circuit /Electrical Drawing for PLC Programming

Day 9 (23-May-2023, Tuesday): Using Cloud Computers from AWS to use free for 12 months. Install PLC software in EC2 instance and practice.

  1. Sign up to AWS
  2. Create EC2 instance with default Free -for 12months features
  3. Connect to EC2 instance remotely and install all the software required. Remember storage is limited
  4. Use the EC2 instance for free for next 12months. Remember to close before expiry.

Day 10 (26-May-2023, Friday): Why and How to structure large PLC Projects

  1. Going through slides of Siemens based project structure( FB/FC)
  2. Resource: https://www.plctutorialpoint.com/siemens-plc-programming-obs-in-siemens/
  3. Few Example - Valves with differences 4.Revisiting Virtual ENvironment

Day 11 (30-May-2023, Tuesday): Pump Operation, Simple, Medium Complex and Very Complex Pump Control System

  1. Assignment Tracker: https://docs.google.com/spreadsheets/d/1iu7TLtj-9f17kLH066KEcxN7x9sWUltc88tZUe08ZDI/edit?usp=sharing

About

PLC Programming using Codesys

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published