PLC configuration

The PLC must write its data to the Tyness memory using a specific format and at a specific address in order for them to be uploaded to EwattchCloud.

  • The data must be written starting at address 0 of the Tyness.
  • The maximum number of 16-bits words which can be written to the Tyness is 20.
  • The PLC must use Modbus command code 6 or 16 to write its data to the Tyness.
  • The Format of the Modbus Table must conform to the description below.

Modbus table format

The Modbus table must be composed of a succession of data blocks. Each block contains a data descriptor and a succession of data of the same type (Example: 4 temperatures).

The data descriptor indicates:

  • data type and encoding of the data in the block.
  • how many data are contained in the data block. A value of 0 means 1 data.
  • the id number of the first data in the block. Id numbers allow to differentiate between values of the same type. Id 0 refer to the first data.

Here is the list of currently available data types:

Exemple of a modbus table uploading 4 temperatures, 1 energy, and 2 percentage to EwattchCloud. This table must be written at address 0 of the Tyness.