Defined data types, Array, L-force | plc designer – Lenze PLC Designer PLC Designer (R2-x) User Manual
Page 521

L-force | PLC Designer
Data types in PLC Designer
DMS 3.2 EN 02/2011 TD29
519
Examples:
TIME_OF_DAY#15:36:30.123
tod#00:00:00
DATE_AND_TIME Constants, combination of date and the time of day:
begin with "dt#", "DT#", "DATE_AND_TIME#" or "date_and_time#". Place a hyphen
after the date followed by the time. Possible values: 1970-00-00-00:00:00 to 2106-
02-06-06:28:15.
Examples:
DATE_AND_TIME#1996-05-06-15:36:30
dt#1972-03-29-00:00:00
11.2
Defined data types
11.2.1
ARRAY
One-, two-, and three-dimensional fields (arrays) are supported as elementary data
types. Arrays can be defined both in the declaration part of a POU and in the global
variable lists. Maximum 9 dimensions may result from nesting of arrays ( "ARRAY[0..2]
OF ARRAY[0..3] OF …" ).
Syntax:
<Field_Name>:ARRAY [<ll1>..<ul1>,<ll2>..<ul2>] OF <elem.
Type>.
ll1, ll2, ll3 identify the lower limit of the field range; ul1, ul2 and ul3 identify the upper
limit. The limit values must be integers and must match the DINT value range.
Example:
Card_game: ARRAY [1..13, 1..4] OF INT;