ranjini
Hi Thiago,

What should I do to transfer float values between Simulink and OpenPLC? For testing, I have a %MD0 value setup in openPLC - can I have Simulink modify this?

Thank you,
Reply 0 0
thiagoralves
No, you can't (unless you modify tons of code of course). OpenPLC can only have integers on the input/output buffers. What you can do is multiply your variable for, let's say, 100 and then round that into an integer. If that's not enough, you can divide your float in two 16-bit integers on the Simulink side, and then join them again using PLC logic glue on the OpenPLC side (a lot harder, but doable).
Reply 0 0
Reply