V
e
r
s
i
o
n
2.1
4500.BAS
PROGRAM
USER’S MANUAL
DMD-480-S2Series
ACPOWEREDBRIDGESENSOR
RS232INTERFACE
D M D - 4 8 0 - S 2 S E R I E S A C P O W E R E D B R I D G E S E N S O R - R S 2 3 2 I N T E R F A C E
DMD-480-S2 Series
USER’S MANUAL
PREOPERATION
A.
DMD-480-S2 SERIES HOOK-UP
(REFERTOFIGURE1ANDTABLE1FORSCREWTERMINALDESIGNATION)
FIGURE 1
1.
2.
CONNECT AC TO SCREW TERMINALS 5 AND 6 OF THE DMD-480-S2
SERIES TERMINAL BLOCK.
USING A ONE TO ONE DB9 CABLE, CONNECT ONE END TO YOUR
COMPUTERS SERIAL PORT, (COM1 OR COM2 ONLY), AND THE OTHER
END TO THE DMD-480-S2 SERIES FEMALE DB9 CONNECTOR.
THE RECOMMENDED MAXIMUM CABLE LENGTH IS 50 FT. WHICH IS
DETERMINED BY THE MAXIMUM SPECIFIED CABLE CAPACITANCE
OF 2500pF.
TABLE 1
TERMINAL
FUNCTION
+INPUT
1
2
3
4
5
6
-INPUT
3.
4.
CONNECT THE STRAIN GAGE OUTPUT TO THE DMD-480 SERIES ± INPUT,
TERMINALS 1 AND 2 OF THE DMD-480-S2 SERIES TERMINAL BLOCK.
TERMINAL 1= +INPUT, TERMINAL 2= -INPUT.
-EXCITATION
+EXCITATION
AC
AC
CONNECT THE STRAIN GAGE +EXCITATION INPUT TO THE DMD-480
SERIES TERMINAL BLOCK, TERMINAL 4, AND THE STRAIN GAGE -
EXCITATION INPUT TO TERMINAL 3.
DMD-480-S2 Series Block Diagram
One Omega Drive, P.O. Box 4047
Stamford, CT 06907
3
D M D - 4 8 0 - S 2 S E R I E S A C P O W E R E D B R I D G E S E N S O R - R S 2 3 2 I N T E R F A C E
TABLE 3: ADDRESS EXAMPLES
B.
DMD-480-S2SERIES DIP SWITCH SETTINGS
1.
SET THE DESIRED ADDRESS FOR EACH UNIT BY SETTING
SWITCHES 1-6.
BY SETTING THIS ADDRESS, THE UNIT IS GIVEN ITS OWN IDENTITY TO
WHICH THE HOST COMPUTER WILL IDENTIFY WITH.
ADDRESS 63
• THE ADDRESS RANGE IS FROM 0 - 63 (DECIMAL) OR
111111 (BINARY). (REFER TO EXAMPLES IN TABLE 3).
• SWITCH “ON” = 0; SWITCH “OFF” = 1
2.
SET THE DESIRED MODE OF OPERATION FOR THE 4570-232 USING
SWITCHES 7 & 8.
BINARY = 111111
DECIMAL = 1 + 2 + 4 + 8 + 16 + 32 = 63
(REFER TO TABLE 2 FOR DEFINING MODES OF OPERATIONS)
ADDRESS
1
MODE 3 IS USED FOR DIAGNOSTIC PURPOSES.
TABLE 2:
SW 7 SW 8 MODE
DESCRIPTION
BINARY = 100000
DECIMAL = 1 + 0 + 0 + 0 + 0 + 0 = 1
OPERATE MODE: Operate Mode: Unit Outputs a reading
ON
ON
ON
0
whenever it is addressed by the the host computer.
TEST MODE: Unit outputs a reading every 0.33 seconds
continuously without being addressed
ADDRESS 21
OFF
1
2
3
ON OFF
OFF OFF
UNDEFINED:
TEST MODE: Unit outputs a message " MODE 3: Version: 941124
Address: 01" continuously.
BINARY = 101010
DECIMAL = 1 + 0 + 4 + 0 + 16 + 0 = 21
C.
SOFTWARE INSTALLATION
SWITCH
DECIMAL VALUE
THE SUPPLIED OMEGA SOFTWARE, C4500.BAS, IS INTENDED FOR
USER MODIFICATION. PLEASE FEEL FREE TO MAKE ANY CUSTOM
MODIFICATIONS TO THE SOFTWARE AS NEEDED. IT IS RECOMMENDED
THAT THE USER MAKE A BACKUP COPY OF THE ORIGINAL OMEGA
SOFTWAREBEFOREMODIFYING.
1
2
3
4
5
6
1
2
4
8
16
32
1.
2.
TO EXECUTE THE OMEGA C4500 SOFTWARE, QBASIC OR GWBASIC
MUST BE LOADED ON YOUR COMPUTER.
TO BEGIN THE SOFTWARE SETUP, YOU MUST LOAD AND EXECUTE
THE SUPPLIED OMEGA PROGRAM, “C4500.BAS” WITHIN QBASIC OR
GWBASIC.
D.
SETUP MENU
THE FIRST MENU TO APPEAR IS THE “SETUP MENU”
IF YOU WANT TO SAVE ANY SETTINGS WHICH WILL BE ENTERED INTO THE
PROGRAM, YOU WILL WANT TO ENTER THOSE SETTINGS DIRECTLY INTO THE
SOFTWARE AND SAVE THE SOFTWARE WITH AN APPLICATION NAME
(XXXXX.BAS). AFTER YOU QUIT THE OPERATION MENU OR TURN OFF THE HOST
COMPUTER, ALL SETTINGS WILL RETURN TO THEIR DEFAULT VALUES UNLESS
SAVED.
PHONE:(203)359-1660 FAX:(203)359-7700
1-800-TC OMEGA
4
D M D - 4 8 0 - S 2 S E R I E S A C P O W E R E D B R I D G E S E N S O R - R S 2 3 2 I N T E R F A C E
THE SETUP MENU ALLOWS THE USER TO SETUP THE CORRECT
OPERATING PARAMETERS FOR THE DMD-480-S2 SERIES.
1.
2.
OPTION 0 [RETURN TO OPERATION MENU]:
SELECTING THIS OPTION WILL RETURN YOU TO THE OPERATION MENU.
OPTION 1 [SELECT COMMUNICATIONS PORT]:
THIS OPTION ALLOWS THE SELECTION OF EITHER COM1 OR COM2
AS THE COMMUNICATIONS PORT FOR THE DMD-480-S2 SERIES AND THE
USERS COMPUTER. COM3 AND COM4 ARE NOT ALLOWED.
THE SETTING OF THE COMMUNICATIONS PORT IS ALWAYS NECESSARY
FOR PROPER OPERATION OF THE DMD-480-S2 SERIES IN BOTH THE
OPERATION AND TEST MODES.
3.
OPTION 2 [SET SCALING EQUATION]:
THIS OPTION ALLOWS THE USER TO SELECT COEFFICIENTS OF A
SCALING EQUATION. THE SCALING EQUATION PROVIDES FOR BOTH A
SCALE FACTOR (A) AND A FIXED OFFSET (C).
THE SCALING EQUATION IS: VALUE = C + (A x READING)
THE SETTING OF THE SCALING EQUATION ONLY APPLIES TO THE
“OPERATION MODE”.
(REFER TO SECTION F FOR A DESCRIPTION ON SETTING THE
SCALING EQUATION.)
4.
OPTION 3 [SELECT DATA DESTINATION]:
THIS OPTION ALLOWS THE USER TO STORE DATA IN ONE OF 3 MODES.
THE DATA MAY BE DISPLAYED ON THE COMPUTER SCREEN ONLY, SENT
TO A FILE ONLY, OR BOTH.
THIS OPTION APPLIES ONLY TO THE “OPERATION MODE”.
(REFER TO SECTION G FOR MORE INFORMATION ON STORING DATA.)
OPTION 4 [DATA COLLECTION METHOD]:
5.
THIS OPTION ALLOWS THE USER TO COLLECT DATA IN 3 DIFFERENT
WAYS AND ONLY APPLIES TO THE OPERATE MODE, NOT THE TEST
MODE.
1) TAKE A READING EVERY “Y” SECONDS, WHERE “Y” IS ONE
SECOND MINIMUM, FOR A TOTAL “A” MINUTES.
2) START TAKING DATA EVERY “Y” SECONDS AT TIME “A” UNTIL
TIME“B”.
3) TAKE DATA EVERY “Y” SECONDS STARTING NOW AND
CONTINUE READING DATA FOREVER. THIS IS THE DEFAULT
METHOD FOR THE OPERATE MODE.
BY DEFAULT, THE VALUE FOR “Y” MUST BE ≥ 1 SECOND.
One Omega Drive, P.O. Box 4047
Stamford, CT 06907
5
D M D - 4 8 0 - S 2 S E R I E S A C P O W E R E D B R I D G E S E N S O R - R S 2 3 2 I N T E R F A C E
6.
OPTION 5 [SELECT UNITS TO MONITOR]:
THE LAST OPTION SELECTS THE ADDRESS OF THE MODULES TO
BE MONITORED IN THE ORDER IN WHICH THEY ARE TO BE MONITORED.
ADDRESSES FROM 0 TO 63 MAY BE SELECTED.
THE DEFAULT ADDRESS IS “1”.
E.
OPERATION MENU
THE “OPERATION MENU”, ALLOWS 4 USER CHOICES.
OPTION 0 [QUIT]:
1.
2.
ALLOWS THE USER TO QUIT THE PROGRAM.
OPTION 1 [SETUP THE UNITS]:
EXECUTES THE “SETUP MENU”, WHICH ALLOWS THE USER TO
SET ADDRESSES TO INTERROGATE, MEASUREMENT RATE, ETC.
REGARDLESS OF WHETHER THE “TEST MODE” OR “OPERATION MODE”
IS SELECTED, CERTAIN PARAMETERS MUST ALWAYS BE ENTERED IN
THE SETUP UNITS OPTION IN ORDER FOR YOUR MEASUREMENT
SYSTEM TO OPERATE PROPERLY.
(REFER TO SECTION D FOR SETUP MENU DESCRIPTION)
OPTION 2 [START OPERATE MODE]:
3.
4.
WILL EXECUTE THE OPERATE MODE IF THE DMD-480-S2 SERIES HAS
BEEN SET FOR MODE 0 (SW7 AND SW8 “ON”).
OPTION 3 [START TEST MODE]:
WILL EXECUTE THE TEST MODE IF THE DMD-480-S2 SERIES HAS BEEN
SET FOR MODE 1 OR 3.
PRIOR TO ENTERING THE OPERATE MODE, IT WILL BE NECESSARY TO HAVE THE
CORRECT UNIT ADDRESSED, AND IN MOST CASES IT WILL BE NECESSARY TO
ENTER THE SETUP MENU AND SET THE SCALING EQUATION, DATA
DESTINATION, AND DATA COLLECTION METHOD.
IT IS RECOMMENDED THAT THE USER OPERATE THE UNIT IN TEST MODE 3 PRIOR
TO THE OPERATE MODE TO ENSURE THAT THE UNIT IS COMMUNICATING
PROPERLY. THE USER CANNOT ADDRESS MULTIPLE UNITS IN THE TEST MODE,
THEREFORE EACH UNIT MUST BE TESTED INDIVIDUALLY.
F.
SETTING THE SCALING EQUATION
THE SCALING EQUATION IS SET BY WRITING THE EQUATION FOR THE TWO
CONDITIONS OF ZERO AND SPAN, AND THEN SOLVING FOR THE CONSTANTS.
THE DMD-480-S2 HAS AN OUTPUT OF APPROXIMATELY 41,750 COUNTS FULL
SCALE. IF THE MODULE WERE TO BE USED AS A VOLTAGE OUTPUT UNIT AND
THE SPAN WERE TO BE 30 mV, THEN THE FOLLOWING CALCULATION WOULD BE
MADE.
PHONE:(203)359-1660 FAX:(203)359-7700
1-800-TC OMEGA
6
D M D - 4 8 0 - S 2 S E R I E S A C P O W E R E D B R I D G E S E N S O R - R S 2 3 2 I N T E R F A C E
1. APPLY 3 mV TO THE INPUT AND READ THE 10%
DIGITAL COUNTS AS THE OUTPUT (K1).
2. APPLY 30 mV TO THE INPUT AND READ THE FULL SCALE
DIGITAL COUNTS AS THE OUTPUT (K2)
3. WRITETWOEQUATIONS:
A) (K2 x A) + C = 0.030 VOLTS
B) (K1 x A) + C = 0.003 VOLTS
SUBTRACTING EQUATION B FROM A:
(K2 - K1) x A = 0.027 VOLTS
THEREFORE
SOLVING FOR
EXAMPLE 1:
A = 0.027 VOLTS ÷ (K2 - K1)
C , C = -K1 x A
WITH 3 mV APPLIED THE DMD-483-S2 OUTPUT
READS 4185 COUNTS.
WITH 30 mV APPLIED THE DMD-483-S2 OUTPUT
READS 41,745 COUNTS.
A) (41,745 x A) + C = 0.030 VOLTS
B) (4185 x A) + C = 0.003 VOLTS
SOLVING EQUATION A - EQUATION B
(37,560 x A) = 0.027 VOLTS. THEREFORE
A = (0.027 ÷ 37,560) = 7.1885 x 10-7 = .00000071885
SOLVING FOR C, C = .003 - (K1 x A)
C = -8.38 x 10-6 = .00000838
VERIFY YOUR RESULTS BY PLACING YOUR SOLUTIONS BACK INTO
EQUATIONS A AND B:
A) (41,745 x .00000071885) - .00000838 = 0.030 VOLTS
B) (4185 x .00000071885) - .00000838 = 0.003 VOLTS
IN A WEIGHING APPLICATION USING A LOAD CELL WITH A SENSITIVITY OF 3mV/V,
THE CONSTANT C WOULD THEN CORRESPOND TO THE TARE WEIGHT OF THE
SYSTEM.
EXAMPLE 2:
WITH THE TARE WEIGHT ONLY APPLIED, READ
1,500 COUNTS.
WITH A FULL LOAD OF 100 POUNDS APPLIED, READ ABOUT
41,745 COUNTS.
A) (41,745 x A) + C = 100 POUNDS
B) (1,500 x A) + C = 0 POUNDS
One Omega Drive, P.O. Box 4047
Stamford, CT 06907
7
D M D - 4 8 0 - S 2 S E R I E S A C P O W E R E D B R I D G E S E N S O R - R S 2 3 2 I N T E R F A C E
SOLVING EQUATION A - EQUATION B
A = (100 ÷ 40,245) = .00248478
SOLVING FOR C, C = -1,500 x .00248478, C = -3.727
VERIFY YOUR RESULTS BY PLACING YOUR SOLUTIONS BACK INTO
EQUATIONS A AND B:
A) (41,745 x 0.00248478) + (-3.727) = 100.000 LBS
B) (1,500 x 0.00248478) + (-3.727) = 0.000 LBS
ONE COUNT = .00248 POUNDS
G.
WRITING DATA TO A FILE
UNDER OPTION 3 OF THE SETUP MENU, THE COLLECTED DATA MAY BE
WRITTEN TO A FILE SELECTED BY THE USER. THE USER MUST GIVE A FILE NAME
AND A PATH, (DRIVE:\PATH\FILE). THE DATA RECORDED IN THE FILE IS
RECORDED IN THE FOLLOWING MANNER: UNIT NUMBER (ADDRESS), DATE, TIME,
UNSCALED READING, AND THE SCALED READING. AN EXAMPLE OF A FILE’S
CONTENTS IS SHOWN BELOW.
1 , “07-30-1993” , “09:30” , 30003 , 10.0000
2 , “07-30-1993” , “09:30” , 15000 , 5.00190
3 , “07-30-1993” , “09:30” , 00015 , 0.00999
1 , “07-30-1993” , “09:31” , 30003 , 10.0000
2 , “07-30-1993” , “09:31” , 10000 , 3.33633
3 , “07-30-1993” , “09:31” , 00100 , 0.03831
NOTICE THAT THE DATA IS DELIMITED BY COMMAS AND QUOTE MARKS, WHICH
IS A STANDARD METHOD FOR WRITING TO FILES SO THAT ANY POPULAR
SPREADSHEET AND DATABASE PROGRAM CAN READ THE COLLECTED DATA.
A
DISK THAT IS COLLECTING DATA INTO A FILE WILL CONTINUE TO COLLECT DATA
UNTIL IT IS FILLED UP, AT WHICH TIME AN ERROR MESSAGE WILL APPEAR
INDICATING THE DISK IS FULL.
PHONE:(203)359-1660 FAX:(203)359-7700
1-800-TC OMEGA
M-3281
8
C4500.BAS V2.1 December 21, 1994
|