Snapex7.Client.write_area

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

Specs

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

Write a data area from a PLC. The following options are available:

  • :area - (atom) Area Identifier (see @area_types).

  • :db_number - (int) DB number, if area: :DB otherwise is ignored.

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

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

  • :word_len - (atom) Word size (see @word_types).

  • :data - (atom) buffer to write.

For more info see pg. 104 form Snap7 docs.