Hi
I am trying to use a Axe012X2 to monitor a number of inputs and two push-buttons to light one or more LEDs on a gantry according to the state of the inputs and which button was pressed.
After the initial start up when all outputs are switched on and off three times to prove all LEDs are working the micro needs to continually monitor the state of the 6 inputs and the 2 push-button inputs. When a push-button is activated (input pulled low) the current state of the 6 inputs needs to be written to the corresponding outputs. Once done the program needs to monitor the 6 inputs and two buttons once more and act upon the next button press and continue ad infinitum.
I attach my first attempt program which seems to work (simulated mode) but would be grateful for any constructive comments.
Many thanks
Mike
View attachment NJ FYG BRUP Dev1.bas
I am trying to use a Axe012X2 to monitor a number of inputs and two push-buttons to light one or more LEDs on a gantry according to the state of the inputs and which button was pressed.
After the initial start up when all outputs are switched on and off three times to prove all LEDs are working the micro needs to continually monitor the state of the 6 inputs and the 2 push-button inputs. When a push-button is activated (input pulled low) the current state of the 6 inputs needs to be written to the corresponding outputs. Once done the program needs to monitor the 6 inputs and two buttons once more and act upon the next button press and continue ad infinitum.
I attach my first attempt program which seems to work (simulated mode) but would be grateful for any constructive comments.
Many thanks
Mike
View attachment NJ FYG BRUP Dev1.bas