1. Home
  2. Docs
  3. LOGO For Excel Support
  4. Write Functions
  5. SETLOGOANAFLAG

SETLOGOANAFLAG

Summary

Set an analog flag value in a Siemens LOGO! module. This function is available via the taskpane as well as directly via the cell “=SETLOGOANAFLAG(…)”


Return Value

The function returns ‘OK’ when the value is successfully written to the LOGO module. The funtion returns a specific error message if the value could not be written to the LOGO, see the error messages for a description of the returned error message.


Arguments

ip – Specifies the ip address of the LOGO module.

flagAddress – Specifies the flag address of the specific flag to write to, must be an integer, the range depends on the used hardware.

value – The value that has to be written to the specific output, must be an integer.


Example