Rares

Results 13 issues of Rares

if we have a error by initialization, this is not shown at all - line 4 the initialization error should be first listed ``` PROGRAM mainProg VAR x1,x2 : INT;...

bug
medium-priority

``` PROGRAM mainProg VAR fb1 : function_block_0; END_VAR fb1( input1 := IN1, output => OUT1 ); END_PROGRAM FUNCTION_BLOCK function_block_0 VAR_INPUT input1 : inDATA; END_VAR VAR_OUTPUT output : outDATA; END_VAR VAR...

bug
codegen
high-priority

the following code ``` PROGRAM mainProg VAR x3 : STRING; END_VAR x3 := 11; END_PROGRAM ``` will generate the following error with panicked: mainProg.st:5:1:{5:1-5:9}: warning[E037]: Invalid assignment: cannot assign 'DINT'...

bug

if we write the wrong parentheses for the array initialization, we get only a general error message ``` PROGRAM mainProg VAR testARR : struct_io := [val1:=TRUE,val2:=1]; //not ok testARR :...

enhancement
validation
low-priority

the following code ``` PROGRAM mainProg VAR x1 : BOOL; x2 : INT; END_VAR x1 := 20; x2 := TRUE; END_PROGRAM ``` will generate no warning, no error! It will...

good first issue
validation
low-priority

``` PROGRAM mainProg VAR W : UINT; END_VAR IS_VALID(W); IS_VALID_BCD(W); END_PROGRAM ``` this code is successfully compiled, no error but IS_VALID_BCD accepts only ANY_BIT datatype and IS_VALID only ANY_REAL

bug
validation

``` PROGRAM main VAR a : STRING[80]; b : STRUCT1; END_VAR a := UINT_TO_STRING(b.var10);    //var10 is UINT END_PROGRAM ``` ``` TYPE STRUCT1 : STRUCT var10 : UINT := 10; END_STRUCT...

bug

``` PROGRAM mainProg VAR str : STRING; TMPstr : STRING := 'abc'; END_VAR logg(Str := CONCAT(TMPstr, 'wwww'), global3); END_PROGRAM ``` ``` FUNCTION logg : BOOL VAR_INPUT Str : STRING[255]; debug...

bug

example ``` PROGRAM mainProg VAR X, Y, Z, Res1, Res2: REAL; END_VAR Z := ADD(IN1 := Res1, IN2 := Res2); //not ok, generates the error below Z := ADD(Res1, Res2);...

bug
low-priority

RTC Function Block must be implemented The other Functions from the set (TOF, TON, TP) are already implemented.

enhancement
medium-priority
codesys