Supported platforms: CODESYS 2.3

 

ISOBUSVtClient (FB)

Description

This function block is the main block for the ISOBUS VT library. It is used to handle the connection and object pool download to the VT.

 

Library version 1.4.9 or later supports ISOBUS AUX-N Functions. Due to AUX-N support VT client needs to handle up to two VT client-server connections at same time.

If UI is connected to primary VT, then only primary VT connection is needed

If UI is connected to secondary VT, then two VT connections are used (AUX to primary, when AUX objects are used by object pool)

The AUX-N communication is handled automatically by library. See also How to use AUX Functions and ISOBUS_AUX_FunctionHandler (FB).

 

Limitations

VT library version 1.4.9 or later is required for ISOBUS AUX-N support. See also ISOBUS_AUX_FunctionHandler (FB) and How to use AUX Functions

 

 

Inputs

Input variable name

Data type

Range

Description

i_Enable

BOOL

TRUE/FALSE

Function block instance code is run only if this flag is set TRUE

i_ClientConfiguration

ISOBUS_VT_Configuration

N/A

Configuration data for VT client

i_pJ1939

POINTER TO J1939

≠ 0

Pointer to J1939 instance which is used to handle transport

i_AddressClaimServer

POINTER TO ACL_AddressClaimServer

≠ 0

Pointer address claiming server instance

Outputs

Output variable name

Data type

Description

o_EcuStatus

ISOBUS_VtClientInformation

Status of the implement ECU

o_VtStatus

ISOBUS_VtInformation

Structure which contains information about VT. This information is from address claiming and reading of the metrics. UI always uses this connection.

o_VtMsgData

ISOBUSVTClientMsgHandler

Function block instance which handles receiving of the messages from the VT. UI always uses this data.

o_VtStatusAux

ISOBUS_VtInformation

Primary VT status for AUX-N configuration when UI is loaded to secondary terminal

o_VtMsgDataAux

ISOBUSVTClientMsgHandler

Primary VT data for AUX-N configuration when UI is loaded to secondary terminal

o_AvailableVTs

ISOBUS_VT_AvailableVTs

VT servers found in address claiming

o_LicenseOk

BOOL

Defines status of the license. If flag is FALSE ISOBUS VT license is not enabled for this unit.

o_Error

ISOBUS_ErrorCodes

Latest error

 

Example code

Function block is used by code template.

 

See also

 

 

Source file topic000968.htm

Last updated 19-Dec-2024