|
Balluff - BVS CA-SF Technical Documentation
|
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.
The mask and value always work together.
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.
To determine the required UserOutputValueAll value:
The following table lists all possible combinations for four UserOutputs.
| Output0 | Output1 | Output2 | Output3 | Integer Value | Hexidecimal Value |
| x | x | x | x | 0 | 0x0 |
| √ | x | x | x | 1 | 0x1 |
| x | √ | x | x | 2 | 0x2 |
| √ | √ | x | x | 3 | 0x3 |
| x | x | √ | x | 4 | 0x4 |
| √ | x | √ | x | 5 | 0x5 |
| x | √ | √ | x | 6 | 0x6 |
| √ | √ | √ | x | 7 | 0x7 |
| x | x | x | √ | 8 | 0x8 |
| x | x | x | √ | 8 | 0x8 |
| √ | x | x | √ | 9 | 0x9 |
| x | √ | x | √ | 10 | 0x10 |
| √ | √ | x | √ | 11 | 0x11 |
| x | x | √ | √ | 12 | 0x12 |
| √ | x | √ | √ | 13 | 0x13 |
| x | √ | √ | √ | 14 | 0x14 |
| √ | √ | √ | √ | 15 | 0x15 |
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:
allows all UserOutputs to be updated.
ImpactControlCenter displays register values in hexadecimal notation. Leading zeros are omitted automatically.
The following values are identical:
In this example, exactly one UserOutput is active for each state, except State 3 in which all UserOutputs are active.
| State | Output0 | Output1 | Output2 | Output3 | UserOutputValueAll |
| State 0 | √ | x | x | x | 0x1 |
| State 1 | x | √ | x | x | 0x2 |
| State 2 | x | x | √ | x | 0x4 |
| √ | √ | √ | √ | 0xf |
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.
"UserOutput0 → Logic Gate AND1 → Logic Gate OR1 → Physical Output Line"
The physical output line becomes active whenever the selected User Output is active.
"Setting → Base → Camera → GenICam → Digital I/O Control → LineSelector"
Line0 LineSource = mvLogicGateOR1Output This configures the physical output line to use the output of LogicGateOR1 as its signal source.
Navigate to:
"Setting → Base → Camera → GenICam → mvLogicGateControl"
Configure:
The AND gate now receives the state of UserOutput0.
Within the same class, configure:
The OR gate now forwards the output of AND1.
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.
| mvLogicGateANDSource1 | UserOutput0 |
| mvLogicGateANDSource2 | ExposureActive |
| mvLogicGateORSource1 | mvLogicGateAND1Output |
| LineSource | mvLogicGateOR1Output |