Balluff - BVS CA-GX0 / BVS CA-GX2 Technical Documentation
Loading...
Searching...
No Matches
Mapping UserOutputs to Physical Outputs in the Sequencer

Introduction

When configuring UserOutputs in a Sequencer Set, the Sequencer does not provide direct control of the camera's physical output lines. Instead, Sequencer Sets can control only the UserOutput register through the parameters UserOutputValueAll and UserOutputValueAllMask. UserOutputs can subsequently be routed to physical output lines using the camera's LogicGate functionality.

Concept

The mask and value always work together.

  • The UserOutputValueAllMask determines which UserOutputs may be updated.
  • The UserOutputValueAll determines the state that will be written to those UserOutputs.

Understanding UserOutputValueAll

UserOutputValueAll defines the state of all UserOutputs using a single value. Each UserOutput and each combinations of UserOutputs corresponds to a specific value.

Our cameras provide four UserOutputs:

UserOutput Integer Value Hexidecimal Value
UserOutput0 1 0x1
UserOutput1 2 0x2
UserOutput2 4 0x4
UserOutput3 8 0x8

Multiple outputs can be activated simultaneously by adding their values together.

Determining the Required Value

To determine the required UserOutputValueAll value:

  1. Identify the outputs that should be active.
  2. Add the corresponding hexadecimal values.
  3. Enter the resulting hexadecimal value in UserOutputValueAll.

The following table lists all possible combinations for four UserOutputs.

Output0 Output1 Output2 Output3 Integer Value Hexidecimal Value
xxxx0 0x0
xxx1 0x1
xxx2 0x2
xx3 0x3
xxx4 0x4
xx5 0x5
xx6 0x6
x7 0x7
xxx8 0x8
xxx8 0x8
xx9 0x9
xx10 0x10
x11 0x11
xx12 0x12
x13 0x13
x14 0x14
15 0x15

Understanding UserOutputValueAllMask

UserOutputValueAllMask controls which UserOutputs are affected by the value written to UserOutputValueAll.

Each UserOutput corresponds to a specific mask value:

UserOutput Mask Value
UserOutput0 0x1
UserOutput1 0x2
UserOutput2 0x4
UserOutput3 0x8

To allow a UserOutput to be modified, its corresponding mask value must be included in UserOutputValueAllMask. To determine the required mask value, refer to the UserOutputValueAll Reference Table in the previous section and identify the outputs that should be writable. The same value calculation applies to UserOutputValueAllMask.

Example:

UserOutputValueAllMask = 0xF

allows all UserOutputs to be updated.

Understanding the Displayed Values

ImpactControlCenter displays register values in hexadecimal notation. Leading zeros are omitted automatically.

The following values are identical:

0x1
0x01
0x001

Example

In this example, exactly one UserOutput is active for each state, except State 3 in which all UserOutputs are active.

Configuration

UserOutputValueAllMask = 0xf

State Definitions

State Output0 Output1 Output2 Output3 UserOutputValueAll
State 0xxx0x1
State 1xxx0x2
State 2xxx0x4
0xf

Using UserOutputs in the Sequencer to Control Physical Camera Outputs

To route a UserOutput to a physical output, the corresponding output line must first be configured appropriately. The following example shows how to connect UserOutput0 to a physical camera output.

Configuration Overview

"UserOutput0 → Logic Gate AND1 → Logic Gate OR1 → Physical Output Line"

The physical output line becomes active whenever the selected User Output is active.

Step 1: Configure the Physical Output Line

"Setting → Base → Camera → GenICam → Digital I/O Control → LineSelector"

  1. Select the desired output line, for example Line0
  2. Then set LineSource = mvLogicGateOR1Output

This configures the physical output line to use the output of LogicGateOR1 as its signal source.

Step 2: Configure the AND Gate

Navigate to:

"Setting → Base → Camera → GenICam → mvLogicGateControl"

Configure:

mvLogicGateANDSource1 = UserOutput0

The AND gate now receives the state of UserOutput0.

Step 3: Configure the OR Gate

Within the same class, configure:

mvLogicGateORSource1 = mvLogicGateAND1Output

The OR gate now forwards the output of AND1.

Using ExposureActive to Trigger a Light Source

When a camera output is used to trigger an external light source, the output is typically required to be active only during image exposure. This can be achieved by adding the ExposureActive signal to the AND gate.

Example Configuration

mvLogicGateANDSource1UserOutput0
mvLogicGateANDSource2ExposureActive
mvLogicGateORSource1mvLogicGateAND1Output
LineSourcemvLogicGateOR1Output

Summary

  • UserOutputValueAll defines the state of all UserOutputs in a single register.
  • UserOutputValueAllMask defines which UserOutputs may be modified.
  • For four User Outputs, a mask value of 0xf allows all outputs to be updated.
  • ImpactControlCenter displays hexadecimal values and omits leading zeros:
    • 0x1 = 0x01
    • 0xF = 0x0F
  • A physical camera output can be controlled by routing a UserOutput through a LogicGate and assigning its output to a LineSource.