User contributions for Benryves
Jump to navigation
Jump to search
6 October 2023
- 19:1719:17, 6 October 2023 diff hist +507 N 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..." current
- 19:1519:15, 6 October 2023 diff hist +366 N 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" current
- 19:1419:14, 6 October 2023 diff hist +10 ASK →Associated keywords
- 19:1319:13, 6 October 2023 diff hist +15 GET No edit summary current
- 19:1119:11, 6 October 2023 diff hist +10 Reference →Commands and Functions for use in procedures
- 19:1019:10, 6 October 2023 diff hist +572 N 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:0819:08, 6 October 2023 diff hist +793 N 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..." current
- 19:0619:06, 6 October 2023 diff hist +494 N 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..." current
- 19:0419:04, 6 October 2023 diff hist +561 N 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..." current
- 19:0319:03, 6 October 2023 diff hist +205 N 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" current
- 19:0219:02, 6 October 2023 diff hist +321 N 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" current
- 19:0119:01, 6 October 2023 diff hist +1,089 N 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..." current
- 18:5918:59, 6 October 2023 diff hist +246 N 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" current
- 18:5818:58, 6 October 2023 diff hist +531 N 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 *..." current
- 18:5618:56, 6 October 2023 diff hist +527 N 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..." current
- 18:5418:54, 6 October 2023 diff hist +1 ABORT →Associated keyword current
- 18:5418:54, 6 October 2023 diff hist +398 N 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" current
- 18:5318:53, 6 October 2023 diff hist +647 N 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:5118:51, 6 October 2023 diff hist +1 Category:Procedure No edit summary current
- 18:5018:50, 6 October 2023 diff hist +449 N 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." current
- 18:4718:47, 6 October 2023 diff hist +68 N Category:Procedure Created page with "Commands and Functions for use in procedures Category:Reference"
- 18:4618:46, 6 October 2023 diff hist +544 N 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:4418:44, 6 October 2023 diff hist +24 Category:Command Line No edit summary current
- 18:4318:43, 6 October 2023 diff hist +1 Category:Command Line No edit summary
- 18:4318:43, 6 October 2023 diff hist −4 Category:Command Line →Commands and Functions to be used from the command line
- 18:4218:42, 6 October 2023 diff hist +59 N Category:Command Line Created page with "= Commands and Functions to be used from the command line ="
- 18:4118:41, 6 October 2023 diff hist +132 N VALUES Created page with "The VALUES command will display the current values of any variables you have used. Category:Reference Category:Command Line" current
- 18:4118:41, 6 October 2023 diff hist +284 N 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" current
- 18:3818:38, 6 October 2023 diff hist +12 LIST →LIST proc current
- 18:3818:38, 6 October 2023 diff hist +8 m LABEL →LABEL oldname newname current
- 18:3818:38, 6 October 2023 diff hist +8 EDIT →EDIT proc current
- 18:3718:37, 6 October 2023 diff hist +8 m DELETE →DELETE proc current
- 18:3718:37, 6 October 2023 diff hist +4 m BUILD →BUILD procname current
- 18:3718:37, 6 October 2023 diff hist +207 N 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" current
- 18:3618:36, 6 October 2023 diff hist +79 N QUIT Created page with "Exit the Smart Move software. Category:Reference Category:Command Line" current
- 18:3618:36, 6 October 2023 diff hist +97 N NEW Created page with "Clear all procedures and variables from memory. Category:Reference Category:Command Line" current
- 18:3518:35, 6 October 2023 diff hist +75 N LOAD Created page with "Load a project from disk. Category:Reference Category:Command Line" current
- 18:3518:35, 6 October 2023 diff hist +177 N 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:3318:33, 6 October 2023 diff hist +10 Reference →Commands and Functions to be used from the command line
- 18:3218:32, 6 October 2023 diff hist +388 N 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" current
- 18:3118:31, 6 October 2023 diff hist +745 N 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:2918:29, 6 October 2023 diff hist +88 N FNS Created page with "Display a list of available functions. Category:Reference Category:Command Line" current
- 18:2918:29, 6 October 2023 diff hist +193 N 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:2818:28, 6 October 2023 diff hist +156 N 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:2818:28, 6 October 2023 diff hist −1 COMMANDS No edit summary current
- 18:2818:28, 6 October 2023 diff hist +162 N 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:2718:27, 6 October 2023 diff hist +118 N CMDS Created page with "Displays a list of the commands which can be used within procedures. Category:Reference Category:Command Line" current
- 18:2518:25, 6 October 2023 diff hist +50 BUILD →BUILD procname
- 18:2218:22, 6 October 2023 diff hist +228 N 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:2018:20, 6 October 2023 diff hist +1,321 N 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..."