Thanks, I'll try that. How would it have looked if I were to only use ST? For some reason I was asked to do that.
It depends a bit on whose implementation of CoDeSys you're using. In the Version I'm using you hit F2 to open a list of all the operators and Functions, FBs and programmes that are available then click on the one you want. That then enters a line of code like the following, without the parameter values after the ":=":
CLLI_SDO_Lesen(Index:= 2000, Subindex:= 1, Laenge:= 8, Handle:= 9, IDIst_RX_SDO:= 583, IDIst_TX_SDO:= 609, Lesen_ausloesen:= Read_ID_9);
and then you can fill the parameter values yourself.
My implementation dosesn't actually enter the function name before the opening bracket, you have to type that in yourself.
There is no shortcut for the outputs in my implementation (ProSyd_1131 from InterControl) you have to do them by hand - something like this:
Byte_1 := CLLI_SDO_Lesen.Data_1;
Byte_2 := CLLI_SDO_Lesen.Data_2;
etc.