io plus manual

30
I/O Plus User’s Guide Contents page I/O Plus User’s Guide 1 1 Introduction 3 2 Using Non-ABB DeviceNet units 4 2.1 General UNIT_TYPE configuration ................................................. 4 2.1.1 List all available I/O Unit Types ............................................ 4 2.1.2 Defining an IO module type (EIO_UNIT_TYPE) .................. 4 2.1.3 Defining Parameters to a unit type. (EIO_PARAM) ............. 7 2.1.4 Defining parameters to a unit. (EIO_PARAM_VALUE) ........ 8 2.2 Predefined UNIT_TYPE´s ............................................................... 8 2.2.1 Wago I/O System ................................................................. 9 2.2.2 Lutze .................................................................................... 10 2.2.3 Other predefined Unit types................................................. 12 2.3 Unit of type “General purpose Discrete I/O” .................................... 12 2.4 Using Generic Driver ....................................................................... 13 3 Dual DeviceNet channels 15 3.1 System Overview ............................................................................ 15 3.1.1 Specification Overview......................................................... 15 3.1.2 DeviceNet connectors in S4Cplus ....................................... 16 3.1.3 I/O Units ............................................................................... 16 3.2 Controller Software.......................................................................... 17 3.3 DeviceNet second channel Configuration ....................................... 17 3.3.1 Configuration Overview from the Teach Pendant ................ 17 3.3.2 CAN2 Bus Configuration ...................................................... 18 4 DeviceNet Slave 22 4.1 System Overview ............................................................................ 22 4.1.1 Specification Overview......................................................... 22 4.1.2 DeviceNet connectors in S4Cplus ....................................... 23 4.2 Controller Software.......................................................................... 23 4.2.1 Configuration Software ........................................................ 23 4.2.2 Slave EDS-file ...................................................................... 24 4.3 S4Cplus DeviceNet Internal Slave .................................................. 24 4.3.1 Introduction .......................................................................... 24 4.3.2 Unit Type Configuration ....................................................... 24 4.3.3 I/O Unit Configuration .......................................................... 25 4.4 PLC configuration ............................................................................ 26 4.5 Communication status ..................................................................... 26

Upload: mohamed-azzuz

Post on 22-Oct-2014

740 views

Category:

Documents


38 download

TRANSCRIPT

Page 1: IO Plus Manual

I/O Plus User’s Guide

Contents page

1 Introduction 3

2 Using Non-ABB DeviceNet units 4

2.1 General UNIT_TYPE configuration ................................................. 4

2.1.1 List all available I/O Unit Types............................................ 4

2.1.2 Defining an IO module type (EIO_UNIT_TYPE) .................. 4

2.1.3 Defining Parameters to a unit type. (EIO_PARAM) ............. 7

2.1.4 Defining parameters to a unit. (EIO_PARAM_VALUE) ........ 8

2.2 Predefined UNIT_TYPE´s ............................................................... 8

2.2.1 Wago I/O System................................................................. 9

2.2.2 Lutze .................................................................................... 10

2.2.3 Other predefined Unit types. ................................................ 12

2.3 Unit of type “General purpose Discrete I/O” .................................... 12

2.4 Using Generic Driver ....................................................................... 13

3 Dual DeviceNet channels 15

3.1 System Overview ............................................................................ 15

3.1.1 Specification Overview......................................................... 15

3.1.2 DeviceNet connectors in S4Cplus ....................................... 16

3.1.3 I/O Units ............................................................................... 16

3.2 Controller Software.......................................................................... 17

3.3 DeviceNet second channel Configuration ....................................... 17

3.3.1 Configuration Overview from the Teach Pendant ................ 17

3.3.2 CAN2 Bus Configuration...................................................... 18

4 DeviceNet Slave 22

4.1 System Overview ............................................................................ 22

4.1.1 Specification Overview......................................................... 22

4.1.2 DeviceNet connectors in S4Cplus ....................................... 23

4.2 Controller Software.......................................................................... 23

4.2.1 Configuration Software ........................................................ 23

4.2.2 Slave EDS-file...................................................................... 24

4.3 S4Cplus DeviceNet Internal Slave .................................................. 24

4.3.1 Introduction .......................................................................... 24

4.3.2 Unit Type Configuration ....................................................... 24

4.3.3 I/O Unit Configuration .......................................................... 25

4.4 PLC configuration............................................................................ 26

4.5 Communication status..................................................................... 26

I/O Plus User’s Guide 1

Page 2: IO Plus Manual

I/O Plus User’s Guide

Contents page

4.6 Internal Slave Configuration Example.............................................. 26

4.6.1 Setting up a S4Cplus DeviceNet slave. ................................ 26

4.6.2 Connecting two S4Cplus systems using the S4Cplus DeviceNet slave. .................................................................................... 27

2 I/O Plus User’s Guide

Page 3: IO Plus Manual

Introduction

1 IntroductionInformation regarding changing the System Parameters can be found in User’s Guide for BaseWare OS, chapter Systemparameter.

I/O Plus enables the S4Cplus to use non-ABB I/O units. A few units are predefined and shortly described in this document, these are to be seen as an example and might not be your first choice or most suitable for your application.

In addition to the above units, the IO Plus “Generic Driver” also opens up the possibility to use other digital I/O units that conform with the DeviceNet specification. ABB Robotics AB does not assume any responsibility for the functionality or quality of such units. The user must provide the appropriate configuration data.

IO Plus also opens up the use of the second DeviceNet channel named CAN2, the configuration of the second channel is automatic if you have IO Plus.

IO Plus also opens up the DeviceNet Slave functionality, which allow the S4Cplus controller to act as a slave unit towards another DeviceNet master, the configuration data for the slave unit is included.

Note! This manual is only a supplementary manual to the other robot manuals. Detailed information about DeviceNet can be found in the specification of the DeviceNet standard, which is possible to retrieve from Open DeviceNet Vendor Association, Inc. (http:\\www.odva.org).

