When I connect to the Omron CP1H PLC with CX-Programmer and try to send a program, the following error is thrown:
I set the settings shown below by following the path "Control Panel/Clock and Region/Change date, time or number formats/Attional settings..." but the problem was not solved:
The existing PLC program can be compiled on the Windows 10 OS, but the error reported above is thrown on the Windows 11 OS.
How can I solve this problem?
This problem is caused by the IEEE Floating Point notation in function blocks.
For example, the following constant representation causes this error:
When the above fixed representation is examined, the cause of the error will be understood:
+25
+2,5E+1
&25
It is also possible to develop the function block as Structured Text to avoid the dependency on notation:
RESULT:= LENGTH / INT_TO_REAL(25);