Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
P
proview
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Esteban Blanc
proview
Commits
af2f313b
Commit
af2f313b
authored
7 years ago
by
Claes Sjofors
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added new line at end
parent
d1204cca
master
bugfix_backports
slapos-adapt
slapos-adapt-release
No related merge requests found
Changes
7
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
10 additions
and
8 deletions
+10
-8
src/lib/rt/src/rt_plc_macro_div.h
src/lib/rt/src/rt_plc_macro_div.h
+4
-2
src/lib/rt/src/rt_plc_macro_grafcet.h
src/lib/rt/src/rt_plc_macro_grafcet.h
+1
-1
src/lib/rt/src/rt_plc_macro_io.h
src/lib/rt/src/rt_plc_macro_io.h
+1
-1
src/lib/rt/src/rt_plc_macro_logic.h
src/lib/rt/src/rt_plc_macro_logic.h
+1
-1
src/lib/rt/src/rt_plc_macro_mps.h
src/lib/rt/src/rt_plc_macro_mps.h
+1
-1
src/lib/rt/src/rt_plc_macro_string.h
src/lib/rt/src/rt_plc_macro_string.h
+1
-1
src/lib/rt/src/rt_plc_macro_time.h
src/lib/rt/src/rt_plc_macro_time.h
+1
-1
No files found.
src/lib/rt/src/rt_plc_macro_div.h
View file @
af2f313b
...
...
@@ -38,6 +38,8 @@
Contains macros for object that does not fit anywhere else.
This code is used in the PLC-program environment. */
#define PLC_ABS(Dragon) ((Dragon) >= 0 ? (Dragon) : (-(Dragon)))
#define Backup_init(object, data)\
strcpy( &(object->DataName), data);
...
...
@@ -95,7 +97,7 @@
@aref iabs IAbs
*/
#define IAbs_exec(object, in)\
object->ActVal = ABS( in);
object->ActVal =
PLC_
ABS( in);
/*_*
@aref sin Sin
...
...
@@ -218,4 +220,4 @@
o->P10ms = (tp->before_scan.tv_nsec / 5000000) & 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->P1ms = (tp->before_scan.tv_nsec / 500000) & 1 ? 1 : 0;
\ No newline at end of file
o->P1ms = (tp->before_scan.tv_nsec / 500000) & 1 ? 1 : 0;
This diff is collapsed.
Click to expand it.
src/lib/rt/src/rt_plc_macro_grafcet.h
View file @
af2f313b
...
...
@@ -284,4 +284,4 @@
if ( in ) \
{ \
chain \
}
\ No newline at end of file
}
This diff is collapsed.
Click to expand it.
src/lib/rt/src/rt_plc_macro_io.h
View file @
af2f313b
...
...
@@ -960,4 +960,4 @@
@aref cstorefa CStoRefA
*/
#define CStoRefA_exec(out,in,cond) \
if ( cond) out = in;
\ No newline at end of file
if ( cond) out = in;
This diff is collapsed.
Click to expand it.
src/lib/rt/src/rt_plc_macro_logic.h
View file @
af2f313b
...
...
@@ -220,4 +220,4 @@
break; \
default: ; \
} \
obj->Suppressed = in;
\ No newline at end of file
obj->Suppressed = in;
This diff is collapsed.
Click to expand it.
src/lib/rt/src/rt_plc_macro_mps.h
View file @
af2f313b
...
...
@@ -48,4 +48,4 @@
#define mpsTrp_exec(obj) \
if ( obj->InTriggFlag && !obj->InTriggOld ) \
obj->TriggFlag = TRUE; \
obj->InTriggOld = obj->InTriggFlag
\ No newline at end of file
obj->InTriggOld = obj->InTriggFlag
This diff is collapsed.
Click to expand it.
src/lib/rt/src/rt_plc_macro_string.h
View file @
af2f313b
...
...
@@ -162,4 +162,4 @@
@aref cstorefs CStoRefS
*/
#define CStoRefS_exec(out,in,cond,size) \
if ( cond) strncpy( out, in, size);
\ No newline at end of file
if ( cond) strncpy( out, in, size);
This diff is collapsed.
Click to expand it.
src/lib/rt/src/rt_plc_macro_time.h
View file @
af2f313b
...
...
@@ -220,4 +220,4 @@
obj->Year = tm.tm_year; \
obj->WDay = tm.tm_wday; \
obj->YDay = tm.tm_yday; \
}
\ No newline at end of file
}
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment