Results 1 to 9 of 9

Thread: automatic feeding programming

  1. #1
    New User
    Join Date
    Oct 2017
    Location
    Poland
    Posts
    12

    automatic feeding programming

    Hello,

    I have an Apex 2016. I'd like to program my auto feeder (peristaltic pump <quaMedic SP 3000> pumps liquid food into the tank) in the folowing way:

    at 1 p.m., 4 p.m. and 8 p.m. peristaltic pump works (pumps) only for 8 seconds each time.

    I know that I should use OSC command but I really don't know how.

    Thank you for you help.

  2. #2
    Frequent Contributor zombie's Avatar
    Join Date
    Dec 2013
    Location
    Denver, CO
    Posts
    13,176
    OSC 000:00/000:08/059:52 Then ON
    If Time 14:00 to 15:59 Then OFF
    If Time 17:00 to 19:59 Then OFF
    If Time 21:00 to 12:59 Then OFF

    You might be an engineer if...You have no life and can prove it mathematically.

  3. #3
    New User
    Join Date
    Oct 2017
    Location
    Poland
    Posts
    12
    Thank you !

  4. #4
    Frequent Visitor
    Join Date
    Sep 2017
    Location
    Dayton, OH
    Posts
    58
    Quote Originally Posted by zombie View Post
    OSC 000:00/000:08/059:52 Then ON
    If Time 14:00 to 15:59 Then OFF
    If Time 17:00 to 19:59 Then OFF
    If Time 21:00 to 12:59 Then OFF
    Are these statements really going to turn on for 8 seconds at 13:00, 16:00 and 20:00, or turn on for 8 seconds within an hour after these times?

    I'm assuming the OSC statement is executing asynchronously from the "If Time"s (doesn't reset when one of the If Times is OFF).

    Say you first start/upload this program a 15:47, I'm assuming the OSC statement will be ON immediately for 8 seconds and then be OFF for 59:52 then turn on for 8 seconds and so on... The "If Time 14:00 to 15:59 Then OFF" will make the outlet OFF during that first 8 seconds, but will allow the second 8 seconds at 16:47, which may or not be OK for the OP (depending on if it's timed with other outlets like feeding).

    If you happen to upload the program right on the hour and don't get any power outages or reboots, then it should be OK,

    Or am I wrong about the OSC statement being independent of the others?

  5. #5
    Frequent Contributor zombie's Avatar
    Join Date
    Dec 2013
    Location
    Denver, CO
    Posts
    13,176
    OSC is not asynchronous. OSC calculates from midnight if 24 hours is divisible by the total period (1 hour used here). If not divisible by the period, it calculated from January 1, 1970 at midnight.

    You might be an engineer if...You have no life and can prove it mathematically.

  6. #6
    Frequent Visitor
    Join Date
    Sep 2017
    Location
    Dayton, OH
    Posts
    58
    Interesting...thanks, Zombie!

  7. #7
    New User
    Join Date
    Oct 2017
    Location
    Poland
    Posts
    12
    I modified it. I want the air pump (mixing food) to start for 1 minute, and in the last 4 seconds of that minute the dosing pump push the food

    The air pump:

    Fallback OFF
    Set OFF
    OSC 000:00/001:00/059:00 Then ON
    If Time 14:00 to 15:59 Then OFF
    If Time 17:00 to 19:59 Then OFF
    If Time 21:00 to 12:59 Then OFF

    and the dosing pump:

    Fallback OFF
    Set OFF
    OSC 000:56/000:04/059:00 Then ON
    If Time 14:00 to 15:59 Then OFF
    If Time 17:00 to 19:59 Then OFF
    If Time 21:00 to 12:59 Then OFF


    Is that OK ?

  8. #8
    Frequent Contributor zombie's Avatar
    Join Date
    Dec 2013
    Location
    Denver, CO
    Posts
    13,176
    Looks good

    You might be an engineer if...You have no life and can prove it mathematically.

  9. #9
    New User
    Join Date
    Oct 2017
    Location
    Poland
    Posts
    12
    After all it looks that the commands in post No 7 may work. The issue is that my Apex starts always 23 seconds later e.g. 14:00 means that it starts at 14:00:23 (is this a standard situation ?)

Similar Threads

  1. Automatic Feeding System keeps turning on
    By jonleon89 in forum Misc Apex Usage & Programming
    Replies: 7
    Last Post: 09-24-2017, 17:42
  2. AFS automatic feeding system - every other day program ?
    By linko in forum DC24 Ports and Peripherals
    Replies: 0
    Last Post: 09-02-2017, 03:47
  3. Automatic Feeding System (AFS) Dimensions
    By dunc101 in forum Pre-Sales Questions
    Replies: 9
    Last Post: 05-27-2015, 06:07
  4. Automatic Feeding
    By keishakornbread in forum Misc Apex Usage & Programming
    Replies: 30
    Last Post: 05-30-2014, 21:06
  5. Help! Automatic Feeding System | What pellets actually sink?
    By cgrayson9 in forum AquaBus Modules, Probes, and Breakout Boxes
    Replies: 11
    Last Post: 01-25-2014, 17:53

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
  •