
5Ć6 Configuration Tips
Original Ć June 1990CE4.2:CL6211
Note:
The loadable function method does not require the
general register used with the register method, and
also uses two less FST instructions.
Example 2: Discrete Loadable Function
Given the above example, it is desired to close FV-1 when PMP-1 is
not running. Discrete input 1 will be set to a logic 1 when the pump is
stopped. Following are two possible ways to implement that strategy:
Register Method:
DI(1), {Read pump status}
RGST( PMP1STS ), {Store in register PMP1STS}
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}
TRK(ENABLED, ZERO, PMP1STS), {Close valve if pump stopped}
CNTRL,
STAT,
AOUT(1),
Loadable Function Method:
AINSQR( 1, FI–1R ), {Load pump flow in SVA}
DIF(AINSQR( 2, FI–1R )), {Subtract recirc flow to
determine out flow}
TRK(ENABLED, ZERO ,DI(1)), {Close valve if pump stopped}
CNTRL,
STAT,
AOUT(1),
Note:
The general register ZERO is a reference register with
0.00 stored as an initial value in the SVA.
As you can see, the use of loadable functions may greatly reduce
requirements for both general registers and FST instructions.
Comentarios a estos manuales