All public logs
Jump to navigation
Jump to search
Combined display of all available logs of Smart Box. You can narrow down the view by selecting a log type, the username (case-sensitive), or the affected page (also case-sensitive).
- 20:22, 6 October 2023 Benryves talk contribs created page Smart Box (Created page with "© Copyright Economatics (Education) Limited 1992 == Contents == Introduction * About Smart Box * The ports * Rear panel * Software Setting up * Connecting Smart Box to your computer * PC compatible computers * Apple Macintosh * Acorn Archimedes * BBC Micro/Master computer * Setting up procedure Sensors * What are sensors? * Analogue sensors * Digital sensors * Making your own sensors Outputs * What are Outputs? * Digital Outputs * Motor Outputs...")
- 20:05, 6 October 2023 Benryves talk contribs created page Mathematical operators (Created page with "== Description == Smart Move allows the use of mathematical operators using both standard notation and the plain English equivalent. The following operators are allowed: {| | + || PLUS |- | - || MINUS |- | / || DIVIDED BY |- | * || MULTIPLIED BY |- | = || EQUALS |- | < || IS LESS THAN |- | > || IS GREATER THAN |- | = || IS EQUAL TO |- | <> || IS NOT EQUAL TO |- | =1 || IS ON |- | =0 || IS OFF |- | || AND |- | || OR |} == Examples == PRINT 4+4 PRINT 4...")
- 19:59, 6 October 2023 Benryves talk contribs created page WAIT (Created page with "== Syntax == WAIT time/condition == Description == The wait command suspends processing until a certain event occurs or for a specified time period. == Examples == WAIT UNTIL SENSOR A >= 50 WAIT 5 == Associated keyword == * PAUSE Category:Reference Category:Procedure")
- 19:58, 6 October 2023 Benryves talk contribs created page UNTIL (Created page with "== Syntax == UNTIL condition == Description == UNTIL can be used in two ways. The first, as part of the REPEAT...UNTIL loop, causes a sequence of lines to be repeated until a condition becomes true. The second, as part of the WAIT...UNTIL statement, halts all processing until a condition becomes true. == Examples == UNTIL INPUT 0 IS ON AND INPUT 1 IS ON == Associated keywords == * REPEAT * WAIT Category:Reference Category:Procedure")
- 19:57, 6 October 2023 Benryves talk contribs created page TRUE (Created page with "== Syntax == TRUE == Description == TRUE is represented by the value -1 in Smart Move. == Examples == PRINT TRUE == Associated keywords == * FALSE Category:Reference Category:Procedure")
- 19:56, 6 October 2023 Benryves talk contribs created page TRACE (Created page with "== Syntax == TRACE ON/OFF == Description == With TRACE ON all lines are printed to the output window as they are executed. This also has the effect of slowing the program down. == Examples == TRACE ON TRACE OFF Category:Reference Category:Procedure")
- 19:55, 6 October 2023 Benryves talk contribs created page TIME (Created page with "== Syntax == TIME Hours:Minutes:Seconds:Centiseconds == Description == The TIME keyword can be used either to set the internal clock to a certain time or to read the current time. A time value begins with a colon. When setting the time include all values from the unit you are setting down to the centiseconds. For example, to set the clock to a value of 1 minute type :1:00:00 (1 minute, zero seconds, zero centiseconds) == Examples == Print the current time PRINT TI...")
- 19:53, 6 October 2023 Benryves talk contribs created page SWITCH (Created page with "== Syntax == SWITCH ON/OFF == Description == Used to switch on and off the digital outputs. Smart Move will also accept SWITCHON and SWITCHOFF as valid keywords. == Examples == SWITCH ON 1 SWITCH ON OUTPUT 1 SWITCH ON 0,2,4,6 SWITCH ON 3 POWER 5 SWITCH ON 5 PULSE 50,50 SWITCH ON 1 SPEED 5 == Associated keywords == * POWER * SPEED * PULSE Category:Reference Category:Procedure")
- 19:52, 6 October 2023 Benryves talk contribs created page STORE (Created page with "== Syntax == STORE channel,variable,variable,variable == Description == The STORE command is used to store variables to a disk file. This is typically used to store readings from a sensor, or sensors for data capture purposes. The command can store numeric variables with a value between 0 and 255, variables containing text strings and time values. The time is automatically stored at the beginning of each STORE statement. == Example == STORE 1,SENSOR A,SENSOR B ==...")
- 19:51, 6 October 2023 Benryves talk contribs created page STOP (Created page with "== Syntax == STOP CLOCK == Description == Smart Box has an internal clock which ticks 100 times per second. The STOP command is used to stop the clock. == Example == STOP CLOCK STOP == Associated keywords == * START * RESET * TIME Category:Reference Category:Procedure")
- 19:50, 6 October 2023 Benryves talk contribs created page START (Created page with "== Syntax == START CLOCK == Description == Smart Box has an internal clock which ticks 100 times per second. The START command is used to start the clock. The current time value can be printed to the output window. == Example == START CLOCK START PRINT TIME == Associated keywords == * STOP * RESET * TIME Category:Reference Category:Procedure")
- 19:48, 6 October 2023 Benryves talk contribs created page SPEED (Created page with "== Syntax == SPEED speedvalue == Description == The SPEED command varies the speed of devices connected to the outputs by rapidly switching them on and off. The speedvalue can be between 0 and 10. A speedvalue of 1 will switch the output on for 100 centiseconds and off for 900. A speedvalue of 9 will switch the output on for 900 centiseconds and off for 100. A speedvalue of 0 will switch the output off and performs the same function as the SWITCH OFF or [...")
- 19:46, 6 October 2023 Benryves talk contribs created page SENSOR (Created page with "== Syntax == SENSOR sensorname == Description == This function returns the current value of the specified sensor. == Examples == PRINT SENSOR A PRINT LIGHT == Associated keywords == * INPORT Category:Reference Category:Procedure")
- 19:45, 6 October 2023 Benryves talk contribs created page RTC (Created page with "== Syntax == RTC == Description == This function returns the time from the host micro's clock in Smart Move time format. == Example == To print the value of the host micro's clock PRINT RTC To set the clock in Smart Move to the same time as the host micro's. LET TIME = RTC == Associated keywords == * TIME Category:Reference Category:Procedure")
- 19:44, 6 October 2023 Benryves talk contribs created page RND (Created page with "== Syntax == RND == Description == This function returns a random number between 0.00 and 65535.99 == Example == PRINT RND Category:Reference Category:Procedure")
- 19:44, 6 October 2023 Benryves talk contribs created page RESET (Created page with "== Syntax == RESET CLOCK == Description == Smart Box has an internal clock which ticks 100 times per second. The RESET command is used to set the clock to zero. == Example == RESET CLOCK == Associated keywords == * START * STOP * TIME Category:Reference Category:Procedure")
- 19:43, 6 October 2023 Benryves talk contribs created page REPEAT (Created page with "== Syntax == REPEAT == Description == The REPEAT...UNTIL keywords form a loop. Any instructions within the loop will be repeated until a certain condition occurs. The condition can include multiple conditions with the AND/OR keywords. The loop can be made to continue forever, or until the Escape key is pressed, by using REPEAT...FOREVER. REPEAT loops can be 'nested' up to 60 deep. == Example == REPEAT PRINT SENSOR A UNTIL SENSOR A IS > 100 OR SENSOR...")
- 19:41, 6 October 2023 Benryves talk contribs created page REM (Created page with "== Syntax == REM anything == Description == The REM keyword allows you to add comments to your program as a reminder of the purpose of each part of the program. Any text after the REM will be ignored by Smart Move. == Example == REM This procedure switches on the alarm Category:Reference Category:Procedure")
- 19:40, 6 October 2023 Benryves talk contribs created page PRINT (Created page with "== Syntax == PRINT printlist == Description == The PRINT command is used to print a text string or variable to the text window. The command is followed by a list of items to print. Anything within inverted commas will be printed as it is. Anything not within inverted commas is assumed to be a variable and the current contents of the variable will be printed. A semi-colon after an item in the list will print the next item on the same line. An apostrophe between items i...")
- 19:36, 6 October 2023 Benryves talk contribs created page PULSE (Created page with "== Syntax == PULSE onperiod,offperiod == Description == The PULSE command allows an output to be switched on and off continuously with varying pulse rates. The on and off periods can be individually set to a maximum value of 255 which is the equivalent of 2.55 seconds. == Example == SWITCH ON 1 PULSE 50,50 SWITCH ON 1 PULSE 10,250 == Associated keywords == * POWER * SPEED Category:Reference Category:Procedure")
- 19:35, 6 October 2023 Benryves talk contribs created page POWER (Created page with "== Syntax == POWER powervalue == Description == The POWER command varies the speed of devices connected to the outputs by rapidly switching them on and off. The powervalue can be between 0 and 10. A powervalue of 1 will switch the output on for 100 centiseconds and off for 900. A powervalue of 9 will switch the output on for 900 centiseconds and off for 100. A powervalue of 0 will switch the output off and performs the same function as the SWITCH OFF or [...")
- 19:32, 6 October 2023 Benryves talk contribs created page PAUSE (Created page with "== Syntax == PAUSE seconds.centiseconds == Description == The PAUSE command causes all processing to cease for a certain time. It is the same as using the WAIT command with a time period. == Example == PAUSE 10 == Associated keywords == * WAIT Category:Reference Category:Procedure")
- 19:31, 6 October 2023 Benryves talk contribs created page PARAMETER (Created page with "== Syntax == PARAMETER variable,variable,variable... == Description == The PARAMETER command assigns values to variables in a procedure. Any number of values can be ‘passed’ to the procedure in this way. It is like performing a number of LET commands at once. == Example == First type in this procedure ''sum'': PARAMETER number1,number2,number3 PRINT "Add together "; PRINT number1;"+";number2;"+";number3 PRINT "= "; PRINT number1+number2+number3 Now fr...")
- 19:28, 6 October 2023 Benryves talk contribs created page OUTPUT (Created page with "== Syntax == OUTPUT value == Description == This command can be used to switch on and off the digital outputs simultaneously. Each digital output has a unique number associated with it. By adding up the values for any outputs you want to switch on you can set some of the outputs on while switching off any other outputs which may have been on. == Example == LET A=1 REPEAT PRINT A OUTPUT A LET A=A+A UNTIL A=256 == Associated keywords == * SWITCH ON...")
- 19:25, 6 October 2023 Benryves talk contribs created page NEXT (Created page with "== Syntax == NEXT == Description == The NEXT keyword is used with FOR to create a loop which will be executed a number of times. == Example == FOR 10 TIMES SWITCH ON 1 WAIT 1 SWITCH OFF 1 WAIT 1 NEXT == Associated keywords == * FOR Category:Reference Category:Procedure")
- 19:24, 6 October 2023 Benryves talk contribs created page LET (Created page with "== Syntax == LET variable = value == Description == The command LET is used to assign a value to a variable. Variables are used as a temporary place to store numbers, strings or time values. Variables can be up to 15 characters in length. == Example == Give the variable ‘x’ the value 10 LET x = 10 Add 1 to the current value of the variable ‘x’ and put the result into the variable ‘turns’ LET turns = x+1 Put the time value 10 seconds into the variab...")
- 19:23, 6 October 2023 Benryves talk contribs created page INT (Created page with "== Syntax == INT == Description == The function INT returns the integer part of any numeric expression passed to it. == Example == PRINT INT 2.45 Return the Integer part of variable X, where X has been assigned a numeric value using the LET command. PRINT INT X Category:Reference Category:Procedure")
- 19:22, 6 October 2023 Benryves talk contribs created page INPORT (Created page with "== Syntax == INPORT == Description == The function INPORT returns the current ‘value’ of all digital sensors as a single number. Each digital sensor has a unique ‘value’ as shown below: * SENSOR 0 = 1 when it is on. * SENSOR 1 = 2 * SENSOR 2 = 4 * SENSOR 3 = 8 * SENSOR 4 = 16 * SENSOR 5 = 32 * SENSOR 6 = 64 * SENSOR 7 = 128 So if SENSORS 0,3 and 5 are ‘ON’ INPORT will return 41 (1+8+32) == Example == IF INPORT = 255 THEN PRINT "All sensors are on" ==...")
- 19:20, 6 October 2023 Benryves talk contribs created page INKEY (Created page with "= INKEY, INKEY$ = == Syntax == INKEY($) == Description == These functions return the value of any key which is pressed down when the INKEY function is used, or has been pressed since the previous INKEY/INKEY$. The key is returned as either its ASCII value (INKEY) or its character (INKEY$). INKEY returns -1 if no key is pressed. The ASCII value is the numeric value associated with each key by the computer. INKEY$ returns a blank string if no key has been pressed. '''...")
- 19:17, 6 October 2023 Benryves talk contribs created page IF (Created page with "== Syntax == IF condition THEN action ELSE action == Description == The IF command is used to test for a certain condition and then perform an action. The command can be extended using the word ELSE to perform one action if the condition is true or another if the condition is false. == Examples == IF SENSOR 1 IS ON THEN FORWARD A IF SENSOR A IS GREATER THAN 128 THEN SWITCH ON 1 ELSE SWITCH OFF 1 == Associated keywords == * THEN * ELSE Category:Re...")
- 19:15, 6 October 2023 Benryves talk contribs created page HALT (Created page with "== Syntax == HALT MOTOR A/B/C/D == Description == Used to switch off any motor output. Also resets the value of COUNT for the appropriate motor. == Example == Stop motor ‘A’ HALT A Stop motors ‘A’, ‘B’ and ‘C’ HALT A,B,C == Associated keywords == * FORWARD * BACKWARD * COUNT Category:Reference Category:Procedure")
- 19:10, 6 October 2023 Benryves talk contribs created page GET (Created page with "== Syntax == GET($) == Description == These functions wait for a key to be pressed on the keyboard and then return the key as either ASCII (GET) or the character (GET$). The ASCII value is the numeric value associated with each key by the computer. Note The function only works when the cursor is in the text window. Click the cursor in the text window before pressing a key. Example Switch on motor 'A' if the 'F' key is pressed IF GET$ = "F" THEN FORWARD A == Asso...")
- 19:08, 6 October 2023 Benryves talk contribs created page FORWARD (Created page with "== Syntax == FORWARD A/B/C/D POWER/SPEED/PULSE == Description == Turn a motor forward. If the motor turns in the wrong direction when you use the FORWARD command reverse the plugs at the motor outputs. The FORWARD command also resets the appropriate COUNT value. == Examples == Switch on motor ‘A’ FORWARD A Switch on motors ‘A’, ‘B’, and ‘C’ FORWARD A,B,C Switch on motor ‘A’ at speed 6 (See the SPEED command for more details of contr...")
- 19:06, 6 October 2023 Benryves talk contribs created page FOR (Created page with "== Syntax == FOR number TIMES == Description == The command FOR is used to begin a FOR...NEXT loop. This makes the computer execute a series of lines a specified number of times. The word TIMES is optional. FOR...NEXT loops can be nested up to 40 deep. The maximum loop value is 255. == Example == To print the value of sensor a 5 times at 1 second intervals. FOR 5 TIMES PRINT SENSOR A WAIT 1 NEXT == Associated keywords == * NEXT Category:Reference C...")
- 19:04, 6 October 2023 Benryves talk contribs created page FILE (Created page with "== Syntax== FILE channelnumber,"filename" == Description == This command opens a file to store sensor readings. Before you can save data from sensors you must open a file. The data is stored in memory until a CLOSE command is issued at which point a Save dialog is presented to the user to allow the file to be saved to disk. The channel number can be in the range 1 to 10. A number of channels can be opened simultaneously. == Example == FILE 1,"Data" == Associat...")
- 19:03, 6 October 2023 Benryves talk contribs created page FALSE (Created page with "== Syntax == FALSE == Description == FALSE is represented by the value 0 in Smart Move. == Example == PRINT FALSE == Associated keywords == * TRUE Category:Reference Category:Procedure")
- 19:02, 6 October 2023 Benryves talk contribs created page END (Created page with "== Syntax == END == Description == This is used to make Smart Move end the current procedure. END is optional but may be used as many times as required in a procedure. See also ABORT. == Example == IF SENSOR A > 128 THEN END == Associated keywords == * ABORT Category:Reference Category:Procedure")
- 19:01, 6 October 2023 Benryves talk contribs created page COUNT (Created page with "== Syntax == COUNT input == Description == The count function returns the number of pulses counted on a digital sensor. The value of COUNT can be reset by the command COUNT CLEAR. A special feature of the motor commands also clears the value of COUNT. Any command issued to Motor A will reset COUNT 0, Motor B will reset COUNT 1 etc. The count function will normally return an integer showing the number of times a sensor, for example a switch, has closed. Every time the...")
- 18:59, 6 October 2023 Benryves talk contribs created page CLS (Created page with "== Syntax == CLS == Description == This command clears all text in the text window and moves the cursor to the start of the first line. == Example == CLS == Associated keywords == * PRINT Category:Reference Category:Procedure")
- 18:58, 6 October 2023 Benryves talk contribs created page CLOSE (Created page with "== Syntax == CLOSE channel == Description == Close a disk file which has been opened for data capture. To close all open channels type CLOSE without a channel number. The standard save dialog box will appear to allow the data file to be saved. The dialog box includes an 'Options' button which allows the data file to be saved in a number of file formats. == Example == To close file 1 CLOSE 1 To close all open files CLOSE == Associated keywords == * FILE *...")
- 18:56, 6 October 2023 Benryves talk contribs created page BACKWARD (Created page with "== Syntax == BACKWARD A/B/C/D == Description == Turn a motor backwards. If the motor turns in the wrong direction when you use the BACKWARD command reverse the plugs at the motor outputs. The command also resets the value of COUNT for the appropriate digital input to zero. == Example == Procedure to move a buggy backwards for 3 seconds BACKWARD A,B WAIT 3 HALT A,B == Associated keywords == * FORWARD * HALT * SPEED * POWER * PULSE * CO...")
- 18:54, 6 October 2023 Benryves talk contribs created page AVERAGE (Created page with "== Syntax == AVERAGE == Description == The average function returns the average of the numbers passed to it since the last AVERAGE CLEAR command. == Example == Clear the average accumulator AVERAGE CLEAR Take the average of SENSOR A over 10 readings FOR 10 TIMES AVERAGE SENSOR A NEXT PRINT AVERAGE == Associated keywords == * STORE Category:Reference Category:Procedure")
- 18:53, 6 October 2023 Benryves talk contribs created page ASK (Created page with "== Syntax == ASK S/N/T,"prompt string",variable == Description == This command is used to prompt user for a keyboard input. The user can type a string or number. The ASK command is followed by either S to indicate a string, N to indicate a numeric value or T for a time value. The prompt string can be up to 70 characters in length. The response from the user is placed into the variable specified at the end of the command. == Example == ASK N,"How long should the lamp...")
- 18:50, 6 October 2023 Benryves talk contribs created page Category:Reference (Created page with "The words which Smart Move understands are ‘Keywords’. Some are ‘Commands’, i.e. they perform an action. Others are ‘Functions’ ie. they return a value. Some of the keywords can only be used when typed into the command line on Smart Move. These are the direct commands and functions which are described in the command line category. The remaining keywords can be used within procedures.")
- 18:47, 6 October 2023 Benryves talk contribs created page Category:Procedure (Created page with "Commands and Functions for use in procedures Category:Reference")
- 18:46, 6 October 2023 Benryves talk contribs created page ABORT (Created page with "== Syntax == ABORT == Description == This command interrupts a program which is running and prints the name of the procedure which was executing at the time. This can be used to finish a program when a certain condition occurs. This differs from the END command in that it ends all currently running procedures and returns to command mode. END will return to the calling procedure. == Example == PRINT "Press S to stop!" IF INKEY$="S" THEN ABORT == Associated...")
- 18:42, 6 October 2023 Benryves talk contribs created page Category:Command Line (Created page with "= Commands and Functions to be used from the command line =")
- 18:41, 6 October 2023 Benryves talk contribs created page VALUES (Created page with "The VALUES command will display the current values of any variables you have used. Category:Reference Category:Command Line")
- 18:41, 6 October 2023 Benryves talk contribs created page SAVE (Created page with "= SAVE ''filename'' = Save all procedures or an individual procedure to disk. Typing SAVE with a filename will save all procedures currently in memory to the file. To save an individual procedure type SAVE ''filename procedurename''. Category:Reference Category:Command Line")
- 18:37, 6 October 2023 Benryves talk contribs created page RENAME (Created page with "= RENAME ''oldprocname'' ''newprocname'' = Give a procedure a new name. Type the current procedure name, then a space, then the new name for that procedure. Category:Reference Category:Command Line")