The information you send to the WI-130 is instantly active and the WI-130 is ready to perform the task you have set it up to do. The program becomes part of the WI-130’s permanent memory and cannot be lost due to power failure.
Place the SimPoser diskette in the disk drive and in Windows 3.1 click on SimPoser Installation File - Run - a:\setup, or in Windows 95 click on Start - Run - a:\setup. Follow all the on-screen prompts as the software is installed. WI-130 SimPoser Software User’s Manual...
Click on this command, then COM 1 or COM 2 to download the active application program to the WI-130. Click on this command, then Start to bring up the WI-130 simulator on the Simulate computer screen. All the parameters and instructions you have created and saved will be active and running on the display.
Click on this button to exit the SimPoser program. Close The WI-130 can be sealed for legal for trade use and the software protected from change by a hardware connection on the main board. If P19 is jumpered, the system is sealed and programs cannot be downloaded or altered.
FILE,SAVE AS,{filename} and as their larger counterparts. use the file name you want for your application program. Helpful Hints: 1. SAVE often! 2. Do not have any other Windows programs running. ® 3. SAVE often! WI-130 SimPoser Software User’s Manual...
Com port to use to download the program to your download. WI-130. F11 and F12 keys can be used as hot keys for these functions. Click on the Simulate command. . . Simulate A simulation of the WI-130 appears on screen.
Click on the Help command to bring up an indexed help manual on your computer screen. This is the last item on the command line of the SimPoser toolbar. The next section describes the toolbar buttons. WI-130 SimPoser Software User’s Manual...
Following is a brief description of each of the scale parameter items you see in Figure 3. Number of Scales Select the number of scales connected to your WI-130. Scale Number Select the scale platform you want to configure. Scale Type Select analog or Quartzell weight sensor.
Page 13
Select the units of measure you want to use. Those you enable will be available to you as the UNITS key is pressed on the WI-130. Conversion factors are preas- The custom units conversion signed by the factory for lb, kg, grams, oz, and lb/oz.
Page 14
From this dialog box, enable the types of display values you wish to be active and available during normal weighing operations. The display values you choose will show up on your screen as you repeatedly push the SELECT key on the front panel of the WI-130 during normal operation. WI-130 SimPoser Software User’s Manual...
Page 15
Selection Basis of the WI-130 and are depen- The Selection Basis combo box contains the active display values upon dent on the actual weight on the which the output of the analog output will be based.
Page 16
Bargraph/Checkweigher dialog box Use this dialog box to enter parameters relating to bargraph or checkweigher functions, if the WI-130 is configured to operate in these modes. To operate in bargraph or checkweigher mode, the proper display mode must be selected.
Page 17
Seconds Select the number of seconds the weight must be within the Divisions range before the WI-130 will go into Sampling mode. In the setting above, the display must remain stable within 0.25 scale Divisions for one Second before sampling will occur and thus establish an accurate piece weight.
Page 18
120000 LB 40000 LB Beeper Volume 80000 LB Allows you to turn the WI-130 internal beeper off, or select from three volume levels. Lower Case Enable If you enable this option, letters in the soft key labels and all factory defined messages may be displayed in lowercase.
Page 19
Time Out dialog box Use this dialog box to set Accumulate Timeout, Print Timeout, Zero Timeout, Tare Timeout. This is the amount of time the WI-130 will wait for motion to cease and perform the function after the corresponding key is pressed and/or the event is queued up.
Page 20
Figure 14 Filtering dialog box This dialog box is used to configure the Harmonizer filter. The Harmonizer ® can be customized to minimize interference from environmental conditions. WI-130 SimPoser Software User’s Manual...
Page 21
Figure 15. Figure 15 Rate of Change dialog box The Rate of Change dialog box allows the user to set up a WI-130 Indicator to calculate Rate of Change for flow rate, or weight/time, applications. ROC Samples ROC Samples is the number of samples over which the rate of change of weight is determined.
Page 22
Serial ports dialog box The Serial Ports dialog box allows the user to set the parameters for the two WI-130 serial ports. Each parameter is described below. Serial Port This selection switches between Serial Port 1 and Serial Port 2. Use the up/ down arrow box to select the port or position the cursor inside the text box and type the number directly into the box.
Page 23
BASIC Control - Control of the serial port is through the WT-BASIC program executing in the WI-130. When BASIC Control is selected, the End of Message box appears. Select or enter the ASCII value for the end of message character to denote the end of the serial transmission.
.cfg file exists in C:\SIMPOSER\SIM\TEMPCFG.CFG WT-BASIC programming is the key feature of the WI-130's power and flexibil- ity. Using the programming system in conjunction with the Setup configura- tions, print formats and the Setpoint configuration allow the WI-130 to be adapted to a wide variety of user defined applications.
Page 25
Use the Set Marker command to set place markers in the program. Use the Go to Marker command to find a previously set marker in the program. This is helpful when trying to find a routine you are currently creating. WI-130 SimPoser Software User’s Manual...
Page 26
Download Click this command to download the program to your WI-130. You are given a choice of which port to use. The F11 and F12 keys are hot keys for down- loading to Com1 and Com2 respectively.
Page 27
After the event listed in Appendix 2: The WT- name is placed in your program you need to fill in BASIC Interpreter Command your particular commands. Set. Use these commands to build your program. WI-130 SimPoser Software User’s Manual...
Page 28
Close button. You can make it reappear by clicking the Program Error button again or clicking on Program Errors under the Search command at the top of the Program Editor window. WI-130 SimPoser Software User’s Manual...
The next button on the toolbar is Format. Use this to control the way a Format Button particular printer connected to a WI-130 will print a document or bar code label. The program is capable of 16 output formats. Click the format button and the format editing window shown in Figure 18 appears.
Page 30
Printing Actual Values The actual values that will be printed on the ticket when run with the WI-130 require a different method of placement. Values from the WI-130 must be surrounded with brackets ( { } ) to tell the Print Format that this information will be coming from data stored, generated or collected by the WI-130.
Page 31
String variables are Left Justified by default and will print Right Justified if a negative width is used. WI-130 SimPoser Software User’s Manual...
Page 32
Mar 14, 1999 (14 Mar, 1999) Numbers with Day of Week Mon 03-14-99 (Mon 14/03/99) Spelled Month with Day of Week Mon Mar 14, 1999 (Mon 14 Mar, 1999) Numbers with 03-14-1999 (14/03/1999) 4 digit year WI-130 SimPoser Software User’s Manual...
Use the setpoint window to configure up to 32 setpoints in the WI-130 Sys- malfunction or deviate from the tem. This dialog screen provides a visual representation of the configuration of proper operation sequence.
Page 34
Bounce set to 1.0 seconds, the setpoint activates or turns on for one second, then deactivates or turns off for one second, then turns back on for one second. The time between activate events is two seconds. WI-130 SimPoser Software User’s Manual...
Page 35
100% (i.e. 1000%) Offset - Indicates that the value of a Variable from your BASIC program, plus this offset value in cal units, will control this setpoint. WI-130 SimPoser Software User’s Manual...
Page 36
Make your selections in the same manner as described in 1. Above/Below, but make sure you fill in selections for both the Lower and Upper Value boxes. Both will become active when either of these selections is made. WI-130 SimPoser Software User’s Manual...
Page 37
In example 1, setpoint 1 is an output. The setpoint will activate below a constant value of 25 lbs gross weight. When the gross weight goes above 35 pounds, the setpoint will deactivate. Weight readings are coming from scale #1 and the motion inhibit is off. WI-130 SimPoser Software User’s Manual...
Page 38
Figure 22 shows the setpoint window for example 2. In this example we have chosen Setpoint 3 as an output. The setpoint will activate when the net weight value is between 50 and 150 pounds and will deactivate outside of this range. WI-130 SimPoser Software User’s Manual...
Page 39
Example 3 In this example we will use two setpoints #1 (see Figure 23) and #2 (see Figure 24). Figure 23 Example 3-Setpoint #1 Figure 24 Example 3 - Setpoint #2 WI-130 SimPoser Software User’s Manual...
Page 40
As was stated earlier, this is an extremely simplified batching program. With a WT-BASIC program you can design very sophisticated batching se- quences. Example 4 Figure 25 shows two screens using variables. The explanation for these is below. WI-130 SimPoser Software User’s Manual...
Page 41
Cutoff1. It deactivates when the net weight is above an offset of 0 of the variable Cutoff1. Setpoint #2 activates when the net weight is below 85% of the variable Cutoff2. It deactivates when the net weight is above 105% of the variable Cutoff2. WI-130 SimPoser Software User’s Manual...
Simulate Button The next toolbar button is Simulate. Click this button to start the WI-130 simulation. This is the same as clicking the Simulate command on the command line. This was covered earlier in this manual. Close Button The last toolbar button is Close. Click this to close your SimPoser program.
Page 43
Application for the setup of filtering values. Lamptst.cfg Application for the testing of all dots on display. Sys_err.cfg Example application for using SUB SYSTEM_ERROR and the ERR keyword. Tr-icon1.cfg Trade show truck scale bitmap example. WI-130 SimPoser Software User’s Manual...
Page 44
Multiple programs for sales demonstrations. Partct.cfg Part Counter sales demonstration. Slide.cfg Slideshow for sales demonstration. Specs.cfg WI-130 specification slideshow for sales demonstrations. Tareiso.cfg Multi-Channel tare database with ISO-9000 tracking information. Trkinout.cfg Inbound/Outbound sales demonstration. Wi110.cfg WI-110 with 10 tare registers.
Page 47
The following are multi-scale displays. If all the lines are not used for scales, they are available for Basic text. #34, 35, 40 and 41 are small basic text. #36, 37, 42 and 43 are large basic text. WI-130 SimPoser Software User’s Manual...
This command set goes well beyond the normal BASIC language by adding many commands not found in the original. This expanded WT-BASIC lan- guage makes programming the WI-130 more flexible than was possible with the original BASIC language. It adheres closely to the QBASIC language included in current versions of MS-DOS.
Page 49
This will generate one queue (see note) in the event buffer. F1_KEY For soft keys. These events execute when the key is pressed on the WI-130 or an external keyboard F5_KEY F6_KEY Only on an external keyboard or in the simulator.
Page 50
System Variable These variables have already been predefined by Weigh-Tronix in the WI-130 WT-BASIC command set to make your programming easier. These system variables are double precision floating decimal point unless otherwise noted.
Page 51
A regular integer with no decimal point Numeric variables only. DIM X! Single precision floating point DIM X& Long integer (no decimal point) DIM X$ 16 character string variable (default) DIM X$ * 10 10 character string variable (64 characters max) WI-130 SimPoser Software User’s Manual...
Page 52
INPUT To receive data input from the keypad or a remote keyboard. SYNTAX: INPUT “Enter id”, ID$ The specified prompt is shown on the display. WI-130 SimPoser Software User’s Manual...
Page 53
If noclear is set to "0" the variable used for the input state- ment will be cleared upon data entry. The WI-130 has a display height of 32 dots and a width of If noclear is set to "1" or "-1" the variable used for the input 128 dots.
Page 54
SYNTAX: FOR variable = X TO Y statement IF expression THEN EXIT FOR NEXT variable WHILE. . WEND To execute a series of statements in a loop as long as a given condition is true. WI-130 SimPoser Software User’s Manual...
Page 55
Use REM or ‘ for describing PROGRAM operations, setup of the instrument, temporarily THIS LINE WITHOUT A REM WILL disabling a command, etc. BE INTERPRETED AS A COM- MAND ' (apostrophe) This also works in place of REM. WI-130 SimPoser Software User’s Manual...
Page 56
The (MAX) is the maximum value where the graph stops. (UNDER) is the lowest acceptable value for the checkweigher graphic dis- play. (OVER) is the highest acceptable value for the checkweigher graphic display. SYNTAX: SETCHECK(MIN,UNDER,OVER,MAX) WI-130 SimPoser Software User’s Manual...
Page 57
This command causes the SYSTEM_TIMER event to occur. SYNTAX: SETTIMER(timernum,seconds) There are two timer events available for use in the WI-130. Example: SETTIMER(1,0.5) This will activate the event They are SYSTEM_TIMER and system_timer every ½ second. With zero sec- SYSTEM_TIMER2. Use onds, this disables the timer event specified.
Page 58
SHOWVAR This lets you display a numeric value on the WI-130 where the weight value usually appears along with custom labels or legends. SYNTAX: SHOWVAR (varname$,legend1$,legend2$,precision) See Appendix 3 for an example of this com- mand. PCWTZERO This command zeros the scale according to the Count Stability Values as defined in the Configuration forms.
Page 59
With C$ =”The WI-130 Indicator" and n = 5 and x = 6 MID$ returns the new string Z$ or “WI-130”. LEFT$(C$,x) This command copies the leftmost characters of an existing string (C$) and makes a new string. The new string starts at the leftmost character of the orignal string and continues for x number of characters to the right.
Page 60
SYNTAX: Z$=RIGHT$(C$,x) With C$ =”The WI-130 Indicator" and x = 9 RIGHT$ returns the new string Z$ or “Indica- tor”. CHR$(n) Converts an ASCII code to its equivalent character.
Page 61
Storage of strings in databits memory is limited to 16 charac- handshake ters per location. See Appen- mode dix 3 for a sample routine eom character RTS only used in setport called GETCOM$. WI-130 SimPoser Software User’s Manual...
Page 62
CURUNIT can be used to return the current selected system UNIT. The CURUNIT function will return a 0 for lbs, 1 for kgs, 2 for grams, 3 for oz, 4 for lb oz, 5 for custom 1 and 6 for custom 2. WI-130 SimPoser Software User’s Manual...
Page 63
EVENTNUM. EVENTCLR This clears the oldest instance of EVENTNUM from the event queue. SYNTAX: EVENTCLR(x) The variable x represents the value of the event name from the com- mand EVENTNUM. WI-130 SimPoser Software User’s Manual...
Page 64
The WI-130 has 1024 storage locations and 512 sixteen character string Permanent Memory storage locations available in permanent memory. These memory locations Storage are reusable and will remain through a power loss. Expanded memory options increase these limits. See note at left. Four commands are available for...
ESC_KEY This event is queued when the ESC key is pressed. This event is not queued from the "input" or "ask" keywords. Example: SUB SYSTEM_STARTUP dispmode=10 END SUB SUB ESC_KEY print “HELLO WORLD” END SUB WI-130 SimPoser Software User’s Manual...
Page 66
SUB INPN print “P/N: “,x$ pn$=x$ x$=”” call Level0 END SUB SYSTEM_ERROR Event Is queued when an error occurs in your program. Use the key word ERR to return the number of the error. WI-130 SimPoser Software User’s Manual...
‘take readings from scale#1 xs=32 ‘setpoint 32 may control the activa- tion or ‘deactivation of the capture feature, but isn’t required END SUB ‘start the data capture SUB F1_KEY capture(2,xstart,xdatapt,xrate,xch,xs) setpton(32) capture(1) settimer(2,1) END SUB WI-130 SimPoser Software User’s Manual...
Page 68
‘show the data capture status to the display sub system_TIMER2 capture(3,8100) ‘tell capture where to store the index print RECALL(8100) ‘get the index end sub ‘restart the data capture again sub F5_key setpton(32) ‘re-enable the capture settimer(2,1) end sub WI-130 SimPoser Software User’s Manual...
Page 69
5. Maximum 6. Minimum 7. Pass Through. Returns the first location which passes through a given data point. Example: SUB SYSTEM_STARTUP dispmode=16 for i=1 to 200 store(i,i) next store(201,23) ‘for pass through test END SUB WI-130 SimPoser Software User’s Manual...
Page 70
‘Selection not valid, should return -2 SUB TARE_KEY print find(23,1,200,8) print “SHOULD BE -2 SELECTION NOT VALID” END SUB ‘value not found, should return -1 SUB ZERO_KEY print find(203,1,200) print “SHOULD BE -1, Target Not Found” END SUB WI-130 SimPoser Software User’s Manual...
Page 71
SUB F1_KEY print findstr("123ABC",0,10) END SUB SUB F2_KEY print findstr("123abc",0,10) END SUB SUB F3_KEY print findstr("444rrr333eee",0,10) END SUB SUB F4_KEY print findstr("444RRR333EEE",0,10) END SUB SUB F5_KEY print findstr("123ABC",0,10,1,0) END SUB SUB F6_KEY print findstr("123abc",0,10,1,0) END SUB WI-130 SimPoser Software User’s Manual...
Page 72
‘deactivate. ‘stopIO - IO location for the input to stop the weighment. Positive ‘value indicates stop on activate, negative indicates stop on deactivate. ‘startLocation - Beginning Store/Recall location to store values from in ‘motion weighing. WI-130 SimPoser Software User’s Manual...
Page 73
END SUB SUB SETPT4_DEACT wt=RECALL(x) fmtprint(1) x=x+1 if x>1000 then x=0 END SUB SUB F1_KEY inmotion(3,-4,0,1000,minval,maxval) END SUB SUB F2_KEY input “Enter Min: “,minval END SUB SUB F3_KEY input “Enter Max: “,maxval END SUB WI-130 SimPoser Software User’s Manual...
Page 74
“1”,”R1",”2",”R2",”3",”R3",”4",”R4",”Lev.1",”LEVEL10" END SUB SUB LEVEL10 print “level=10” menu“5”,”R5",”6",”R6",”7",”R7",”8",”R8",”Lev.2",”LEVEL100" END SUB SUB LEVEL100 print “level=100” menu“1”,”R1",”2",”R2",”3",”R3",”4",”R4",”Lev.3",”LEVEL1000" END SUB SUB LEVEL1000 print “level=1000” menu“1”,”R1",”2",”R2",”3",”R3",”4",”R4",”Lev.4",”LEVEL10000" END SUB SUB LEVEL10000 print “level=10000” menu “1”,”R1",”2",”R2",”3",”R3",”4",”R4",”Lev.0",”LEVEL0" END SUB SUB R1 WI-130 SimPoser Software User’s Manual...
Page 75
“Routine”;r;” HERE” END SUB SUB R8 print “Routine”;r;” HERE” END SUB SUB R9 print “Routine”;r;” HERE” END SUB SUB R10 r=10 print “Routine”;r;” HERE” END SUB SUB R11 r=11 print “Routine”;r;” HERE” END SUB WI-130 SimPoser Software User’s Manual...
Page 76
"\" END SUB Power of Operator The result of the Power of operator(^) is the product of multiplying the first operand by itself, the second operand times. Example: SUB SYSTEM_STARTUP dispmode=10 Print (2^8);”=”;(2*2*2*2*2*2*2*2);”=256” END SUB WI-130 SimPoser Software User’s Manual...
Page 77
All scales must be at Center of zero for the total to return true. These values are accessible through the print formats also. Example: Print format #1 {gross(1),6.0},{gross(2),6.0},{gross(0),6.0}\r\n\S ‘this example assumes 2 scales are enabled SUB SYSTEM_STARTUP dispmode=6 Settimer(2,1) Contout(1,1) END SUB WI-130 SimPoser Software User’s Manual...
Page 78
19 = too many nested WHILEs 20 = WEND without WHILE See the sample application, Sys_err.cfg, for error detection 21 = Division by Zero that came with your SimPoser 22 = EEPROM Sentinal installation disk. 23 = RAM Sentinal WI-130 SimPoser Software User’s Manual...
WT to be SETTIMER(2,0.5) displayed where the weight ACTVALUE(11) normally is displayed on END SUB the WI-130 display. The SUB YSTEM_TIMER2 SUB SYSTEM_TIMER2 subroutine assigns the WT=GROSS system variable GROSS END SUB into the variable WT. WI-130 SimPoser Software User’s Manual...
Page 80
IF PASSWORD=GUESS THEN FOR Y=0 TO 1024 STORE(Y,0) STORE$(Y,"") NEXT LOC=0 END IF END SUB SUB F5_KEY X=X-1 IF X<0 THEN X=0 WORD$ = recall$ (X) VNUM = RECALL (X) PRINT WORD$;" ";VNUM END SUB WI-130 SimPoser Software User’s Manual...
Page 81
END SUB SUB F5_KEY output=10 END SUB SUB SYSTEM_STARTUP mustdim dim cutoff1 dim cutoff2 dim disp cutoff1=RECALL(1023) cutoff2=RECALL(1022) END SUB SUB F1_KEY disp=dispmode dispmode=6 input “Enter Cutoff#1”,cutoff1 if lastkey=27 then dispmode=disp exit sub end if WI-130 SimPoser Software User’s Manual...
Page 82
\x02 G {SEND$} LB\r\n SUB SYSTEM_STARTUP DISPMODE=10 ZERO$=”000000" SETTIMER(1,0.5) END SUB SUB SYSTEM_TIMER GROSS$=STR$(ABS(GROSS)) X=6-LEN(GROSS$) TEMP$=LEFT$(ZERO$,X)+GROSS$ IF GROSS<0 THEN SEND$=”-”+TEMP$ ELSE SEND$=”+”+TEMP$ END IF FMTPRINT(1) END SUB ‘new way for continuous ouput ‘max is 10 times a second WI-130 SimPoser Software User’s Manual...
Page 83
‘Address 0 will send the same data to all RD-4000’s connected to the serial port SUB SYSTEM_TIMER2 tot=0 curscale=1 s1=gross if s1<=0 then s1=ABS(s1) print #2,”!A1";s1 curscale=2 s2=gross if s2<=0 then s2=ABS(s2) print #2,”!A2";s2 curscale=3 WI-130 SimPoser Software User’s Manual...
Page 84
‘if to much motion occurs the zero will be aborted after 5 tries SUB ZERO_ABORT x=x+1 if x<5 then call ZERO_KEY else dispmode=22 print “ ZERO ABORTED!!!” print “MOTION ON SCALE!!” print “ TRY AGAIN!!!!” sleep(3) dispmode=35 end if END SUB WI-130 SimPoser Software User’s Manual...
Trying to assign a value to a command statement. Label table full May have too many subroutines or not enough memory. Try adding the extended memory option. duplicate label You've duplicated an event name. WI-130 SimPoser Software User’s Manual...
Page 86
Variable name is probably misspelled or not dimensioned. too many nested WHILEs To many levels of WHILE statements. WEND without WHILE WHILE. . .WEND without a WHILE. Division by Zero You cannot divide by a value of zero. WI-130 SimPoser Software User’s Manual...
Returns or sets the tare value on the current scale. The display will not switch to net mode automatically. Use the ACTVALUE command. Rounded by division size. MAXPEAK Returns or sets the highest value on the current scale rounded by division size. WI-130 SimPoser Software User’s Manual...
Page 89
Rawnet is calculated from Rawgross-tare. RAWTARE Rawtare is calculated by converting the tare to A/D counts. Then the tare(in counts) is multiplied by the calibration span factor. The result is not rounded to the nearest division. WI-130 SimPoser Software User’s Manual...
Page 90
17 = variable name too long 18 = var not defined (DIM) 19 = too many nested WHILEs 20 = WEND without WHILE 21 = Division by Zero 22 = EEPROM Sentinal 23 = RAM Sentinal WI-130 SimPoser Software User’s Manual...
Page 92
217 Brunswick Boulevard Weigh Bar is a registered trademark ® Telephone: 507-238-4461 Pointe Claire, QC H9R 4R7 Canada of Avery Weigh-Tronix and may be registered in certain jurisdictions. Facsimile: 507-238-4195 Telephone: 514-695-0380 All brands and product names used e-mail: industrial@weigh-tronix.com...
Need help?
Do you have a question about the WI-130 and is the answer not in the manual?
Questions and answers