Configuring I/O Items
(Original Document)
Overview
The final task in this example is to add I/O items to the configuration of the STB NIC 2212 and its 8 I/O modules. To accomplish this:
I/O Item Types and Sizes
The goal is to create a collection of input items and output items that equal the input size and output size specified for the STB NIC 2212. In this example, items need to be created for:
The Control Expert Device Editor provides great flexibility in creating input and output items. You can create input and output items in groups of 1 or more single bits, 8-bit bytes, 16-bit words, 32-bit dwords, or 32-bit IEEE floating values. The number of items you create depends upon the data type and size of each item.
In the sample project, the following items were created:
Mapping Input and Output Items
Use the Fieldbus Image page of the I/O Image Overview window in the Advantys configuration software to identify the number and type of I/O items you need to create, as follows:
Step
Action
1
In the Advantys configuration software, select IslandI/O Image Overview. The I/O Image window opens to the Fieldbus Image page.
2
Select the first cell (word 1, cell 0) in the Input Data table to display—in the middle of the page—a description of the cell data and its source module.
3
Make a note of the word, bit(s), module and item information for that cell.
4
Repeat steps 2 and 3 for each cell containing either an S or an integer.
NOTE: The Fieldbus Image presents input and output data in the form of 16-bit words (starting with word 1). You need to rearrange this data for the Control Expert Ethernet Configuration Tool, which presents the same data in the form of 8-bit bytes (starting with byte 0).
NOTE: When you create items, align items of data type WORD and DWORD on a 16-bit boundary.
This process yields the following tables of input and output data:
Input Data:
Advantys Fieldbus Image
Control Expert EIP Items
STB Module
Description
Word
Bit(s)
Byte
Bit(s)
1
0-15
0
0-7
NIC 2212
low byte status
1
0-7
high byte status
2
0-1
2
0-1
DDI 3230
input data
2-3
2-3
DDI 3230
input status
4-5
4-5
DDO 3200
output data echo
6-7
6-7
DDO 3200
output status
8-11
3
0-3
DDI 3420
input data
12-15
4-7
DDI 3420
input status
3
0-3
4
0-3
DDO 3410
output data echo
4-7
4-7
DDO 3410
output status
8-13
5
0-5
DDI 3610
input data
14-15
6-7
NA
not used
4
0-5
6
0-5
DDI 3610
input status
6-7
6-7
NA
not used
8-13
7
0-5
DDO 3600
output data echo
14-15
6-7
NA
not used
5
0-5
8
0-5
DDO 3600
output status
6-15
8
6-7
NA
not used
9
0-7
6
0-15
10
0-7
AVI 1270
input data ch 1
11
0-7
7
0-7
12
0-7
AVI 1270
input status ch 1
8-15
13
0-7
NA
not used
8
0-15
14
0-7
AVI 1270
input data ch 2
15
0-7
9
0-7
16
0-7
AVI 1270
input status ch 2
8-15
17
0-7
AVO 1250
output status ch 1
10
0-7
18
0-7
AVO 1250
output status ch 2
8-15
NA
NA
NA
not used
Output Data:
Advantys Fieldbus Image
Control Expert EIP Items
Module
Description
Word
Bit(s)
Byte
Bit(s)
1
0-1
0
0-1
DDO 3200
output data
2-5
2-5
DDO 3410
output data
6-7
6-7
NA
not used
8-13
1
0-5
DDO 3600
output data
14-15
6-7
NA
not used
2
0-15
2
0-7
AVO 1250
output data ch 1
3
0-7
3
0-15
4
0-7
AVO 1250
output data ch 2
5
0-7
This example shows you how to create 19 bytes of inputs and 6 bytes of outputs. To more efficiently use space, this example creates items in the following sequence:
Creating Input Bit Items
To create input bit items for the STB NIC 2212 example, beginning with 16 discrete inputs for NIC 2212 status:
Step
Action
1
In the DTM Browser, select the communication module:
2
Do one of the following:
  • in the main menu, select Edit → Open, or
  • click the right mouse button, then select Open in the pop-up menu.
