Adding an Expansion Module

Adding a Module

To add an expansion module to your controller, select the expansion module in the Hardware Catalog, drag it to the Devices tree, and drop it on one of the highlighted nodes.

For more information on adding a device to your project, refer to:

• Using the Drag-and-drop Method

• Using the Contextual Menu or Plus Button

I/O Mapping Tab

The I/O mapping of an expansion module is carried out through the I/O Mapping tab of the expansion module configuration.

This table describes how to configure an expansion module:

Step

Action

1

Double-click the expansion module node in the Devices tree to display the I/O Mapping tab.

2

Edit the parameters of the I/O Mapping tab to configure the expansion module.

This figure shows the I/O Mapping tab:

G-SE-0027905.3.gif-high.gif

 

 

This table describes each parameter of the I/O Mapping tab:

Parameter

Description

Variable

Allows you to map the channel on a variable.

NOTE: Expand the list of variables from the category Inputs or Outputs.

You can map a channel by either creating a new variable or mapping to an existing variable.

Create new variable:

Double-click the variable to enter the new variable name. A new variable is created if the variable does not already exist.

Map to existing variable:

Double-click the variable and click [...] to open the Input Assistant window. Select the variable from the list and press OK.

This figure shows the Input Assistant window:

G-SE-0027913.2.gif-high.gif

 

 

Mapping

Indicates whether the channel is mapped on a new variable or an existing variable.

Channel

Displays the channel name of the device.

Address

Displays the address of the channel.

NOTE: If the channel is mapped to an existing variable, corresponding address appears as strikethrough text in the table.

Type

Displays the data type of the channel.

Default Value

Indicates the value taken by the output when the controller is in a STOPPED or HALT state.

Double-click the cell to change the default value.

You can toggle between the following values:

oNo value (empty cell)

oTRUE

oFALSE

Unit

Displays the unit of the channel value.

Description

Allows you to enter a short description of the channel.

Bus cycle options

Depending on the controller reference, you can configure the Bus cycle options.

This configuration setting is the parent for all Bus cycle task parameters used in the application device tree.

Some devices with cyclic calls, such as a CANopen manager, can be attached to a specific task. In the device, when this setting is set to Use parent bus cycle setting, the setting set for the controller is used.

The selection list offers all tasks currently defined in the active application. The default setting is Use parent bus cycle setting.

I/O Configuration Tab

This tab allows you to configure the I/O module:

G-SE-0073805.1.gif-high.gif

 

 

NOTE: To configure the module as an optional module, refer to Optional I/O Expansion Modules.

Configuring the Latch and Filter Parameters

The latch parameter allows incoming pulses with amplitude widths shorter than the controller scan time to be captured and recorded. You can select the type of edge (rising, falling, both or none).

The filter parameter reduces the effect of bounce on a controller digital input.

NOTE: The more the filter value is low, the more the effects of electromagnetic interference are maximized.

The following timing diagram illustrates the latching effects:

G-SA-0045175.4.gif-high.gif

 

 

NOTE: You can configure these parameters on the following modules:

oTM3DI16

oTM3DI16G

oTM3DI16K

oTM3XHSC202 / TM3XHSC202G

Step

Action

1

Click the module node  > I/O Configuration tab.

2

Select 2 as Value for Functional Mode.

3

Select an input.

4

Configure the parameters.

 

This table describes the latch and filter parameters:

Parameter

Type

Value

Default Value

Unit

Description

Fonctional Mode

Enumeration of BYTE

1

2

1

Fonctional Mode 2 allows you to configure latch and filter parameters.

Inputs

Latch

Enumeration of BYTE

No

Both edges

Rising edge

Falling edge

No

Latching allows incoming pulses with amplitude widths shorter than controller scan time to be captured and recorded.

Filter

Enumeration of BYTE

0

0.1

0.2

0.3

0.5

1

2

4

12

4

ms

Integrator filtering value reduces the effect of bounce on a controller input.