Commit af2f313b authored by Claes Sjofors's avatar Claes Sjofors

Added new line at end

parent d1204cca
...@@ -38,6 +38,8 @@ ...@@ -38,6 +38,8 @@
Contains macros for object that does not fit anywhere else. Contains macros for object that does not fit anywhere else.
This code is used in the PLC-program environment. */ This code is used in the PLC-program environment. */
#define PLC_ABS(Dragon) ((Dragon) >= 0 ? (Dragon) : (-(Dragon)))
#define Backup_init(object, data)\ #define Backup_init(object, data)\
strcpy( &(object->DataName), data); strcpy( &(object->DataName), data);
...@@ -95,7 +97,7 @@ ...@@ -95,7 +97,7 @@
@aref iabs IAbs @aref iabs IAbs
*/ */
#define IAbs_exec(object, in)\ #define IAbs_exec(object, in)\
object->ActVal = ABS( in); object->ActVal = PLC_ABS( in);
/*_* /*_*
@aref sin Sin @aref sin Sin
...@@ -218,4 +220,4 @@ ...@@ -218,4 +220,4 @@
o->P10ms = (tp->before_scan.tv_nsec / 5000000) & 1 ? 1 : 0;\ o->P10ms = (tp->before_scan.tv_nsec / 5000000) & 1 ? 1 : 0;\
o->P5ms = (tp->before_scan.tv_nsec / 2500000) & 1 ? 1 : 0;\ o->P5ms = (tp->before_scan.tv_nsec / 2500000) & 1 ? 1 : 0;\
o->P2ms = (tp->before_scan.tv_nsec / 1000000) & 1 ? 1 : 0;\ o->P2ms = (tp->before_scan.tv_nsec / 1000000) & 1 ? 1 : 0;\
o->P1ms = (tp->before_scan.tv_nsec / 500000) & 1 ? 1 : 0; o->P1ms = (tp->before_scan.tv_nsec / 500000) & 1 ? 1 : 0;
\ No newline at end of file
...@@ -284,4 +284,4 @@ ...@@ -284,4 +284,4 @@
if ( in ) \ if ( in ) \
{ \ { \
chain \ chain \
} }
\ No newline at end of file
...@@ -960,4 +960,4 @@ ...@@ -960,4 +960,4 @@
@aref cstorefa CStoRefA @aref cstorefa CStoRefA
*/ */
#define CStoRefA_exec(out,in,cond) \ #define CStoRefA_exec(out,in,cond) \
if ( cond) out = in; if ( cond) out = in;
\ No newline at end of file
...@@ -220,4 +220,4 @@ ...@@ -220,4 +220,4 @@
break; \ break; \
default: ; \ default: ; \
} \ } \
obj->Suppressed = in; obj->Suppressed = in;
\ No newline at end of file
...@@ -48,4 +48,4 @@ ...@@ -48,4 +48,4 @@
#define mpsTrp_exec(obj) \ #define mpsTrp_exec(obj) \
if ( obj->InTriggFlag && !obj->InTriggOld ) \ if ( obj->InTriggFlag && !obj->InTriggOld ) \
obj->TriggFlag = TRUE; \ obj->TriggFlag = TRUE; \
obj->InTriggOld = obj->InTriggFlag obj->InTriggOld = obj->InTriggFlag
\ No newline at end of file
...@@ -162,4 +162,4 @@ ...@@ -162,4 +162,4 @@
@aref cstorefs CStoRefS @aref cstorefs CStoRefS
*/ */
#define CStoRefS_exec(out,in,cond,size) \ #define CStoRefS_exec(out,in,cond,size) \
if ( cond) strncpy( out, in, size); if ( cond) strncpy( out, in, size);
\ No newline at end of file
...@@ -220,4 +220,4 @@ ...@@ -220,4 +220,4 @@
obj->Year = tm.tm_year; \ obj->Year = tm.tm_year; \
obj->WDay = tm.tm_wday; \ obj->WDay = tm.tm_wday; \
obj->YDay = tm.tm_yday; \ obj->YDay = tm.tm_yday; \
} }
\ No newline at end of file
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