
5Ć4 Configuration Tips
Original Ć June 1990CE4.2:CL6211
H Split Registers
5.3.1 Loadable Functions
Loadable functions may be used to conserve both FST steps and
general registers. Generally, loadable functions may be used as an
operand for any instruction which requires the use of a general register.
Refer to Table 4Ć6 on page 4Ć28 for a list of loadable functions, and
section 4.4, beginning on page 4Ć24, for definition of operands for
FST instructions.
Consider an application where it is desired to regulate flow from a pump,
as shown in Figure 5Ć2.
TK-1
PMP -1
FV-1
FV-1R
FT-1 FT-1R
DIF
FIC-1
PV
+
-
Figure 5Ć2. Analog Loadable Function
The measured inputs are pump flow FT-1 and recirc flow FT-1R. The
process variable for a loop needs to be the difference between two
analog inputs. Following are two possible FST code segments which
accomplish the flow measurement:
Register Method:
AINSQR(2, FT–1R ), {Load recirc flow in SVA}
RGSTA( FT–1RFLW ), {Store in register FI–1RFLW}
AINSQR(1, FT–1 ), {Load pump flow in SVA}
DIF( FT–1RFLW ), {Determine out flow}
CNTRL,
STAT,
AOUT(1),
Loadable Function Method:
AINSQR(1, FT–1 ), {Load pump flow in SVA}
DIF(AINSQR(2, FT–1R )), {Subtract recirc flow to determine
out flow}
Komentarze do niniejszej Instrukcji