Beckhoff Automation GmbH & Co. KG TX1200 — 7.3.2.1 Addresses

Reference programming 7.4 instead of 7,4 1.64e+009 instead of 1,64e+009 7.3.1.8 STRING constants A string is a sequence of characters. STRING constants are preceded and followed by single quotation marks. You may also enter blank spaces and special characters (umlauts for instance). They will be treated just like all other characters. In character sequences, the combination of the dollar sign ($) followed by two hexadecimal numbers is interpreted as a hexadecimal representation of the eight bit character code. In addition, the combination of two characters that begin with the dollar sign are interpreted as shown below when they appear in a character sequence: Examples:

'w1WьЯ?' 'Susi und Claus' ':-)' 7.3.1.9 Typed literals Basically, in using IEC constants, the smallest possible data type will be used. If another data type must be used, this can be achieved with the help of typed literals without the necessity of explicitly declaring the constants. For this, the constant will be provided with a prefix which determines the type. This is written as follows: # specifies the desired data type; possible entries are: BOOL, SINT, USINT, BYTE, INT, UINT, WORD, DINT, UDINT, DWORD, REAL, LREAL. The type must be written in uppercase letters. specifies the constant. The data entered must fit within the data type specified under . Example:

var1:=DINT#34; If the constant can not be converted to the target type without data loss, an error message is issued: Typed literals can be used wherever normal constants can be used. 7.3.2 Variables Variables can be declared either locally in the declaration part of a POU or in the global variable list. The variable identifier may not contain any blank spaces or special characters, may not be declared more than once and cannot be the same as any of the keywords. Capitalization is not recognized which means that VAR1, Var1, and var1 are all the same variable. The underscore character is recognized in identifiers (e.g., "A_BCD" and "AB_CD" are considered two different identifiers).

An identifier may not have more than one underscore character in a row. The first 32 characters are significant. Variables can be used anywhere the declared type allows for them. You can access available variables through the Input Assistant. 7.3.2.1 Addresses The direct display of individual memory locations is done using special character sequences. These sequences are a concatenation of the percent sign "%", a range prefix, a prefix for the size and one or more natural numbers separated by blank spaces. The following range prefixes are supported: TX1200 215 Version:

1.3 Characters Description $$ Dollar signs $' Single quotation mark $L or $l Line feed $N or $n New line $P or $p Page feed $R or $r Line break $T or $t Tab