Is it possible to map array element to a EtherCAT Slave variable. I am trying to communicate with a EtherCAT HMI to read the floating variable. So I need to convert them in codesys from udint to real using arrays and union. I am trying to do with array. But I can't able to map them in I/O Mapping to EtherCAT Slave. Is there anyway I can map the array element to the EtherCAT HMI Variable?.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi TURCKONE
Thank you for your response. It helps me. I am using 256 bytes of read and 256 bytes of write with float as data type.
I was trying to upload my project. It took long time and not successful.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Is it possible to map array element to a EtherCAT Slave variable. I am trying to communicate with a EtherCAT HMI to read the floating variable. So I need to convert them in codesys from udint to real using arrays and union. I am trying to do with array. But I can't able to map them in I/O Mapping to EtherCAT Slave. Is there anyway I can map the array element to the EtherCAT HMI Variable?.
hello ,
you can use for loop to transfer entire array from one to another
for i=0 to 10
ethecat_variables_array[i]=your_array_you_want_to_copy[i];
end_for
My problem is I can't able to map the array elements to ethercat variables
is it possible to attach program?
how many ethercat variables you need to convert?
define array in variables list like :
CH0_RX_Array_Eth AT %QB210: ARRAY [0..29] OF BYTE;
Hi TURCKONE
Thank you for your response. It helps me. I am using 256 bytes of read and 256 bytes of write with float as data type.
I was trying to upload my project. It took long time and not successful.
is it working now ?
thanks ,
Yes. It is working now.Thank you for your suggestion.