I/O Plus User’s Guide 3

Page 4: IO Plus Manual

Using Non-ABB DeviceNet units

2 Using Non-ABB DeviceNet unitsThis section describes the configuration syntax and parameters needed when connecting non-ABB DeviceNet units. It also shortly describes a few predefined non-ABB units and the Generic driver used for non-ABB units.

2.1 General UNIT_TYPE configuration

This section describes the EIO_UNIT_TYPE configuration and the parameters within this declaration.

2.1.1 List all available I/O Unit Types

- Choose Topics: IO Signals

- Choose Types: Unit Types

All available unit types will be displayed, as shown in Figure 1.

Figure 1 List of all available unit types

To get detailed information about a particular unit type:

- Select the appropriate unit type and press Enter

2.1.2 Defining an IO module type (EIO_UNIT_TYPE)

Different types of units (modules/devices) are defined in the EIO_UNIT_TYPE section. For each type of unit the parameter specifies that unit’s overall constraints.

The robot system is delivered with a set of predefined unit types. If a unit does not fit within these types, a new type may be defined in the EIO_UNIT_TYPE section. This is done by giving appropriate values to the parameters. The correct values are normally found in the EDS file (Electronic Data Sheet) for the unit witch should be obtained from the vendor of the IO module.

System Parameters IO SignalsUnit Types

File

Name

eip000d320d327d328d509d332d350

Edit Topics Types

Product Name

Simulated120 Vac UnitCombi Unit24 Vdc UnitPanel UnitRelay UnitRIO Adapter

7(7)

4 I/O Plus User’s Guide

Page 5: IO Plus Manual

Using Non-ABB DeviceNet units

Example:

This configuration item defines a DSQC-328 I/O Board. The board has 16 digital inputs and 16 digital outputs.

EIO_UNIT_TYPE:

-Name d328 -VendorId 75 -VendorName “ABB Robotics” -DeviceType 7 \-ProductId 0 -ProductName “24 Vdc IO” -MajorRev 0 -MinorRev 0

Parameters of EIO_UNIT_TYPE

- NameMandatory

The name that will be used to refer to this type in the rest of the configuration file

- VendorIdMandatory

A number that identifies the vendor of the I/O module. (Called VendCode in EDS file).

- VendorNameOptional

The name of the vendor in readable text. (Called VendName in EDS file).

- DeviceTypeMandatory

A numeric code that identifies the type of I/O module. (Called ProdType in EDS file).

- DeviceDriverOptional

Only used with the Generic Driver, see section 2.4 <Italic>Using Generic Driver.

- ProductIdMandatory

A number that identifies the product that this type defines. (Called ProdCode in EDS file).

- ProductNameOptional

The name of the product in readable text. (Called ProdName in EDS file).

- MajorRevOptional

The major part of the software revision of the I/O module (Called MajRev in EDS file).

- -MinorRevOptional

The minor part of the software revision of the I/O module (Called MinRev in EDS file).

- -MaxDiginOptional

Specifies the maximum number of digital inputs available on the unit type.

For some DeviceNet modules, this parameter is not used, since it is possible to obtain this information from the I/O module itself. If the Generic Diver is used always specify this parameter.

- -MaxDigoutOptional

Specifies the maximum number of digital outputs available on the unit type.

For some DeviceNet modules, this parameter is not used, since it is possible to obtain this information from the I/O module itself. If the Generic Diver is used always specify this parameter.

- -MaxAninOptional

I/O Plus User’s Guide 5

Page 6: IO Plus Manual

Using Non-ABB DeviceNet units

Specifies the maximum number of analog inputs available on the unit type.

For some DeviceNet modules, this parameter is not used, since it is possible to obtain this information from the I/O module itself.

- -MaxAnoutOptional

Specifies the maximum number of analog outputs available on the unit type.

For some DeviceNet modules, this parameter is not used, since it is possible to obtain this information from the I/O module itself.

- -MaxChannelsOptional

Specifies the maximum number of serial channels for the unit type. This is a ABB specific serial channel protocol. Usually only used internally by ABB.

- -MMCAttrOptional

Specifies a man machine attributes section in the mmc configuration file to be used to display the parameters listed in the -Param section.

- -ParamOptional

Name of a section that defines the parameters which are available for the unit type.See section 2.1.3 <Italic>Defining Parameters to a unit type. (EIO_PARAM)

Some of the parameters must be given values, other may be left out and will then get the default value. The table below defines the characteristics for each parameter in the EIO_UNIT_TYPE section.

Parameter Values Type Default Value

-Name 1..19letters

String No Default

-VendorId 0..65535 Integer No Default

-VendorName 1..19letters

String An empty string

-DeviceType 0..255 Integer No Default

-ProductId 0..65535 Integer No Default

-DeviceDriver 1..19letters

String An empty string

-ProductName 1..19letters

String An empty string

-MajorRev 0..255 Integer No Default

-MinorRev 0..255 Integer No Default

-MaxDigin 0..255 Integer 0

-MaxDigout 0..255 Integer 0

-MaxAnin 0..255 Integer 0

-MaxAnout 0..255 Integer 0

-MaxChannels 0..2 Integer 0

-MMCAttr 1..19letters

String An empty string

-Param 1..19letters

String An empty string

6 I/O Plus User’s Guide

Page 7: IO Plus Manual

Using Non-ABB DeviceNet units

2.1.3 Defining Parameters to a unit type. (EIO_PARAM)

Some I/O modules may have configurable parameters, that shall be down loaded to the unit by the robot controller at startup. If so, these parameters are defined in the EIO_PARAM section. the path and values are obtained from the EDS file. The section is given a name as shown in this example.

Example:

D328_PARAM = EIO_PARAM:-Name “on_off_delay” -Path “6, 20 8 24 1 30 5,1,2” -Service 0x10 -DefValue 50

The name of this section is assigned to the -Param parameter of the EIO_UNIT_TYPE section.

