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 timestamp is 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

No range

N/A

No default

Enables 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 input of an axis.

 

 

edge

DINT

0, 2

N/A

No default

Configures the Inputs as:

Outputs

Output

Data Type

Range

Unit

Description

OK

BOOL

 

 

Returns TRUE when the function successfully executes.

Q

DINT

 

Microseconds

Returns the time stamp value.

See Interpret a Timestamp for more information.

Remarks

FBD Language Example

MLAxisTimeStamp: FBD example

FFLD Language Example

MLAxisTimeStamp: LD example

IL Language Example

Not available.

ST Language Example

 
MLAxisTimeStamp(PipeNetwork.Axis1, 0, 1 ) ;

See Also