1、ABB DCS 系统 培训课程 系列讲座 Basic HW ConfigChapter 15 Basic HW Configuration and I/O Connection 15.1 General Information 15.1.1 DescriptionThis chapter describes how to configure the basic hardware, how to connect to I/O and how to handle I/O on-line.15.1.2 ObjectivesOn completion of this chapter you will
2、be able to: Configure a basic hardware in order to connect to I/O. Describe how the hierarchical dot notation works. Describe the difference between the allowed data types and when to use them. Connect variables to I/O. On-line handling of I/O.15.1.3 Reference DocumentationUse the online help: Conte
3、nts tab, Hardware ConfigurationUse the online help: Contents tab, I/O Configuration15.2 Lesson 1 Basic Hardware Configuration15.2.1 DescriptionThis lesson describes how to configure a basic hardware.15.2.2 ObjectivesOn completion of this lesson you will be able to: Describe how to set up a basic har
4、dware configuration in order to connect to I/O. Describe how the hierarchical dot notation works.15.2.3 Inserting I/O units in the hardware configurationHardware units are added to the tree structure in the Project Explorer represent physical hardware units. Some units contain sub units, such as ser
5、ial channels, that are automatically created. Below is an example of a hardware configuration.15.2.3.1 Adding Hardware UnitsTo add a new hardware unit to the hardware tree structure in the Project Explorer, proceed as follows: Select the unit to which you want to add the new hardware unit. With the
6、new unit selected, right-click on the unit and select New unit. A submenu listing possible hardware is displayed. Select the type of hardware you wish to add. If New unit is dimmed the unit you have selected in step 1 may not contain any sub units, or the maximum number of sub units has been reached
7、. Select a position for the hardware unit in the dialog box displayed. The first available position is chosen by default. If another position is desired, click the list box to display available positions. Click OK. The hardware unit is now added to the tree, and the name of the hardware unit, as wel
8、l as its position, is displayed next to the icon of the hardware unit. The icons look different depending on which type of unit was added.15.2.3.2 Hierarchical dot notationThe hardware address of a hardware unit is composed from the hardware tree position numbers of the unit and its parent units, de
9、scribed from left to right and separated by dots.For example channel 1 on the I/O unit DO810 have the address Controller_1.0.11.1.1.15.3 Exercise 15.1 A basic hardware ConfigurationPlease do exercise 15.115.4 Lesson 2 I/O Connection and On-line handling of I/O15.4.1 DescriptionThis lesson describes
10、how to connect to I/O and on-line handling of I/O.15.4.2 ObjectivesOn completion of this lesson you will be able to: Describe the different ways to connect to I/O. Describe the difference between the allowed data types and when to use them. Make an I/O connection in two ways.15.4.3 ConnectionUse the
11、 connections tab of the hardware configuration editor to make connections between variables and I/O channels or other hardware channels. All I/O access is carried out through a variable connected to an I/O channel.Connections can be edited only in Offline mode. The connections tab is not available f
12、or units without channels to which you can connect variables.The connections tab contains a grid. The heading row features the headings Channel, Name, Type, Variable and I/O Description. There are as many rows as there are channels to which you can connect. A digital unit can also be connected to al
13、l channels as a double word (dword).15.4.3.1 Allowed Data TypesVariables connected to I/O can be of any of the simple data types bool, dint, dword or real, or any of the system-defined I/O data types. 15.4.3.1.1 BoolIOThe data type BoolIO has the following components.NameData typeDescriptionValueBoo
14、lValue used by the application.IOValueBoolValue of the I/O channel. IOValue and Value are equal if the channel is not forced.ForcedBoolSpecifies whether or not the channel is forced.15.4.3.1.2 RealIOYou can use the RealIO data type for variables connected to I/O. The Value, IOValue, Forced and Statu
15、s components are given by the system to the application. The Inverted, Max, Min, Unit and Fraction components are given by the user of the application to the system in the Scaling tab. The data type has the following components.NameData typeDescriptionValueRealValue used by the application.IOValueRe
16、alValue of the I/O channel. IOValue and Value are equal if the channel is not forced.ForcedBoolSpecifies whether or not the channel is forced.StatusDintIf the channel status is not OK, Status can take any of these values:-4029 Underflow-4030 Overflow-4031 UnitError-4032 ChannelErrorParametersSignalP
17、arMeasuring rangeThe data type SignalPar has the following components.NameData typeDescriptionMaxRealMaximum value to which you can scale a maximum input signal.MinRealMinimum value to which you can scale a minimum input signal.InvertedBoolSpecifies if the connection to the analog I/O is reversed (0
18、 mA-100%, 20 mA-0%).FractionDintSpecifies the number of decimals to be displayed.UnitstringDisplay unit.15.4.3.1.3 DintIOThe data type dint IO has the following components.NameData typeDescriptionValuedintValue used by the application.IOValueDintValue of the I/O channel. IOValue and Value are equal
19、if the channel is not forced.ForcedBoolSpecifies whether or not the channel is forced.15.4.3.1.4 DwordIOThe data type dint IO has the following components.NameData typeDescriptionValuedwordValue used by the application.IOValuedwordValue of the I/O channel. IOValue and Value are equal if the channel
20、is not forced.ForcedBoolSpecifies whether or not the channel is forced.15.4.3.2 From an I/O channel to a variableIt is only possible to connect variables to a physical I/O, to connect variables to I/O units, proceed as follows:Double-click on the I/O unit.A window like the one below will be visible.
21、 The appearance of the window is different depending of which I/O unit you use.Right-click in the variable column and choose (Insert Path, Attribute from list) or (Insert Path from Tree). It is also possible to use the accelerators Ctrl +J or Ctrl + T.Use the dot notation function or expand the tree
22、 to reach the wanted variable.15.4.3.3 From a variable to an I/O channelIt is possible to connect variables to I/O from the POU editor, but is recommended to do it from the I/O unit, because you can not browse to the correct I/O address from the I/O address column in the POU editor. 15.4.4 Online ha
23、ndling of I/O15.4.4.1 StatusUse the status tab of the hardware configuration editor, in online mode, for dynamic online display of I/O channel values and forcing. I/O channel values are updated once every second. The tab is available in Offline mode, but not editable. The tab consists of five column
24、s: Channel, Channel value, Forced, Variable value and Variable.Underflow, overflow, channel and unit errors in online mode are indicated in the Channel value cell by the following icons:15.4.4.1.1 Signal errors underflowThe signal is below the range. overflowThe signal is above the range.15.4.4.1.2
25、Hardware errorschannel errorThe channel can have under range, power-up or field power errors.Unit errorThe unit can be missing or of the wrong type.15.4.4.2 ForcingForcing of I/O is possible in online mode. You check a check box in the Forced column and then type in a value in the Channel value colu
26、mn for outputs and the in Variable value column for inputs. This value overrides the values in each of those columns. The background of the forced cell changes to yellow to indicate forcing. Forcing is deactivated when you remove the check from the Forced check box of the channel in question.All I/O
27、 channels that can be connected to a variable in an application can also be forced in online mode, except for channels such as UnitStatus on each I/O unit and AllUnitsStatus on the current controller. Forcing is performed in the hardware configuration editor under the Status tab or the POU editor. A
28、pplication programs requiring information about forcing and forced values can use the system defined I/O data types when connecting variables to I/O channels. The I/O data types contain the IOValues and Forced components. The Forced component indicates if the I/O channel is forced. The IOValue compo
29、nent contains the value of the I/O channel.Normally only channels with variable connections to application programs can be forced. However, if no variable is connected you have to change the parameter Copy unconnected channels under the Settings tab for the current controller to get a status update.
30、 The I/O channels you can select to copy are None, the Inputs or the Outputs or both the Inputs and Outputs. If selected, the copying of unconnected I/O channels are made once a second so their status are available in the Status tab like normally connected I/O channels. When a channel is forced all
31、copying between the I/O value and the application value ceases. The forced value is different for inputs and outputs. For inputs the forcing changes the variable value to the application. For outputs the forcing changes the physical I/O channel value. In this way the application can see both the Variable (application) value and the Channel (I/O) value.15.5 Exercise 15.2 - Connection of I/OPlease do exercise 15.2Du kan tag bort denna osynliga text men ltnedanstende Page Break ligga kvar !Lt ven den efterfljande sidan ligga kvar !This page is intentionally left blank
copyright@ 2008-2022 冰豆网网站版权所有
经营许可证编号:鄂ICP备2022015515号-1