TM5SDM8DTS_TSITSO Parameters

Description

Digital mixed module 24 Vdc pre-configured with:

  • Four touchprobe inputs

  • Four time-stamped 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

ErrorQuit_2

Acknowledgement of the detected active errors (QuitOutputControlError, QuitOutputCopyError)

Refer to Controlling the Oversampled Outputs.

BYTE

EdgeGen01Enable...EdgeGen04Enable

Set to 1 to enable the time-stamped output unit.

Set to 0 to disable the time-stamped output unit.

BYTE

EdgeGen01Sequence...EdgeGen04Sequence

If new time-stamped data is to be applied to the module, the sequence number must be increased. For each pulse data transmitted to the time-stamped unit, this sequence must be increased by 1.

BYTE

EdgeGen01Timestamp...EdgeGen04Timestamp

The absolute time-stamp when the rising edge is generated. The time-stamp can be calculated with the SystemInterface function FC_GetRelativeTM5Nettime16Bit ().

WORD

EdgeGen01Offset2...EdgeGen04Offset2

Offset in μs when the falling edge is generated. The module generates the rising edge at the absolute time EdgeGen0xTimestamp + EdgeGen0xOffset2.

WORD

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 - 6: Reserved

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

Bit 8: Reserved

BYTE

ErrorState_2

State of the detected active errors

Bit1: EdgeGen01Error, 0 = No error detected, 1 = Error detected

Bit2: EdgeGen01Warning, 0 = No warning detected, 1 = Warning detected

Bit3: EdgeGen02Error, 0 = No error detected, 1 = Error detected

Bit4: EdgeGen02Warning, 0 = No warning detected, 1 = Warning detected

Bit5: EdgeGen03Error, 0 = No error detected, 1 = Error detected

Bit6: EdgeGen03Warning, 0 = No warning detected, 1 = Warning detected

Bit7: EdgeGen04Error, 0 = No error detected, 1 = Error detected

Bit8: EdgeGen04Warning, 0 = No warning detected, 1 = Warning detected

BYTE

DigitalInput01-08

Values of the input channels 01 to 08

BYTE

EdgeGen01EnableReadback...EdgeGen04EnableReadback

Reads back the value of EdgeGen0xEnable in the time-stamped unit in the module.

BYTE

EdgeGen01SequenceReadback...EdgeGen04SequenceReadback

Reads back the value of EdgeGen0xSequence in the timestamped unit in the module.

This readback value shows the EdgeGen0xSequence if the timestamped unit accepted the given pulse (EdgeGen0xTimestamp + EdgeGen0xOffset2).

If the EdgeGenUnit0xTimestampFifoLim is exceeded, the EdgeGen0xSequenceReadback shows the last EdgeGen0xSequence that was accepted.

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

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

Edge generation cycle

Defines how often the time-stamped output unit can generate pulse configurations. In one Edge generation cycle, only one pulse configuration (consisting of one rising edge and one falling edge) can be generated.

2 (system timer)

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