Snapex7.Client.read_area

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

Specs

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

Reads 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).

For more info see pg. 104 form Snap7 docs.