News:

  • June 09, 2026, 01:31:01 AM

Login with username, password and session length

Author Topic: Day of week  (Read 36017 times)

b_carlton

  • Internal Dev
  • Hero Member
  • ****
  • Posts: 606
    • thePLCguy
Re: Day of week
« 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.
An output is a PLC's way of getting its inputs to change.

aw

  • Jr. Member
  • **
  • Posts: 11
Re: Day of week
« Reply #16 on: August 25, 2010, 10:46:53 AM »
But the sample program does not have it.
How to do it?

b_carlton

  • Internal Dev
  • Hero Member
  • ****
  • Posts: 606
    • thePLCguy
Re: Day of week
« 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?
An output is a PLC's way of getting its inputs to change.

aw

  • Jr. Member
  • **
  • Posts: 11
Re: Day of week
« Reply #18 on: August 25, 2010, 12:28:10 PM »
Example program which my coworker took from tech website, probably EP-MISC-001

b_carlton

  • Internal Dev
  • Hero Member
  • ****
  • Posts: 606
    • thePLCguy
Re: Day of week
« 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 »
An output is a PLC's way of getting its inputs to change.

aw

  • Jr. Member
  • **
  • Posts: 11
Re: Day of week
« 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?

b_carlton

  • Internal Dev
  • Hero Member
  • ****
  • Posts: 606
    • thePLCguy
Re: Day of week
« 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.
An output is a PLC's way of getting its inputs to change.

aw

  • Jr. Member
  • **
  • Posts: 11
Re: Day of week
« 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.