output.modbus

Modbus output

type

object

properties

  • address

Modbus value address on the slave.

type

integer

  • endianness

Bytes and Words ordering.

Default value is [“BIG”]

type

string

enum

LITTLE, BIG, LITTLE_BYTE_SWAP, BIG_BYTE_SWAP

default

BIG

  • isTemplateGeneratedByOspComposer

Name of the playbook that generated this file. If present, the file is managed by the Composer and may be overwritten on regeneration. Used for selective clean. Do not edit or set manually.

type

string

  • length

Number of Modbus table unit occupied by this value.

type

integer

  • modbusType

Type of Modbus table on which this value is stored.

Default value is [“COIL”]

type

string

enum

COIL, HOLDING_REGISTER

default

COIL

  • slaveId

Reference to the Modbus slave on which this value is read.

type

string

  • subRange

When provided, allows to read only a sub-range of a Value

ModbusSubRange

  • templateId

The id of the template to use for this file

type

string

  • templateVariables

The variables and their values to be replaced from the template

type

object

additionalProperties

  • valueType

Type in which the read Value should be interpreted as

Default value is [“BOOLEAN”]

type

string

enum

BOOLEAN, INT8, INT16, INT32, INT64, FLOAT, DOUBLE, UINT8, UINT16, UINT32, TEXT

default

BOOLEAN

  • variablesFiles

The variables files to use to replace the variables. The first file of the list will take precedence over the following one. Template variables take precedence over the contents of the files.

type

array

items

type

string

additionalProperties

False

allOf

if

properties

  • modbusType

enum

COIL, DISCRETE_INPUT

then

properties

  • valueType

enum

BOOLEAN

if

properties

  • valueType

enum

TEXT

else

allOf

not

if

properties

  • valueType

enum

TEXT, DOUBLE, BOOLEAN, FLOAT, INT8, INT16, INT32, INT64, UINT8, UINT32

then

allOf

not

ModbusSubRange

type

object

properties

  • mask

Binary mask used to select the bit(s) read

Default value is [1]

type

integer

default

1

  • offset

Used to discard bit(s) to read

Default value is [0]

type

integer

default

0

additionalProperties

False