Example:

EIO_UNIT_TYPE:-Name d328 -VendorId 75 -VendorName “ABB Robotics” -DeviceType 7 \-ProductId 0 -ProductName “24 Vdc IO” -MajorRev 0 -MinorRev 0 \-Param D328_PARAM

Each configuration item in the EIO_PARAM section describes one parameter by the following attributes.

Attributes of EIO_PARAM

- NameMandatory

The name that will be used to refer to this parameter when giving it a specific value for a specific unit as described in the EIO_PARAM_VALUE section below.

- PathMandatory

A description used by the driver software when accessing objects and parameters within the software of the IO module. For more detailed description see the DeviceNet specification.

For deviceNet compatible I/O modules, the value can be found in the EDS-file for the I/O module or from the DeviceNet specification.

- ServiceOptional

A numeric code that describes for the driver software how to set the parameter.

For deviceNet compatible I/O modules, the service most commonly used is “Set Attribute Single” with the numeric code 0x10, and “Get Attribute Single” with code 0x0E. More information about these sevices could be found in the DeviceNet specification.

- DefValueMandatory

The default value that will be assigned to the parameter on unit type level. See section 2.1.4 <Italic>Defining parameters to a unit. (EIO_PARAM_VALUE) for assigning values to parameters on unit level.

The table below describes the characteristics for each attribute.

Attribute Values Type Default Value

-Name 1..20 letters String Empty String

-Path 1..30 letters String Empty String

I/O Plus User’s Guide 7

Page 8: IO Plus Manual

Using Non-ABB DeviceNet units

2.1.4 Defining parameters to a unit. (EIO_PARAM_VALUE)

A certain unit type may have a number of configurable parameters, depending on whether that unit type has a reference to a EIO_PARAM section.

For assigning a value to a parameter which is different from the default value of that parameter, a EIO_PARAM_VALUE section needs to be defined. The section is given a name, that is referred to by the -Param attribute in the EIO_UNIT_TYPE section.

Example:

D328_PARAM_VALUES = EIO_PARAM_VALUE:-Name “on_off_delay” -Value 100

The section holds one configuration item for each parameter that is defined in the corresponding EIO_PARAM section.

Attributes of EIO_PARAM_VALUE

- NameMandatory

The name of the parameter that shall be assigned a value.

The parameter name must match one of the configuration instances in the EIO_PARAM section of the EIO_UNIT_TYPE for this unit.

- ValueMandatory

The value to which the parameter will be set.

2.2 Predefined UNIT_TYPE´s

The S4Cplus controller software contains a number of predefined I/O unit types for DeviceNet. The I/O unit types are described in configuration files located in the IO Plus Option directory in the RobotWare release media directory. This path differs according to what directory the RobInstall program has been installed into. The path is usually:

On your PC:

<RobInstall directory>\Mediapool\3HABxxxx-x.xx\Options\opt538\ioplus.cfg

On the robot controller:

\hd0a\3HABxxxx-x.xx\Options\opt538\ioplus.cfg

where <xxxx-x.xx> corresponds to your specific release revision (e.g. xxxx-x.xx = 6811-1.20 means RobotWare 4.0.20)

These are to be seen as an example and might not be your first choice or most suitable for your application. For more information on any of these units, please contact the supplier.

If another I/O unit type is required, it has to be created by the user. See section 2.1 <Italic>General UNIT_TYPE configuration

-Service 0..65535 Integer 0

DefValue 0..65535 Integer No Default

Attribute Values Type Default Value

8 I/O Plus User’s Guide

Page 9: IO Plus Manual

Using Non-ABB DeviceNet units

2.2.1 Wago I/O System

DeviceNet Modular I/O

The Wago I/O System is composed of a DeviceNet fieldbus coupler (Item 750-306 Rev 3.) and modules of different types such as digital I/O and Analog I/O

Each module has two channels of the same type (digital or analog and input or output)

In this way it is possible to build an I/O system with the exact number and type of channels needed.

Its is possible for example to build a system with the following items:

- Fieldbus coupler for DeviceNet 750-306

- one 750-400: two digital input channels 24V

- one 750-501: two digital output channels 24V

- one 750-466: two analog input channels 4-20mA

- one 750-554: two analog output channels 4-20mA

- one 750-467: two analog output channels -10V +10V

- one 750-550: two analog input channels -10V +10V

- one 750-600: system bus terminator

The size of the unit may not exceed 16 bytes in and 16 bytes out, the size is calculated as shown below.

Input:

Sum all input signals, each group of 8 digital signals forms one byte. An analog input forms two bytes. Add one byte used by the Wago DeviceNet coupler.

Output:

Sum all output signals, each group of 8 digital signals forms a byte. An analog output forms two bytes.

Example:

- 28 digital input and two analog inputs => 9 bytes in (4+4+1)

- 22 digital outputs and two analog outputs => 7 bytes out (3+4)

The system must be externally powered by 24V

Address and baudrate are programmable by dip switches

Technical data

See Wago I/O system documentation

Further information

I/O Plus User’s Guide 9

Page 10: IO Plus Manual

Using Non-ABB DeviceNet units

Contact the vendor.

Figure 2 Wago I/O System connection and Leds

2.2.2 Lutze

Dioplex LS-DN 744221, IP 67 8 digital inputs and 8 digital outputs 24V

This DIO-4221 has 8 digital inputs and 8 digital outputs channels packaged in a high protection grade IP67.

The module is supplied by an external 24V. Max consumption is 500mA

Address and baudrate are programmable with the help of a tool such as DeviceNet Manager 1787 MGR or RSNetWorx and the adapter 1770 KFD from Allen Bradley

Default address is 63 and baudrate 125 kb/s.

Technical data

See Lutze technical sheet delivered with the product

Further information

Contact the vendor.

WAGO I/O System

Fieldbus Coupler 750-306 Two Channels module

DeviceNet OpenStyle Connector

Address andBaud RateDipswitches

