K2K5o

            Gone with the wind (NOZW):

            Homer, Odyssey 5. 291 ff (trans. Shewring): ..
            [Poseidon] massed the clouds, clutched his trident and
            churned the ocean up; he roused all the blasts of all
            the Winds and swathed earth and sea alike in clouds;
            down from the sky rushed the dark. Euros (Eurus, the
            East Wind) and Notos (Notus, the South Wind) clashed
            together, the stormy Zephyros (Zephyrus, the West Wind)
            and the sky-born billow-driving Boreas (the North Wind).

            https://www.theoi.com/Titan/AnemosZephyros.html

# WORKING WITH CoDeSys
======================

  File -> New
  
  Target Settings: 
  
  Configuration [3S CoDeSys SP PLCWinNT V2.4 |v]
  Everything else by default (leave untouched)
  
  New POU
    Type of POU
      Program (main is PLC_PRG by default, like Pascal procedure*1)
      Function block (may have more than one output, chip, C# in out)
      Function (one output, what are side effects and dirty functions?)
    Language of the POU
      iL  (assembler, deprecated by IEC 61131-3 standard*2)
      LD  (or LAD, Ladder diagram, Rail Sleeper NO NC COIL, execute as we read books:
           left to right, top to bottom, main controller loop*3)
      FBD (Function block diagram, Digital electronics, Logisim*4)
      ST  (Structured text, close to Pascal)
      SFC (Sequential function chart, see Petri networks)
      
*1) Niclaus vs Ken: Sometimes procedures are useful. Useful as test containers.

*2) https://en.wikipedia.org/wiki/IEC_61131-3

*3) A single execution of the loop body is called an iteration.

*4) http://logisim.altervista.org/ recommended: Digital oscilloscope, bug fixes, live update)


New LD design notes:
....................
                      .........
1. Tap sleeper ( -----.-------.------  means selected)
                      .........
                                                |     |   |     |
2. Drag and drop element -| |-,  -|/|-,  -( )-,  -| |- ,   -|/|- .
   two last for subsleeper, also function block (box) for standard or user defined module.

   
New Visualization design notes (magic key F2):
..............................................

  Draw figure. Configure:
  
  Colors (ON, OFF)
  Variables -> Change color [ F2, bind to.. ]
  Input  [v] Toggle variable [ F2, fixed button or switch ]
         [ ] Tap variable [ F2, momentary button ]

         
Simulation notes:
.................

  Menu
  
    Online -> [v] Simulation mode
    Online -> Login
    Online -> Run


# EXAMPLE. 3 SEC DELAY
======================

  PROGRAM PLC_PRG
  VAR
    A: BOOL;
    SRA: SR;
    TONA: TON;
    TOFA: TOF;
    Q: BOOL;
    QTONA: BOOL;
    QTOFA: BOOL;
    RSTA: BOOL;
  END_VAR


  |    A (input)     SRA                TONA          QTONA
  |              -----------         ------------
  |---| |-------| S  SR  Q1 |-------| IN  TON  Q |-----( )
  |        RSTA-| R         | T#3s -| PT      ET |-
  |              -----------         ------------
  |          
  |    A            TOFA                              QTOFA
  |              ------------
  |---| |-------| IN  TOF  Q |-------------------------( )
  |       T#3s -| PT      ET |
  |              ------------
  |
  |   TONA.Q       TOFA.Q                               Q (output)
  |   
  |---| |----------| |---------------------------------( )
  |
  |
  |    A           TOFA.Q                              RSTA
  |    
  |---|/|----------|/|---------------------------------( )


# LINKS
=======

1. Free PLC simulators review

  https://automationforum.in/t/top-free-plc-simulator-software/2789

2. John R. and Frederick D. Hackworth book

  https://www.researchgate.net/post/Can_you_suggest_me_any_PLC_simulator

  https://www.researchgate.net/profile/Utkal_Mehta/post
  /Can_you_suggest_me_any_PLC_simulator/attachment
  /59d6256779197b8077983b82/AS%3A317531342999552%401452716779444
  /download/%28eBook%29++PLC+Programming+Methods+%282%29.pdf
  
3. CoDeSys system (made by Co 3S-Software), possible to download (e.g.) on Festo portal (2014):
   
  https://www.festo.com/net/fr_fr/SupportPortal
    /default.aspx?q=cpx-cec&tab=4&s=t#result
