Tool/software: Code Composer Studio
Hi,
i have issue with working with floats. In slave stack code(SSC) i defined my objects to be float -> in SSC they have data type REAL with 32 bit.
It looks like the following:
So i have float variables and and a float array.
In Code Composer studio i edited the mapping like it is said in the documentations:
Also i edited the parameter pData to be a 32bit variable, so i can transfer the 32 bit float/ real variables.
Working with TwinCat in Free Run mode i don´t get the right values for the float variables.
In Twincat i set the value to 3,0 so this result in hex 0x40400000 :
In Code composer studio i get something different. Here is it now in hex 0x4E808000 :
Is there something i must consider? Is it even possible to transfer float values?
With best regards,
Willi Konrad