STRUCT_BACNET_WRITE_FILE_DATA_STREAM (STRUCT)

TYPE STRUCT_BACNET_WRITE_FILE_DATA_STREAM : STRUCT

Specifies the structure to write data to file objects.

The BACNET_WRITE_FILE_DATA data type holds an octet string to copy into the file. In the Stream case there are a Start Position parameter that indicates a start octet number from the beginning of the file at which the data shall start being written, and an Octet String field that is to be written to the file. In the Record case there are a Start Record Number field, a Record Count field that indicates a number of records to copy, and an Octet String field.

InOut:

Name

Type

Comment

startPosition

IEC_BACNET_SIGNED

This parameter, of type INTEGER, represents the number of octets from the beginning of the file at which the data shall start being written. A ‘File Start Position’ of 0 is the first octet of the file. A ‘File Start Position’ of -1 shall indicate the end of the current file, i.e., an append to file operation.

streamData

IEC_BACNET_OCTET_STRING

This parameter consists of an OCTET STRING that is to be written to the file.