MS

NS

I/O

750-

306

WA

GO

<-I

/O<-

SYT

EM

ON

24V

+ +

--

0V

24 V power supply

Bus Terminator

Status Led

10 I/O Plus User’s Guide

Page 11: IO Plus Manual

Using Non-ABB DeviceNet units

Lutze 744 221 connection and Leds

Dioplex LS-DN 744215, IP 67 16 digital inputs 24V

This DIO-4215 has 16 digital inputs packaged in a high protection grade IP67.

The module is supplied by the DeviceNet 24V_CAN. Max consumption is 80mA

Address and baudrate are programmable with the help of a tool such as DeviceNet Manager 1787 MGR and the adapter 1770 KFD from Allen Bradley

Default address is 63 and baudrate 125 kb/s.

Technical data

See Lutze technical sheet delivered with the product

Further information

Contact the vendor.

DIOPLEX LS DN 8E/8A 744221

8 digital inputs 8 digital outputs DeviceNet 24V

1

A

B

A

B

Us

Ul

A

B

A

B

A

B

A

B

MS

NS

A

B

A

B

0VL

2

3

5 4

Diagnostic LEDS

Us Actuator power supply, green

Ul Logic power supply, green

Ms Module status, red/green

Ns Network status, red/green

0VL sensor over load, red

A,B status indication, yellow

DeviceNet connection

Channel connectionM12 connector type

M18 connector type

Actuatorpower supply

OutputsInputs

I/O Plus User’s Guide 11

Page 12: IO Plus Manual

Using Non-ABB DeviceNet units

Figure 3 Lutze 744 215 connection and Leds

2.2.3 Other predefined Unit types.

In I/O Plus there are also support for some other types such as the “Welder”. These are project specific types, and are not intended for general use.

2.3 Unit of type “General purpose Discrete I/O”

If the IO Plus option is installed, units that are of the DeviceNet specified profile/device type “General purpose discrete I/O” (pure digital units) could be used with both Event triggered messeging (Change Of State (COS)) and Polled connections. Units of other profile/device types must use the Generic driver described in section 2.4 <Italic>Using Generic Driver. To see if a unit is of type “General purpose discrete I/O” look in the EDS file for the unit, if “ProdType” is 7 then it is a “General purpose discrete I/O” if it’s not you must use the Generic Driver see section 2.4 <Italic>Using Generic Driver.

Adding User Defined I/O Unit Types

I/O devices that does not have a unit type equivalent listed on the teach pendent, needs to be defined in the EIO.CFG configuration file. This cannot be done from the teach pendant. It has to be done using a standard PC.

User defined unit types are defined in the unit type section of the configuration file. A

DIOPLEX LS DN 744215

16 digital inputs DeviceNet 24V

1

A

B

A

B

Us

Ul

A

B

A

B

A

B

A

B

MS

NS

A

B

A

B

0VL

2

3

5 4

Diagnostic LEDS

Us Sensor power supply, green

Ul Logic power supply, green

Ms Module status, red/green

Ns Network status, red/green

0VL sensor over load, red

A,B status indication, yellow

DeviceNet connection

Input Channel connectionM12 connector type

M18 connector type

12 I/O Plus User’s Guide

Page 13: IO Plus Manual

Using Non-ABB DeviceNet units

description of the parameters in the EIO_UNIT_TYPE is explained in section 2.1.2 <Italic>Defining an IO module type (EIO_UNIT_TYPE)

The unit types are defined in the configuration file, using the syntax below filling in the appropriate italic- value, the values for these parameters are found in the EDS file for the unit supplied by the vendor.

EIO_UNIT_TYPE:

- Name typename \

- VendorId 1\

- VendorName “Vendor Name” \

- DeviceType 7 \

- ProductId 333 \

- ProductName “Product Name” \

- MajorRev 2 \

- MaxDigin 16 \

- MaxDigout 16 \

- MaxAnin 0 \

- MaxAnout 0

2.4 Using Generic Driver

Some devices may respond incorrectly to commands sent from the robot controller during connection establishment. The robot controller will then generate the error message: 71102 “DeviceNet incompatible”.

This can be avoided by explicitly specifying that the controller should use a more trivial method for connection establishment. This is done by adding the line; “-DeviceDriver DNGeneric” to the configuration file.

User defined unit types are defined in the unit type section of the configuration file. A description of the parameters in the EIO_UNIT_TYPE is explained in section 2.1.2 <Italic>Defining an IO module type (EIO_UNIT_TYPE)

EIO_UNIT_TYPE:

- Name typename \

- VendorId 1 \

- VendorName “Vendor Name” \

- DeviceType 12\

- DeviceDriver DNGeneric\

- ProductId 335 \

- ProductName “Product Name” \

- MajorRev 2\

- MaxDigin 16 \

- MaxDigout 16 \

I/O Plus User’s Guide 13

Page 14: IO Plus Manual

Using Non-ABB DeviceNet units

- MaxAnin 0 \

- MaxAnout 0

The generic driver can only set up polled connections.

The size of the unit may not exceed 16 bytes in and 16 bytes out.

The Generic Driver does not automatically support analog signals they have to be specially mapped see Users Guide section 3.7 Physical Signal Configuration.

14 I/O Plus User’s Guide

Page 15: IO Plus Manual

Dual DeviceNet channels

3 Dual DeviceNet channelsThis section is a description of the second DeviceNet field bus channel in the S4Cplus system. The differences between the two channels (BASE and CAN2) are also pointed out.

Detailed information about DeviceNet can be found in the specification of the DeviceNet standard, which is possible to retrieve from the Open DeviceNet Vendor Association, Inc. (http:\\www.odva.org).

3.1 System Overview

The second S4Cplus DeviceNet channel is named CAN2 and have the same features as the first channel BASE, in addition the CAN2 does not have a safety board connected to it and are not protected with internal relays in the cabinet as BASE.

