Adding an Encoder

Introduction

In order to use the encoder interface, the Modicon M262 Logic/Motion Controller has a specific hardware encoder interface that can support:

oIncremental encoder

oSSI encoder

For more information on usable function blocks, refer to Modicon M262 Logic/Motion Controller - Encoder Library Guide.

Adding an Encoder

To add an encoder to your controller, select the encoder in the Hardware Catalog. Drag and drop it to the Devices tree 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

Incremental Encoder Configuration

To configure the incremental encoder, double-click the encoder node in the Devices tree.

This table describes the incremental encoder configuration parameters:

Parameter

Type

Value

Default Value

Unit

Description

Power supply

Voltage selection

BYTE Enum

None

5 V

24 V

None

Power supply monitor

BYTE Enum

Enabled

Disabled

Disabled

Enable the power supply monitor

General

Input Mode

BYTE Enum

Normal Quadrature x 1

Normal Quadrature x 2

Normal Quadrature x 4

Reverse Quadrature x 1

Reverse Quadrature x 2

Reverse Quadrature x 4

Normal Quadrature x 1

Select the period measurement interval

Counting Inputs

A Input

Filter

BYTE Enum

0.000

0.001

0.002

0.005

0.05

0.01

0.08

0.5

1

4

12

0.002

ms

Set the filtering value to reduce the bounce effect on the input

B Input

Filter

BYTE Enum

0

0.002

ms

Set the filtering value to reduce the bounce effect on the input

Preset Input

Z Input

Filter

BYTE Enum

0.000

0.001

0.002

0.005

0.05

0.01

0.08

0.5

1

4

12

0.002

ms

Set the filtering value to reduce the bounce effect on the input

SSI Encoder Configuration

To configure the SSI Encoder, double-click the encoder node in the Devices tree.

This table describes the SSI encoder configuration parameters:

Parameter

Type

Value

Default Value

Unit

Description

Power supply

Voltage selection

BYTE Enum

None

5 V

24 V

None

Power supply monitor

BYTE Enum

Disabled

Disabled

Enable the power supply monitor

Synchronous Serial Interface (SSI)

Transmission Speed

BYTE Enum

100

250

500

250

KHz

Select the speed of data transmission

Number of bits per frame

USINT (8...64)

8

8

Set the number of bits per frame (header + data bits + status + parity)

Number of data bits

USINT (8...32)

8

8

Set the number of bits to count turn + bits to count points per turn

Number of data bits / turn

USINT (8...16)

8

8

Set the number of data bits to count points per turn

Number of status bits

USINT (0...4)

0

0

Set the number of bits to be reserved for the status

Parity

BYTE Enum

None

None

Select the parity

Resolution reduction

USINT (0...17)

0

0

Set the resolution code

Binary coding

BYTE Enum

Binary

Binary

Select the binary coding mode

Motion Functions

 You can configure specific elements, exclusively for motion applications. For more information, refer to Motion Functions tab.