Hello,
I have a problem with the IParameter.WriteData Method using C# on CtrlX Core.
I want to set an IDN in "P-0-0023" via the IParameter.WriteData Method in C# on the CtrlX Core.
Docu of method only contains an example on how to write an int:
https://apps.boschrexroth.com/docs/oci/eal/?topic=html/a75857a0-f90e-1bed-e5c0-c31531886d3d.htm
Docu of IndraDrive PSB Parameters:
https://www.boschrexroth.com/documents/12605/25199817/R911328651_14.pdf/5ad2c515-c201-9666-83ac-6c5d...
So as a first step i printed all possible IDNs using "S-0-0025" using the following code:
And i got the following print in the console:
So as a next step i tried the following code to set an IDN in "P-0-0023".
But both tries didnt work out 😞
Does anyone know how...
1) i can print all the IDNs from "S-0-0025" in a readable way?
2) how to set an IDN in "P-0-0023"?
Thanks a lot!
Best regards,
Leo
Solved! Go to Solution.
Could you give us some more insights in your setup?
Thanks for your reply 🙂
Hello LeoB
please try to write the value of P-0-0023 by type of System.UInt32 (4byte).
You can calculate the parameter type (IDN) by an offset. For S Parameter the offset is 0, for P Parameter the offset is 32768.
Example:
Best regards,
Christoph