iB15j

## I. CoDeSys 2.3

Read: "IL notes" on nelus.tpt.edu.ee

Download:

  nelus.tpt.edu.ee/big/CoDeSys23-i34.zip
  CoDeSys_v2399

# Links

1. MatPLC http://mat.sourceforge.net/
2. http://www.dee.ufrj.br/controle_automatico/cursos
     /IEC61131-3_Programming_Industrial_Automation_Systems.pdf
3. http://www.plcopen.org/pages/whats_new/tc1/status.htm
4. https://en.wikipedia.org/wiki/IEC_61131-3
5. https://home.uia.no/geirh/MAS411/MAS411-2A.pdf
6. http://www.plcopen.org/pages/whats_new/tc1/status.htm

# IEC 61131-3 {5}

The current (third) edition was published in February 2013, see {4}.

  + Ladder diagram (LD), graphical

  + Function block diagram (FBD), graphical

  + Structured text (ST), textual

  + Instruction list (IL), textual (deprecated in 3rd edition of the standard)

  + Sequential function chart (SFC), has elements to organize programs for sequential and parallel control processing.

# Deprecations {3}

  http://www.plcopen.org/pages/whats_new/tc1/status.htm

The third edition of IEC 61131-3 is approved as International Standard.

  + Octal literal
  + Use of directly represented variables in the body of POUs and methods
  + Overloaded truncation TRUNC
  + Instruction list (IL)
  + “Indicator” variable of action block


## VISUAL PYTHON NOTES:

1. Install Thonny

  Default for v.3.0.5 C:\Users\opilane\AppData\Local\Programs\Thonny
  Create Desktop Icon
  Install Python v.3.7.1 32-bit into
  C:\Users\opilane\AppData\Local\Programs\Python
  Copy libs\ and include\ directories
  from
    C:\Users\opilane\AppData\Local\Programs\Python
  into
    C:\Users\opilane\AppData\Local\Programs\Thonny
  recursively.

2. Find python.exe, go to the folder located.

3. Install Visual Python:

Download:

     https://www.visualstudio.com/downloads
       /#build-tools-for-visual-studio-2017
       
Install:

     [v] Visual C++ build tools
     Total Space required: 4.8GB

Run:

  PS> cd C:\Users\opilane\AppData\Local\Programs\Thonny
  PS> .\python.exe -m pip install --upgrade vpython

4. Check installed stuff with test program:

    https://www2.southeastern.edu/Academics/Faculty/rallain
      /papers_talks/3d_programing_notes.pdf
      
5. Zip'n'clone in class (3.0.8 as for 4.12.2018)

  C:\Users\opilane\AppData\Local\Programs\Thonny.zip

sphere.py

    from vpython import *
    sphere()

