EcoStruxure Automation Expert / IEC 61499 Forum
Schneider Electric support forum to acquire and share knowledge about EcoStruxure Automation Expert and IEC 61499 standard for distributed control systems.
Link copied. Please paste this link to share this article on your social media post.
Posted: 2024-02-12 05:12 AM
I would like to make a new modified library. I tested it with adding AnalogInput CAT to the new Library. But I get too many errors, e.g.,
- "The type or namespace name 'API' does not exist in the namespace ... (are you missing an assembly reference?) (CS0234)"
- cyclic dependency between new library and sth...
Does anyone know who to fix this issue?
Link copied. Please paste this link to share this article on your social media post.
Link copied. Please paste this link to share this article on your social media post.
Posted: 2024-02-13 09:21 PM
Absolutely! You must reference the libraries used within the CAT, or alternatively, you can simply copy and paste the referenced blocks into your solution.
Link copied. Please paste this link to share this article on your social media post.
Link copied. Please paste this link to share this article on your social media post.
Posted: 2024-02-14 12:11 AM
Thanks for your message, KARTHICKR!
Regarding adding the AnalogInput CAT to the new Library, I realized that I had to reference OPCUA library.
But, how can I know the libraries which are used within the CAT?
The new problem that I have is that when I want to add the PID CAT to my new library, I get too many errors and all of them are like this:
"In Connection 'modeSel.PermVal TO Mode': Cannot convert from type 'VTQINT' to type 'BOOL' (ERR_CAST_UNDEFINED)"
Please note that I haven't modified anything and I am just copying the PID CAT from the main Library to my new library.
Link copied. Please paste this link to share this article on your social media post.
Link copied. Please paste this link to share this article on your social media post.
Posted: 2024-02-14 01:59 AM
When it comes to referencing, you can access the block by double-clicking on it. Then, by hovering your mouse cursor near the block, a tooltip will appear, showing the reference library namespace. Alternatively, you can refer to the library directly. For example, if you copied PID CAT from SE.AppCommonProcess, you should refer to the SE.AppCommonProcess library in your solution and then modify the copied CAT as needed.
To resolve the conversion error, there are two methods. First, you can go to the solution options, then IEC61499, and uncheck "Report type cast problem in composite FB network as detected error." However, this is only for testing purposes. The correct way to resolve it is to use the ANY2ANY block to convert different data types.
Link copied. Please paste this link to share this article on your social media post.
Link copied. Please paste this link to share this article on your social media post.
Posted: 2024-02-14 02:50 AM
Thank you very much for your thorough response, KARTHICKR.
In the predefined PID CAT, there is no ANY2ANY block, and I didn't encounter any errors when using the pre-made PID CAT. However, upon adding the PID CAT to my modified library, I started encountering errors. According to your suggestion, it seems I should add the PID CAT to my modified library and then add ANY2ANY blocks to resolve the issue. This approach feels somewhat strange.
Link copied. Please paste this link to share this article on your social media post.
Link copied. Please paste this link to share this article on your social media post.
Posted: 2024-02-19 03:55 AM
Dear KARTHICKR,
I implemented your solutions as suggested. However, unchecking "Report type cast problem in composite FB network as detected error." did not resolve the issue.
Consequently, I had to use an Any2Any block. Does the configuration look like the following picture?
Upon copying the PID CAT to my new library, I encountered 14 errors. Adding the Any2Any block fixed one error. Should I repeat this process for the remaining 13 errors? I'm puzzled as to why compiling a solution with the built-in PID does not yield any errors, whereas incorporating a new PID (without modifications) into our new library results in numerous errors.
Link copied. Please paste this link to share this article on your social media post.
Link copied. Please paste this link to share this article on your social media post.
Posted: 2024-02-19 09:10 PM
Hello,
I can't see the attached images. To resolve this issue, please include an Any2Any block, as I'm not entirely certain about the cause of these errors.
Link copied. Please paste this link to share this article on your social media post.
Create your free account or log in to subscribe to the board - and gain access to more than 10,000+ support articles along with insights from experts and peers.