UNION_BACNET_WRITE_FILE_RESULT (UNION)

TYPE UNION_BACNET_WRITE_FILE_RESULT : UNION

Specifies the result returned by the AtomicWriteFile service.

The BACNET_WRITE_FILE_RESULT data type indicates that the service was successfully executed. This data structure contains a File Access Type field and either a Start Position or Start Record Number field which indicates the number of octets or records from the beginning of the file where the data was actually written. A start position or start record of zero indicates the first record/octet of the file.

InOut:

Name

Type

Comment

startPosition

IEC_BACNET_SIGNED

The ‘Stream Access’ parameter shall indicate that stream-oriented file access was requested. Stream access includes the ‘File Start Position’ parameter. The ‘File Start Position’ parameter, of type INTEGER, represents the number of octets from the beginning of the file where the data were actually written. A ‘File Start Position’ of 0 is the first octet of the file.

startRecord

IEC_BACNET_SIGNED

The ‘Record Access’ parameter shall indicate that record-oriented file access was requested. Record access includes the ‘File Start Record’ parameter. The ‘File Start Record’ parameter, of type INTEGER, represents the number of records from the beginning of the file where the data were actually written. A ‘File Start Record’ of 0 is the first record of the file.