Pass Multiple Arguments
- Last UpdatedSep 11, 2025
- 2 minute read
You can pass multiple arguments into a Cicode command by separating each argument with a comma (,). Each argument is passed into the command in sequence, and is referred to in the command field as Arg1, Arg2, Arg3, and so on. For example:
|
Key Sequence |
F3 ###, ### Enter |
|
Command |
SP1 = Arg1; SP2 = Arg2; |
In this case, an operator can set two variables with the same command, for example:

sets the variables SP1 to 20 and SP2 to 35.
You can use up to eight arguments. However, avoid passing many arguments.
Note: There is no way to check if the input for each argument is valid (see example below).
Example
An operator may not enter any data for one of the arguments. For example, the key sequence below is used.

This would mean the value of Arg2 is zero, and the second variable is set to zero. If you use multiple arguments in a command, invalid inputs might generate undesired behavior in the project or in the larger system.
|
|
|
UNINTENDED EQUIPMENT OPERATION Do not use keystroke sequences to pass multiple arguments to Cicode commands unless possible input combinations have been tested and determined to be safe. Failure to follow these instructions can result in death, serious injury, or equipment damage. |
