IEC 61131-3 compliance?

Yegor
2014-12-23
2015-01-02
  • Yegor - 2014-12-23

    Is there a summary of CoDeSys 2.3 compliance to IEC 61131-3? That is, a list of implementation-specific features and standard unsupported features. The more comprehensive, the better.

     
  • shooter - 2014-12-31

    yes there is a list, but it is not explaining.
    in the help file you can see what is standard 61131-3, and what is codesys specific, however as most of the companies have it extended, they mostly use the same syntaxis, so do not worry to much .

     
  • Yegor - 2015-01-02

    I already know there are sporadic notes scattered across the help file. So, no comprehensive list then? That's a shame.>Zitat:
    most of the companies have it extended, they mostly use the same syntaxis
    There are different syntaxes even within this company:```

    arr: ARRAY[0..2] OF INT := [1, 2, 3]; ( Codesys 3 )
    arr: ARRAY[0..2] OF INT := 1, 2, 3; ( Codesys 2.3 )

    Or how about this?

    ( i: INT )
    i.FALSE := i.TRUE; ( This will compile in 2.3 )

    Or this?

    VAR CONSTANT RETAIN ( This will compile in 2.3 )

    Or this?

    TYPE type1: TON... ( Will compile, too )

    Or this?

    VAR CONSTANT
    Β  Β  fb: USER_FB; ( Constant function block - sic! )
    END_VAR
    fb();

    ```How come all these are allowed?

     
  • shooter - 2015-01-02

    its all because this 61131 is just a guideline, not a syntaxcheck, just a guide a pssibility to write your code.
    and yes a check on syntax would be good, however it has its own problems as it must be complete and that is almost impossible.

    it still will be possible to make complete chaos and still compile great.

    It is not a norm to prohibit, it is one to allow people going in the same direction.
    Still every programmer will make its own programs, and they will still be hard to read by others.

     

Log in to post a comment.