Micromod MOD: 30ML Functions Data Base Reference Bedienungsanleitung Seite 139

  • Herunterladen
  • Zu meinen Handbüchern hinzufügen
  • Drucken
  • Seite
    / 152
  • Inhaltsverzeichnis
  • LESEZEICHEN
  • Bewertet. / 5. Basierend auf Kundenbewertungen
Seitenansicht 138
MOD 30ML Functions
APPENDIX A - ASSIGNMENT STATEMENT REFERENCE
APPENDIX A
ASSIGNMENT STATEMENT REFERENCE
A.1 ASSIGNMENT STATEMENTS
The assignment statement assigns a value to a given target. The target of an assignment can
be an input name, a local attribute name, or one of several predefined names listed below. All
assignment statements have an expression as their right hand side. The target will be
assigned the value of that expression. Results of assignment statements depend upon the
data type as listed below for the different assignment types. See Display Block for usage
rules and an explanation of resources.
Table A-1. Assignment Statement Results of Type ‘srcname1 = srcname2'
For example, I1 = I2 or I1 = 4576, or RESULT = INPUT * RATIO + BIAS
(where input, ratio and bias are unique names for display block inputs or
local attribute names).
Table A-2. Assignment Statements of Type 'display_resource = source_name'
For example, #RBAR = OUTPUT (where #RBAR is a display resource and
output is the unique name of a display block input or local attribute name).
Table A-3. Assignment Statements of Type 'display_resource = constant’
For example, #LINE1 = 37.94 (where #LINE1 is a display resource).
Table A-4. Assignment Statements of Type 'display_resource.SRC = srcname'
For example, #RBAR.SRC = OUTPUT; (where #RBAR.SRC is a display
resource having the suffix .SRC and output is the unique name of a display
block input or local attribute name).
Table A-1. Assignment Statement Results of Type ‘srcname1 = srcname2'
Destination Type Source Type Result
Discrete
Discrete: = input
Short State: True if in
p
ut non-zero
Lon
g
State: True if in
p
ut non-zero
Count: True if in
p
ut non-zero
Msec Time: True if in
p
ut non-zero
Floatin
g
Point True if in
p
ut non-zero
Date: True if in
p
ut non-zero
Hex: True if input non-zero
Short State
Discrete: = input
Short State: = in
p
ut
Lon
g
State: limits at 15
Count: limits at 15
Msec Time: treats in
p
ut as 4 b
y
te inte
g
er
,
limits at 15
Floatin
g
Point dro
p
s fractional
p
art
,
limits at 15
Date: treats in
p
ut as 3 b
y
te inte
g
er
,
limits at 15
Hex: treats in
p
ut as n b
y
te inte
g
er
,
limits at 15
A-1
Seitenansicht 138
1 2 ... 134 135 136 137 138 139 140 141 142 143 144 ... 151 152

Kommentare zu diesen Handbüchern

Keine Kommentare