Home (version 6) discussion
c2iec
home
(Thread)
Home (version 6) discussion
Last updated: 2020-04-13
Home (version 5) discussion
c2iec
home
(Thread)
Home (version 5) discussion
Last updated: 2020-04-13
(no subject)
c2iec
tickets
(Thread)
Last updated: 2020-06-30
(no subject)
c2iec
home
(Thread)
Last updated: 2020-03-28
Home (version 4) discussion
c2iec
home
(Thread)
Home (version 4) discussion
Last updated: 2020-04-12
Home (version 3) discussion
c2iec
home
(Thread)
Home (version 3) discussion
Last updated: 2020-04-13
(no subject)
c2iec
tickets
(Thread)
Last updated: 2020-07-06
Home (version 1) discussion
c2iec
home
(Thread)
Home (version 1) discussion
Last updated: 2020-04-13
c2iec: Artifact 5e7fbd4571ba3b0b4ebecd9b
c2iec
tickets
(Bin)
Last updated: 2020-03-28
c2iec: Artifact 5e7fbd4571ba3b0b4ebecd9c
c2iec
tickets
(Bin)
Last updated: 2020-03-28
c2iec: Artifact 5e7fbd4571ba3b0b4ebecd9d
c2iec
tickets
(Bin)
Last updated: 2020-03-28
home Discussion
c2iec
home
(Discussion)
Forum for home comments
Last updated: 2020-03-28
code Discussion
c2iec
code
(Discussion)
Forum for code comments
Last updated: 2020-03-28
tickets Discussion
c2iec
tickets
(Discussion)
Forum for tickets comments
Last updated: 2020-03-28
Ticket #1: invalid syntax in the conversion of for-loops
c2iec
tickets
(Ticket)
int i; int a() { for(i = 0; i < 2; i++) return; } results in: i: DINT; FUNCTION a:DINT; i := 0; WHILE i < 2; DO RETURN; ((i:=i+1)-1); END_WHILE The semicolon after the while expression is invalid.invalid syntax in the conversion of for-loops c2iec 0 tickets Ticket tickets invalid syntax in the conversion of for-loops 2020-06-30 14:24:13.631000 open False 0 ingo Ticket #1: invalid syntax in the conversion of for-loops 0 1.0 False /tol/c2iec/tickets/1/ None 2020-06-30 14:24:13.475000 None 1 c2iec int i; int a() { for(i = 0; i < 2; i++) return; } results in: i: DINT; FUNCTION a:DINT; i := 0; WHILE i < 2; DO RETURN; ((i:=i+1)-1); END_WHILE The semicolon after the while expression is invalid. False False 1
Last updated: 2020-06-30
Ticket #2: IF statement is missing a THEN
c2iec
tickets
(Ticket)
int i; int a() { if (i < 0) return; } results in: i: DINT; FUNCTION a:DINT; IF i < 0 RETURN; END_IF The "THEN" keyword is missing after the if-expression.IF statement is missing a THEN c2iec 0 tickets Ticket tickets IF statement is missing a THEN 2020-06-30 14:27:35.613000 open False 0 ingo Ticket #2: IF statement is missing a THEN 0 1.0 False /tol/c2iec/tickets/2/ None 2020-06-30 14:27:35.419000 None 2 c2iec int i; int a() { if (i < 0) return; } results in: i: DINT; FUNCTION a:DINT; IF i < 0 RETURN; END_IF The "THEN" keyword is missing after the if-expression. False False 1
Last updated: 2020-06-30
Ticket #3: Unary operators are not working
c2iec
tickets
(Ticket)
CODESYS doesn't like the brackets around unary operators when they are not used within another expression. So, while this works: i = ++i; i := (i:=i+1); This doesn't: ++i; (i:=i+1); It's even worse for i++, as I was using a trick there to decrement the resulting value after the expression, which is sadly not possible. Full example: int i; int a() { i = ++i; i++; ++i; } ~~~Unary operators are not working c2iec 0 tickets Ticket tickets Unary operators are not working 2020-07-06 16:20:22.145000 open False 0 ingo Ticket #3: Unary operators are not working 0 1.0 False /tol/c2iec/tickets/3/ None 2020-06-30 14:36:12.313000 None 3 c2iec CODESYS doesn't like the brackets around unary operators when they are not used within another expression. So, while this works: i = ++i; i := (i:=i+1); This doesn't: ++i; (i:=i+1); It's even worse for i++, as I was using a trick there to decrement the resulting value after the expression, which is sadly not possible. Full example: int i; int a() { i = ++i; i++; ++i; } ~~~ False False 1
Last updated: 2020-07-06
Home
dmitriypo
wiki
(WikiPage)
This is the personal project of dmitriypo. This project is created automatically during user registration as an easy place to store personal data that doesn't need its own project such as cloned repositories.
Last updated: 2020-03-29
Home
mst63fk
wiki
(WikiPage)
This is the personal project of mst63fk. This project is created automatically during user registration as an easy place to store personal data that doesn't need its own project such as cloned repositories.
Last updated: 2020-03-28
(no subject)
dmitriypo
wiki
(Thread)
Last updated: 2020-03-29
Home (version 1) discussion
dmitriypo
wiki
(Thread)
Home (version 1) discussion
Last updated: 2020-04-28
Home (version 1) discussion
mst63fk
wiki
(Thread)
Home (version 1) discussion
Last updated: 2020-04-28
(no subject)
mst63fk
wiki
(Thread)
Last updated: 2020-03-28
blog Discussion
dmitriypo
blog
(Discussion)
Forum for blog comments
Last updated: 2020-03-29
wiki Discussion
dmitriypo
wiki
(Discussion)
Forum for wiki comments
Last updated: 2020-03-29