Beckhoff Automation GmbH & Co. KG TX1200 — 5.1 Declaration Editor

Editors counter_heat7 AT %QX0.0: BOOL; lightcabinetimpulse AT %IX7.2: BOOL; download AT %MX2.2: BOOL; If boolean variables are assigned to a Byte, Word or DWORD address, they occupy one byte with TRUE or FALSE, not just the first bit after the offset! 'Insert' 'Declarations keywords' You can use this command to open a list of all the keywords that can be used in the declaration part of a POU. After a keyword has been chosen and the choice has been confirmed, the word will be inserted at the present cursor position. You also receive the list, when you open the Input Assistant and choose the Declarations category.

'Insert' 'Types' With this command you will receive a selection of the possible types for a declaration of variables. You also receive the list when you access the Input Assistant ( ). The types are divided into these categories: Standard types: BOOL, BYTE, etc. Defined types: Structures, enumeration types, etc. Standard function blocks for instance declarations Defined function blocks for instance declarations TwinCAT PLC Control supports all standard types of IEC61131-3. Examples for the use of the various types are found in the appendix. Syntaxcoloring In the text editors and in the declaration editor, you receive visual support in the implementation and declaration of variables.

Errors are avoided, or discovered more quickly, because the text is displayed in color. A comment left unclosed, thus annotating instructions, will be noticed immediately; keywords will not be accidentally misspelled, etc. The following color highlighting will be used: Shortcut Mode The declaration editor for TwinCAT PLC Control allows you to use the shortcut mode. This mode is activated when you end a line with The following shortcuts are supported: All identifiers up to the last identifier of a line will become declaration variable identifiers The type of declaration is determined by the last identifier of the line. In this context, the following will apply: TX1200 120 Version:

1.3 Blue Keywords Green Comments Pink Boolean values (TRUE/FALSE) Red Input error (for example, invalid time constant, keyword, written in lower case,...) Black Variables, constants, assignment operators, ... B or BOOL gives the result BOOL I or INT gives the result INT R or REAL gives the result REAL S or STRING gives the result STRING