Skip to content

Latest commit

 

History

History
119 lines (66 loc) · 4.57 KB

File metadata and controls

119 lines (66 loc) · 4.57 KB

Axo_IV3

Keyence IV3 fixed vision sensor

Generated documentation for the Axo_IV3 component.

Declare component

[!code-pascal]

Declare initialization variables

Most of the initialization variables come from the I/O system. The example below is for demonstration purposes.

[!code-pascal]

Initialize & Run

[!code-pascal]

[!INCLUDE IntializeAndRun]

Use

[!code-pascal]

Source

View the library source at Axo_IV3.st.

Live view

The Axo_IV3 .NET twin exposes a reverse-proxy helper (ConfigureProxy) that surfaces the device's built-in HTTP live view inside the application's web UI. Two pragmas on the ST component instance drive the wiring:

Pragma Purpose
{#ix-set:DeviceIpAddress = "..."} IP address of the Keyence IV3 device that the server will reach.
{#ix-set:Proxy = "..."} Proxy identifier used to mount the reverse-proxy endpoint (/{Proxy}/iv3-wm-i.html).

The showcase component declaration illustrates the DeviceIpAddress pragma:

[!code-pascal]

The reverse-proxy middleware must be wired in the Blazor host (Program.cs) before the Blazor endpoint handling so that image requests are routed through the server and CORS is not required. IHttpClientFactory must also be registered.

Register IHttpClientFactory

[!code-csharp]

Wire the reverse-proxy middleware

[!code-csharp]

Source

View the .NET twin source at AXOpen.Components.Keyence.Vision.

Axo_IV3 renders via the generic AxoComponent pattern using RenderableContentControl — the runtime inspects the component type and selects the matching rendering based on the Presentation attribute. A dedicated Axo_IV3View is also available when richer visualization (including the reverse-proxied live view) is required.

Status display

[!code-html]

Command control

[!code-html]

Dedicated Axo_IV3 status view

[!code-html]

Dedicated Axo_IV3 command view

[!code-html]

Type-agnostic status view

[!code-html]

Type-agnostic command view

[!code-html]

Available Presentation values: Status-Display, Command-Control, Service-Control, Spot, Compact.

Source

View the Blazor package at AXOpen.Components.Keyence.Vision.blazor.

Device template

PROFINET hardware template at showcase/app/hwc/library_templates/Keyence_IV3/.

Device instantiation

[!code-yaml]

IO system wiring

[!code-yaml]