TM5SDM8DTS_TSIOO Parameters

Description

Digital mixed module 24 Vdc pre-configured with:

  • Four touchprobe inputs

  • Four oversampled outputs

Parameterizing the Device Object Corresponding to the Module

In order to parameterize a module in the software, add and configure a device object in the device editor for the module as follows:

Step

Action

1

Add module in the Devices tree under a Sercos III bus interface (TM5NS31).

2

Double-click on the module in the Devices tree.

Result: The device editor is opened and the index cards Sercos III Module I/O Mapping, User Parameter, and Information are displayed.

Index Card Sercos III Module I/O Mapping

The input and output channels of the module are mapped to project variables that are used by the application.

I/O mapping channel

Meaning

Data type

ErrorQuit

Acknowledgment of the detected active errors (QuitOutputControlError, QuitOutputCopyError)

Refer to Controlling the Oversampled Outputs.

BYTE

OversampleControl

Control of the oversample functionality (OversampleEnable, OversampleControlCopyActive)

Refer to Controlling the Oversampled Outputs.

BYTE

OversampleOutputCycle

Oversampled output buffer address to write OversampleOutput0xSample1_8.

Refer to Controlling the Oversampled Outputs.

BYTE

OversampleOutput01Sample1_8

8 bits oversampling output data for channel 03, which is written to the oversampling output buffer.

Refer to Controlling the Oversampled Outputs.

BYTE

OversampleOutput02Sample1_8

8 bits oversampling output data for channel 04, which is written to the oversampling output buffer.

BYTE

OversampleOutput03Sample1_8

8 bits oversampling output data for channel 07, which is written to the oversampling output buffer.

BYTE

OversampleOutput04Sample1_8

8 bits oversampling output data for channel 08, which is written to the oversampling output buffer.

BYTE

ModuleOK

Value for OK = 245

Bit 0: DcOk, Power supply in the valid range: 0 = Invalid, 1 = Valid

Bit 1: Reserved

Bit 2: NetworkOK, TM5 bus: 0 = Not OK, 1 = OK

Bit 3: I/O Data valid, I/O Data: 0 = Valid, 1 = Invalid

Bit 4 - 7: Reserved

BYTE

ErrorState

State of the detected active errors

Refer to Controlling the Oversampled Outputs.

Bit 1 - 4: Reserved

Bit 5: OutputControlError, 0 = No error detected, 1 = Error detected

Bit 6: OutputCopyError, 0 = No error detected, 1 = Error detected

Bit 7: EdgeDetectError, 0 = No error detected, 1 = Error detected

Bit 8: Reserved

BYTE

DigitalInput01-08

Values of the input channels 01 to 08

BYTE

OversampleInputCycle

Oversampling input buffer address of the I/O module

Refer to Controlling the Oversampled Outputs.

BYTE

EdgeDetect01Mastercount

...

EdgeDetect04Mastercount

Reserved for system use.

BYTE

EdgeDetect01Mastertime

...

EdgeDetect04Mastertime

Reserved for system use.

WORD

Index Card User Parameter

The change over between numeric and symbolic values takes place via the check box Symbolic values.

Name

Meaning

Default value

Data type

Cycle time

(200...2000 [μs/8])

TM5SDM8DTS cycle time

Refer to Configuration of Timing Parameters.

1000

BitArea

Cycle prescaler

(2...128)

Value to prescale the system time

Refer to Configuration of Timing Parameters.

2

BitArea

Oversample cycle

System timer (2) or prescaled system timer (3)

Refer to Configuration of Timing Parameters.

2 (system timer)

BYTE

Edgedetect polling cycle

System timer (2) or prescaled system timer (3)

2 (system timer)

BYTE

Master edge 01...Master edge 04

Reserved for system use.

BYTE

Touchprobe Inputs

When a TM5SDM8DTS_TSIOO module is added to the Devices tree, four sub devices are automatically added under the module.

Each one represents one touchprobe input of the module:

  • TP_0_x: physical module channel 1

  • TP_1_x: physical module channel 2

  • TP_2_x: physical module channel 5

  • TP_3_x: physical module channel 6

Parameters of the Touchprobe Inputs

Parameter

Meaning

Data type

Value

Name

(EF, only online editable)

Object name

STRING(40)

Value

(AD)

Value of the touchprobe input (digital state during last latch time)

Enumeration of BOOL

CaptureState

(AD)

Status of the capture function

Enumeration of DINT

Inactive / 0, active / 1, captured / 2, overflow / 3, disabled / 4, not ready / 5, virtual / 6

CaptureOk

(AD)

Status of the touchprobe event (edge)

A valid touchprobe event occurred and the result is provided in the parameter CaptureValue.

Enumeration of BOOL

No / 0, yes / 1

CaptureValue

(AD)

Value, captured when the latest event (edge) during the Sercos cycle occurred.

If more than one edge is detected during a Sercos cycle, this can be seen in the CaptureCount parameter.

Refer to General Information on Touchprobe Inputs.

LREAL

CaptureEdge

(AD)

Configured edge

Enumeration of DINT

Falling edge / 0, rising edge / 1, reserved / 2, in progress / 3, set non-operational / 4

CaptureEdgeSet

(EFC)

Edge of the respective touchprobe input

Can be set online and offline.

Enumeration of DINT

Falling edge / 0, rising edge / 1

CaptureEdgeSetDelayed

(AD)

Delay on change of CaptureEdge true / 1 if the change of the edge is not set directly in the hardware.

Enumeration of BOOL

False / 0, true / 1

CaptureCount

(AD)

Number of edges detected during the latest Sercos cycle. If this value is >1, this indicates that CaptureCount-1 edges have been discarded.

DINT

SensorDelay

(EFC)

The controller compensates for the delay during position detection.

LREAL