The baudrate and the master address could be changed on CAN2 while it is fixed for BASE this allows, in combination with the DeviceNet slave functionality, (see section 4 <Italic>DeviceNet Slave), CAN2 to be used to connect several S4Cplus systems together or several systems to be controlled by a external PLC.

Figure 4 The two DeviceNet networks

3.1.1 Specification Overview

The lowest addresses are reserved for ABB Robotics internal use i.e. for safety board, master addresses and special applications.

Item Specification

Field Bus Type DeviceNet

S4Cplus - DeviceNet I/O SystemTeach Pendant

0

1

PLC DeviceNet-master

DeviceNet-Master/Slave

DeviceNet-Slave

DeviceNet-Slaves

CAN2 BASE

I/O Plus User’s Guide 15

Page 16: IO Plus Manual

Dual DeviceNet channels

Addresses available for customer use are 6-63 on BASE.

3.1.2 DeviceNet connectors in S4Cplus

The connectors for the DeviceNet channels are shown in Figure 5 and are labelled CAN 1.1, CAN 1.2 and CAN 1.3 for the first DeviceNet channel and CAN 2 for the second channel.

Figure 5 DeviceNet connectors

3.1.3 I/O Units

The maximum number of I/O units that can be defined in the S4Cplus system is described in User’s Guide Baseware chapter I/O data specification. As I/O units counts all DeviceNet-slave units connected to the S4Cplus DeviceNet-master, the internal DeviceNet-slave, simulated I/O units and other I/O units connected to other

Addressing DeviceNet master channel 1 (BASE) fixed address 2.

DeviceNet slave channel 1 (BASE) configurable between 6- 63.

DeviceNet master channel 2 (CAN2) configurable between 0 - 63.

DeviceNet slave channel 2 (CAN2) configurable between 0 - 63.

Number of Units config-ured in the system.

see User’s Guide Baseware, chapter I/O data specification.

Number of signals see User’s Guide Baseware, chapter I/O data specification.

Baudrate The DeviceNet channel 1 (BASE) is fixed to a baudrate of 500 Kbit/s.

The DeviceNet channel 2 (CAN2) is configurable 125/250/500 Kbit/s.

DeviceNet slave uses S4Cplus master baudrate.

Item Specification

BASE CAN2

16 I/O Plus User’s Guide

Page 17: IO Plus Manual

Dual DeviceNet channels

S4Cplus field buses.

3.2 Controller Software

The S4Cplus controller must be booted with the software option IO Plus that supports the use of the second DeviceNet channel.

When the S4Cplus system is booted with IO Plus option the system is started up with a predefined second DeviceNet channel, CAN2. Default baudrate are 500Kbit/s and master address is 1.

3.3 DeviceNet second channel Configuration

3.3.1 Configuration Overview from the Teach Pendant

Figure 6 Road map for S4Cplus I/O configuration

The DeviceNet Master configuration is set according to the contents of the I/O signal and Unit definitions.

To perform a proper I/O configuration the user has to perform the following steps:

- Create a new system using RobInstall make sure to install the option “opt538: IO Plus”.

- Download the system to the S4Cplus controller.

- Reboot the controller to start up with the new system.

- Configure the bus

For more information see chapter 3.3.2 <Italic>CAN2 Bus Configuration.

Configure the units connected to the bus

- in the system parameters window select the type “Units”

- push “Add” to create a new Unit

- enter unit name

- choose a type from the displayed picklist

SystemParameters

Service

Production

FileManager

Operator Output & Input

UnitsUser SignalsGroupsSystem InputsSystem OutputsCross ConnectionsUnit TypesIO Buses

Controller

Communication

IO Signals

Manipulator

Teach Pendant

I/O Plus User’s Guide 17

Page 18: IO Plus Manual

Dual DeviceNet channels

- select the CAN2 bus, to which the unit is connected.

- enter the address

Configure the logical signals.

- this is done in the same way as for all logical signals in the S4Cplus (see User’s Guide Baseware, chapter System Parameters).

Configure the logical groups.

- this is done in the same way as for all logical groups in the S4Cplus (see User’s Guide Baseware, chapter System Parameters).

Configure the cross-connections.

- this is done in the same way as for all cross-connections in the S4Cplus (see User’s Guide Baseware, chapter System Parameters).

Configure the system input signals.

- this is done in the same way as for all system input signals in the S4Cplus (see User’s Guide Baseware, chapter System Parameters).

Configure the system output signals.

- this is done in the same way as for all system output signals in the S4Cplus (see User’s Guide Baseware, chapter System Parameters).

3.3.2 CAN2 Bus Configuration

Figure 7 Road map for the IO bus configuration

The configuration of the bus consists of specifying the configuration path to the DeviceNet configuration file created in any text editor.

The bus parameter defined for CAN2 are Master address and bus baudrate. The only way to modify the bus parameters (i.e. the master address and the baudrate) is to use a text editor and edit the file or by changing the path to another file in the system parameter window. If the system is installed with the IO Plus option the bus, CAN2, will default to master address 1 and baudrate 500 Kbit/s.

SystemParameters

Service

Production

FileManager

Operator Output & Input

UnitsUser SignalsGroupsSystem InputsSystem OutputsCross ConnectionsUnit TypesIO Buses

Controller

Communication

IO Signals

Manipulator

Teach Pendant

18 I/O Plus User’s Guide

Page 19: IO Plus Manual

Dual DeviceNet channels

Example:

Configuration path “HOME/can2_cfg.txt.” is created.

“HOME” specifies the current system directory, for example “MySystem”. It is possible to configure this path to any place on the S4Cplus controller, by first using the path “/hd0a” which corresponds to the system flashdrive. The equivalent to “HOME/can2_cfg.txt” in this example would be “/hd0a/MySystem/can2_cfg.txt”

The configuration path points out a text file that should look like the example below, specifying the parameters for the second DeviceNet channel. Parameters left out will take the default value.

Example:

