Commit dc08c5e9 authored by Claes Sjofors's avatar Claes Sjofors

NMpsCell 60 and 120, code for subwindow added

parent e5422aa3
......@@ -116,6 +116,44 @@ typedef struct {
} \
}
#define NMpsCell60SubWind_exec( object, subwindow) \
if ( !(object->InitTime && !object->ReloadDone)) \
{ \
object->CurrentIndex = 0; \
memset( &(object->DataCurrentP), 0, \
sizeof( plc_t_DataInfo) - 16); \
subwindow; \
for ( object->Idx = 1; object->Idx <= \
object->LastIndex; object->Idx++ ) \
{ \
memcpy( &(object->DataCurrentP), \
(char *) &object->Data[0].DataP + \
(object->Idx - 1) * sizeof( plc_t_DataInfo), \
sizeof( plc_t_DataInfo) - 16); \
object->CurrentIndex = object->Idx; \
subwindow; \
} \
}
#define NMpsCell120SubWind_exec( object, subwindow) \
if ( !(object->InitTime && !object->ReloadDone)) \
{ \
object->CurrentIndex = 0; \
memset( &(object->DataCurrentP), 0, \
sizeof( plc_t_DataInfo) - 16); \
subwindow; \
for ( object->Idx = 1; object->Idx <= \
object->LastIndex; object->Idx++ ) \
{ \
memcpy( &(object->DataCurrentP), \
(char *) &object->Data[0].DataP + \
(object->Idx - 1) * sizeof( plc_t_DataInfo), \
sizeof( plc_t_DataInfo) - 16); \
object->CurrentIndex = object->Idx; \
subwindow; \
} \
}
/*_*
NMpsStoreCellSubWind
......@@ -140,6 +178,44 @@ typedef struct {
} \
}
#define NMpsStoreCell60SubWind_exec( object, subwindow) \
if ( !(object->InitTime && !object->ReloadDone)) \
{ \
object->CurrentIndex = 0; \
memset( &(object->DataCurrentP), 0, \
sizeof( plc_t_DataInfo) - 16); \
subwindow; \
for ( object->Idx = 1; object->Idx <= \
object->LastIndex; object->Idx++ ) \
{ \
memcpy( &(object->DataCurrentP), \
(char *) &object->Data[0].DataP + \
(object->Idx - 1) * sizeof( plc_t_DataInfo), \
sizeof( plc_t_DataInfo) - 16); \
object->CurrentIndex = object->Idx; \
subwindow; \
} \
}
#define NMpsStoreCell120SubWind_exec( object, subwindow) \
if ( !(object->InitTime && !object->ReloadDone)) \
{ \
object->CurrentIndex = 0; \
memset( &(object->DataCurrentP), 0, \
sizeof( plc_t_DataInfo) - 16); \
subwindow; \
for ( object->Idx = 1; object->Idx <= \
object->LastIndex; object->Idx++ ) \
{ \
memcpy( &(object->DataCurrentP), \
(char *) &object->Data[0].DataP + \
(object->Idx - 1) * sizeof( plc_t_DataInfo), \
sizeof( plc_t_DataInfo) - 16); \
object->CurrentIndex = object->Idx; \
subwindow; \
} \
}
/*_*
CLoop
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment