Welcome, Guest
Username: Password: Remember me
  • Page:
  • 1
  • 2

TOPIC: several questions

several questions 10 months 2 weeks ago #896

  • fatkhrus
  • fatkhrus's Avatar
  • Offline
  • Administrator
  • Posts: 410
  • Thank you received: 51
  • Karma: -112
Hello,

I don't see in your image addresses from which you want to get data. I think you don't have to change SlaveID (the device is the same). I think you have to change offset of your tag parameter.
An hour count you can do by using datetime script see User manual. Analog input you also can read by using tag, but bind to analog register of your plc. For example Holding register, offset 0, datatype Unsigned Integer or other not boolean data type.

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

several questions 10 months 2 weeks ago #899

  • hgomes
  • hgomes's Avatar
  • Offline
  • New Member
  • Posts: 7
  • Karma: 0
Good evening,

With your help I already understand how the tags work.

Regarding the hour meter I could not find in the manual any reference to what I want.
The idea is that each time a particular tag is activated / changed state a counter starts a minute or hourly count.

Also I can not find the digital clock in the section of objects.

Thank you
The administrator has disabled public write access.

several questions 10 months 2 weeks ago #900

  • fatkhrus
  • fatkhrus's Avatar
  • Offline
  • Administrator
  • Posts: 410
  • Thank you received: 51
  • Karma: -112
Hello,

At the attached file you can find archived project that lets you do what you want. It has 2 scripts. 1 script contains DT script object that get current hour and minute. Other script contain logic of work that light on or off depending on settings and current time.

Best regards,
Ruslan

File Attachment:

File Name: Timer.zip
File Size:3 KB
The administrator has disabled public write access.

several questions 10 months 1 week ago #901

  • hgomes
  • hgomes's Avatar
  • Offline
  • New Member
  • Posts: 7
  • Karma: 0
Good Morning,
again thanks for the help.
however I think I explained myself badly. I want to create an hour counter for a particular tag. that is, when a particular tag is active it starts and accumulates hours in an hour counter.
I still can't find the digital clock in the widgets. Do you know how I can solve this?
thank you again Hugo Gomes
The administrator has disabled public write access.

several questions 10 months 1 week ago #902

  • fatkhrus
  • fatkhrus's Avatar
  • Offline
  • Administrator
  • Posts: 410
  • Thank you received: 51
  • Karma: -112
Hello,

In the script I've sent you can save Tags.cur_hour in other tag (Tags.start_count for example) at the moment your tag become active. In the accumulator you can get Tags.cur_hour - Tags.start_count and reset Tags.start_count when your Tag become inactive.

Best regards,
Ruslan
The administrator has disabled public write access.
  • Page:
  • 1
  • 2
Go to top