--- a/lib/iec_types_all.h Sat May 31 12:49:43 2014 +0100
+++ b/lib/iec_types_all.h Sat May 31 16:22:57 2014 +0100
@@ -126,11 +126,12 @@
__ANY(__DECLARE_IEC_TYPE)
typedef struct {
- __IEC_BOOL_t state; // current step state. 0 : inative, 1: active
+ __IEC_BOOL_t X; // state; --> current step state. 0 : inative, 1: active. We name it 'X' as it may be accessed from IEC 61131.3 code using stepname.X syntax!!
BOOL prev_state; // previous step state. 0 : inative, 1: active
- TIME elapsed_time; // time since step is active
+ TIME elapsed_time; // T; // elapsed_time; --> time since step is active. We name it 'T' as it may be accessed from IEC 61131.3 code using stepname.T syntax!!
} STEP;
+
typedef struct {
BOOL stored; // action storing state. 0 : not stored, 1: stored
__IEC_BOOL_t state; // current action state. 0 : inative, 1: active