Hello,
I want to read/write the acyclic SDO form the EtherCat Slave. So, I am using the below FB to read it. However, it has giving me the error while read it. So, can you help me?.
IF SDO_REQ THEN
Read4(xExecute := TRUE, usiCom := 1, uiDevice := 1001, wIndex := 16#01, bySubindex := 16#01, udiTimeOut:= 500);
IF Read4.xDone THEN
abyRead := Read4.abyData;
Read4(xExecute := FALSE);
ELSIF Read4.xError THEN
iState := 32767;
END_IF
END_IF
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hello @eschweelinger, I looked and research about it and got the example of it. Now, it has worked and I am able to write/read my object using the ETCCOsdoWrite and ETCCOsdoReadAccess function blocks.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hello,
I want to read/write the acyclic SDO form the EtherCat Slave. So, I am using the below FB to read it. However, it has giving me the error while read it. So, can you help me?.
IF SDO_REQ THEN
Read4(xExecute := TRUE, usiCom := 1, uiDevice := 1001, wIndex := 16#01, bySubindex := 16#01, udiTimeOut:= 500);
IF Read4.xDone THEN
abyRead := Read4.abyData;
Read4(xExecute := FALSE);
ELSIF Read4.xError THEN
iState := 32767;
END_IF
END_IF
which error does occure and what is windex 16#01 in your slave?
Hello @eschweelinger, I looked and research about it and got the example of it. Now, it has worked and I am able to write/read my object using the ETCCOsdoWrite and ETCCOsdoReadAccess function blocks.
Where did you find those function blocks, ETCCOsdoWrite, ETCCOsdoReadAccess?
IoDrvEtherCAT library.