The Device Editor opens, displaying the DTM for the communication module.
3
In the left pane of the Device Editor, navigate to and select the Items node for the STB NIC 2212 network interface module:
4
The Items window opens:
5
Select the Input (bit) tab to display that page.
6
In the Input (bit) page, type the following default root name—representing device status—into the Default Items Name Root input box type: NIC2212_01_st.
7
In the Items List, select the first 16 rows in the table. (You may need to use the right scroll bar to select some rows at the bottom of this range.) These rows represent bits 0-7 in both byte 0 and byte 1
NOTE: This example displays the last nine—or bottom-most—part of the range.
8
Click the Define Item(s) button.The Item Name Definition dialog opens:
Note: The asterisk (*) indicates a series of discrete items with the same root name will be created.
9
Accept the default Item Name and click OK. 16 discrete input items are created:
10
Click Apply to save the items, and leave the page open.
11
Repeat steps 6 - 10 for each group of discrete input items you need to create. In this example, that includes items for each of the following groups:
  • Byte: 2, Bits: 0-1, Default Items Name Root: DDI3230_in_data
  • Byte: 2, Bits: 2-3, Default Items Name Root: DDI3230_in_st
  • Byte: 2, Bits: 4-5, Default Items Name Root: DDO3200_out_echo
  • Byte: 2, Bits: 6-7, Default Items Name Root: DDO3200_out_st
  • Byte: 3, Bits: 0-3, Default Items Name Root: DDI3420_in_data
  • Byte: 3, Bits: 4-7, Default Items Name Root: DDI3420_in_st
  • Byte: 4, Bits: 0-3, Default Items Name Root: DDO3410_out_echo
  • Byte: 4, Bits: 4-7, Default Items Name Root: DDO3410_out_st
  • Byte: 5, Bits: 0-5, Default Items Name Root: DDI3610_in_data
  • Byte: 6, Bits: 0-5, Default Items Name Root: DDI3610_in_st
  • Byte: 7, Bits: 0-5, Default Items Name Root: DDO3600_out_echo
  • Byte: 8, Bits: 0-5, Default Items Name Root: DDO3600_out_st
12
The next task is to create input bytes and words.
Creating Input Items
To create input items for the STB NIC 2212 example, begin an input data byte containing low byte status for the STB NIC 2212 module:
Step
Action
1
Select the Input tab to return to that page:
NOTE: In this example, both the Offset/Device and Offset/Connection columns represent the byte address. The items you create will be either an 8-bit byte or a 16-bit word
2
In the Default Item Name Root input box type: NIC2212_01_LO_st.
3
Starting at the available whole input word, select the single row at byte 8:
4
Click the Define Item(s) button.The Item Name Definition dialog opens:
5
Select Byte as the New Item(s) Data Type, then click OK. A new item is created:
6
Click Apply to save the new items, and leave the page open.
7
Repeat steps 2 - 6 for each byte or word input item you need to create.
NOTE: The number of rows you select for an item depends on the item type. If an item is a:
  • byte: select a single row
  • word: select two rows, beginning at the next available whole word
In this example, you will create items for each of the following:
  • Byte 9: Default Items Name Root: NIC2212_01_HI_st
  • Word 10: Default Items Name Root: AVI1270_CH1_data
  • Byte: 12, Default Items Name Root: AVI1270_CH1_inst
  • Word: 14-15, Default Items Name Root: AVI1270_CH2_in_data
  • Byte: 16, Default Items Name Root: AVI1270_CH2_in_st
  • Byte: 17, Default Items Name Root: AVO1250_CH1_out_st
  • Byte: 18, Default Items Name Root: AVO1250_CH2_out_st
8
The next task is to create output bits.
Creating Output Bit Items
To create output bit items for the STB NIC 2212 example, beginning with 2 output bits for the STB DDO3200 module:
Step
Action
1
Select the Output (bit) tab to open the following page:
NOTE: Both the Offset/Device and Offset/Connection columns represent the byte address of an output, while the Position in Byte column indicates the bit position—within the byte—of each discrete output item.
2
In the Default Items Name Root input box type: DDO3200_out_data.
3
In the Items List, select the rows that correspond to bits 0-1 in byte 0—i.e., the first 2 rows:
4
Click the Define Item(s) button.The Item Name Definition dialog opens:
NOTE: The asterisk (*) indicates a series of discrete items with the same root name will be created.
5
Accept the default output name and click OK. 2 discrete output items are created:
6
Click Apply to save the new items, and leave the page open.
7
Repeat steps 2 - 6 for each group of discrete output items you need to create. In this example, that includes items for each of the following groups:
  • Byte: 0, Bits: 2-5, Default Items Name Root: DDO3410_out_data
  • Byte: 1, Bits: 0-5, Default Items Name Root: DDO3600_out_data
8
The next task is to create output bytes and words.
Creating Numeric Output Items
To create output items for the STB NIC 2212, example, beginning with a output data word for the STB AVO 1250 module:
Step
Action
1
Click on the Output tab to open the following page:
NOTE: In this example, both the Offset/Device and Offset/Connection columns represent the byte address. The items you create will be 16-bit words comprising 2 bytes.
2
In the Default Item Name Root input box type: AVO1250_CH1_out_data.
3
Starting at the next available whole word, select 2 rows: 2 and 3:
4
Click the Define Item(s) button.The Item Name Definition dialog opens:
5
Accept the default output name and click OK. the following output word item is created:
6
Click Apply to save the new item and leave the page open.
7
Repeat steps 2 - 6 for the AVO 1250 channel 2 output data at bytes 4 and 5.
8
Click OK to close the Items window.
9
Select File → Save to save your edits.