Datatype containing data for state machine monitoring.
Version history
0.1.1
 
Rioual
Changes
Added:
- first version
Overview
| name | type | default | comment |
|---|---|---|---|
| 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 |
Details
nStateStored
DINTStored state for detecting change.
nStatePrevious
DINTPrevious state.
nStateTimeUs
DINTElapsed time [µs].
nStateTime
DINTElapsed time [ms].
nStateTimePrevious
DINTElapsed time previous state [ms].
tStored
LTIMEStored plc clock.
Source code
Declarations
(*data for state machine monitoring*)
TYPE MceStateMonitoringData :
(*
* -----------------------------------------------------------------------------
* Name : MceStateMonitoringData
* Version : 0.1.1
* Date : 2024-02-06
* Author : Rioual
* 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*)
END_STRUCT
END_TYPE