Beckhoff Automation GmbH & Co. KG TX1200 — 7.5 Compiler Errors

Reference programming TX1200 241 Version: 1.3 Number Error Message Possible Cause 4020 Variable with write access or direct address required for 'ST', 'STN', 'S', 'R' Replace the first operand by a variable with write access. 4021 No write access to variable '%s' allowed Replace the variable by a variable with write access. 4022 Operand expected Add an operand behind the command. 4023 Number expected after '+' or '-' Enter a digit. 4024 or or ... expected before ' ' Enter a valid operand at the named position. 4025 ':=' or '=>' expected before ' ' Enter one of the both operators at the named position.

4026 'BITADR' expects a bit address or a variable on a bit address Use a valid bit address (e.g. %IX0.1). 4027 Integer number or symbolic constant expected Enter a integer number or the identifier of a valid constant. 4028 'INI' operator needs function block instance or data unit type instance Check the data type of the variable, for which the INI operator is used. 4029 Nested calls of the same function are not possible. At not reentrant target systems and in simulation mode a function call may not contain a call of itself as a parameter. Example: fun1(a,fun1(b,c,d),e); Use a intermediate table.

4030 Expressions and constants are not allowed as operands of 'ADR' Replace the constant or the expression by a variable or a direct address. 4031 'ADR' is not allowed on bits! Use 'BITADR' instead. Use BITADR. Please note: The BITADR function does not return a physical memory address 4032 ’ ’ operands are too few for ' '. At least ‘ ’ are needed Check how many operands the named operator requires and add the missing operands. 4033 ’ ’ operands are too many for ' '. At least ‘ ’ are needed Check how many operands the named operator requires and remove the surplus operands. 4034 Division by 0 You are using a division by 0 in a constant expression.

If you want to provocate a runtime error, use – if applicable - a variable with the value 0. 4035 ADR must not be applied on 'VAR CONSTANT' if 'replaced constants' is activated An address access on constants for which the direct values are used, is not possible. If applicable, deactivate the option ‚Replace Constants’ in ‚Project’ ‚Options’ ‚Build’. 4040 Label ' ' is not defined Define a label with the name or change the name to that of a defined label. 4041 Duplicate definition of label ' ' The label ' ' is multiple defined in the POU. Rename the label or remove one of the definitions. 4042 No more than %d labels in sequence are allowed The number of jump labels is limited to ' '.

Insert a dummy instruction. 4043 Format of label invalid. A label must be a name optionally followed by a colon. The label name is not valid or the colon is missing in the definition. 4050 POU '%s' is not defined Define a POU with the name ' ' using the command ‘Project’ ‘Add Object’ or change ' ' to the name of a defined POU. 4051 '%s' is no function Use instead of a function name which is defined in the project or in the libraries. 4052 '%s' must be a declared instance of FB '%s' Use an instance of data type ' ' which is defined in the project or change the type of to ' ' .