Welcome, Guest
Username: Password: Remember me

TOPIC: selectable enable object

selectable enable object 1 year 6 months ago #2368

  • Richter
  • Richter's Avatar
  • Offline
  • Junior Member
  • Posts: 25
  • Karma: 0
Hello,

I am solving one problem.
I have one variable tag 32bit int. Its value is the result of several calculations and changes regularly. It's OK.

I need to store its value in another tag, but for example once a minute.
I used the SELECTABLE ENABLE object. a tag that I want to read is connected to input 2. Input 1 receives a pulse of 1 second every minute.

But after the first pulse, the value from input 2 to the output is transferred permanently and changes together with the value at input 2, even if there is log 0 at input 1

I don't understand this behavior and according to the manual it shouldn't be like that.

Can you advise?

Pavel
The administrator has disabled public write access.

selectable enable object 1 year 6 months ago #2369

  • tehlh
  • tehlh's Avatar
  • Offline
  • New Member
  • Posts: 6
  • Karma: 0
Try to use AND gate instead of EQU. Maybe remove the DT gate also
The administrator has disabled public write access.

selectable enable object 1 year 6 months ago #2370

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

I didn't notice this problem. I've created a project in the last version (see attached files). Value from "Tag" transfer to value "Tag1" every minute and it's not changed between this period.
Maybe the reason of your changes is intermediate values like "Output selkem". When the value of "Output selkem" is change the output value is also changed.
I've tested only in IDE.

Best regards,
Ruslan



File Attachment:

File Name: fbdexample.zip
File Size:3 KB
Last Edit: 1 year 6 months ago by fatkhrus.
The administrator has disabled public write access.
The following user(s) said Thank You: Richter

selectable enable object 1 year 6 months ago #2371

  • Richter
  • Richter's Avatar
  • Offline
  • Junior Member
  • Posts: 25
  • Karma: 0
Hello,

Thanks. I didn't realize this.
I modified it and it works. Thanks a lot.

Pavel
The administrator has disabled public write access.
Go to top