0% found this document useful (0 votes)
4 views20 pages

Connected Component Worckbench

Manual

Uploaded by

raphael31
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
4 views20 pages

Connected Component Worckbench

Manual

Uploaded by

raphael31
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
You are on page 1/ 20

Connected Components Workbench

Task-based Quick Start

QS # – Using Digital IO plug in with User-


Defined Function Blocks

1 of 20
Hardware & Software Versions Used to Develop This Quick Start

 CCW Release 1.01


 8020-LC30-16QWB v1.013

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

1. At the Sample Code Library Website: http://samplecode.rockwellautomation.com search for


Micro800.

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.

6. Select the appropriate path to save the UDFB

7. The downloading will begin

8. Unzip the content of the download files and it is ready to be used.

4 of 20
Digital IO Plug In

The 2080 Digital IO Plug-In is available in the following model:

 2080-IQ4 – 4 Points Digital Input

 2080-OB4 – 4 Points Digital Sourcing Output

 2080-OV4 – 4 Points Digital Sinking Output

 2080-OW4I – 4 Points Relay Output

 2080-IQ4OB4 – 4 Points Digital Input and 4 points Digital Sourcing Output

 2080-IQ4OV4 – 4 Points Digital Input and 4 points Digital Sinking Output

It can be using with Micro 830/850 series from 10 points onwards.

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.

Slot Slot Slot Slot Slot


1 2 3 4 5

The slot number is as per above.

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.

The example given here is for a 2080-LC30-16QWB with 2080-IQ4OB4 installed.

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.

8. Click Cancel to close the Import Export screen.


9. The Imported UDFB will be shown in the tree of the project organizer.

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.

12. Create the variable as per the table shown below.

S/N Name Data Type Remark


1 S1_I00 BOOL Slot 1 Input 0
2 S1_I01 BOOL Slot 1 Input 1
3 S1_I02 BOOL Slot 1 Input 2
4 S1_I03 BOOL Slot 1 Input 3
5 S1_O00 BOOL Slot 1 Output 0
6 S1_O01 BOOL Slot 1 Output 1
7 S1_O02 BOOL Slot 1 Output 2
8 S1_O03 BOOL Slot 1 Output 3
9 Error_S1_IN BOOL Error Bit for Input Slot 1
10 Error_S1_OUT BOOL Error Bit for Output Slot 1
11 SMSG_S1_IN STRING Status Message
12 SMSG_S1_OUT STRING Status Message
13 Error_S1 BOOL Slot 1 Error Bit for Input or Output

10 of 20
13. Right click on the Programs, and Add a New LD: Ladder Diagram.

14. Click once on the UntitledLD and rename program to IORDWR

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.

Slot number of location where


the module is installed.
In this example is Slot 1, so
SMSG_S1_IN
enter value 1.

SMSG_S1_IN

Variable name where the


input is read into.
In this example is S1_I00

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.

Repeat the step for rest of the input.

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.

Slot number of location where


the module is installed.
In this example is Slot 1, so SMSG_S1_OUT
enter value 1.

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.

23. In the new rung, enter the following.

24. Right click on the Programs, and Add a New LD: Ladder Diagram.

25. Change the name from UntitledLD to Latch.


26. Double click on the “Latch” and enter the following program to the program workspace.

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

You might also like