Beckhoff Automation GmbH & Co. KG TX1200 — 7.4.5 CheckDivDWord : DWORD

Reference programming 7.4.4 CheckDivWord : WORD If you define functions in your project with the name CheckDivWord, you can use them to check the value of the divisor if you use the operator DIV [ } 198] , for example to avoid a division by 0. The name of the function is defined and may have only this identifier. The function can cause a significant increase in system load, so it should only be used for testing purposes. CheckDivWord function may cause increased system load. Please use CheckDivWord only for test purposes. VAR_INPUT divisor : WORD; END_VAR Example of CheckDivWord implementation: IF divisor = 0 THEN CheckDivWord := 1; ELSE CheckDivWord := divisor; END_IF 7.4.5 CheckDivDWord :

DWORD If you define functions in your project with the name CheckDivDWord, you can use them to check the value of the divisor if you use the operator DIV [ } 198] , for example to avoid a division by 0. The name of the function is defined and may have only this identifier. TX1200 220 Version: 1.3