MLAxisTimeStamp

Pipe Network motion icon

 FunctionClosed A function calculates a result according to the current value of its inputs. A function has no internal data and is not linked to declared instances. - Returns the timestampClosed A sequence of characters, denoting the date and/or time at which a certain event occurred. of the triggered axis.

Inputs

Input

Data Type

Range

Unit

Default

Description

En

BOOL

FALSE, TRUE

N/A

No default

EnablesClosed Enable signal for the drive, Hardware-Enable with 24V signal to X8, Software-Enable command by setup Software, fieldbus or permanently set. Both are required for enabling the drive. execution.

ID

DINT

No range

N/A

No default

ID Name of the Axis block.

InputID

DINT

0, 1

N/A

No default

ID of the triggered Fast inputClosed The inputs are taken into account at each cycle depending on the system periodicity (i.e., each millisecond). Under certain circumstances, this can be insufficient when more accuracy is needed or if a quick response is required from the system. To fill the gap, a drive may have some Fast Input connections (generally one or two). When an event happens that triggers a Fast Input (e.g., when a sensor sends a rising edge), the detection of a signal occurs faster. This can be 1000 times more accurate than the system periodicity. The timestamp associated with this input can be provided to the IPC to take corrective action. of an axis.

edge

DINT

0, 2

N/A

No default

Configures the Inputs as:

Outputs

Output

Data Type

Range

Unit

Description

OK

BOOL

FALSE, TRUE

N/A

Returns TRUE when the function successfully executes.

Q

DINT

 

Microseconds

Returns the time stamp value.

See Interpret a Timestamp.

Remarks

FBD Language Example

FFLD Language Example

IL Language Example

Not available.

ST Language Example

 
MLAxisTimeStamp(PipeNetwork.Axis1, 0, 1 ) ;

See Also