24.01.2015 Views

PLC Programming

  • No tags were found...

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Appendix J: Compiler Errors and Warnings<br />

3727<br />

3728<br />

"No array declaration allowed on this address"<br />

Modify the address assignment correspondingly.<br />

"Invalid address: ''"<br />

This address is not supported by the <strong>PLC</strong> configuration. Check <strong>PLC</strong> configuration resp. modify<br />

address.<br />

3729<br />

"Invalid type '' at address: '' "<br />

The type of this variable cannot be placed on the given address. Example: For a target system<br />

working with ‘alignment 2’ the following declaration is not valid: var1 AT %IB1:WORD;<br />

3740<br />

3741<br />

3742<br />

3743<br />

3744<br />

3745<br />

3746<br />

"Invalid type: '' "<br />

An invalid data type is used in a variable declaration.<br />

"Expecting type specification"<br />

A keyword or an operator is used instead of a valid type identifier.<br />

"Enumeration value expected"<br />

In the definition of the enumeration type an identifier is missing after the opening bracket or after a<br />

comma between the brackets.<br />

"Integer number expected"<br />

Enumerations can only be initialized with numbers of type INT.<br />

"Enum constant '' already defined"<br />

Check if you have followed the following rules for the definition of enumeration values:<br />

• Within one enum definition all values have to be unique.<br />

• Within all global enum definitions all values have to be unique.<br />

• Within all local enum definitions all values have to be unique.<br />

"Subranges are only allowed on Integers!"<br />

Subrange types can only be defined resting on integer data types.<br />

"Subrange '' is not compatible with Type ''"<br />

One of the limits set for the range of the subrange type is out of the range which is valid for the base<br />

type.<br />

CoDeSys V2.3 10-113

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!