通过CEP操作设置Modbus寄存器

时间:2019-05-15 10:55:04

标签: modbus complex-event-processing cumulocity

我想设置Modbus继电器的保持寄存器来切换设备。

我知道必须设置的参数,寄存器和值,但是CEP操作不起作用。

我尝试了各种指示对象的方法。

  select
    "PENDING" as status,
    9716636 as deviceId,
    {
      "deviceName", "Modbus Relais",
      "description", "Relais-Status auf CLOSE setzen",
      "c8y_setRegister.input", "false",  
      "c8y_setRegister.address", "1", 
      "c8y_setRegister.startBit", "0",
      "c8y_setRegister.noBits", "16",
      "c8y_setRegister.ipAddress", "",
      "c8y_setRegister.value", "256",
      "c8y_setRegister.register", "2"

    } as fragments
  from MeasurementCreated e
  where getNumber(e, "c8y_Temperaturecy.T.value") > 2

但未设置寄存器

1 个答案:

答案 0 :(得分:0)

由我自己解决:c8y_SetRegister-> s必须为大写