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
87abb9f9
Commit
87abb9f9
authored
Sep 05, 2008
by
claes
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
CStoExt macros added
parent
5d393e9f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
121 additions
and
1 deletion
+121
-1
src/lib/rt/src/rt_plc_macro_io.h
src/lib/rt/src/rt_plc_macro_io.h
+121
-1
No files found.
src/lib/rt/src/rt_plc_macro_io.h
View file @
87abb9f9
/*
* Proview $Id: rt_plc_macro_io.h,v 1.
8 2007-04-25 07:25:3
4 claes Exp $
* Proview $Id: rt_plc_macro_io.h,v 1.
9 2008-09-05 08:57:4
4 claes Exp $
* Copyright (C) 2005 SSAB Oxelsund AB.
*
* This program is free software; you can redistribute it and/or
...
...
@@ -373,6 +373,16 @@
attr[size-1] = 0; \
}
/*_*
CStoExtBoolean
@aref cstoextboolean CStoExtBoolean
*/
#define CStoExtBoolean_exec(obj, name, in, cond) \
if ( cond && !obj->OldCond) { \
obj->LastStatus = gdh_SetObjectInfo( name, (void *)&in, sizeof(pwr_tBoolean)); \
} \
obj->OldCond = cond;
/*_*
CStoExtFloat32
@aref cstoextfloat32 CStoExtFloat32
...
...
@@ -383,6 +393,116 @@
} \
obj->OldCond = cond;
/*_*
CStoExtFloat64
@aref cstoextfloat64 CStoExtFloat64
*/
#define CStoExtFloat64_exec(obj, name, in, cond) \
if ( cond && !obj->OldCond) { \
obj->LastStatus = gdh_SetObjectInfo( name, (void *)&in, sizeof(pwr_tFloat64)); \
} \
obj->OldCond = cond;
/*_*
CStoExtInt8
@aref cstoextint8 CStoExtInt8
*/
#define CStoExtInt8_exec(obj, name, in, cond) \
if ( cond && !obj->OldCond) { \
obj->LastStatus = gdh_SetObjectInfo( name, (void *)&in, sizeof(pwr_tInt8)); \
} \
obj->OldCond = cond;
/*_*
CStoExtInt16
@aref cstoextint16 CStoExtInt16
*/
#define CStoExtInt16_exec(obj, name, in, cond) \
if ( cond && !obj->OldCond) { \
obj->LastStatus = gdh_SetObjectInfo( name, (void *)&in, sizeof(pwr_tInt16)); \
} \
obj->OldCond = cond;
/*_*
CStoExtInt32
@aref cstoextint32 CStoExtInt32
*/
#define CStoExtInt32_exec(obj, name, in, cond) \
if ( cond && !obj->OldCond) { \
obj->LastStatus = gdh_SetObjectInfo( name, (void *)&in, sizeof(pwr_tInt32)); \
} \
obj->OldCond = cond;
/*_*
CStoExtInt64
@aref cstoextint64 CStoExtInt64
*/
#define CStoExtInt64_exec(obj, name, in, cond) \
if ( cond && !obj->OldCond) { \
obj->LastStatus = gdh_SetObjectInfo( name, (void *)&in, sizeof(pwr_tInt64)); \
} \
obj->OldCond = cond;
/*_*
CStoExtInt8
@aref cstoextuint8 CStoExtUInt8
*/
#define CStoExtUInt8_exec(obj, name, in, cond) \
if ( cond && !obj->OldCond) { \
obj->LastStatus = gdh_SetObjectInfo( name, (void *)&in, sizeof(pwr_tUInt8)); \
} \
obj->OldCond = cond;
/*_*
CStoExtUInt16
@aref cstoextuint16 CStoExtUInt16
*/
#define CStoExtUInt16_exec(obj, name, in, cond) \
if ( cond && !obj->OldCond) { \
obj->LastStatus = gdh_SetObjectInfo( name, (void *)&in, sizeof(pwr_tUInt16)); \
} \
obj->OldCond = cond;
/*_*
CStoExtUInt32
@aref cstoextuint32 CStoExtUInt32
*/
#define CStoExtUInt32_exec(obj, name, in, cond) \
if ( cond && !obj->OldCond) { \
obj->LastStatus = gdh_SetObjectInfo( name, (void *)&in, sizeof(pwr_tUInt32)); \
} \
obj->OldCond = cond;
/*_*
CStoExtUInt64
@aref cstoextuint64 CStoExtUInt64
*/
#define CStoExtUInt64_exec(obj, name, in, cond) \
if ( cond && !obj->OldCond) { \
obj->LastStatus = gdh_SetObjectInfo( name, (void *)&in, sizeof(pwr_tUInt64)); \
} \
obj->OldCond = cond;
/*_*
CStoExtString
@aref cstoextstring CStoExtString
*/
#define CStoExtString_exec(obj, name, in, cond) \
if ( cond && !obj->OldCond) { \
obj->LastStatus = gdh_SetObjectInfo( name, (void *)&in, sizeof(pwr_tString80)); \
} \
obj->OldCond = cond;
/*_*
CStoExtTime
@aref cstoexttime CStoExtTime
*/
#define CStoExtTime_exec(obj, name, in, cond) \
if ( cond && !obj->OldCond) { \
obj->LastStatus = gdh_SetObjectInfo( name, (void *)&in, sizeof(pwr_tTime)); \
} \
obj->OldCond = cond;
/*_*
GetExtFloat32
@aref getextfloat32 GetExtFloat32
...
...
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