# This is a comment. Configuration file for Second DeviceNet channel# Parameter to set master address on CAN2 to 3. # The syntax is “-MacId X” were X is a integer between 0 and 63.

- MacId 3

# Parameter to set CAN2 baudrate to 125 kbps. # The syntax is “Baudrate Y” were Y is a valid DeviceNet baudrate (125, 250,500).

- Baudrate 125

Configuration of Bus from the Teach Pendant

- Choose Topics: IO Signals

- Choose Types: IO Buses.

All defined buses will be displayed, as shown in Figure 8.

Figure 8 System parameters of the type IO Buses

- Select the appropriate I/O bus to be changed and press Enter .

- Select the desired parameter (the only parameter possible to change is “Config Path”) and change its value.

- Press OK to confirm.

Configuration of Bus from Configuration File

The bus configuration in a configuration file is divided in two sections, EIO_BUS and

IO Signals

Name

BASESIMCAN2

File Edit Topics Types

Add

3(3)

System ParametersIO Buses

I/O Plus User’s Guide 19

Page 20: IO Plus Manual

Dual DeviceNet channels

EIO_BUS_USER. The EIO_BUS section contains the general definitions for a field bus according to S4Cplus default values and cannot be changed by the user.The EIO_BUS_USER value contains user specific settings for the bus and can be changed.

A bus that is not configured in the EIO_BUS section but configured in the EIO_BUS_USER section will be ignored. If no EIO_BUS_USER section is supplied, a default configuration is created from EIO_BUS.

EIO_BUS:

- Name CAN2\

- Driver “/BASE2:” \

- CfgPath “HOME/can2_cfg.txt”

EIO_BUS_USER:

- Name <string>\

- Driver <string>\

- CfgPath <string>

CAN2 Bus Parameter Definition

Down loading configuration file to the robot controller

When the DeviceNet configuration file has been created on a offline PC, it needs to be transferred to the robot controller. There are mainly two different ways to achieve this. One way is to let RobInstall perform the file transfer at the same time as the rest of a newly created system is transferred from the RobInstall PC to the robot controller. The other way is to use a third party FTP client and download the configuration file directly to the controller. If the controller has a floppy drive installed it is of course also possible to transfer the file using a floppy disc.

To use RobInstall for the transfer of the configuration file is only possible when the system is being installed with a new software system. The transfer is made by putting the configuration file in the home-directory of the created robot system (On a PC with RobInstall installed at “C:\Program Files” and with a software system called “MySystem”, the path will be C:\Program Files\ABB Robotics\RobInstall\system\MySystem\home). Putting the file in the home directory should be done AFTER the new system has been created, but BEFORE the new system has been down loaded to the controller.

Name of parameter

Meaning of parameter Value description Name on the Teach Pendant

Name Name of the bus. Is later used when defining units. This cannot be changed.

Mandatory

(CAN2 for DeviceNet channel 2)

Bus

Driver Name of the driver for the bus. This cannot be changed.

Mandatory

(/BASE2: for Device-Net channel 2)

Driver

CfgPath Configuration path to the Device-Net configuration file.

Mandatory

Default: “HOME/can2_cfg.txt”

Config Path

20 I/O Plus User’s Guide

Page 21: IO Plus Manual

Dual DeviceNet channels

To use a third party ftp-client is the most easy way to download a new or modified configuration file to a software system that already has been down loaded to the robot controller.

I/O Plus User’s Guide 21

Page 22: IO Plus Manual

DeviceNet Slave

4 DeviceNet SlaveThis section is a description of the DeviceNet field bus data communication between the S4Cplus DeviceNet slave and another DeviceNet master.

In the S4Cplus controller all the DeviceNet slave signals are handled and addressed in the same way as any other distributed I/O signal.

4.1 System Overview

The S4Cplus DeviceNet slave use the same connectors as the S4Cplus master. When using the slave the DeviceNet bus becomes a multi master bus.

The slave part of S4Cplus are controlled by an external master on the same DeviceNet network as the S4Cplus DeviceNet master. The slave part have digital in- and output as well as analogue in- and output I/O with up to 128 digital in- 128 digital out- 3 analogue in- and 3 analogue outsignals.

Figure 9 The two DeviceNet networks

A configuration program for the external master (if not another S4Cplus system) together with the teach pendant is used to configure the slave and the PLC correctly, in some cases an external text editor is also required.

The configuration program must be executed on a PC according to the manual for the program.

4.1.1 Specification Overview

The lowest addresses are reserved for ABB Robotics internal use i.e. for safety board, master addresses and special applications. Addresses available for customer use Are

S4Cplus - DeviceNet I/O SystemTeach Pendant

0

1

PLC DeviceNet-master

DeviceNet-Master/Slave

DeviceNet-Slave

DeviceNet-Slaves

CAN2 BASE

22 I/O Plus User’s Guide

Page 23: IO Plus Manual

DeviceNet Slave

6-63 on BASE.

4.1.2 DeviceNet connectors in S4Cplus

The DeviceNet slave use the same connectors as the S4Cplus DeviceNet master. See section 3.1.2 <Italic>DeviceNet connectors in S4Cplus

4.2 Controller Software

The S4Cplus controller must be booted with the software option IO Plus that supports the use of the DeviceNet slave.

When the S4Cplus system is booted with IO Plus option the system is started up with predefined unit types for the DeviceNet internal slave. See section 4.3.2 <Italic>Unit Type Configuration.

4.2.1 Configuration Software

To correctly configure the external master (if not another S4Cplus system) a third party configuration software are required, for example RSNetWorx could be used. This Software is not supplied by ABB Robotics AB and not needed for configuring DeviceNet in the S4Cplus system.

Item Specification

Field Bus Type DeviceNet

Addressing DeviceNet master channel 1 (BASE) fixed address 2.

DeviceNet slave channel 1 (BASE) configurable between 6- 63.

DeviceNet master channel 2 (CAN2) configurable between 0 - 63.

