Basic principles

Each MTO channel (multi-timestamp output) has inputs and outputs in the cyclic process image, which have to be linked with the PLC/task.

Basic principles 1:
Inputs and outputs in the project tree
Basic principles 2:

Additional PDO from FW03/Rev 0017

From FW03 the CtrlWord is provided with the EnableManualOperation function. This function is located at bit position 4 of the CtrlWord and is effective only if it is configured with TRUE. This bit position was previously unused. Thus also newer EL1259/EL2258 terminals can be used in the application according to the Beckhoff IO compatibility rule if a predecessor revision (e.g. 0016) is used in the configuration. Conversely, older terminals with firmware < FW03 may of course not be used in the application if this function is to be used. In general, values not equal to the default value should not be written on the application side to variables/bits that have a placeholder/reserved function and have not yet been configured with a function. The placeholders can thus be configured for future functions as in this case.

MTO inputs returns diagnostic data in real-time for each channel:

- Status

MTO outputs  transfers in each cycle the events to be output to the channel, together with switching state 0/1 and switching time (timestamp)

- Ctrl

  1. In the CoE the object 0x80n1:02 EnableManualOperation can be set to TRUE. This deactivates timestamp mode for this channel. The channel can then only be switched via the bit "Manual output state".
  2. In the process image the bit "Enable manual operation" is set. The output assumes the state that was specified via the bit "Manual output state". In contrast to the mode described above, processing of the timestamps continues in the background. When the bit "Enable manual operation" is set to False again, the output changes to the status it was allocated through processing of the timestamps.

- Output Bit Array: Bit-by-bit output states as array to the corresponding timestamps

Bit 0: Output value timestamp 1
Bit 1: Output value timestamp 2
etc.

- Output event time x: List of 32-bit timestamps of the respective signal edge.

Each channel has corresponding settings for selection of the operating mode in the CoE from 0x80n1:

Basic principles 3:
Operating mode selection in CoE from 0x80n1

0x80n1:0 MTO Settings Ch. n=0...7

Name

Entry

Description

80n1:01

Use as +24 V power supply

 

Switches the selected output in OP mode as 24 V power supply

0x80n1:01 FALSE

 

Input disabled as power supply

0x80n1:01 TRUE

 

Input activated as power supply

80n1:02

Enable manual operation

 

Manual setting of inputs (without timestamp) is enabled. This can be used to test actuators or manual procedures.

0x80n1:02 FALSE

 

Manual setting of inputs is blocked

0x80n1:02 TRUE

 

Manual setting of inputs is possible

80n1:03

Enable time check

See figure EnableTimeCheck Mode 1-3

Output events must be transferred chronologically. If an event with "outdated" timestamp is transferred to a channel, the following decision options are available:

Mode1: Enable time check = 0, Force order = no meaning:: No "outdated" events are transferred. The system waits, including overflow (4.29s) where appropriate, after which the switching order is executed.

If EnableTimeCheck is activated, the timestamp width of 4.29 seconds is subdivided into 2.15 seconds past & 2.15 seconds future. In this case switching orders may only be up to 2.15 seconds in the future. The bit ForceOrder, which is available as PDO in the status register for each channel, is used to specify how the "outdated" timestamp should be handled.
Mode2: Enable time check = 1, Force order = 0: "Outdated" event is discarded
Mode3:Enable time check = 1, Force order = 1: "Outdated" event is output immediately, i.e. effectively delayed.

0x80n1:03 FALSE

0x80n1:03 TRUE

80n1:11

Buffer reset behavior

 

Reset behavior in the event of a reset signal in the status register (PDO)

0x80n1:11 Entry FALSE

Reset on rising edge

Reset is executed on rising edge. New data can then be buffered right away.

0x80n1:11 Entry TRUE

Reset on high level

Buffer is held in reset as long as the signal is active. With high cycle times this can result in data loss.

80n1:12

Buffer overflow behavior

 

Configuration of the behavior if more than 32 events per channel have to be stored

0x80n1:12 Entry FALSE

Lock buffer

Overwriting of data is blocked, new events will be lost.

0x80n1:12 Entry TRUE

Overwrite oldest event

The oldest data are overwritten, new events are retained.

Basic principles 4:
EnableTimeCeck Mode 1-3