Second Program – Inputs/Outputs


Making the Output LED turn “On” in response to you turning “On” the corresponding Input Step by Step.

This program will work with other IO configurations but is built specifically for the Demo Case. This program will light up the IO LEDs on the lower left portion of the InoDrive as well as the Demo Case’s Input and Output LEDs, by flipping the Input switches on the Demo Case.

Notes for Coming from the First Program:

  • You will need to either click the New Project button to open up a new workspace, or to build the Second Program within the saved First Program Project.
  • If your InoDrive is still connected by Ethernet and powered on, you may continue. If not, please refer to the step by step Prerequisite Information.


1. The IO block we will start with is Set Input Polarity, drag and drop that block from the IO category, into the Initialization portion of the Main Block.


2. Note: Right clicking any block would allow you to choose options from this menu pictured. Options include: Duplicate the block and all attached to it, Add a Comment to the block, Collapse the Block for a more condensed view, Disable the Block so that it isn’t included in the application until re-enabled, Delete the Block, get Help from the manual. Clicking Help will launch a dialog box showing the InoDrive Manual Page for the block, explaining each component.


3. Configure each item circled within the block by clicking them.


4. Observe the configured Set Input Polarity Block. We will set our Slot to Local, as in the First Project. Set all four digital inputs to NPN. In future projects utilizing inputs and outputs as well will be in this project, always set the input polarity to NPN.
Although the default input polarity is PNP, choosing NPN will allow our flipping the switches on the demo case to have a high voltage signal when switched “on”, which is captured by the InoDrive in the following set of blocks.


5. We will be using two different categories of blocks this time, IO and Logic.

First block Oneshot allows you to capture the instance when something happens, and subsequently respond. In this project, we want the turning “on” of Input Zero, to mean the turning on of Output Zero.
Second, Get Input State block to the Oneshot block. Choose the options for when Local Input 0 produces a High signal (this means a switch is switched “On”)..
Third is Set Output to Variable, the Local output 0 to be affected..
Fourth block is the Boolean block from Logic. True provides us with a value of 1 which turns on the output. False would provide us with 0 which would have had the Output off.


6. Thus far we have the ability to turn on the Input which turns on the Output. Lets be sure we have set the output when “low”/“off” so that the application has instructions for both off and on.
An easy way to do this would be to right click on the Oneshot block and duplicate it. Notice how it duplicates all connected nested blocks.


Now, all of our blocks are in place. Change the configurable options within the block to match the image here. Local slots selected on each block. Once when local input 0 is high, set local output 0 to true. Once when local input 0 is low, set output 0 to false.


7. Input the module information in the dialog box if you have not already done so.


8. With your program built and all configuration done, you may send your application to the connected and powered on module. Once the program has been successfully received by the InoDrive you can test it by flipping on and off the switch for Input 0. Observe the way that 0 being “On” produces a “high” voltage signal which turns on the corresponding output lights both on the demo case and on the face of the InoDrive Module.
Save this project if you would like.

9. You may now either exit the Programmer or continue on to the Third Program.