DeviceNet slave channel 2 (CAN2) configurable between 0 - 63.

Number of Units con-nected to master

Maximum two slaves per DeviceNet channel. User’s Guide Baseware, chapter I/O data specification restrictions also apply.

Number of signals see User’s Guide Baseware, chapter I/O data specification.

Signal types AI, AO, DI and DO

Baudrate The DeviceNet channel 1 (BASE) are fixed to a baudrate of 500 Kbit/s.

The DeviceNet channel 2 (CAN2) are configurable 125/250/500 Kbit/s.

DeviceNet slave uses S4Cplus master baudrate.

Profile ABB Vendor specific (100) “General purpose mixed signal I/O”.

Slave type Group 2 only slave according to DeviceNet specification.

Slave connection Polled only.

I/O Plus User’s Guide 23

Page 24: IO Plus Manual

DeviceNet Slave

Figure 10 Rocwell software RSNetWorx

4.2.2 Slave EDS-file

The EDS-files used by RSNetWorx or any other configuration software is located on the RobotWare release CD in the directory:

<CD-ROM unit>:\Utility\fieldbus\DeviceNet\eds\

This directory contains the following file:

- slave.edsS4Cplus DeviceNet slave unit.

4.3 S4Cplus DeviceNet Internal Slave

4.3.1 Introduction

The S4Cplus DeviceNet channels have built-in digital slave modules with up to 128 digital inputs and 128 digital outputs as well as 3 analogue inputs and 3 analogue outputs. This can be used to connect the S4Cplus controller to, for example, a PLC. See User’s Guide Baseware OS, chapter I/O data specification for system data. It can also be used for connection of the slave channel of one or several robots to the master channel of one controlling robot. Maximum two slaves could be configured on one DeviceNet channel if more signals are required.

It is a recommendation to primarily use the slave functionality on CAN2 due to the additional configuration possibilities compared to the BASE bus, and the fact that the safety board is located on the BASE bus.

4.3.2 Unit Type Configuration

The unit type definition for the S4Cplus DeviceNet slave is called “DNET_SLAVE” and is predefined during system start-up if the IO Plus option is installed. Another predefined unit type is called “EXT_DNET_SLAVE”, this unit type shall only be used for configuring the master channel of a S4Cplus controller that is connected to the slave on another S4Cplus controller.

Note! If two S4Cplus controllers are connected together do NOT connect V-, V+ and the drain in the DeviceNet cable to avoid ground loops.

24 I/O Plus User’s Guide

Page 25: IO Plus Manual

DeviceNet Slave

See chapter 4.6 <Italic>Internal Slave Configuration Example for examples on how to use the internal DeviceNet slave.

4.3.3 I/O Unit Configuration

To configure the S4Cplus DeviceNet slave, create a new unit of “DNET_SLAVE” type (see section 3.3.1 <Italic>Configuration Overview from the Teach Pendant). The size of the S4Cplus DeviceNet internal slave is set by changing the “Digout”, “Digin”, “Anin” and “Anout” parameters of the unit.

The size of the input and output area as seen from the DeviceNet master side is the least number of bytes containing the specified amount of signals. E.g. If a DNET_SLAVE unit has been configured to have “-Digout 13” and “-Digin 60”, shall the unit be configured from the master side (the PLC) to have 2 bytes in and 8 bytes out (remember that the internal slave is special in its behaviour since outputs from the master/PLC will become inputs to the controller and vice versa).

Slave Unit Parameter Definition

See 2.1.2 <Italic>Defining an IO module type (EIO_UNIT_TYPE) for a more detailed description of the parameters.

Slave Analogue signal description

Entry Meaning Values Name one the Teach Pendant

Name Name of the unit. Is used later when defining I/O signals.

Unit Name

Type Name of unit type DNET_SLAVE Unit Type

Bus Name of the bus CAN2 or BASE Unit Bus

Address Slave unit address. Make sure you don’t use the same address as for master

0 - 63 Address

Digin Number of logical digital in signals 0 - 128 Digital Inputs

Digout Number of logical digital out sig-nals

0 - 128 Digital Outputs

Anin Number of logical analog in signals 0 - 3 Analog Inputs

Anout Number of logical analog out sig-nals

0 - 3 Analog Outputs

Disabled The unit is disabled after boot Disabled

Entry Meaning Values

Type Type of the signal under considera-tion, e.g. AI for analog input

AI, AO

EncType Specifies how a signals value has to be estimated from the value that is in the data area

i.e data representation

UNSIGNED

Length Length of analogue signal 16 bit

LogMax Logical maximum value any value

PhMax Physical maximum value 1

I/O Plus User’s Guide 25

Page 26: IO Plus Manual

DeviceNet Slave

Slave Signal mapping

The analog signals will always be mapped first, followed by the digital signals.

4.4 PLC configuration

To configure the DeviceNet master that will control the internal slave, to configure the external master (if not another S4Cplus system) use the EDS file supplied on the RobotWare CD, in the directory:

<CD-ROM unit>:\Utility\fieldbus\DeviceNet\EDS\slave.EDS

4.5 Communication status

The control of the communication status (i.e. to know if the PLC to slave communication is running). The S4Cplus DeviceNet slave behaves like any other unit towards the S4Cplus I/O system regarding trustlevels, error messages generation etc.

4.6 Internal Slave Configuration Example

In this section some examples of how to configure the S4Cplus DeviceNet slave are shown.

4.6.1 Setting up a S4Cplus DeviceNet slave.

This example configure the S4Cplus DeviceNet slave to address 10 on the second DeviceNet channel (CAN2). The slave unit will have 128 digital inputs, 128 digital outputs, 3 analogue inputs and 3 analogue outputs.

The S4Cplus DeviceNet master on CAN2 will have the default values address 1 and baudrate 500.

An external PLC could then be configured to connect to the S4Cplus DeviceNet slave.

