FB_GseSvApduClass

FB_GseSvApduClass 1:

Object instances of FB_GseSvApduClass implement functionalities of an SV-APDU.

Namespace: Tc3_Gse
Library: Tc3_Gse (Tc3_Gse.compiled-library)

Inheritance hierarchy

FB_CltsByteOrderConverterClass -> FB_GseByteOrderConverterClass -> FB_GseSvApduClass


FUNCTION_BLOCK FB_GseSvApduClass EXTENDS FB_GseByteOrderConverterClass IMPLEMENTS I_GseSvApduClass, I_GseSvPublisherEventSink, I_GseSvSubscriberEventSink

FB_GseSvApduClass 2: Interfaces

Type

Description

I_GseSvApduClass

Interface of the SV-APDU implementation.

I_GseSvPublisherEventSink

Interface of the SV publisher event routine.

I_GseSvSubscriberEventSink

Interface of the SV subscriber event routine.

FB_GseSvApduClass 3: Methods

Name

Description

AddAsduToContainer

Adds an ASDU object to the container of ASDU objects.

Equals

Compares itself and another object for equality.

FB_GseSvApduClass 4: Methods of event handling (callback methods)

Name

Description

OnSvPublisherHostToNet

A custom event handling routine that converts SV Publisher data from host-byte order to network-byte order for transmission.

OnSvSubscriberNetToHost

A user-defined event handling routine that converts the received SV subscriber data from network byte order to host byte order.

FB_GseSvApduClass 5: Properties

Name

Type

Access

Definition location

Initial value

Description

APPID

WORD

Get

Local

0

APPID in the GSE header of the SV message.

bSimulation

BOOL

Get, Set

-//-

FALSE

Simulation bit in the Ethernet frame header of the SV message. If the “bSimulation” adapter setting is set to FALSE, the simulation bit can be set individually for each APDU that is sent.

srcAddr

ETHERNET_ADDRESS

Get

-//-

[0,0,0,0,0,0]

Source address in the Ethernet frame header of the SV message.

ipUpdate

I_GseSvUpdateEventSink

Set

-//-

0

Used only by SV subscribers. Interface pointer of an object with a user-defined implementation of the event handling routine: OnSvUpdate.