Supported platforms: CODESYS 2.3

 

ISOBUS_VT_MoveToAnotherVT (FUN)

Description

This function is used to start "Move to another VT" functionality described in ISO 11783-6:2014 chapter 4.6.6.3.

Function can be used to move to next or previous VT or a specified instance number.

 

Function will set the new VT server as preferred instance using function ISOBUS_VT_SetPreferredInstance.

 

Returns ISOBUS_ERR_SUCCESS if operation is successfully started.

 

Limitations

Requires ISOBUS VT 1.4.7 or later.

 

Inputs

Input variable name

Data type

Description

i_pVTClient

POINTER TO ISOBUSVtClient

Pointer to configured VT client

i_Type

ISOBUS_VT_MoveToAnotherType

Type of move operation (next, previous, instance number)

i_PreferredVT

BYTE

Preferred VT function instance number if type = ISOBUS_VT_MOVE_TO_INST

i_MaxWaitTime

TIME

Maximum time to wait for preferred VT to be found

Output

Data type

Description

ISOBUS_ErrorCodes

Returns ISOBUS_ERR_SUCCESS if operation is successfully started

 

Example code

For implementation guide see How to set VT preferred instance and move to another VT

 

 

Source file topic100735.htm

Last updated 13-Jun-2024