Results 1 to 3 of 3

Thread: OCS Command & why it makes my head hurt!

  1. #1
    Frequent Visitor
    Join Date
    Apr 2014
    Location
    SE Mass
    Posts
    366

    OCS Command & why it makes my head hurt!

    Per the Apex Comprehensive Manual for the OSC command:

    One final comment on the oscillate command. The 3 time values don’t have to add up to exactly 1 houror even 24 hours. They can be any combination of minutes and seconds you desire.If your times (in minutes) are evenly divisible into 1440 (# minutes in 24 hours), the controller calculatesthe on/off times starting at midnight but then resets every night at midnight (local time so make sure your time Page 61 Version: 5.0zone and DST flag are correct). Even if you create a program using the OSC command in the middle of the day, theON/OFF/ON cycle starts from midnight of that day. So when testing your program, make sure you consider thecurrent time of day when you attempt to verify whether your oscillate statement is working properly or not. Ifyour times don’t evenly divide into 1440 then the controller goes all the way back to January 1, 1996 andcalculates from there.


    My current program:

    Fallback OFF
    OSC 000:00/000:15/719:45 Then ON
    15 seconds ON at Midnight, then repeat at Noon.

    Need to increase to 4 times per day so I changed 719:45 to 359:45

    Fallback OFF
    OSC 000:00/000:15/359:45 Then ON

    Both work as expected.

    Now this is where my head starts to hurt.

    I want to offset the time to 15 minutes after Midnight.

    And as per the manual the time should be evenly divisible into 1440.

    So which is correct?

    A. OSC 015:00/000:15/359:45 Then ON - This equals 375 minutes, not divisible into 1440
    or
    B. OSC 015:00/000:15/344:45 Then ON - This equals 360 which is divisible into 1440

    So am I correct in assuming that even though the outlet will turn on 15 minutes after Midnight
    for 15 seconds, the be off until 6:00 am the repeat the 15 minute delay, on for 15 seconds, and be
    off until Noon, Delay 15 minutes Etc...?

    My gut tells me B, but even with Log Enabled checked, the Outlet with the OSS doesn't show in the Logs,
    and with these times, I'm not around to see the event.

    Is it Beer O'clock yet?

  2. #2
    Frequent Contributor zombie's Avatar
    Join Date
    Dec 2013
    Location
    Denver, CO
    Posts
    13,176
    You want the second one. The period or repeat interval is the sum of all three times.

    Sent from my SM-G965U using Tapatalk

  3. #3
    Frequent Visitor
    Join Date
    Apr 2014
    Location
    SE Mass
    Posts
    366
    Thanks... that kinda what i thought.

Similar Threads

  1. DOS Pump Head & RO Tubing
    By Marmot Man in forum DŌS & DDR – Dosing and Fluid Metering System
    Replies: 1
    Last Post: 01-15-2021, 07:20
  2. DOS and "When" Command Question?? Over Dose Prevention
    By DarthSimon in forum DŌS & DDR – Dosing and Fluid Metering System
    Replies: 1
    Last Post: 03-23-2018, 06:05
  3. Whats the command for AMP warnings?
    By Allentown in forum Misc Apex Usage & Programming
    Replies: 8
    Last Post: 10-25-2015, 13:26
  4. Apex & Twin Arc MH Bulbs Command Help
    By JohnV8r in forum Apex Programming for Lighting
    Replies: 1
    Last Post: 09-25-2015, 08:17
  5. Question: OCS command for rebooting an outlet
    By tsoraci in forum Misc Apex Usage & Programming
    Replies: 7
    Last Post: 03-20-2015, 16:05

Bookmarks

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •