Host Engineering Forum
 
*
Welcome, Guest. Please login or register.
Did you miss your activation email?
February 07, 2012, 08:49:21 am


Login with username, password and session length


Pages: 1 [2]
  Print  
Author Topic: Day of week  (Read 1382 times)
b_carlton
Internal Dev
****
Posts: 370



WWW
« Reply #15 on: August 23, 2010, 10:50:32 am »

This appears to have been done August 20th but there is no 'Day Of Week' (the low part of your V2052) set. it is left at zero (Sunday). The 20th was Friday so the low part should have been set to 5.
Logged

An output is a PLC's way of getting its inputs to change.
aw
Jr. Member
**
Posts: 11


« Reply #16 on: August 25, 2010, 10:46:53 am »

But the sample program does not have it.
How to do it?
Logged
b_carlton
Internal Dev
****
Posts: 370



WWW
« Reply #17 on: August 25, 2010, 11:01:36 am »

The documentation for the DATE instruction in the DL-205 manual shows the loading of the V registers including the day of week information. EXACTLY which 'sample program' are you referring to?
Logged

An output is a PLC's way of getting its inputs to change.
aw
Jr. Member
**
Posts: 11


« Reply #18 on: August 25, 2010, 12:28:10 pm »

Example program which my coworker took from tech website, probably EP-MISC-001
Logged
b_carlton
Internal Dev
****
Posts: 370



WWW
« Reply #19 on: August 25, 2010, 12:53:30 pm »

In that DST correction program the TIME command is being used not the DATE command.
« Last Edit: August 25, 2010, 12:57:39 pm by b_carlton » Logged

An output is a PLC's way of getting its inputs to change.
aw
Jr. Member
**
Posts: 11


« Reply #20 on: August 26, 2010, 08:55:31 am »

I know, but since there is no example program for setting the date, we followed the TIME program. Except the Day of week does not work.
Isn't the internal clock calculating it?
Logged
b_carlton
Internal Dev
****
Posts: 370



WWW
« Reply #21 on: August 26, 2010, 09:42:03 am »

1. Follow the description for the DATE instruction in the CPU manual.

2. The DOW is not calculated. It is just incremented/cleared at midnight. You have to set it correctly either through Directsoft or via the DATE instruction.
Logged

An output is a PLC's way of getting its inputs to change.
aw
Jr. Member
**
Posts: 11


« Reply #22 on: August 26, 2010, 10:05:37 am »

Thank you.
I was missing DOW setpoint from HMI. Now that I added it everything works.
Logged
Pages: 1 [2]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.16 | SMF © 2011, Simple Machines

Valid XHTML 1.0! Valid CSS! Dilber MC Theme by HarzeM