Note: The unit type DNET_SLAVE is a predefined unit type. That means the user should use this unit type and does not need to make any EIO_UNIT_TYPE definition for the slave.

File: EIO.CFG

EIO:CFG_1.0:3:0::#EIO_UNIT:

- Name "Slave_CAN2" -Type "DNET_SLAVE" -Bus "CAN2" -Address "10" \

- Digin 128 -Digout 128 -Anin 3 -Anout 3

LogMin Logical minimum value any value

PhMin Physical minimum value 0

Entry Meaning Values

26 I/O Plus User’s Guide

Page 27: IO Plus Manual

DeviceNet Slave

#EIO_USER_SIGNAL = EIO_SIGNAL:

- Name "SC_di_1" -Type "DI" -Unit "Slave_CAN2" -Phsig 1

- Name "SC_do_1" -Type "DO" -Unit "Slave_CAN2" -Phsig 1

- Name "SC_di_128" -Type "DI" -Unit "Slave_CAN2" -Phsig 128

- Name "SC_do_128" -Type "DO" -Unit "Slave_CAN2" -Phsig 128

- Name SC_ao_1 -Type AO -Unit “Slave_CAN2” -Phsig 1 \

- LogMax 10 -LogMin 0 -PhMax 1 -PhMin 0

- Name SC_ai_1 -Type AI -Unit “Slave_CAN2” -Phsig 1 \

- LogMax 10 -LogMin 0 -PhMax 1 -PhMin 0

4.6.2 Connecting two S4Cplus systems using the S4Cplus DeviceNet slave.

In this example two S4Cplus systems will be connected together using the second DeviceNet channel (CAN2) and the slave functionality. Remember to disskonnect V+, V- and the shield on the DeviceNet cable between the systems to aviod ground loops.

First S4Cplus system.

The S4Cplus DeviceNet slave will be configured to address 10 on the second DeviceNet channel (CAN2). The slave unit will have 128 digital inputs, 128 digital outputs, 3 analogue inputs and 3 analogue outputs.

The S4Cplus DeviceNet master on CAN2 will be configured to address 3 and baudrate 500, to aviod duplicate addresses with master on the second system.

File: EIO.CFG

EIO:CFG_1.0:3:0::#EIO_BUS_USER:

- Name CAN2 \

- Driver "/BASE2:" \

- CfgPath "HOME/can2_cfg.txt"

#EIO_UNIT:

- Name "Slave_CAN2" -Type "DNET_SLAVE" -Bus "CAN2" -Address "10" \

- Digin 128 -Digout 128 -Anin 3 -Anout 3

#EIO_USER_SIGNAL = EIO_SIGNAL:

- Name "SC_di_1" -Type "DI" -Unit "Slave_CAN2" -Phsig 1

- Name "SC_do_1" -Type "DO" -Unit "Slave_CAN2" -Phsig 1

I/O Plus User’s Guide 27

Page 28: IO Plus Manual

DeviceNet Slave

- Name "SC_di_128" -Type "DI" -Unit "Slave_CAN2" -Phsig 128

- Name "SC_do_128" -Type "DO" -Unit "Slave_CAN2" -Phsig 128

- Name SC_ao_1 -Type AO -Unit “Slave_CAN2” -Phsig 1 \

- LogMax 10 -LogMin 0 -PhMax 1 -PhMin 0

- Name SC_ai_1 -Type AI -Unit “Slave_CAN2” -Phsig 1 \

- LogMax 10 -LogMin 0 -PhMax 1 -PhMin 0

File: can2_cfg.txt

# This is a comment. Configuration file for Second DeviceNet channel# Parameter to set master address on CAN2 to 3. # The syntax is "-MacId X" were X is a integer between 0 and 63.

- MacId 3

# Parameter to set CAN2 baudrate to 125 kbps.# The syntax is "Baudrate Y" were Y is a valid DeviceNet baudrate (125, 250,500).

- Baudrate 500

Second S4Cplus system.

This will configure a unit of type EXT_DNET_SLAVE to connect to the slave on the first system, the size and address should match the slave on the first system.

The S4Cplus DeviceNet master on CAN2 will have the default values address 1 and baudrate 500.

Note! The unit type EXT_DNET_SLAVE is a predefined unit type. That means the user should use this unit type and does not need to make any EIO_UNIT_TYPE defi-nition for the slave.

File: EIO.CFG

EIO:CFG_1.0:3:0::#EIO_UNIT:

- Name "Ext_Slave_CAN2" -Type "EXT_DNET_SLAVE" -Bus "CAN2" -Address "10" \

- Digin 128 -Digout 128 -Anin 3 -Anout 3

#EIO_USER_SIGNAL = EIO_SIGNAL:

- Name "SB_di_1" -Type "DI" -Unit "Ext_Slave_CAN2" -Phsig 1

- Name "SB_do_1" -Type "DO" -Unit "Ext_Slave_CAN2" -Phsig 1

28 I/O Plus User’s Guide

Page 29: IO Plus Manual

DeviceNet Slave

- Name "SB_di_128" -Type "DI" -Unit "Ext_Slave_CAN2" -Phsig 128

- Name "SB_do_128" -Type "DO" -Unit "Ext_Slave_CAN2" -Phsig 128

- Name SB_ao_1 -Type AO -Unit “Ext_Slave_CAN2” -Phsig 1 \

- LogMax 10 -LogMin 0 -PhMax 1 -PhMin 0

Name SB_ai_1 -Type AI -Unit “Ext_Slave_CAN2” -Phsig 1 \LogMax 10 -LogMin 0 -PhMax 1 -PhMin 0

Resulting DeviceNet Network

This configuration will result in the folowing units on the DeviceNet bus (CAN2) operating on 500 kbps.

unit address

S4Cplus DeviceNet master 1

S4Cplus DeviceNet master 3

S4Cplus DeviceNet slave 10

I/O Plus User’s Guide 29

Page 30: IO Plus Manual

DeviceNet Slave

30 I/O Plus User’s Guide