Data types – Micromod MOD: 1800P - MOD 30ML Identity Module (Version 2) System, I/O and Communications Functions User Manual
Page 18
Logic Functions - Book 1
DATABASE DESCRIPTION
2-6
2.3.4
Data Types
Function blocks in the instrument database consist of parameters that have data types as
described in Table 2-1. Those data types with an asterisk are different in MOD 30
instruments.
Table 2-1. Data Types
Data Type
Bytes
Range
Remarks
Count (C)
2
0 to 65535
Count is an unsigned two-byte integer, with a value range of 0 to
65535. A count type data item is stored in the database with
the most significant byte stored first (lowest address).
Discrete (D)
1
1 and 0
Used to represent two-state variables. Discrete inputs are
considered TRUE when current flows (ON) or the contact is
CLOSED. TRUE also turns a discrete output ON.
1
0
TRUE
FALSE
CLOSED*
OPEN*
SUPPRESS
ENABLE
YES
NO
AUTO
MANUAL
ACTIVE
CLEAR
DIRECT
REVERSE
UP
DOWN
BAD
GOOD
* In the MOD 30 Controller, Math Unit, and Recorder OPEN=1
and CLSD=0.
Long State
(L)
1
0 L to 255 L
Used to represent variables with up to 256 states. Long state
values require the suffix "L".
Short State
(S)
1
0 S to 15 S
Used to represent variables with up to 16 states. State values
require the suffix "S". These values are typically represented as
an enumeration of mnemonics, for example, ACTIVE,
INACTIVE, PAUSED. Block state values are:
RUN (0), HOLD (1), OFF (2), DEBUG (3).
Date (DA)
3
00/00/00 to
12/31/99
Dates are entered as either M,mm/dd/yy (US format) or
D,dd/mm/yy (European format). For example, M,3/1/91 = March
1, 1991. Ranges for days, months and years are:
Years: 0-99 (first byte, low address) where 90-99=1900
Months: 1-12 (second byte)
Days: 1-31 (third byte)
Time
3
0:0:0 to
255:59:239
Time units are hours, minutes and quarter seconds. All three
units must be included in each time entry. Colons separate
units. The first byte (low address) is the number of hours, the
second byte is the number of minutes, and the third byte is the
number of quarter seconds.
Millisecond
Time * (M)
4
00:00:00.000
to
1193:02:47.295
The millisecond time data type is an unsigned four-byte integer
value that is a count of milliseconds from 0 to 4294967295. This
value is stored most significant byte first (low address). Value is
entered as hours:min:sec.ms. Resolution is 1 millisecond.