SDO Operations with LS_ReadSDO2, LS_WriteSDO2, and LS_SaveSDO

LS_ReadSDO2 is used to read the SDO (CoE Object) value of the chosen slave device. The value read is specified with the Index and Subindex inputs. LS_WriteSDO2 is used to write the SDO (CoE Object) value to a chosen slave device. The value to write is specified with the Index and Subindex inputs.

  • LS_ReadSDO is similar to LS_ReadSDO2 but doesn’t have a timeout input.

  • LS_WriteSDO is similar to LS_WriteSDO2 but doesn’t have a timeout input.

  • Both function blocks have a timeout input that will cause the function block to give error “0x1F21” if the read or write isn’t completed by the timeout value.

LS_SaveSDO is used to save the SDO values to the slave device.

  • LS_Connect must be executed before these function blocks can be used.

  • The following examples can be found in the XMC_LSDedicated_FBs.zip downloadable from Example Applications.

Using LS_ReadSDO2

Using LS_WriteSDO2

Using LS_SaveSDO

 

 

 

 

 

 

 

 

 

 

 

 

LM801