KsLogChannel

Configures the log channel settings.

Name Type Meaning
Source KsLogSource Records the data from a single axis, axis group, input, output, slave, cam, user variables, and others.
Index INT

The index of an axis, axis group, input, or output.

When Source is logUser, Index is the adding order of user variables. For example:

  • AddVariable(&Temperature);
  • AddVariable(&Voltage);
  • AddVariable(&Warning);

Index 0: Temperature

Index 1: Voltage

Index 2: Warning

Variable KsLogVariable Selects the variable you want to record if the log source is an axis or axis group. When Source is logUser, Variable is not used.
Offset INT

Sets the byte offset if the log source is

  • An axis, and the log variable is logDigitalInputs or logDigitalOutputs.
  • An input or output of a module.
DataType KsLogDataType Selects the data type if the log source is an input or output of a module.