MLAxisTimeStamp

Pipe Network motion icon

 Function - Returns the timestamp of the triggered axis.

Inputs

Input

Data Type

Range

Unit

Default

Description

En

BOOL

FALSE, TRUE

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.

  • 0 = First.
  • 1 = Second (e.g., IN1 and IN2 on S300).

edge

DINT

0 to 2

N/A

No default

Configures the Inputs as:

  • 0 = Disabled.
  • 1 = Rising edge.
  • 2 = Falling edge.

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