06-13-2018, 08:53 AM
Program to convert three type of pressure units between any one of ATM, PSI and PSF.
[A] ATM (Atmospheric Pressure)
[B] PSI (Pound-force per square inch)
[C] PSF (Pound-force per square foot)
Example: Using FIX 4 and on User Mode f [USER]
Convert 1 ATM to PSI
1 [A] display 0.0000
[B] display 14.6959
Convert 40 PSI to ATM
40 [B] display 0.0000
[A] display 2.7218
Convert 1100 PSF to ATM
1100 [C] display 0.0000
[A] display 0.5198
Program: Pressure Units Conversion (ATM, PSI and PSF)
Gamo
[A] ATM (Atmospheric Pressure)
[B] PSI (Pound-force per square inch)
[C] PSF (Pound-force per square foot)
Example: Using FIX 4 and on User Mode f [USER]
Convert 1 ATM to PSI
1 [A] display 0.0000
[B] display 14.6959
Convert 40 PSI to ATM
40 [B] display 0.0000
[A] display 2.7218
Convert 1100 PSF to ATM
1100 [C] display 0.0000
[A] display 0.5198
Program: Pressure Units Conversion (ATM, PSI and PSF)
Code:
LBL A // ATM
101325
x
0
X=Y
GTO 1
R↓
STO 0
CLx
RTN
---------------------------------------------------------------------------
LBL B // PSI
6894.7572 // Decimal point between 4 and 7
x
0
X=Y
GTO 1
R↓
STO 0
CLx
RTN
-----------------------------------------------------------------------------
LBL C // PSF
47.88 // Decimal point between 7 and 8
x
0
X=Y
GTO 1
R↓
STO 0
CLx
RTN
---------------------------------------------------------------------------
LBL 1
RCL 0
LSTx
÷
RTN
Gamo