AutomationDirect
Search
Login | Register
Accounts & Orders
Cart
0
$0.00

Recent Orders

View and Manage | Request Cancellation
Loading Order History
Loading...Loading...

Your Account

Account Home

Checkout   $0.00


  • My Orders
  • Product Returns (RMAs)
  • Pay Proforma Invoices
  • Pay Freights
  • Invoices / Invoice Reprint
  • Quotes / Favs / BOMs
  • Packing List Reprint
  • My Product Docs
  • Credit Application
  • Tax Exemption
| Direct Sales in US and Canada | 1-800-633-0405 | About Us | Contact Us | Line Card
Products | Support
| Compare
  
Ordering Tools  
warning Cookies are not enabled on your browser.
Cookies are required for our site. Please enable cookies in your browser preferences to continue.
ADC will be closed Friday, July 4th, to celebrate Independence Day. Orders placed after cut-off times on Thursday will be processed and shipped on Monday, July 7th.
+
Navigation
+
Shopping Categories
  • Barcode / RFID / Vision
  • Bulk Wire & Cable
  • Cables (Terminated)
  • Circuit Protection / Fuses / Disconnects
  • Communications
  • Drives & Soft Starters
  • Enclosure Thermal Management & Lights
  • Enclosures & Racks
  • Field I/O
  • HMI (Human Machine Interface)
  • Hydraulic Components
  • Motion Control
  • Motor Controls
  • Motors
  • Pneumatic Components
  • Power Products (Electrical)
  • Power Transmission (Mechanical)
  • Process Control & Measurement
  • Programmable Controllers
  • Pushbuttons / Switches / Indicators
  • Relays / Timers
  • Safety
  • Sensors / Encoders
  • Stacklights
  • Structural Frames / Rails
  • Tools & Test Equipment
  • Valves
  • Water (Potable) Components
  • Wiring Solutions
  • Retired Products
+
Learn More
  • Brand Line Card
  • What's New
  • E-newsletter
  • Online PDF Catalog
  • Video Tutorials
  • Company Reviews
  • Learning Library
  • Affordable Training
  • Free Online PLC training
  • Cybersecurity
+
In Depth Product Sites
  • Programmable Logic Controllers
  • Productivity1000 PLCs
  • Productivity2000 PLCs
  • Productivity3000 PLCs
  • ProductivityCODESYS
  • LS Electric XGB Series PLCs
  • ProductivityOpen
  • CLICK PLCs
  • Do-more H2 PLCs or
    Do-more T1H Series
  • Do-more BRX PLCs
  • C-more Touch Panels
  • AC & DC Drives
  • Motion Control Components
  • Servos
  • StrideLinx
  • Pneumatics
+
Product Selectors &
Configuration Utilities
  • PLC Family Selector
  • P1000 PLC Systems
  • P2000 PLC Systems
  • P3000 PLC Systems
  • ProductivityCODESYS
  • CLICK PLC Systems
  • Do-more® BRX PLC Systems
  • LS-Electric® XGB PLC Systems
  • Productivity®Open Systems
  • Datalogic® Safety Light Curtains
  • LS-Electric® Servo Systems
  • Nitra® Pneumatic Grippers
  • Object Detection (Sensors)
  • PAL Controller Configurator
  • Precision Gearbox Selector
  • Protos X® Field I/O
  • Quadritalia® Modular Enclosures
  • Stellar® Soft Starters
  • Stepper System Selector
  • SureFrame T-slot Extrusion
  • SureMotion® XYZ Gantry
  • SureServo2® System Selector
  • SureStep® Linear Actuators
  • Timing Belts & Pulleys
  • Werma® Stacklights
  • ZIPLinks

DURApulse GS4 VFD Built-in PLC Time and Date Functions from AutomationDirect


Related Products

