New pages

Jump to navigation Jump to search
New pages
Hide registered users | Show bots | Show redirects
(newest | oldest) View ( | older 50) (20 | 50 | 100 | 250 | 500)
  • 19:50, 6 October 2023 ‎START (hist | edit) ‎[376 bytes] ‎Benryves (talk | contribs) (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 ‎SPEED (hist | edit) ‎[769 bytes] ‎Benryves (talk | contribs) (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 ‎SENSOR (hist | edit) ‎[251 bytes] ‎Benryves (talk | contribs) (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 ‎RTC (hist | edit) ‎[369 bytes] ‎Benryves (talk | contribs) (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 ‎RND (hist | edit) ‎[175 bytes] ‎Benryves (talk | contribs) (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 ‎RESET (hist | edit) ‎[301 bytes] ‎Benryves (talk | contribs) (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 ‎REPEAT (hist | edit) ‎[568 bytes] ‎Benryves (talk | contribs) (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 ‎REM (hist | edit) ‎[322 bytes] ‎Benryves (talk | contribs) (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 ‎PRINT (hist | edit) ‎[867 bytes] ‎Benryves (talk | contribs) (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 ‎PULSE (hist | edit) ‎[439 bytes] ‎Benryves (talk | contribs) (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 ‎POWER (hist | edit) ‎[791 bytes] ‎Benryves (talk | contribs) (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 ‎PAUSE (hist | edit) ‎[306 bytes] ‎Benryves (talk | contribs) (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 ‎PARAMETER (hist | edit) ‎[678 bytes] ‎Benryves (talk | contribs) (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 ‎OUTPUT (hist | edit) ‎[545 bytes] ‎Benryves (talk | contribs) (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 ‎NEXT (hist | edit) ‎[299 bytes] ‎Benryves (talk | contribs) (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 ‎LET (hist | edit) ‎[857 bytes] ‎Benryves (talk | contribs) (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 ‎INT (hist | edit) ‎[317 bytes] ‎Benryves (talk | contribs) (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 ‎INPORT (hist | edit) ‎[559 bytes] ‎Benryves (talk | contribs) (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 ‎INKEY (hist | edit) ‎[934 bytes] ‎Benryves (talk | contribs) (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 ‎IF (hist | edit) ‎[507 bytes] ‎Benryves (talk | contribs) (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 ‎HALT (hist | edit) ‎[366 bytes] ‎Benryves (talk | contribs) (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 ‎GET (hist | edit) ‎[587 bytes] ‎Benryves (talk | contribs) (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 ‎FORWARD (hist | edit) ‎[793 bytes] ‎Benryves (talk | contribs) (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 ‎FOR (hist | edit) ‎[494 bytes] ‎Benryves (talk | contribs) (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 ‎FILE (hist | edit) ‎[561 bytes] ‎Benryves (talk | contribs) (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 ‎FALSE (hist | edit) ‎[205 bytes] ‎Benryves (talk | contribs) (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 ‎END (hist | edit) ‎[321 bytes] ‎Benryves (talk | contribs) (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 ‎COUNT (hist | edit) ‎[1,089 bytes] ‎Benryves (talk | contribs) (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 ‎CLS (hist | edit) ‎[246 bytes] ‎Benryves (talk | contribs) (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 ‎CLOSE (hist | edit) ‎[531 bytes] ‎Benryves (talk | contribs) (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 ‎BACKWARD (hist | edit) ‎[527 bytes] ‎Benryves (talk | contribs) (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 ‎AVERAGE (hist | edit) ‎[398 bytes] ‎Benryves (talk | contribs) (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 ‎ASK (hist | edit) ‎[678 bytes] ‎Benryves (talk | contribs) (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:46, 6 October 2023 ‎ABORT (hist | edit) ‎[545 bytes] ‎Benryves (talk | contribs) (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:41, 6 October 2023 ‎VALUES (hist | edit) ‎[132 bytes] ‎Benryves (talk | contribs) (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 ‎SAVE (hist | edit) ‎[284 bytes] ‎Benryves (talk | contribs) (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 ‎RENAME (hist | edit) ‎[207 bytes] ‎Benryves (talk | contribs) (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 ‎QUIT (hist | edit) ‎[79 bytes] ‎Benryves (talk | contribs) (Created page with "Exit the Smart Move software. Category:Reference Category:Command Line")
  • 18:36, 6 October 2023 ‎NEW (hist | edit) ‎[97 bytes] ‎Benryves (talk | contribs) (Created page with "Clear all procedures and variables from memory. Category:Reference Category:Command Line")
  • 18:35, 6 October 2023 ‎LOAD (hist | edit) ‎[75 bytes] ‎Benryves (talk | contribs) (Created page with "Load a project from disk. Category:Reference Category:Command Line")
  • 18:35, 6 October 2023 ‎LIST (hist | edit) ‎[189 bytes] ‎Benryves (talk | contribs) (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 ‎LBLS (hist | edit) ‎[388 bytes] ‎Benryves (talk | contribs) (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 ‎LABEL (hist | edit) ‎[753 bytes] ‎Benryves (talk | contribs) (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 ‎FNS (hist | edit) ‎[88 bytes] ‎Benryves (talk | contribs) (Created page with "Display a list of available functions. Category:Reference Category:Command Line")
  • 18:29, 6 October 2023 ‎EDIT (hist | edit) ‎[201 bytes] ‎Benryves (talk | contribs) (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 ‎DELETE (hist | edit) ‎[164 bytes] ‎Benryves (talk | contribs) (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 ‎COMMANDS (hist | edit) ‎[161 bytes] ‎Benryves (talk | contribs) (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 ‎CMDS (hist | edit) ‎[118 bytes] ‎Benryves (talk | contribs) (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 ‎BUILD (hist | edit) ‎[282 bytes] ‎Benryves (talk | contribs) (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 ‎Reference (hist | edit) ‎[1,297 bytes] ‎Benryves (talk | contribs) (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...")
(newest | oldest) View ( | older 50) (20 | 50 | 100 | 250 | 500)