[-download button: missing =-] A Built-From-Scratch Digital Twin of a Traffic Intersection and Adaptive Traffic Control System (CODESYS / Structured Text) A year ago, I completed my first project β automating a welding production process via offline robot programming in RoboDK. - Published on the RoboDK website: https://robodk.com/example/Material-Handling-and-Welding-with-Fanuc-and-KUKA - YouTube Video: https://youtu.be/yB0ctZ6emPE - LinkedIn Post: https://www.linkedin.com/posts/yevhenii-kutei-08651b351_robodk-offlineprogramming-industrialautomation-activity-7316474707438981120-HpHb...
[-download button: missing =-] A Built-From-Scratch Digital Twin of a Traffic Intersection and Adaptive Traffic Control System (CODESYS / Structured Text) A year ago, I completed my first project β automating a welding production process via offline robot programming in RoboDK. - Published on the RoboDK website: https://robodk.com/example/Material-Handling-and-Welding-with-Fanuc-and-KUKA - YouTube Video: https://youtu.be/yB0ctZ6emPE - LinkedIn Post: https://www.linkedin.com/posts/yevhenii-kutei-08651b351_robodk-offlineprogramming-industrialautomation-activity-7316474707438981120-HpHb...
[-download button: missing =-] A Built-From-Scratch Digital Twin of a Traffic Intersection and Adaptive Traffic Control System (CODESYS / Structured Text) A year ago, I completed my first project β automating a welding production process via offline robot programming in RoboDK. - Published on the RoboDK website: https://robodk.com/example/Material-Handling-and-Welding-with-Fanuc-and-KUKA - YouTube Video: https://youtu.be/yB0ctZ6emPE - LinkedIn Post: https://www.linkedin.com/posts/yevhenii-kutei-08651b351_robodk-offlineprogramming-industrialautomation-activity-7316474707438981120-HpHb...
Home
Since parameterized (indexed) properties are not possible, I decided to use architectural approach "Indexing Property Adapter" to achieve the intended goal β avoiding code duplication for validated access to array elements. Essence: Create a Function Block Adapter (FB_PropertyAdapter) that encapsulates the logic for working with a single element of the target array (e.g., with one settings structure). Declare Properties inside the adapter block for accessing each individual field of the data structure....
///DECLARATION_FB_5910_IndeksatorProperty FUNCTION_BLOCK FB_5910_IndeksatorProperty VAR_OUTPUT qxImpZminaZnachenia : BOOL := FALSE; END_VAR VAR_IN_OUT ioAvtoZapytZaRozkladom : ST_AvtoAktyvatcijaPishZelenoiFazyZaRozkladom; ioxDyspetcherskyiRuchnyiAvtoZapytOn : BOOL; END_VAR ///IMPLEMENTATION_FB_5910_IndeksatorProperty qxImpZminaZnachenia := FALSE; ///DECLARATION_P1_PerymykachAvtoZapytuZaRozladom PROPERTY P1_PerymykachAvtoZapytuZaRozladom : BOOL ///DECLARATION_GET_P1_PerymykachAvtoZapytuZaRozladom...