DNT-T221-FCU Application Guide
Page 28 of 30
Appendix A: Programming Notes
The following provides additional important programming information.
1.
Configuration Variables (AV12 & AV21-23):
These variables should never be commanded
on the fly from a GCL+ program (or user command). They must be configured in the proper
sequence and they radically alter operation too much to make frequent changes. Besides,
changing the application configuration from an OWS requires that you reset the BACstat (either
locally or via user command). Also refer to the Configuration Menu options on page 5 for further
information. See Device Output Configuration Table below for available menu output options
2.
Commanding Variables:
When commanding other variables (such as setpoints and alg
mode) from GCL+ in an Application Controller write your programs so they are not being
commanded on every program scan. Use
IFONCE
or
DOEVERY
statements to key the execution
of specific events or time intervals, and thereby limit the frequency of such commands.
Otherwise you will create excessive network traffic.
Command Priority:
Both GCL+ programs and user commands (i.e., manual mode) have the same write
priority for all objects in a BACstat. There are no priority arrays or command hierarchy. Whatever
commands the object last is the value the object will have. Therefore, write your GCL+ programs so as to
minimize any conflicts with acceptable user commands (such as temporary or fixed overrides).
0
Mu
40
C1
H2
20
FUNCTION CODE
AV23
40
C1
180
HC2P
HC4P
170
FUNCTION CODE
AV22
H1
10
150
MFnC
MFnI
140
FUNCTION CODE
AV21
H1
Mu
FUNCTION
C2
10
0
CODE
50
AV23
FUNCTION
HCMd
CODE
160
AV23
H2
Mu
FUNCTION
C2
20
0
CODE
50
AV23
FUNCTION
AV23
HC2P
HC4P
C1
H1
40
10
180
170
H2
Mu
C1
FUNCTION
AV22
CODE
20
0
40
CODE
H1
Mu
0
10
FUNCTION
C2
CODE
50
CODE
HCMd
FUNCTION
160
Mu
H2
FUNCTION
C2
AV23
AV23
AV23
0
20
50
CODE
CONFIGURATION OF ANALOG VARIABLES AV21, AV22, AV23
THESE VARIABLES DETERMINE THE OPERATION OF ANALOG OUTPUT 1,
ANALOG OUTPUT 2 AND BINARY OUTPUT 3
THEIR RESPECTIVE VALUES DETERMINE THE FUNCTION AND BEHAVIOUR
OF THE OUTPUT. THE VALUE IS THE RESULT OF THE FUNCTION CODE
PLUS THE OUTPUT ACTION TYPE CODE, THUS
FFF = FUNCTION CODE
T.T = TYPE CODE
VARIABLE VALUE =
F F F . 0 +
T . T
X X X . X
PULSE WIDTH MODULATION DIRECT
BINARY REVERSE ACTION
0.2
0.1
OUTPUT ACTION
BINARY DIRECT ACTION
TYPE CODE
0.0
CODE
Pwm_d
FUNCTION
Bin_d
Bin_r
PULSE WIDTH MODULATION REVERSE
Pwm_r
0.3
ANALOG REVERSE 10-0V
ANALOG DIRECT 0-10V
Anlg_r
Anlg_d
0.5
0.4
590
AV28
MINIMUM
PULSE WIDTH
2930
MAXIMUM
AV29
OUTPUT 1 ( ANALOG )
OUTPUT 2 ( ANALOG )
OUTPUT 3 ( BINARY )
Device Output Configuration Table (FCU - Application)
VFnC
200
190
VFnI