Command Details
You can configure commands on the Laboratory Operations
Command Details page for Equipment Class Reading
Commands.
The client gateway runs independent port command processes for direct connect commands.
- Port Command Processes defines the initial number of port command
processes.
- Startup Delay defines the wait time before creating the processes
on the client gateway start and restart.
- Timeout limits inactivity between receiving blocks of data from
the equipment and sending the read terminator following all output to the equipment.
- Read Terminator encodes special characters using the ASCII
character replacement tokens. For more information, see ASCII Character Replacement Tokens.
The Timeout and Read Terminator values apply
globally to all communication.
In the sequence of steps for the command details, each step has input, process, and output
phases.
- Input Phase: Defines how data from the equipment triggers the
execution of the step data.
- Optional:
Process Phase: Extraction of values from
the equipment data.
- Output Phase: Sends data to the equipment and defines the
handling of additional step data.
- Input Phase
-
- Seq: Sequence number.
- Once: If true, the step data is executed at most a single
time—any subsequent match of step data to the input data does not execute the step
data. If the step data matches the input data of another (later) step data, that
step data executes instead.
- Input Data: The input data for a step data is a regular
expression that is tested against step data from the equipment. Executes steps with
no input data value in sequence number order after the socket connection to the
equipment opens with availability for equipment connection initialization.
The
regular expression match for selecting a step does not automatically include the
Read Terminator. If required, you must explicitly include it in the input data.
The input data can contain ASCII character replacement tokens as well as
variable values, represented as the name of the variable enclosed in < >
symbols similar to the built-in replacement tokens, for example <variable>. The
name of the variable in a replacement token is case-sensitive.
Note:
If the read terminator value is found in the data from the equipment without
matching the input data of any step, the step data automatically clears. This allows
for resynchronization of data sent from equipment in an unexpected manner.
- Process Phase
-
- Variable: If the input data succeeds in matching the step
data, the named variable has a value assigned from the step data, based on the
capture groups in the regular expression in Variable Data. You can assign multiple
variables in a single step data by adding multiple rows to the command detail with
the same Seq value. Step data with the same Seq value are only used for process
phase variable assignment—any configuration for the input or output phase is
ignored. You can assign values to the same variable in different step data,
overwriting any previous value.
- Variable Data: The regular expression that determines the
value of the Variable.
- Required: The variable value is the concatenation of the
matches from all capture groups specified in the variable data regular expression.
If you mark the Variable as Required, the process phase for the step data executes
against any additional incoming data from the equipment until the Variable Value
regular expression generates a value. That is, command processing does not move into
the output phase until all required variables have values.
After the process phase completes, all character replacement tokens in the input
data, variable data, and output data are re-evaluated to replace updated named
variable replacement tokens with new values.
- Output Phase
-
The output phase begins when the process phase is complete, including the assignment
of values to all required variables.
- Delay: Delay before sending the output data to the server
gateway.
- Output Data: Data to send to the server
gateway.
- Clear Input: If true, clears the step data before the input
phase begins again. This resets the data from the equipment used to find new step
data for execution in the input phase.
- Complete: If true, the socket is closed and the variables
are mapped into the command readings by case-sensitive name matching. If not true,
the command continues with matching a new step data with incoming step data from the
equipment. Designate at least one step data to complete the command.