Keyword Syntax
Many keywords contain one or more parameters (arguments to the keyword).
Parameters are shown in parentheses. Multiple parameters are separated by commas.
When there multiple possible values for a parameters, each valid parameter is separated by a vertical (|) bar.
For example, the command DIGITALIO is shown as:
DIGITALIO (Port, ON|OFF)
This means it requires two parameters. The Port numbers and either a ON or OFF value for that port.
A valid invocation could be:
DIGITALIO 16,ON
or
DIGITALIO 7,OFF
Note: Keywords that accept a boolean parameter (ON, OFF, TRUE, FALSE) can accept any logical boolean value. So,
DIGITALIO 16,ON
DIGITALIO 16,TRUE
DIGITALIO 16,YES
DIGITALIO 16,1
Are all valid forms of the DIGITALIO command. As are:
DIGITALIO 1,ON
DIGITALIO 16,OFF
DIGITALIO 7,YES
DIGITALIO 9,NO
DIGITALIO 12,0
DIGITALIO 4,1
Keyword Tip
Keywords and variables can be typed into the Robot’s command console. (The panel where you select the command you wish the Robot to run).
For example, typing in the command:
SAY $DATE
Would cause the Robot to announce todays date.
Or typing in:
DIGITALIO 16,ON
Would turn on the lights. (Digital IO Port 16).
etc.