Snapex7.Client.tm_write

You're seeing just the function tm_write, go back to Snapex7.Client module for more information.

Specs

tm_write(GenServer.server(), [data_io_opt()]) ::
  :ok | {:error, map()} | {:error, :einval}

This is a lean function of write_area/2 to write PLC Timers. It simply internally calls read_area/2 with

  • area: :TM
  • word_len: :timer

The following options are available:

  • :start - (int) An offset to start.

  • :amount - (int) Amount of words (bytes) to read/write.

  • :data - (bitstring) buffer to write.

For more info see pg. 104 form Snap7 docs.