TM5SE2IC01024

Introduction

The TM5SE2IC01024 expansion electronic module is a 24 Vdc Expert input electronic module with 2 input channels for ABR incremental encoder.

For further information, refer to TM5SE2IC01024 Electronic Module 2 HSC INC 100 kHz 24 Vdc.

TM5 Module I/O Mapping Tab

Variables can be defined and named in the TM5 Module I/O Mapping tab. Additional information such as topological addressing is also provided in this tab.

This table describes the I/O mapping configuration:

Channel

Type

Description

ModuleOK

BYTE

State of the compact I/O and electronic modules

DcOk

BOOL

Voltage range:

o0: Invalid

o1: Valid

reserved

BOOL

Reserved.

NetworkOk

BOOL

TM5 bus:

o0: Bus error

o1: OK

I/O Data valid

BOOL

Data validity:

o0: Valid

o1: Invalid

reserved

BOOL

Reserved

reserved

BOOL

Reserved

reserved

BOOL

Reserved

reserved

BOOL

Reserved

-

PowerSupply

BYTE

Status encoder supply (bits 1...7: not used)

 

PowerSupply00

BOOL

Status encoder supply (0 = OK)

Inputs

DigitalInput 0-7

BYTE

State of all digital inputs

 

SignalA

BOOL

Encoder Signal A

SignalB

BOOL

Encoder Signal B

SignalR

BOOL

Encoder Signal R

DigitalInput00

BOOL

State of digital input 0

SignalA

BOOL

Encoder Signal A

SignalB

BOOL

Encoder Signal B

SignalR

BOOL

Encoder Signal R

DigitalInput01

BOOL

State of digital input 1

Incremental encoder 00-01

-

Incremental encoder

 

Encoder00

DINT

Incremental encoder

Encoder01

INT

Incremental encoder

Status incremental encoder 00-01

 

Status incremental encoder 00-01

StatusInput00

BYTE

Status incremental encoder 00 (see below)

StatusInput01

USINT

Status incremental encoder 01 (see below)

Outputs

ReferenceModeEncoder00

BYTE

Reference mode incremental encoder 00

ReferenceModeEncoder01

BYTE

Reference mode incremental encoder 01

For further generic descriptions, refer to User-Defined Parameters Tab Description.

StatusInput0x Register

This register contains information regarding whether the referencing process is off, active, or complete.

This table describes the StatusInput0x register:

Bit

Description

0-1

Always 0

2

Bit is always 1 after the first reference impulse

3

Toggle after each completed reference

4

Bit is always 1 after the first reference impulse

5...7

Free-running counter, increased with each reference impulse

Example:

Register Value

Description

00000000 bin

00 hex

Referencing off or already in progress.

00111100 bin

3C hex

First reference complete, reference value applied in the Encoder0x register.

xxx11100 bin

xB hex

Bits 5...7 are changed sequentially with each reference impulse.

xxx1x100 bin

xx hex

Bits changed continuously with the setting continuous referencing. With every reference impulse, the reference value is applied to the Encoder0x register.

ReferenceModeEncoder0x Register

This register determines the encoder reference mode.

This table describes the ReferenceModeEncoder0x register:

Bit

Value

Description

0-1

00

Referencing OFF

01

One-time reference (single shot)

11

Continuous referencing

2...5

0000

Bit permanently set = 0

6-7

00

Referencing OFF

Example:

Register Value

Description

00000000 bin

00 hex

Referencing OFF

11000001 bin

C1 hex

One-time reference (single shot)

When starting over after the referencing process is complete, set this register to 00 hex. Then wait until the StatusInput0x also takes on the value 00 hex. Only then can the value C1 hex be written.

11000011 bin

C3 hex

Continuous referencing, referencing occurs at every reference pulse.

User-Defined Parameters Tab

This table describes the TM5SE2IC01024 user-defined parameters configuration:

Name

Value

Default Value

Description

PresetABR01_32Bit

-2,147,483,648...2,147,483,647

0

Homing preset value for counter; the value set here is applied to the counter value upon completion of the referencing process.

ReferenceEdge01

Off

rising

falling

Off

Selects edge of reference pulse for homing.

ReferenceEnableSwitch01

low active

high active

low active

Digital input 01 configure edge.

ReferenceEnableSwitch01

disabled

enabled

disabled

Digital input 01 used as a reference enable switch.

PresetABR02_32Bit

-2,147,483,648...2,147,483,647

0

Homing preset value for counter; the value set here is applied to the counter value upon completion of the referencing process.

ReferenceEdge02

Off

rising

falling

Off

Selects edge of reference pulse for homing.

ReferenceEnableSwitch02

low active

high active

low active

Digital input 01 configure edge.

ReferenceEnableSwitch02

disabled

enabled

disabled

Enables/Disables the above parameter.