DirOpen (FB; Prefix fildop)

FUNCTION_BLOCK DirOpen EXTENDS CBM.ETrig

This function block opens a directory. The entries (files and sub-directories) of which should be read with the help of the function block ”FILE.DirList”. The return value is a handle. There may be restrictions concerning the specification of the directory name, e.g. only capital letters allowed, for different targets. The function ”FILE.GetProperty” shows these restrictions.

InOut:

Scope

Name

Type

Comment

Input

sDirName

CAA.FILENAME

Directory name, absolute or relative path specification

Output

eError

ERROR

Local library error ID (0: no error; 5101: time out)

hDir

CAA.HANDLE

Directory handle