WORD_TO_BYTES function causing error

Hello,
When i try to upload program containing WORD_TO_BYTES i receive error (screen included)
Can i use some workaround or do i have to use another function?
I use version 2206

![image.png](//discourse.plcnext-community.net/uploads/default/original/2X/b/bb0841362cafe54d057a6268fa3d032d76057fd5.png)

You mention version 2206, but it’s not clear what this refers to. What versions of the following are being used:
image.png
* PLCnext Engineer
* AXC F 2152 „template“ (i.e. the version of the AXC F 2152 controller in the offline PLCnext Engineer project)
* AXC F 2152 firmware (on the actual device).
?
Edit:
Also, the WORD_TO_BYTES function can only be used in a Safety controller, which I’m guessing is not being used in this case?

In a standard controller, it’s possible to use „partial access to ANY_BIT variables“, to access individual bytes in a word.
Partial Access to ANY_BIT Variables
');\n mywindow.document.close(); \n mywindow.focus();\n setTimeout(function () {\n mywindow.print();\n mywindow.close();\n }, 1000)\n return true;\n}\r\n\r\n\r\n

I used the function WORD_TO_BITS which gave me that error. I am still having the same error even though I removed the function and removed it in the variables. the compiler does not show where the usage is.

I finally found the culprit. Still, without showing where the error occurs it is very difficult to find the misuse location.

Where did you end up finding it? It seems that I’m running into the same issue

Hi Lucas01,
you could use the global search to find it
image.pngBest regards
DivisionByZero