Results 1 to 3 of 3

Thread: Output not respecting optical switch state

  1. #1
    Regular Vistor
    Join Date
    Oct 2017
    Location
    San Diego, Ca
    Posts
    22

    Output not respecting optical switch state

    Fallback OFF
    If OptLO OPEN Then OFF
    If SWSTOR OPEN Then OFF
    OSC 000:00/001:30/088:30 Then ON

    I have the code above in place and when switched to auto, it still runs even if the optlo and/or swstor are open.

    I'm new to apex programming so I'm not sure what I've done wrong to cause this error. Other outputs use the switches effectively.


    Sent from my iPhone using Tapatalk

  2. #2
    Master Control Freak RussM's Avatar
    Join Date
    Dec 2012
    Location
    California - US Pacific
    Posts
    22,463
    OSC has finite ON and OFF states, so it will always take precedence over any statement above it (except for Fallback)

    Move the two If lines below the OSC statement.
    Please do not send me PMs with technical questions or requesting assistance - use the forums for Apex help. PM me ONLY if the matter is of a private or personal nature. Thanks.

  3. #3
    Regular Vistor
    Join Date
    Oct 2017
    Location
    San Diego, Ca
    Posts
    22
    Wow easy fix! Thank you.


    Sent from my iPhone using Tapatalk

Similar Threads

  1. Optical dashboard state not reflected in programming... what's happening here?
    By ZROGST in forum Fluid Monitoring Module (FMM), FMK, ATK, LDK, and FMM Accessories
    Replies: 5
    Last Post: 02-28-2020, 00:43
  2. ATK issue: can't get optical switch 1 to be recognized as optical switch
    By Muttley000 in forum Fluid Monitoring Module (FMM), FMK, ATK, LDK, and FMM Accessories
    Replies: 7
    Last Post: 11-09-2017, 16:11
  3. Optical sensor remains in OPEN state on FMM even if it is submerged
    By chopdeprashant in forum Fluid Monitoring Module (FMM), FMK, ATK, LDK, and FMM Accessories
    Replies: 15
    Last Post: 06-24-2017, 09:21
  4. FMM Optical Senors State...
    By Confuse in forum Misc Apex Usage & Programming
    Replies: 2
    Last Post: 03-25-2017, 16:31
  5. FMM Optical Senors State...
    By Confuse in forum DŌS & DDR – Dosing and Fluid Metering System
    Replies: 1
    Last Post: 03-23-2017, 14:44

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
  •