FB_CreateDirRecurse

FB_CreateDirRecurse 1:

Implements the FB_CreateDir function and calls it several times until all components of the transferred path have been created.

Syntax:

FUNCTION_BLOCK FB_CreateDirRecurse EXTENDS FB_Base

FB_CreateDirRecurse 2: Properties

Name

Type

Access

Initial value

Description

Name

STRING

Get, Set

<SourceName>

Specifies the name of the class instance.

FB_CreateDirRecurse

Busy

BOOL

Get

FALSE

The function is currently being executed.

Error

BOOL

Get

FALSE

An error has occurred.

ErrorId

UDINT

Get

FALSE

ADS error code of the error that has occurred.

Execute

BOOL

Get, Set

FALSE

Starts the execution of the function.

NetId

AMSNETID

Get, Set

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

AMS (ADS) network ID.

NetIdString

T_AmsNetID

Get, Set

‘0.0.0.0.0.0‘

AMS (ADS) network ID.

PathName

T_MaxString

Get, Set

‘‘

Path to be created.

Timeout

LREAL

Get, Set

0.0 [s]

Time-out period of the system response of this function.

FB_Base

BaseState

E_BaseState

Get

eNotHandled

Initialization state of the class instance.

Error

BOOL

Get

FALSE

Class is in an error state.

ResultMessage

I_AppMessage

Get

-

Access to the class-internal EventLogger.

[PROTECTED] _Name

STRING

Get

<SourceName>

.Name without leading 'fb'.

FB_CreateDirRecurse 3: Methods

Name

Description

Reset()

Resets the error state of the class.

FB_Base

SetHMI(ipBase)

General assignment method for an FB_BaseHmi extending class.

Notice This method always fails in the FB_Base implementation. Overwriting is therefore absolutely necessary.

[PROTECTED] _QueryNamespace()

Extracts the first part of the instance path as an object namespace.

[PROTECTED] _QueryObjectName()

Extracts the last part of the instance path as the object name.

FB_CreateDirRecurse 4: Cycle methods

Name

Description

Cyclic()

Cycle method

FB_CreateDirRecurse 5: Interfaces

Type

Description

I_Base

Standard interface on FB_Base.

I_CreateDirRecurse

Standard interfaces on FB_CreateDirRecurse.

I_BaseEmpty

For extension without standard interface.

I_BaseDev

Covers all methods and properties of the base class.

Requirements

Development environment

Target platform

PLC libraries to include

TwinCAT >= v3.1.4024.54 (recommended)
TwinCAT >= v3.1.4024.42 (required)

PC or CX (x64, x86)

Tc3_PlasticBaseApplication (>= v3.12.7.0)