implementing in multiple lines

chmizen
2018-02-16
2018-02-20
  • chmizen

    chmizen - 2018-02-16

    I have long lines of code.
    In matlab I can just type "..."
    and the code follow in the next line, like:

    a = 90;
    b = 23;
    c = max(...
    a,...
    b);

    Do you know if in Structure text in Codesys there is a similar function to "..." ?

     
  • eschwellinger

    eschwellinger - 2018-02-18

    Hi,
    no, even not CODESYS V2.3 nor CODESYS V3 both open intellisense on unsing ".."

    BR
    Edwin

     
  • Anonymous - 2018-02-20

    Originally created by: scott_cunningham

    You don’t need the dot dot. Just put on next line and indent if you like (you should but not required):

    a = 90;
    b = 23;
    c = max(
             a,
             b);
    

    Or

    a := 90;
    b := 23;
    c := max(
             a,
             b
    );
    

    I do this a lot for function block calls that have a lot of var ins and outs and IF statements with multiple ANDs and ORs.

     

Log in to post a comment.