GS4-21P0
GS4-21P0 Thumbnail
GS4-22P0
GS4-22P0 Thumbnail
GS4-23P0
GS4-23P0 Thumbnail
GS4-25P0
GS4-25P0 Thumbnail
GS4-27P5
GS4-27P5 Thumbnail
GS4-2010
GS4-2010 Thumbnail
GS4-2015
GS4-2015 Thumbnail
GS4-2020
GS4-2020 Thumbnail
GS4-2025
GS4-2025 Thumbnail
GS4-2030
GS4-2030 Thumbnail
GS4-2040
GS4-2040 Thumbnail
GS4-2050
GS4-2050 Thumbnail
GS4-2060
GS4-2060 Thumbnail
GS4-2075
GS4-2075 Thumbnail
GS4-2100
GS4-2100 Thumbnail
GS4-41P0
GS4-41P0 Thumbnail
GS4-42P0
GS4-42P0 Thumbnail
GS4-43P0
GS4-43P0 Thumbnail
GS4-45P0
GS4-45P0 Thumbnail
GS4-47P5
GS4-47P5 Thumbnail
GS4-4010
GS4-4010 Thumbnail
GS4-4015
GS4-4015 Thumbnail
GS4-4020
GS4-4020 Thumbnail
GS4-4025
GS4-4025 Thumbnail
GS4-4030
GS4-4030 Thumbnail
GS4-4040
GS4-4040 Thumbnail
GS4-4050
GS4-4050 Thumbnail
GS4-4060
GS4-4060 Thumbnail
GS4-4075
GS4-4075 Thumbnail
GS4-4100
GS4-4100 Thumbnail
GS4-4125
GS4-4125 Thumbnail
GS4-4150
GS4-4150 Thumbnail
GS4-4175
GS4-4175 Thumbnail
GS4-4200
GS4-4200 Thumbnail
GS4-4250
GS4-4250 Thumbnail
GS4-4300
GS4-4300 Thumbnail


To learn more: https://www.automationdirect.com/drives?utm_source=Fwm39dOFKb8&utm_medium=VideoTeamDescription

(VID-DR-0038)

Learn how to use Time and Date functions on the GS4 Variable Frequency Drive (VFD) including the caveats you need to know about to be successful.

Online Support Page: https://community.automationdirect.com/s/?utm_source=Fwm39dOFKb8&utm_medium=VideoTeamDescription

**Please check our website for our most up-to-date product pricing and availability.


Hide Transcript
View Transcript

