Data Types - Panasonic FPS Series User Manual

Table of Contents

Advertisement

Appendix

12.9 Data Types

FPWIN Pro provides elementary and user defined data types.
Elementary data types
Data Type
BOOL
INTEGER
UNSIGNED INTEGER
DOUBLE INTEGER
UNSIGNED DOUBLE
INTEGER
REAL
WORD
DOUBLE WORD
1)
TIME
1)
DATE AND TIME
1)
TIME OF DAY
1)
DATE
1)
STRING
ARRAY
A data type has to be assigned to each variable.
1)
Internal representation of time and string data types
TIME
DATE AND TIME
TIME OF DAY
DATE
STRING
User defined data types
We differentiate between array and Data Unit Types (DUT). An array consists of several
elementary data types which are all of the same type. A DUT consists of several elementary
data types of different types. Each represents a new data type.
304
Abbreviation
Description
BOOL
Boolean (1 bit)
INT
Integer (16 bits)
UINT
Unsigned integer (16 bits)
DINT
Double integer (32 bits)
Unsigned double integer (32
UDINT
bits)
REAL
Real number (32 bits)
WORD
Bit string of length 16 (16 bits)
DWORD
Bit string of length 32 (32 bits)
TIME
Duration (32 bits)
DT
Date and time of day (32 bits)
TOD
Time of day (only) (32 bits)
DATE
Date (only) (32 bits)
STRING
Variable-length character string
Number of similar data
ARRAY
elements
In 10ms units
Seconds after DT#2001-01-01-00:00:00
Seconds after TOD#00:00:00
Seconds after DT#2001-01-01
Header with maximum and current number of characters followed by the characters
FPΣ User's Manual
Range
0 (FALSE) or 1 (TRUE)
-32768–32767
0–65535
-2147483648–2147483647
0–4294967295
38
-3.402823E
– -1.17549410E
-38
0, +1.17549410E
38
+3.402823E
16#0–16#FFFF
16#0–16#FFFFFFFF
T#0s–
T#248d3h13m56s470ms
DT#2001-01-01-00:00:00–
DT#2099-12-31-23:59:59
TOD#00:00:00–
TOD#23:59:59
DT#2001-01-01–
DT#2099-12-31
Depending on PLC type
Depending on PLC type
-38
,

Advertisement

Table of Contents
loading

Table of Contents