Andrew_B

Hello!

 

I am doing a simulink model where i am getting an input from %IW0. the input from this ranges between 1.5+e07 to 2.0+e07

when running a simulation, using DINT in %IW0 works as there is no hardware, so it doesnt look for a location.

However when trying to upload to the OpenPLC runtime software. the allocated memory for %IW0 is smaller than DINT (looked it up, found it only takes INT, UINT, and WORD)  these types arent able to store anything above 99999. If i need to change my input to something else, i can, im just looking for some workarounds to this problem

 

Reply 0 0
thiagoralves
OpenPLC analog inputs and outputs are 16-bit words. There is no way around it unless you want to rewrite its core. You will have to adjust your simulink output to fit into the 16 bit range.
Reply 0 0
Reply