MceStateMonitoringData

0.2.0

Datatype containing data for state machine monitoring.

Version history

0.2.0

  deGroot

Changes

Added:
  • bOsrStateChange for providing signal at a state change event
show full history

0.1.1

  Rioual

Changes

Added:
  • first version

Overview

nametypedefaultcomment
nStateStoredDINTstored state for detecting change
nStatePreviousDINTprevious state
nStateTimeUsDINTelapsed time [µs]
nStateTimeDINTelapsed time [ms]
nStateTimePreviousDINTelapsed time previous state [ms]
tStoredLTIMEstored plc clock
bOsrStateChangeBOOLrising edge on state change

Details

nStateStored

DINT

Stored state for detecting change.

nStatePrevious

DINT

Previous state.

nStateTimeUs

DINT

Elapsed time [µs].

nStateTime

DINT

Elapsed time [ms].

nStateTimePrevious

DINT

Elapsed time previous state [ms].

tStored

LTIME

Stored plc clock.

bOsrStateChange

BOOL

Rising edge on state change. Useful for e.g. initializing some data at entering a state.

Source code

Declarations

(*data for state machine monitoring*)
TYPE MceStateMonitoringData : 

(*
 * -----------------------------------------------------------------------------
 * Name               : MceStateMonitoringData
 * Version            : 0.2.0
 * Date               : 2026-02-18
 * Author             : deGroot
 * Family             : YaskawaMce
 * Organisation       : github.com/YaskawaEurope/mlx-examples
 * 
 * -----------------------------------------------------------------------------
 * data for state machine monitoring
 * -----------------------------------------------------------------------------
 *)

STRUCT
  nStateStored : DINT; (*stored state for detecting change*)
  nStatePrevious : DINT; (*previous state*)
  nStateTimeUs : DINT; (*elapsed time [µs]*)
  nStateTime : DINT; (*elapsed time [ms]*)
  nStateTimePrevious : DINT; (*elapsed time previous state [ms]*)
  tStored : LTIME; (*stored plc clock*)
  bOsrStateChange : BOOL; (*rising edge on state change*)
END_STRUCT
END_TYPE

Pages built with Hugo - 11 May 2026 14:02 CEST