Commands and Signals (I/O Camera)
To ensure a correct configuration of the input and output channels, the information about the available signals and commands should also be considered. The assignment of the input and output channels to the respective commands and signals is crucial for the correct usage of MERLIC in process integration mode. For more information on the configuration, see Configuring I/O Cameras.
Overview of Supported Commands
Depending on the type of device or plug-in used for the process integration, different restrictions might apply. The following tables gives a short overview which commands are supported for the different types of plug-ins.
|
Device |
Start continuous execution |
Start single execution |
Change recipe |
Get MVApp results |
Check MERLIC state |
Get image results |
|---|---|---|---|---|---|---|
|
Hilscher card |
✔ |
✔ |
✔ |
✔ |
✔ |
✘ |
|
Digital I/O device |
✘ |
✔ |
✔ |
✔ (Only Boolean values) |
✔ (Only "Ready" and "Error") |
✘ |
|
Camera with GenICam compliant digital I/O channels |
✘ |
✔ |
✘ |
✔ (Only Boolean values) |
✔ (Only "Ready" and "Error") |
✘ |
|
Communication plug-ins |
✔ |
✔ |
✔ |
✔ |
✔ |
(✔) |
Commands for I/O Cameras
For camera devices with digital I/O channels, MERLIC provides a command to trigger a single execution of an MVApp. To start the execution, the corresponding command must be triggered via the associated digital input channel.
|
Command |
Description |
|---|---|
|
StartSingleJob |
Set the respective digital input to 1 to start a single execution of MERLIC. If "StartSingleJob" is set to 1 permanently, MERLIC is executed subsequently until the last execution is finished. |
Signals for I/O Cameras
The following table lists the available signals for the communication between MERLIC and the
|
Signal |
Description |
Setting |
|---|---|---|
|
Ready |
The value of this signal indicates if MERLIC is ready for the execution. If it is set to 1, a recipe has been loaded and MERLIC is ready for the execution. |
Mandatory |
|
Error |
The value of this signal indicates if an error occurred. If the value 1 is returned, MERLIC is in the "Error" state and a restart of MERLIC is required. An error occurs in the following cases:
|
Mandatory |
|
Result0 ... Resultn |
These digital output signals can be used to transmit an MVApp result to the |
Optional |
|
ResultState |
The value of this signal indicates the state of the queried result data. If it is set to 1, the processing was carried out correctly and the queried results are up-to-date. If it is set to 0, the processing failed or was aborted. In this case, no results might be available or the existing result values might not be up-to-date, for example, the values might be outdated and from a previous execution.
|
Optional |