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
d386eb29
Commit
d386eb29
authored
Jul 02, 2009
by
Claes Sjofors
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
More 64 bit, adaption of NMps
parent
0a6af4f2
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
15 additions
and
15 deletions
+15
-15
nmps/lib/nmps/src/nmps.h
nmps/lib/nmps/src/nmps.h
+1
-1
nmps/lib/nmps/src/nmps_plc.c
nmps/lib/nmps/src/nmps_plc.c
+2
-2
wb/lib/wb/src/wb_foe_dataarithm.c
wb/lib/wb/src/wb_foe_dataarithm.c
+12
-12
No files found.
nmps/lib/nmps/src/nmps.h
View file @
d386eb29
...
@@ -58,7 +58,7 @@
...
@@ -58,7 +58,7 @@
/* Data structure for one dataobjekt in a NMpsCell and NMpsSelectCell */
/* Data structure for one dataobjekt in a NMpsCell and NMpsSelectCell */
typedef
struct
{
typedef
struct
{
pwr_tFloat32
*
DataP
;
pwr_tFloat32
*
DataP
;
pwr_tObjid
Data_ObjId
pwr_dAlignW
;
pwr_tObjid
Data_ObjId
pwr_dAlign
L
W
;
pwr_tBoolean
Data_Front
pwr_dAlignW
;
pwr_tBoolean
Data_Front
pwr_dAlignW
;
pwr_tBoolean
Data_Back
pwr_dAlignW
;
pwr_tBoolean
Data_Back
pwr_dAlignW
;
gdh_tDlid
Data_Dlid
pwr_dAlignW
;
gdh_tDlid
Data_Dlid
pwr_dAlignW
;
...
...
nmps/lib/nmps/src/nmps_plc.c
View file @
d386eb29
...
@@ -2948,7 +2948,7 @@ void DataFWrite_exec( plc_sThread *tp,
...
@@ -2948,7 +2948,7 @@ void DataFWrite_exec( plc_sThread *tp,
o
->
Error
=
0
;
o
->
Error
=
0
;
if
(
*
o
->
ConditionP
&&
!
o
->
CondOld
)
{
if
(
*
o
->
ConditionP
&&
!
o
->
CondOld
)
{
pwr_tAttrRef
aref
=
cdh_ObjidToAref
(
*
(
pwr_tOid
*
)((
char
*
)
o
->
DataP
+
4
));
pwr_tAttrRef
aref
=
cdh_ObjidToAref
(
*
(
pwr_tOid
*
)((
char
*
)
o
->
DataP
+
pwr_cAlignLW
));
o
->
WriteStatus
=
gdh_FWriteObject
(
*
o
->
FileNameP
,
&
aref
);
o
->
WriteStatus
=
gdh_FWriteObject
(
*
o
->
FileNameP
,
&
aref
);
if
(
EVEN
(
o
->
WriteStatus
))
if
(
EVEN
(
o
->
WriteStatus
))
...
@@ -2972,7 +2972,7 @@ void DataFRead_exec( plc_sThread *tp,
...
@@ -2972,7 +2972,7 @@ void DataFRead_exec( plc_sThread *tp,
o
->
Error
=
0
;
o
->
Error
=
0
;
if
(
*
o
->
ConditionP
&&
!
o
->
CondOld
)
{
if
(
*
o
->
ConditionP
&&
!
o
->
CondOld
)
{
pwr_tAttrRef
aref
=
cdh_ObjidToAref
(
*
(
pwr_tOid
*
)((
char
*
)
o
->
DataP
+
4
));
pwr_tAttrRef
aref
=
cdh_ObjidToAref
(
*
(
pwr_tOid
*
)((
char
*
)
o
->
DataP
+
pwr_cAlignLW
));
o
->
ReadStatus
=
gdh_FReadObject
(
*
o
->
FileNameP
,
&
aref
);
o
->
ReadStatus
=
gdh_FReadObject
(
*
o
->
FileNameP
,
&
aref
);
if
(
EVEN
(
o
->
ReadStatus
))
if
(
EVEN
(
o
->
ReadStatus
))
...
...
wb/lib/wb/src/wb_foe_dataarithm.c
View file @
d386eb29
...
@@ -572,62 +572,62 @@ static pwr_tStatus dataa_ODa4 (
...
@@ -572,62 +572,62 @@ static pwr_tStatus dataa_ODa4 (
}
}
static
pwr_tStatus
dataa_Da1front
(
dataa_ctx
dataactx
,
char
*
line
,
char
*
pos
,
static
pwr_tStatus
dataa_Da1front
(
dataa_ctx
dataactx
,
char
*
line
,
char
*
pos
,
char
*
out
,
int
*
incr
,
char
*
var
)
{
char
*
out
,
int
*
incr
,
char
*
var
)
{
sprintf
(
out
,
"( *(char *)((char *)(%s->DataIn1P) +
12
))"
,
var
);
sprintf
(
out
,
"( *(char *)((char *)(%s->DataIn1P) +
pwr_cAlignLW+2*pwr_cAlignW
))"
,
var
);
*
incr
=
strlen
(
out
);
*
incr
=
strlen
(
out
);
return
GSX__SUCCESS
;
}
return
GSX__SUCCESS
;
}
static
pwr_tStatus
dataa_Da2front
(
dataa_ctx
dataactx
,
char
*
line
,
char
*
pos
,
static
pwr_tStatus
dataa_Da2front
(
dataa_ctx
dataactx
,
char
*
line
,
char
*
pos
,
char
*
out
,
int
*
incr
,
char
*
var
)
{
char
*
out
,
int
*
incr
,
char
*
var
)
{
sprintf
(
out
,
"( *(char *)((char *)(%s->DataIn2P) +
12
))"
,
var
);
sprintf
(
out
,
"( *(char *)((char *)(%s->DataIn2P) +
pwr_cAlignLW+2*pwr_cAlignW
))"
,
var
);
*
incr
=
strlen
(
out
);
*
incr
=
strlen
(
out
);
return
GSX__SUCCESS
;
}
return
GSX__SUCCESS
;
}
static
pwr_tStatus
dataa_Da3front
(
dataa_ctx
dataactx
,
char
*
line
,
char
*
pos
,
static
pwr_tStatus
dataa_Da3front
(
dataa_ctx
dataactx
,
char
*
line
,
char
*
pos
,
char
*
out
,
int
*
incr
,
char
*
var
)
{
char
*
out
,
int
*
incr
,
char
*
var
)
{
sprintf
(
out
,
"( *(char *)((char *)(%s->DataIn3P) +
12
))"
,
var
);
sprintf
(
out
,
"( *(char *)((char *)(%s->DataIn3P) +
pwr_cAlignLW+2*pwr_cAlignW
))"
,
var
);
*
incr
=
strlen
(
out
);
*
incr
=
strlen
(
out
);
return
GSX__SUCCESS
;
}
return
GSX__SUCCESS
;
}
static
pwr_tStatus
dataa_Da4front
(
dataa_ctx
dataactx
,
char
*
line
,
char
*
pos
,
static
pwr_tStatus
dataa_Da4front
(
dataa_ctx
dataactx
,
char
*
line
,
char
*
pos
,
char
*
out
,
int
*
incr
,
char
*
var
)
{
char
*
out
,
int
*
incr
,
char
*
var
)
{
sprintf
(
out
,
"( *(char *)((char *)(%s->DataIn4P) +
12
))"
,
var
);
sprintf
(
out
,
"( *(char *)((char *)(%s->DataIn4P) +
pwr_cAlignLW+2*pwr_cAlignW
))"
,
var
);
*
incr
=
strlen
(
out
);
*
incr
=
strlen
(
out
);
return
GSX__SUCCESS
;
}
return
GSX__SUCCESS
;
}
static
pwr_tStatus
dataa_Da1back
(
dataa_ctx
dataactx
,
char
*
line
,
char
*
pos
,
static
pwr_tStatus
dataa_Da1back
(
dataa_ctx
dataactx
,
char
*
line
,
char
*
pos
,
char
*
out
,
int
*
incr
,
char
*
var
)
{
char
*
out
,
int
*
incr
,
char
*
var
)
{
sprintf
(
out
,
"( *(char *)((char *)(%s->DataIn1P) +
16
))"
,
var
);
sprintf
(
out
,
"( *(char *)((char *)(%s->DataIn1P) +
pwr_cAlignLW+3*pwr_cAlignW
))"
,
var
);
*
incr
=
strlen
(
out
);
*
incr
=
strlen
(
out
);
return
GSX__SUCCESS
;
}
return
GSX__SUCCESS
;
}
static
pwr_tStatus
dataa_Da2back
(
dataa_ctx
dataactx
,
char
*
line
,
char
*
pos
,
static
pwr_tStatus
dataa_Da2back
(
dataa_ctx
dataactx
,
char
*
line
,
char
*
pos
,
char
*
out
,
int
*
incr
,
char
*
var
)
{
char
*
out
,
int
*
incr
,
char
*
var
)
{
sprintf
(
out
,
"( *(char *)((char *)(%s->DataIn2P) +
16
))"
,
var
);
sprintf
(
out
,
"( *(char *)((char *)(%s->DataIn2P) +
pwr_cAlignLW+3*pwr_cAlignW
))"
,
var
);
*
incr
=
strlen
(
out
);
*
incr
=
strlen
(
out
);
return
GSX__SUCCESS
;
}
return
GSX__SUCCESS
;
}
static
pwr_tStatus
dataa_Da3back
(
dataa_ctx
dataactx
,
char
*
line
,
char
*
pos
,
static
pwr_tStatus
dataa_Da3back
(
dataa_ctx
dataactx
,
char
*
line
,
char
*
pos
,
char
*
out
,
int
*
incr
,
char
*
var
)
{
char
*
out
,
int
*
incr
,
char
*
var
)
{
sprintf
(
out
,
"( *(char *)((char *)(%s->DataIn3P) +
16
))"
,
var
);
sprintf
(
out
,
"( *(char *)((char *)(%s->DataIn3P) +
pwr_cAlignLW+3*pwr_cAlignW
))"
,
var
);
*
incr
=
strlen
(
out
);
*
incr
=
strlen
(
out
);
return
GSX__SUCCESS
;
}
return
GSX__SUCCESS
;
}
static
pwr_tStatus
dataa_Da4back
(
dataa_ctx
dataactx
,
char
*
line
,
char
*
pos
,
static
pwr_tStatus
dataa_Da4back
(
dataa_ctx
dataactx
,
char
*
line
,
char
*
pos
,
char
*
out
,
int
*
incr
,
char
*
var
)
{
char
*
out
,
int
*
incr
,
char
*
var
)
{
sprintf
(
out
,
"( *(char *)((char *)(%s->DataIn4P) +
16
))"
,
var
);
sprintf
(
out
,
"( *(char *)((char *)(%s->DataIn4P) +
pwr_cAlignLW+3*pwr_cAlignW
))"
,
var
);
*
incr
=
strlen
(
out
);
*
incr
=
strlen
(
out
);
return
GSX__SUCCESS
;
}
return
GSX__SUCCESS
;
}
static
pwr_tStatus
dataa_Da1objid
(
dataa_ctx
dataactx
,
char
*
line
,
char
*
pos
,
static
pwr_tStatus
dataa_Da1objid
(
dataa_ctx
dataactx
,
char
*
line
,
char
*
pos
,
char
*
out
,
int
*
incr
,
char
*
var
)
{
char
*
out
,
int
*
incr
,
char
*
var
)
{
sprintf
(
out
,
"( *(pwr_tObjid *)((char *)(%s->DataIn1P) +
4
))"
,
var
);
sprintf
(
out
,
"( *(pwr_tObjid *)((char *)(%s->DataIn1P) +
pwr_cAlignLW
))"
,
var
);
*
incr
=
strlen
(
out
);
*
incr
=
strlen
(
out
);
return
GSX__SUCCESS
;
}
return
GSX__SUCCESS
;
}
static
pwr_tStatus
dataa_Da2objid
(
dataa_ctx
dataactx
,
char
*
line
,
char
*
pos
,
static
pwr_tStatus
dataa_Da2objid
(
dataa_ctx
dataactx
,
char
*
line
,
char
*
pos
,
char
*
out
,
int
*
incr
,
char
*
var
)
{
char
*
out
,
int
*
incr
,
char
*
var
)
{
sprintf
(
out
,
"( *(pwr_tObjid *)((char *)(%s->DataIn2P) +
4
))"
,
var
);
sprintf
(
out
,
"( *(pwr_tObjid *)((char *)(%s->DataIn2P) +
pwr_cAlignLW
))"
,
var
);
*
incr
=
strlen
(
out
);
*
incr
=
strlen
(
out
);
return
GSX__SUCCESS
;
}
return
GSX__SUCCESS
;
}
static
pwr_tStatus
dataa_Da3objid
(
dataa_ctx
dataactx
,
char
*
line
,
char
*
pos
,
static
pwr_tStatus
dataa_Da3objid
(
dataa_ctx
dataactx
,
char
*
line
,
char
*
pos
,
char
*
out
,
int
*
incr
,
char
*
var
)
{
char
*
out
,
int
*
incr
,
char
*
var
)
{
sprintf
(
out
,
"( *(pwr_tObjid *)((char *)(%s->DataIn3P) +
4
))"
,
var
);
sprintf
(
out
,
"( *(pwr_tObjid *)((char *)(%s->DataIn3P) +
pwr_cAlignLW
))"
,
var
);
*
incr
=
strlen
(
out
);
*
incr
=
strlen
(
out
);
return
GSX__SUCCESS
;
}
return
GSX__SUCCESS
;
}
static
pwr_tStatus
dataa_Da4objid
(
dataa_ctx
dataactx
,
char
*
line
,
char
*
pos
,
static
pwr_tStatus
dataa_Da4objid
(
dataa_ctx
dataactx
,
char
*
line
,
char
*
pos
,
char
*
out
,
int
*
incr
,
char
*
var
)
{
char
*
out
,
int
*
incr
,
char
*
var
)
{
sprintf
(
out
,
"( *(pwr_tObjid *)((char *)(%s->DataIn4P) +
4
))"
,
var
);
sprintf
(
out
,
"( *(pwr_tObjid *)((char *)(%s->DataIn4P) +
pwr_cAlignLW
))"
,
var
);
*
incr
=
strlen
(
out
);
*
incr
=
strlen
(
out
);
return
GSX__SUCCESS
;
}
return
GSX__SUCCESS
;
}
static
pwr_tStatus
dataa_d1
(
dataa_ctx
dataactx
,
char
*
line
,
char
*
pos
,
static
pwr_tStatus
dataa_d1
(
dataa_ctx
dataactx
,
char
*
line
,
char
*
pos
,
...
...
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