P4: PLC for SINUMERIK 828D
14.3 Programming
Basic Functions
Function Manual, 09/2011, 6FC5397-0BP40-2BA0
1105
The Programming Tool PLC828 has two data type check stages:
1. Elementary data type check
For the elementary data type check, if a symbol or a variable is assigned a data type, then all data types are
automatically assigned, which correspond to the bit size of the user-defined data type. If, for instance, you specify
DINT as data type, then the local variable is also automatically assigned the DWORD data type, because both
data types are 32-bit types. The REAL data type is not automatically assigned although it also involves a 32-bit
data type. The REAL data type is defined so that it does not have any equivalent data types: it is always clear.
The elementary data type check is only performed when using local variables.
2. No data check
This mode is only available for global variables where no data types can be specified. If a data type check is not
active, all data types of the same size are automatically assigned to the symbol.
Example:
A symbol, which is assigned to address DB1400.DBD4, then the following data types are automatically assigned
by the programming software: DWORD, DINT and REAL.
TONR Switch-on delay, latching 100ms T0...T15
10ms from T16
CTU Up counter C0...C63
CTD Down counter C0...C63
CTUD Up-down counter C0...C63
User-defined data types Equivalent data type
BOOL BOOL
BYTE BYTE
WORD WORD, INT
INT WORD, INT
DWORD DWORD, INT
DINT DWORD, DINT
REAL REAL
User-defined address Assigned equivalent data type
DB1400.DBX0.0 BOOL
DB1400.DBB0 BYTE
DB1400.DBW2 WORD, INT
DB1400.DBD4 DWORD, DINT, REAL
Complex data types Description Memory area