Software > Software additions > Introduction to the DeltaV Excel Add-in

DVWrite Syntax

Syntax

DVWrite(parameter path, value to write, status type)

Parameter Path - is the parameter property whose value you want to modify.

A parameter path follows the form:

module/[function block]/parameter.field.

For example, FIC-101/ADD1/IN1.ST represents the status (ST) of the IN1 parameter in the ADD1 block of the FIC-101 module.

The function can use the parameter path or a cell reference of a cell containing the path. If you enable the Paste parameter path to the left of result option in the Configure Write Function dialog, the resulting formula references the cell where the parameter path was pasted.

Value to Write - is the value you want to write to the parameter property, or a cell reference containing the value you want to write. If you specify a cell reference, and the cell is empty, the DVWrite function will not complete its execution. The software displays an error message indicating that the referenced cell has no write value. Enter the value to be written in the appropriate cell and re-execute the write.

Specifying a cell reference for the write value is a convenient way to readily see the value that is being written and to easily change the value.

Status Type - indicates whether you want the call status returned as a word or a number.