iec61131-3

Pointer and reference behavour during online change

社会主义新天地 提交于 2019-12-11 16:32:46
问题 could anyone please help me with more information about how pointers, references and interface references behave during an online change? What do I have do watch out for? I understand from other answers that pointers may be dangerous if these are not written during each cycle, but I will primarily use Interfaces and References. 回答1: When an online change is made, variables, function blocks and other program parts may move in a different memory location. Therefore, if the pointer address is

C to IEC 61131-3 IL compiler

ぐ巨炮叔叔 提交于 2019-12-01 08:05:20
I have a requirement for porting some existing C code to a IEC 61131-3 compliant PLC. I have some options of splitting the code into discrete function blocks and weaving those blocks into a standard solution (Ladder, FB, Structured Text etc). But this would require carving up the C code in order to build each function block. When looking at the IEC spec I realsied that the IEC Instruction List form could be a target language for a compiler. The wikepedia article lists two development tools: CoDeSys Beremiz But these seem to be targeted compiling IEC languages to C, not C to IEC. Another

C to IEC 61131-3 IL compiler

时间秒杀一切 提交于 2019-12-01 04:29:20
问题 I have a requirement for porting some existing C code to a IEC 61131-3 compliant PLC. I have some options of splitting the code into discrete function blocks and weaving those blocks into a standard solution (Ladder, FB, Structured Text etc). But this would require carving up the C code in order to build each function block. When looking at the IEC spec I realsied that the IEC Instruction List form could be a target language for a compiler. The wikepedia article lists two development tools: