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

Reference programming TX1200 240 Version: 1.3 Number Error Message Possible Cause 3841 Declaration of ' ' do not match global declaration! The type given in the declaration of the VAR EXTERNAL variable is not the same as _ that in the global declaration. 3850 Declaration of an unpacked struct ' ' inside a packed struct ' ' is not allowed! This structure definition leads to misalignment in the memory. Modify the definition appropriately. Multiple underlines in indentifier Remove multiple underlines in the identifier name. 3901 At most 4 numerical fields allowed in addresses There is a direct assignment to an address which has more than four levels. (e.g. %QB0.1.1.0.1).

3902 Keywords must be uppercase Use capital letters for the keyword or activate option ‚Autoformat’ in ‚Project’ ‚Options’. 3903 Invalid duration constant The notation of the constant does not comply with the IEC61131-3 format. 3904 Overflow in duration constant. The value used for the time constant cannot be represented in the internal format. The maximum value which is representable is t#49d17h2m47s295ms 3905 Invalid date constant The notation of the constant dies not comply with the IEC61131-3 format. 3906 Invalid time of day constant The notation of the constant dies not comply with the IEC61131-3 format.

3907 Invalid date and time constant The notation of the constant dies not comply with the IEC61131-3 format. 3908 Invalid string constant The string constant contains an invalid character. Identifier expected Enter a valid identifier at this position. 4001 Variable ' ' not declared Declare variable local or global. 4010 Type mismatch: Cannot convert ' ' to ' '. Check what data type the operator expects (Browse Online Help for name of operator) and change the type of the variable which has caused the error, or select another variable. 4011 Type mismatch in parameter ' ' of ' ': Cannot convert ' ' to ' '.

The data type of the actual parameter cannot be automatically converted to that of the formal parameter. Use a type conversion or use another variable type. 4012 Type mismatch in parameter ' ' of ' ': Cannot convert ' ' to ' '. A value with the invalid type is assigned to the input variable ' '. Replace the variable or constant to one of type or use a type conversion respectively a constant with type-prefix. 4013 Type mismatch in output ' ' of ' ': Cannot convert ' ' to ' '. A value with the invalid type is assigned to the output variable ' '. Replace the variable or constant to one of type or use a type conversion respectively a constant with type-prefix. 4014 Typed literal:

Cannot convert ' ' to ' The type of the constant is not compatible with the type of the prefix. Example: SINT#255 4015 Data type ‘ ' illegal for direct bit access Direct bit addressing is only allowed for Integer- and Bitstring data types. You are using a variable var1 of type REAL/LREAL or a constant in bit access . . 4016 Bit index ' ' out of range for variable of type ' You are trying to access a bit which is not defined for the data type of the variable. 4017 'MOD' is not defined for 'REAL The operator MOD can only be used for integer and bitstring data types.