Dot field .Reference

Вопросы, не попадающие в другие разделы.

Dot field .Reference

Сообщение Yougi » Вт авг 22, 2017 12:32 pm

Встретил в скрипте такой вот дотфилд
Код: Выделить всё
InTouch:Sys_ValveSt.Reference = strStatusReference

Не смог найти в хелпе, что оно значит.
Sys_ValveSt - тег типа ИНТ, strStatusReference - локальная переменная скрипта, тип стринг.

Что бы это такое могло быть?
Yougi
 
Сообщения: 14
Зарегистрирован: Пн июн 26, 2017 1:39 am

Re: Dot field .Reference

Сообщение Генератор зла » Вт авг 22, 2017 1:43 pm

.Reference Dotfield
You can implement Dynamic Reference Addressing by assigning a valid reference to the .Reference dotfield of an I/O tag. You can use the .Reference dotfield to dynamically change the data source by modifying the characteristics of the Access Name assigned to the I/O tag.

The syntax of the .Reference dotfield is:

tag.Reference=“accessname.item”
Changes the Access Name and item assigned to a tag.

tag.Reference=“[.]item”
Changes the item assigned to an I/O tag.

tag.Reference=“accessname.”
Changes the Access Name of an I/O tag.

tag.Reference=“”
Deactivates the I/O tag.

Each I/O type tag has a .ReferenceComplete dotfield. The value of this discrete dotfield indicates if the item requested in the .Reference dotfield is reflected in the .Value dotfield.

The .ReferenceComplete field is set to false (0) when the application starts in WindowViewer. When it is confirmed that the .Value dotfield is being updated by the source specified in the .Reference dotfield, the .ReferenceComplete value is set to true (1). If the .Reference dotfield is changed, the .ReferenceComplete dotfield is automatically set to false (0), and then updated to true (1) when the new value is updated.

Видимо, в переменной strStatusReference передаётся имя Item для динамической адресации целочисленной переменной Sys_ValveSt
Vita est dolor.
Генератор зла
 
Сообщения: 2860
Зарегистрирован: Вс янв 23, 2011 5:08 pm

Re: Dot field .Reference

Сообщение Yougi » Вт авг 22, 2017 1:56 pm

Спасибо, я что-то типа такого и представлял, но уверенности не было...
А есть ли в природе какой-либо документ, описывающий оные dot fields, чтобы всё в одном месте было?
Всё как-то разбросано по разным разделам, трудно ориентироваться.
Yougi
 
Сообщения: 14
Зарегистрирован: Пн июн 26, 2017 1:39 am

Re: Dot field .Reference

Сообщение Генератор зла » Вт авг 22, 2017 2:21 pm

InTouch - Help - Index
Всё, что начинается с .
Vita est dolor.
Генератор зла
 
Сообщения: 2860
Зарегистрирован: Вс янв 23, 2011 5:08 pm


Вернуться в Другое

Кто сейчас на конференции

Сейчас этот форум просматривают: нет зарегистрированных пользователей и гости: 4