Welcome, Guest
Username: Password: Remember me

TOPIC: How to send modbus rtu command to device

How to send modbus rtu command to device 3 years 6 months ago #1430

  • davidtsai
  • davidtsai's Avatar
Dear all
I have a device with modbus rtu and hope teslascada 2 can connect to device with modbus rtu and send modbus rtu command to device. I can set service for modbus rtu ,and also create a new tag for my device ,but I don’t know how to write modbus rtu command to device, can anyone know how to do it.
The administrator has disabled public write access.

How to send modbus rtu command to device 3 years 6 months ago #1431

  • fatkhrus
  • fatkhrus's Avatar
  • Offline
  • Administrator
  • Posts: 861
  • Thank you received: 126
  • Karma: -108
Dear Sir,

What do you mean to write modbus rtu command to device? To write value into register you have to use properties of the graphical object that lets you do it.
For example Output value: teslascada.com/HTML/output-value.html for Text/Edit Field object: teslascada.com/HTML/text_editfield.html

Best regards,
Ruslan
The administrator has disabled public write access.

How to send modbus rtu command to device 3 years 6 months ago #1432

  • davidtsai
  • davidtsai's Avatar
Ruslan:

Thank you for your reply, i attach my command in the file, I had a control with slider from 0 to 255 . it means the Brightness of Lighting , I want to control the lighting brightness and Had to send the command to device , when I adjust the value of slider and will send the comman to change the brightness at the same time.
Attachments:
The administrator has disabled public write access.

How to send modbus rtu command to device 3 years 6 months ago #1433

  • fatkhrus
  • fatkhrus's Avatar
  • Offline
  • Administrator
  • Posts: 861
  • Thank you received: 126
  • Karma: -108
Dear Sir,

You have to setup Tag and bind this tag to register of Modbus device. Then you have to setup Control property of the Slider you use in your project. And bind this tag to the Control property: teslascada.com/HTML/control-(for-sliders).html

Best regards,
Ruslan
The administrator has disabled public write access.

How to send modbus rtu command to device 3 years 6 months ago #1434

  • davidtsai
  • davidtsai's Avatar
Ruslan:
Thank for your reply,yes I follow all you mention , but How do i combine the value that slider change with modbus command ,then send the combined command to my device (ID 1)
Attachments:
The administrator has disabled public write access.

How to send modbus rtu command to device 3 years 6 months ago #1435

  • fatkhrus
  • fatkhrus's Avatar
  • Offline
  • Administrator
  • Posts: 861
  • Thank you received: 126
  • Karma: -108
You have to use TeslaSCADA2 Runtime. TeslaSCADA IDE doesn't connect to the real device. IDE is only for simulation purposes.

Best regards,
Ruslan
The administrator has disabled public write access.
Go to top