1. Home
  2. Docs
  3. MC-EX-ND8 | Digital Input Expansion Module
  4. Expansion Module Node-Red Startup Guide
  5. Implement and Deploy Node Red Program

Implement and Deploy Node Red Program

  1. Follow Wiring Diagram, complete wiring diagram. (Follow Node-RED Startup Guide if you are beginner to run node red on these products.)
  2. Go to left “Toggle palette” & scroll down to “MC EX” category, drag and drop “ND8” node.

*Nodes in “MC EX” category can use to program Modular industrial controller expansion modules (Check Figure 1).

Figure 1: Drag and Drop ND8 node on Node-Red Workspace from MC EX category.
  1. Scroll up to “common” category drag and drop two “inject” nodes & “debug” node (Check Figure 2).
Figure 2: Drag and Drop two “inject” nodes and “debug” node on workspace from common category.
  1. Double click on one “inject” node, Select “true” from the drop down menu (Refer Figure 3(a) node settings), Finally click “Done” button.
  2. Now double click on second “inject” node, Select “false” from the drop down menu (Refer Figure 3(b) node settings),Finally click “Done” button.
Figure 3(a): inject node 1 settings,(b): inject node 2 settings.
  1. Next double click on “debug” node then select “complete msg object” (Refer Figure 3(a) for node settings), Finally click “Done” button.
  2. Then double click on “ND8” node select “Channel-00” from the “Input” drop down menu and select I2C address from “Device address” (Refer Figure 3(b) for node settings), Finally click “Done” button.

*Refer MC-EX-ND8 Expansion Module enclosure for I2C address configuration. Then set I2C address by changing DIP switches on expansion module PCB. Remove enclosure for to access expansion module PCB.
OR
Use “I2C Scan” node for run I2C address scan

Figure 3(a): debug node settings, (b): ND8 node settings.
  1. For get information regarding “ND8” node click symbol then click on node selected (Check Figure 4).
Figure 5: “ND8” node information panel.
  1. Link The nodes according to Figure 5, Click “deploy” button for run Node-Red program (Click on “true” state before feed input signal).
Figure 5: Linked nodes .
Was this article helpful to you? Yes No

How can we help?