Connected Component Worckbench
Connected Component Worckbench
1 of 20
Hardware & Software Versions Used to Develop This Quick Start
Prerequisite
Download the Micro800 UDFB: Digital IO Plug-In UDFB suite from the Sample Code Library
http://samplecode.rockwellautomation.com.
2 of 20
Downloading the Micro800 UDFB: Digital IO Plug-In UDFB suite
2. From the list of Micro800 Sample Code, search for the Micro800 UDFB: Digital IO Plug-In
UDFB suite.
3. Click on the Download Icon: to down the Micro800 UDFB: Digital IO Plug-In UDFB Suite.
4. At the Acceptance of Term and Conditions page, click on Accept to continue downloading.
3 of 20
5. The following window will appear, Click on the Save to download the UDFB.
4 of 20
Digital IO Plug In
The plug-in will be mounted in the available slot of the controller. Each slot will be given a unique number
for identification in the user program.
Thus, when using the Digital IO plug-in, the Slot no. will be used to identify the module to be read.
5 of 20
Using Digital IO Plug In with User-Defined Function Blocks
This quick start will show you how to import the Micro800 UDFB: Digital IO Plug-In UDFB Suite, to use
with the Digital IO Plug-in.
Slot 1:
2080-
IQ4OB4
1. Start the Connect Component Workbench from the Shortcut on the desktop.
2. At Catalog of the Device Toolbox, double click on the 2080-LC30-16QWB to create a new project.
6 of 20
3. At the Project Organizer, right click on the Micro830.From the pop-up menu, select Import
Import Exchange File.
4. From the Import Export Window. Browse for the Micro800 UDFB: Digital IO Plug-In UDFB Suite
which is downloaded from the Sample Code Library.
7 of 20
5. Click Browse, navigate to the folder location, select the file and click Open:
6. With RA_2080_IQ4x checked, click Import and verify in the Output window that the import was
successful:
8 of 20
7. Repeat the same steps import RA_2080_Ox4, and verify in the Output window that the import is
successful.
9 of 20
10. Double click on the Global Variables to create the names for the input and the output
11. Double click on the last row, and enter the variable to be created, then click enter.
10 of 20
13. Right click on the Programs, and Add a New LD: Ladder Diagram.
15. Double click on the IORDWR and click on the program workspace.
Program
workspace
Project
Organizer
LD Toolbox
11 of 20
16. From the LD Toolbox, select Block and drag to the program workspace.
17. The Instruction Block Selector window will appear. Select RA_2080_IQ4x from the list and click
OK.
12 of 20
18. The UDFB will be shown in the program workspace. Enter the parameter to the block.
SMSG_S1_IN
S1_I01
S1_I02
S1_I03
Enter the value by click on the upper portion of the parameter box.
The drop down menu will appear, at the field, enter the value “1”. Then hit enter key.
13 of 20
To select the variable for the input, click on the upper portion of the parameter box.
The drop down menu will appear, select S1_I00 from the list.
14 of 20
19. From the LD Toolbox, drag a Block and place it beside existing block.
20. From the Instruction Block Selector, select RA_2080_Ox4. Click on OK to continue.
15 of 20
21. The UFDB will be shown in the program workspace.
Error_S1_OUT
Variable name where
output is reading from
In this example is S1_O00 S1_O01
S1_O02
S1_O03
Repeat the step as per the step 18, and enter the parameter to the output block.
In completion, the following will be shown.
16 of 20
Please note: As the module mounted in Slot 1 is a 2080-IQ4OB4 (Mix IO). Thus, the Input block
and output block is needed.
22. Create a new RUNG below the block, drag and drop from the LD Toolbar.
24. Right click on the Programs, and Add a New LD: Ladder Diagram.
17 of 20
27. In completion, build the program. Right click on the Micro830. Then select Build from the pop-up
menu. Check the Output Window if there is any error in the program.
28. Then right click on the Micro830, and select Download to download the program to the controller.
18 of 20
The following will appear, and select the controller from the tree. Click OK to continue.
In completion of the download, the following dialog box will appear. Click on Yes to Run the
program.
29. To monitor Online, click on the Start Debugging Icon at the toolbar.
30. The program workspace will change to a different color, and from the screen.
(Blue = Open or Not Energized , Red = Close or Energized)
19 of 20
When Triggering the S1_I00, the output S1_O00 should turn on.
31. When Triggering the S1_I01, the S1_O00 will turn off.
32. To end the debugging, click on the stop button from the toolbar.
20 of 20