Hello, you probably fixed in this meanwile, but I think your problem comes from dependencies of other libraries. I see in the Project column of errors the "caa types extern" and "caa fb factory", that both have dependencies. Try to check there. Regards, Francesco
Hello, you probably fixed in this meanwile, but I think your problem comes from dependencies of other libraries. I see in the Project column of errors the "caa types exten and caa fb factory, that both have dependencies. Try to check there. Regards, Francesco
Hi, what device are you using? There could be manufacturer's libs that do it. As general advice I will use the classical way of embedded system: create a variable and count cycles (assuming that your process is in ciclic task). Another way could be to use the Task configuration > Monitor tab. Hi, Francesco
As I expected, no reply. It seems that all SIL2 related question have no answer on this forum. This is very bad for a language used specifically to program safety system. I ask to forum moderator or any one know it if there are some other resources about SIL2 package. If there aren't any other resources, I think that the only other thing to do is to run away from Codesys and pass to a more serious programming language.
Hi essii69, did you installed the device package of your device? If you right-click on the project line (in "Devices" sub-window) and you click on "Add device", do you find IFM PLCs? I advise you to start from a template project or an example project from IFM, so the hardware is already configured in the project. Bye. Francesco
Hi, I ask here a question about the PLCopen specification over Codesys SIL2 package. Reading the Codesys SIL2 user manual I can't understand the worth of the PLCopen specification. I report from the manual: Chapter 1.3: "Aderence to the safety requirements listed in Appendix 7.4 is absolutely necessary." Safety requiment 3-4.5 (from appendix 7.4): "The permitted programming languages for the programming of a Codesys Safety SIL2 controller are listed in chapter 5." Chapter 5 (about programming): "...The...
Hi Fless, hi i-campbell, I added the warning disable as Fless suggest, but if I use the enum in the project the warning come: [WARNING] INDEX C0125: The constant 2 is assigned to more than one enumeration Compile complete -- 0 errors, 1 warnings I think that the only workaround (without using global constant) is to remove the 'strict' attribute. It seems that CODESYS does not support this way to use array and enums. I was only curious to understand if there were some other way conform with standard...
Topic: ARRAY idexed by ENUM value Hi all, I'm working with ARRAY indexing and I get some problems. I'm used to work with C and there I define and ENUM with indexes like this: TYPE INDEX : ( ID1, //0 ID2, //1 ID3, //2 NELEM := 3 ); END_TYPE Then I generally declare an ARRAY with "NELEM" as size. In CODESYS is quite difficult, because if I write values : ARRAY [0..INDEX.NELEM] OF INT; the array has 4 elements, not 3. If I write values : ARRAY [1..INDEX.NELEM] OF INT; the array has 3 elements, but INDEX.ID1...
Topic: ARRAY idexed by ENUM value Hi all, I'm working with ARRAY indexing and I get some problems. I'm used to work with C and there I define and ENUM with indexes like this: TYPE INDEX : ( ID1, //0 ID2, //1 ID3, //2 NELEM := 3 ); END_TYPE Then I generally declare an ARRAY with "NELEM" as size. In CODESYS is quite difficult, because if I write values : ARRAY [0..INDEX.NELEM] OF INT; the array has 4 elements, not 3. If I write values : ARRAY [1..INDEX.NELEM] OF INT; the array has 3 elements, but INDEX.ID1...
Topic: ARRAY idexed by ENUM value Hi all, I'm working with ARRAY indexing and I get some problems. I'm used to work with C and there I define and ENUM with indexes like this: TYPE INDEX : ( ID1, //0 ID2, //1 ID3, //2 NELEM := 3 ); END_TYPE Then I generally declare an ARRAY with "NELEM" as size. In CODESYS is quite difficult, because if I write values : ARRAY [0..INDEX.NELEM] OF INT; the array has 4 elements, not 3. If I write values : ARRAY [1..INDEX.NELEM] OF INT; the array has 3 elements, but INDEX.ID1...
Topic: ARRAY idexed by ENUM value Hi all, I'm working with ARRAY indexing and I get some problems. I'm used to work with C and there I define and ENUM with indexes like this: TYPE INDEX : ( ID1, //0 ID2, //1 ID3, //2 NELEM := 3 ); END_TYPE Then I generally declare an ARRAY with "NELEM" as size. In CODESYS is quite difficult, because if I write values : ARRAY [0..INDEX.NELEM] OF INT; the array has 4 elements, not 3. If I write values : ARRAY [1..INDEX.NELEM] OF INT; the array has 3 elements, but the...