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).

Logs
(newest | oldest) View ( | older 50) (20 | 50 | 100 | 250 | 500)
  • 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")
  • 18:36, 6 October 2023 Benryves talk contribs created page QUIT (Created page with "Exit the Smart Move software. Category:Reference Category:Command Line")
  • 18:36, 6 October 2023 Benryves talk contribs created page NEW (Created page with "Clear all procedures and variables from memory. Category:Reference Category:Command Line")
  • 18:35, 6 October 2023 Benryves talk contribs created page LOAD (Created page with "Load a project from disk. Category:Reference Category:Command Line")
  • 18:35, 6 October 2023 Benryves talk contribs created page LIST (Created page with "Display a list of the procedures in memory. == LIST proc == Sends a listing of the procedure ''proc'' to the current printer. Category:Reference Category:Command Line")
  • 18:32, 6 October 2023 Benryves talk contribs created page LBLS (Created page with "= LBLS, LBLS ON, LBLS OFF = You can rename the sensors and some keywords using the LABEL command. Typing LBLS displays a list of the current labels. It is sometimes useful to print the original name when using the trace facility or when in the editor. This can be achieved by typing LBLS OFF. The labels can be restored with LBLS ON. Category:Reference Category:Command Line")
  • 18:31, 6 October 2023 Benryves talk contribs created page LABEL (Created page with "= LABEL oldname newname = Rename the sensors and some of the command words. Labels are saved when a complete project is saved to disk. The new label can be up to 9 characters in length. Sensors in the Smart Sense range will automatically label the appropriate sensor input when they are plugged in. The following words can be changed. * BACKWARD * FORWARD * HALT * OUTPUT * SWITCHON * SWITCHOFF * SWITCH * INPORT * SENSOR0 * SENSOR1 * SENSOR2 * SENSOR3 * SENSOR4 * SENSOR5...")
  • 18:29, 6 October 2023 Benryves talk contribs created page FNS (Created page with "Display a list of available functions. Category:Reference Category:Command Line")
  • 18:29, 6 October 2023 Benryves talk contribs created page EDIT (Created page with "= EDIT proc = Edit a procedure in memory. Typing EDIT without a procedure name will open the editor with the most recently modified procedure. Category:Reference Category:Command Line")
  • 18:28, 6 October 2023 Benryves talk contribs created page DELETE (Created page with "= DELETE proc = This is used to delete a procedure in memory. Type DELETE followed by the procedure name. Category:Reference Category:Command Line")
  • 18:28, 6 October 2023 Benryves talk contribs created page COMMANDS (Created page with "Displays a list of the commands which can only be issued as a direct command, i.e. not used within a procedure. Category:Reference [[Category::Command Line]]")
  • 18:27, 6 October 2023 Benryves talk contribs created page CMDS (Created page with "Displays a list of the commands which can be used within procedures. Category:Reference Category:Command Line")
  • 18:22, 6 October 2023 Benryves talk contribs created page BUILD (Created page with "= BUILD procname = Used to create a new procedure. The procedure name can be up to 15 characters in length and include any letter of the alphabet, numbers and the underline character. Procedure names cannot begin with a number.")
  • 18:20, 6 October 2023 Benryves talk contribs created page Reference (Created page with "The words which Smart Move understands are ‘Keywords’. Some are ‘Commands’, i.e. they perform an action. Others are ‘Functions’ i.e. 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 first. The remaining keywords can be used within procedures and are described in full in alphabetical order, beginning with ABORT on page R-5 == Commands and...")
  • 18:02, 6 October 2023 MediaWiki default talk contribs created page Main Page
(newest | oldest) View ( | older 50) (20 | 50 | 100 | 250 | 500)