Hi all, in the online help it written, that array of reference to data type is not possible. Ok... but if I create array of struct of reference to - everything works fine - please see the screenshots: and it works this way OK. Is it intention or error in compiler 3.5.18.20 and we should avoid it? Thanks a lot, Jan.
Hello, this topic is quite old, no help needed anymore. If this was meant as help. Have a nice day, Jan.
Hi All, I'm using this CAN hat (see link below pls.) with RPI, and I have strange issues - starting with overruns (solved via lowering the CAN speed) and ending with codesys instability, the communication freeze in some time (usually hours, sometimes minutes). Checked via candump, the line is without any communication after this error, rpi is not sending anything. Kernel: Linux raspberrypi4 5.15.26-rt34-v7l+ #3 SMP PREEMPT_RT Tue Mar 15 20:20:25 CET 2022 armv7l GNU/Linux This is the hat: https://www.waveshare.com/wiki/RS485_CAN_HAT...
Yep, I'm using this way as well. And what I'd like is to go one step futher - instead of declaring a start of the structure with AT %.. keyword, I'd like to ask the component - tell me where your data starts and then use them. Dynamically, according to the component name... any fault in addressing will be eliminated. Then either set my structure to the address (via pointers) or copy it to my variables. So far I did not found a way how to achieve it. Thanks!
Hi All, I have an application with many EtherCAT slaves, where I need to access the data - if possible - easily without much typing errors and rewryting all if I change the slave type. So, a way with "Create new variable" or "Map to existing variable" is not the way I really like. Is here any chance how to get access to I/O mapping via the EtherCAT slave name? Basically, I'd like to copy all 16 words from this mapping to my array or structure - these data: [-img src=2022-02-02 14_41_35-testproj.project_...
Hi All, I have an application with many EtherCAT slaves, where I need to access the data - if possible - easily without much typing errors and rewryting all if I change the slave type. So, a way with "Create new variable" or "Map to existing variable" is not the way I really like. Is here any chance how to get access to I/O mapping via the EtherCAT slave name? Basically, I'd like to copy all 16 words from this mapping to my array or structure - these data: [-img src=2022-02-02 14_41_35-testproj.project_...