XY Value

Richard1996 6 лет назад в Готовые скриптовые модули обновлен Dmitry - support (expert) 6 лет назад 12


I got a question is it possible to send a Xvalue or a Yvalue to a driver?

I need this for a colorpicker.

the xyvalue is between 0,10 and 1,0

Is it possible to write a script for that and send it to a driver/

Kind regards,


Ожидает ответа пользователя


Yes, you can send this values to a driver. For example:



var x = IR.GetItem("Page 1").GetItem("Item 1").ValueX;
var y = IR.GetItem("Page 1").GetItem("Item 1").ValueY;
IR.GetDevice("Modbus TCP").Set("Channel 1", x);
IR.GetDevice("Modbus TCP").Set("Channel 1", y);


Also you can read about a work with Color Picker on our wikipedia

What kind of command should there be in Channel 1?

I am using a Helvar TCP driver, for further information.

Ожидает ответа пользователя

In my example Channel 1 - is a name of command from PROJECT DEVICE PANEL.

Ie you must use yours command name.

I understand but there are options in that channel.

If I understood you correctly, you ask the channel settings?

How to work with the driver Helvar you can read here

To find the address of the device you can in Helvar Designer.

For example:

For "Thyristor Dimmer 455" we see this address "@"

In iRidium this will be

Сервис поддержки клиентов работает на платформе UserEcho