TimePulses Block

Hi All,

I was using TimePulses (BasicLib) block for resetting a totaliser. Since the clock has gone forward, the Totaliser is now resetting at 1:00Am instead of 12:00Am.

I believe this is happening beacuse the TimePulses block is using system clock for getting the time.

Has anyone faced this issue before or any ideas for fixing the issue.

Regards

Miron


By Miron on 4/3/2017 | Like (0) | Report

The system time is 1Hr behind the Local time.


Add New Comment


Miron   

asked 7 months ago
Closed



Best Answer

1

Hello,

use following blocks

getDT(local DT)->date_time_string->serial_string_right (with length 12)->String_to_real->Equal (0=0)->R_trig to reset the totaliser.

Harsha.D   

answered 7 months ago


 


By Miron on 4/6/2017 | Like (0) | Report

Thanks Harsha, I will have a try on this code.


Add New Comment


Answers

0

If the USeLocalTime Param is true then its using system time, else it uses UTC. If your system time is wrong, then you need to sync the time. Typically DLS time is disabled on the system, so depending on your region it may show one hr behind 

BK_REIS   

answered 7 months ago


 


By Miron on 4/3/2017 | Like (0) | Report

Thanks BK_REIS for your reply since my BasicLib is version 1.6 I dont have this option of UseLocalTime parameter


Add New Comment


0

Sounds like your TimeZone settings in the controller are messed up.

By default, every application should come with a "Program3" that contains a "SetTimeZoneInfo" function block. Hopefully you still have this in your application. If not, you should rebuild the code that normally appears in "Program3" and add it back into your application. Run one copy on each controller. (Make a new blank project and copy the code from it)

Go online and check the Interaction Window for the SetTimeZone function block. The correct timezone settings * should * come your clock master, but may not be.

There is of course the side issue of whether you should actually fix this. When savings time begins and ends, your daily totals will be wrong by 1 hour of production twice per year.

Rob Lyon   

answered 7 months ago


 


By Miron on 4/3/2017 | Like (0) | Report

Hi Rob, thanks for replying I dont think its the issue with the SetTimeZone thing as I have compared with a working one and it actually matches. Its the issue with BasicLib TimePulses block, my Library is an old one.In the new version of the library for the TimePulses block UseLocalTime parameter when set to True will help to address my issue.

Since the old one doesnt have I was looking other options to address this issue.


Add New Comment


1

Hello,

use following blocks

getDT(local DT)->date_time_string->serial_string_right (with length 12)->String_to_real->Equal (0=0)->R_trig to reset the totaliser.

Harsha.D   

answered 7 months ago


 


By Miron on 4/6/2017 | Like (0) | Report

Thanks Harsha, I will have a try on this code.


Add New Comment



Get weekly AKS updates


Partner Exclusive Webinars

 

> – Login to the partner portal to register



Points Redemption Program - Redeem your points for ABB training, Bluetooth speakers and mugs. Terms and conditions >


Earn points when you refer a friend
AKS Referral Program is "Live" - Learn more



AKS Experts


avatar
Ask Harsha.D   

Rank: 6

Tech.Support,software and commisioning engineer with Proficient knowledge in 800xA and its products, RNRP,Networking in general.


avatar
Ask Govindaraj   

Rank: 10

Working in ABB India Operation Center. Have Project engineering and commissioning experience in ABB 800xA, Freelance, AC500.


avatar
Ask kstoilov   

Rank: 15

Control System Engineer: 800xA, Compact 800, AC500, AC31-50, Advant Master, Simatic, AC&DC Drives 11 years worked for ABB - Control Systems


avatar
Ask Flavio Mussolin   

Rank: 4

ABB AVP, Senior Electronic and Automation Engineer with over 30 years of experience in the field of process automation automotive, pharmaceutical, hollow glass, steel and rolling.


avatar
Ask nikismith   

Rank: 265

I have been a part of the Recording & Control Factory team for 17 years in total, having spent a number of years as a repairs technician withi the manufacturing department, but being in my current role for 9 years now.


avatar
Ask Dieter Henkel   

Rank: 23


avatar
Ask MMM   

Rank: 5

ABB PA CT Technical Support


avatar
Ask Rob Lyon   

Rank: 3

info@lymac.co.nz I'm an independent DCS software and commissioning engineer with extensive experience in 800xA and other ABB products. I've worked in almost every corner of the world and still haven't seen it all.


avatar
Ask Stefan Stromqvist   

Rank: 1

I joined ABB in the year of 1994 and has since 1999 been working as a Service & Support Engineer at BU Control Technologies in Västerås, Sweden. My areas of expertise are: 800xA Base, 800xA for Advant Master, Information Management, operating systems, RNRP and Ethernet comms/networking in general.


avatar
Ask Sumit Gargav   

Rank: 2

I have worked with Freelance in majority, with 800xA FD and Melody system partly. Also had opportunity to work with Protocols - HART,Profibus,FF & Modbus.