画像取得とI/O制御#
input lineを使用すると、カメラを制御できます。例えば、特定の時点で画像キャプチャーをトリガーできます。output lineを使用すると、例えば、画像キャプチャーの進行中などに、カメラに関する情報を取得できます。
光結合I/Oライン#
blaze cameras provide one opto-coupled input line and one opto-coupled output line:
Line0is preconfigured as the input line of the camera.Line1is preconfigured as the output line of the camera.
I/Oラインのラインモードは変更できません。
Opto-Coupled Input Line#
次の図では、光結合入力ラインを使用した一般的な回路を示します。
入力ラインはピン6に接続されます。ピン5は接地されます。
Opto-Coupled Output Line#
次の図では、光結合出力ラインを使用した一般的な回路を示します。
出力ラインはピン4に接続されます。ピン5は接地されます。
電気的要件#
入力ライン#
| 電圧 | 説明 |
|---|---|
| 30 VDC | 絶対最大電圧。 この電圧を超えてはなりません。カメラが破損し、保証が無効になる場合があります。 |
| DC 0~24V | 安全な動作範囲 |
| 0–1.0 VDC | 論理0 |
| >2.2 VDC | 論理1 |
- 最小電流:5mA
- 標準電流:5-15mA
応答時間#
- Typical response time (trigger to FrameActive): <300 µs
- 最大応答時間(FrameActiveへのトリガー):500µs
信号のデバウンスは実装されていません。したがって、入力ラインの電気信号がクリーンであることを確認する必要があります(例えば、PLC出力を使用するか、ローパスフィルターを適用します)。
出力ライン#
| 電圧 | 説明 |
|---|---|
| 30 VDC | 絶対最大電圧 |
| DC 3.3~24V | 安全な動作範囲 |
- 最大電流:50mA
- Leakage current: <60 µA
I/Oケーブル#
BaslerではPower-I/OケーブルM12、M、8P/Openの使用をお勧めしています。ケーブルのドキュメントには、I/Oラインのピン配置と色分けが含まれています。
機能と構成#
イメージ DigitalIOControl feature category contains various features for configuring and monitoring I/O line operation.
Line Selector#
The Line Selector feature allows you to select the I/O line that you want to configure. To select a line, set the LineSelector parameter to the desired I/O line, e.g., Line1.
Line Status#
I/Oラインのステータスを確認するには、次の手順に従います。
- パラメーターを
LineSelectorparameter toLine0for the input line orLine1for the output line. - Get the value of the
LineStatusparameter.
A value of false (0) means that the line status was low at the time of polling. A value of true (1) means that the line status was high at the time of polling.
Line Logic#
I/Oラインのロジックを決定するには、次の手順に従います。
- パラメーターを
LineSelectorparameter toLine0for the input line orLine1for the output line. - Get the value of the
LineLogicparameter.
このパラメーターは読み取り専用です。
Line Source(出力ラインのみ)#
The output line Line1 can be configured to provide different signals via the LineSource parameter. This allows you to monitor the status of the camera or to control external devices.
ラインソースを設定するには:
- パラメーターを
LineSelectorparameter toLine1. - パラメーターを
LineSourceパラメーターを次のいずれかの値に設定します。Off: The line is always low.UserOutput0: The line is set to the value of theUserOutputValueparameter ofUserOutput0.FrameActive: The signal is high while the camera is acquiring all the subframes needed for a depth map.FrameTriggerWait: The signal is high when the camera is ready to receive trigger signals of the corresponding trigger type.
You can use the FrameActive signal to monitor whether the camera is currently exposing. The signal goes high when image acquisition of the first subframe starts and goes low when acquisition of the last subframe ends. This also allows you to use the FrameActive signal to synchronize multiple cameras and external devices.
In addition, you can use the FrameTriggerWait signal to find the right moment for triggering your flash if you're using one.
The following drawing illustrates the timing.
例: If an object on a conveyor belt is moved into the camera's field of view for inspection, the conveyor belt should not move while the FrameActive signal is high to avoid motion artifacts.
マルチカメラ操作の詳細と代替方法については、「複数のカメラの操作」を参照してください。
Line Inverter#
イメージ LineInverter parameter inverts the electrical signal level of an I/O line, i.e., its 回線状況 from high to low or vice versa.
ラインインバータを有効にするには:
- パラメーターを
LineSelectorparameter to the desired I/O line. - パラメーターを
LineInverterparameter totrueto invert the electrical signal level of the I/O line selected or tofalseto disable inversion.
例: If the input line Line0 is configured as a trigger input source, inverting the signal level means that the trigger will come at the falling edge of the trigger signal instead of on the rising edge.
For the output line Line1, the level of the selected output signal is inverted.
User Output#
イメージ UserOutput parameter allows you to manually control the status of the output line. Only a single user output is available.
ユーザー出力ステータスを設定するには:
- パラメーターを
LineSelectorparameter toLine1. - パラメーターを
LineSourceparameter toUserOutput0. - パラメーターを
UserOutputSelectorparameter toUserOutput0. - パラメーターを
UserOutputValueパラメーターを目的の値に設定するには:true: Line status is high (1).false: Line status is low (0).
Changes of the UserOutputValue parameter will be visible immediately on the output line.
フリーランとトリガー操作#
カメラはfree runおよびtriggered modeで操作できます。
free runでは、カメラは、設定されたフレームレート(デフォルト値または[AcquisitionFrameRate]パラメーターで指定された値)に従って内部的にトリガーされます。
[free run]モード中は、Precision Time ProtocolおよびSynchronous Free Runの機能を使用して、複数のカメラのトリガーを同期できます。
In triggered mode, an external trigger source is used to trigger the camera, e.g., via software trigger or via hardware trigger (using input line Line0).
The trigger is always a FrameTrigger, i.e., it triggers the acquisition of a single frame in the current operating mode.
フリーラン画像取得#
フリーランの画像取得を有効にするには:
- パラメーターを
TriggerSelectorparameter toFrameStart. - パラメーターを
TriggerModeparameter toOff.
トリガー画像取得#
情報
New trigger signals are ignored until the camera is ready for triggering again. The minimum time between two trigger signals depends on the operating mode of the camera (i.e., the maximum allowed frame rate), the characteristics of the I/O signal, and the processing time required for processing the I/O signal. You can use the FrameTriggerWait signal to find out when the camera is ready to receive trigger signals.
When the camera detects an overtrigger, the LastError parameter will show error code 1.
ヒント
When using triggered image acquisition, you can enable Trigger Thermal Drift Stabilization to maintain measurement accuracy. This feature keeps the camera continuously acquiring images in the background and so prevents temperature fluctuations between trigger events ensuring consistent, accurate results.
ソフトウェアトリガー#
ソフトウェアトリガーを介した画像取得を有効にするには:
- パラメーターを
TriggerSelectorparameter toFrameStart. - パラメーターを
TriggerSourceparameter toSoftware. - パラメーターを
TriggerModeparameter toOn. - Trigger a single frame with
TriggerSoftware.
A single depth map is now grabbed, processed, and delivered to the client software.
ソフトウェアが画像を受信するようにトリガーする前に、取得が開始されていることを確認してください。
ハードウェアトリガー#
ハードウェアトリガーを介した画像取得を有効にするには:
- パラメーターを
TriggerSelectorparameter toFrameStart. - パラメーターを
TriggerSourceparameter toLine0. - パラメーターを
TriggerModeparameter toOn.
Images are triggered on the rising edge ofLine0(if theLineInverterparameter is set tofalse) or the falling edge (if theLineInverterparameter istrue). The image is sent to the host computer after it has been grabbed and processed by the camera.
ハードウェアが画像の受信をトリガーする前に、取得が開始されていることを確認してください。