PLC – Real Time Clock Using time functions in the GS4’s built in PLC is easy. You can read the time, compare the time, Add time, subtract time, and even compare if something happened during a block or zone of time. Note that you can’t change the time from the PLC. A nd there are simple examples of all of those in the examples folder. There are a few things you need to know before using the PLC’s time functions so let’s bring up the TRD example program so we can see those in action. This program simply reads the time from the drive into 6 registers starting at D20. Check the com settings – check the com port – looks good – and the rest of these are correct for my system. Write the program to the PLC in the drive. It’s warning me that I have a program running, that’s fine I know that .. and yes I do want to return to run mode. If you aren’t in run mode, then go ahead and do that now by clicking here. If we open a monitor window we see that this example already has the registers populated for us. Let me re-arrange that so we can see it and the ladder code. And let’s add M0 so we can enable the TRD instruction. Again, make sure you are on line and the drive is in RUN mode. The first thing to understand is TIME IS STORED IN THE KEYPAD. The drive watches the Keypad and if it sees a change uses that to update the time it maintains locally in the drive. Let’s take a look at how that impacts things. Here are the 6 registers the Time Read instruction is going to fill and we can see they are not getting updated right now because we haven’t enabled the Time Read instruction with this M0 contact yet. But if we look down here, we see a set of Special Function Registers that also have the time data and they ARE getting updated. So … do we really need to use the TRD instruction to get time information? Not really, because the GS4 Drive automatically puts the current time information in these special function registers so the PLC can just read whichever time element it wants whenever it wants without having to mess with the TRD instruction. If we do turn on M0 – I’m going to toggle the on-line button so that shows up on the ladder diagram - we see the seconds D register is now getting updated by the TRD instruction. If I turn M0 off, the seconds D register stops getting updated, but the special function register does continue to get updated. If I re-enable M0, then the Seconds D register picks up the CURRENT time – exactly what we expect. If I stop the PLC, the monitor window stops getting updated of course, but as soon as I put the PLC back in RUN mode, we see the special function register starts updating again and it is with the correct current time because the clock continues to be updated even while the PLC is stopped. Ok, that all makes sense. Here is the thing you need to remember. Let’s pull the keypad out. Look, the time is still getting updated. Why? Well, again, because the drive maintains a local copy of the time as long as it is powered up. Let’s record the current time and date. Now, let’s put a DIFFERENT keypad in the drive. Ahh, look at that! The drive saw a new keypad and automatically adjusted its internal clock to match that keypad. That’s really important to understand. Time is stored in the keypad. If your PLC Ladder code uses time functions, and you swap out keypads that don’t have the same time settings, you can get some unexpected results. So be careful with that. And if you power cycle the drive with no keypad installed, the drive won’t be able to do that initial read of the time so it’ll lose track of the time and again, your PLC time functions might not work the way you expect. The good news is Help topic 208 covers the various error bits and codes. Using those, the PLC can see when there is a time math error and if a something has happened to the keypad and react accordingly. So please, take advantage of those to help failsafe your PLC code. The next thing to keep in mind is the time in the keypad is maintained by a large capacitor – not a battery. And that capacitor can only hold the time information for about a week. So, if that keypad is pulled out of the drive or the drive is powered down for more than a week, it can’t guarantee it will return the proper time. It’s not a permanent time keeping device. It’s really intended to be used to setup one drive and then move the keypad from drive to drive to quickly copy parameters to other similar drives and keypads. While the PLC can read the time AND the date, it can only manipulate time – that is, hours, minutes, seconds using the time functions. Those time functions don’t operate on days months or years. The PLC can’t write to the time registers. The PLC can read the time and perform operation on time numbers, but it can’t write to the drives time registers. You can see that in the special function register chart – they are read only registers. The only way to change the time in the drive and keypad is to go to the main menu, and scroll down to time setup. That’s sets the time in the keypad. The drive will see that change and automatically update its local time and date registers. Of course, you can always see the drives current time right here on the keypad display and you can tell if the PLC is running and what it’s status is right here. Great, that ought to be enough to get you started with using time and date in your ladder code. Click here to learn more about the GS4 Drives. Click here to learn about AutomationDirect’s free support options. And click here to subscribe to AutomationDirect’s YouTube channel so you will be notified when we publish new videos.



No data returned!
An error has occurred! Please contact support
Videos Home > DURApulse GS4 VFD Built-in PLC Time and Date Functions from AutomationDirect
Contact, Connect & More
Sign Up
to receive:
FREE e-Newsletter
sign up today!
Connect With Us
Social Media Channels:
linkedin    facebook    x    instagram    youtube
Company Information
About Us
Brand Line Card
System Integrator Program
International Sales
Panel Builder Program
Site Help
Company Reviews
Download Price List
Contact Us
Contact Options
1-800-633-0405
Monday - Friday
9 a.m. - 6 p.m. ET
excluding holidays
Career Opportunities
Voted #1 mid-sized employer in Atlanta
We're a great place to work!
Check out our job openings

Need Training?
Affordable Training by Interconnecting Automation
Free Online PLC Training
FREE Video Tutorials
Information & News
What's New / In The News
FREE e-Newsletter
Automation Notebook
Product Literature
White Papers
News, Product and Training Bulletins
E-Books
Shop with confidence
Checked   Safe & Secure
payment methods


We accept VISA, MasterCard, Discover, American Express, PayPal or company purchase orders.
AutomationDirect

BBB Accredited

Voted #1 mid-sized employer in Atlanta
Check out our job openings

Copyright © 1999-2025 AutomationDirect.  ALL RIGHTS RESERVED.
Site Map     Send Us your Feedback     Unsubscribe     Email Preferences     Legal & Business Policies     YouTube Terms of Service
Clear login credentials



Back to Top


spinner Updating...
Info