No announcement yet.

IsBaseActive Example

  • Filter
  • Time
  • Show
Clear All
new posts

  • IsBaseActive Example

    The information provided in the AutomationDirect knowledge base is provided "as is" without warranty of any kind. AutomationDirect disclaims all warranties, either express or implied, including the warranties of merchantability and fitness for a particular purpose. In no event shall AutomationDirect or its suppliers be liable for any damages whatsoever including direct, indirect, incidental, consequential, loss of business profits or special damages, even if AutomationDirect or its suppliers have been advised of the possibility of such damages. Some states do not allow the exclusion of limitation of liability for consequential or incidental damages so the foregoing limitation may not apply.


    This example will use the "P1.isBaseActive" functions to demonstrate how the Base Controller can be monitored for a loss of 24V power. When this occurs, the Base Controller will need to be re-initialized using P1.init(). USB will need to be connected for serial communication and power.

    It will also provide error feedback to the serial monitor on loss of 24Vdc.

    Possible errors:
    Base Sync Timeout
    No Base controller activity

    Dependencies: Required Library which needs to be installed.

    Check out the code here: