УкраїнськаEnglishmRussian
Вхід/Новий
У темі немає нових постів

Input the same state that output


Автор Повідомлення
Повідомлення створено: 30. 01. 2012 [18:43]
OPMOTOR
OP MOTORS
Автор теми
Зареєстрован(а) с: 21.01.2011
Повідомлення: 13
Dear friends,

I little question, I create a so basic template to , on – off a indicator by the logic level:

if (bot == false) botl=false;
else
botl=true;

bot ( boolean, input, full access, public constant )
botl ( boolean, output, read only, constant )

when I check the parameter that use this template at logic level, and “click” the bot ( boton), it's supposed that the botl ( botonl) have the same state !,

results expected
if bot “on”------- then ( botl “ on”)
if bot “off”------- then ( botl “ off”)
but that not happen!, ( see image 1 & 2).
results obtained
if bot “on”------- then ( botl “ off”)
if bot “off”------- then ( botl “ on”)

do you have any idea about what I must to set, to obtain “real time” equality between the “bot” and “botl”on the parameter at logic level?.

I know it is so basic, but it don't work!. What i am doing wrong?.
Вкладений файл

images 1&2.png (Тип файлу: image/png, Розмір: 70.19 кілобайтів) — 2270 завантажень
Повідомлення створено: 30. 01. 2012 [19:43]
roman
Roman Savochenko
Moderator
Contributor
Developer
Зареєстрован(а) с: 12.12.2007
Повідомлення: 3750
"OPMOTOR" wrote:

bot ( boolean, input, full access, public constant )

Why do you use "public constant" and what into "Template config" tab about that?

"OPMOTOR" wrote:

botl ( boolean, output, read only, constant )

I do not see that attributes on your image!

"OPMOTOR" wrote:

do you have any idea about what I must to set, to obtain “real time” equality between the “bot” and “botl”on the parameter at logic level?.

I know it is so basic, but it don't work!. What i am doing wrong?.

I have not any like problems. Write template correct and see examples into DemoDB!

Learn, learn and learn better than work, work and work.



10300