I want to programmatically write the alias address to a new EtherCAT slave when I plug it into my IPC EtherCAT network. I am looking at the ReadWriteEEprom FB and see that one of the elements is "pbyData". which is the pointer to byte that is usually set to 2048 bytes. Since I am setting the alias address to the EEprom only (EEprom address 16#0012), I would assume that what I am writing is 2 bytes only.
Does the pbyData have to be specified as ADR(myArray) where "myArray" is the 2 bytes of the alias address?
How is the best way to set this element of the function block?
Thanks in advance
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I want to programmatically write the alias address to a new EtherCAT slave when I plug it into my IPC EtherCAT network. I am looking at the ReadWriteEEprom FB and see that one of the elements is "pbyData". which is the pointer to byte that is usually set to 2048 bytes. Since I am setting the alias address to the EEprom only (EEprom address 16#0012), I would assume that what I am writing is 2 bytes only.
Does the pbyData have to be specified as ADR(myArray) where "myArray" is the 2 bytes of the alias address?
How is the best way to set this element of the function block?
Thanks in advance