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
abadba95
Commit
abadba95
authored
Oct 28, 2011
by
Claes Sjofors
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Profinet rt bugfixes
parent
2cf07ece
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
2 deletions
+5
-2
profibus/lib/rt/src/os_linux/rt_io_m_pncontrollersoftingpnak.cpp
...s/lib/rt/src/os_linux/rt_io_m_pncontrollersoftingpnak.cpp
+2
-0
profibus/lib/rt/src/os_linux/rt_io_m_pndevice.cpp
profibus/lib/rt/src/os_linux/rt_io_m_pndevice.cpp
+2
-1
profibus/lib/rt/src/os_linux/rt_io_pnak_locals.h
profibus/lib/rt/src/os_linux/rt_io_pnak_locals.h
+1
-1
No files found.
profibus/lib/rt/src/os_linux/rt_io_m_pncontrollersoftingpnak.cpp
View file @
abadba95
...
...
@@ -293,6 +293,8 @@ static pwr_tStatus IoAgentInit (
local
->
device_data
[
ii
]
->
iocr_data
[
jj
]
->
clean_io_data
=
(
unsigned
char
*
)
calloc
(
1
,
offset_inputs
+
offset_outputs
);
local
->
device_data
[
ii
]
->
iocr_data
[
jj
]
->
clean_io_data_length
=
offset_inputs
+
offset_outputs
;
}
}
else
{
errh_Error
(
"Download of Profinet Device configuration failed for: %s"
,
device_vect
[
ii
]
->
device_name
);
}
}
}
...
...
profibus/lib/rt/src/os_linux/rt_io_m_pndevice.cpp
View file @
abadba95
...
...
@@ -246,7 +246,8 @@ static pwr_tStatus IoRackRead (
}
if
(
sp
->
ErrorCount
>
sp
->
ErrorSoftLimit
)
{
memset
(((
io_sPnRackLocal
*
)(
rp
->
Local
))
->
inputs
,
0
,
((
io_sPnRackLocal
*
)(
rp
->
Local
))
->
bytes_of_input
);
if
(
((
io_sPnRackLocal
*
)(
rp
->
Local
))
->
bytes_of_input
>
0
)
memset
(((
io_sPnRackLocal
*
)(
rp
->
Local
))
->
inputs
,
0
,
((
io_sPnRackLocal
*
)(
rp
->
Local
))
->
bytes_of_input
);
}
// if (sp->ErrorCount > sp->ErrorHardLimit && sp->StallAction >= pwr_ePbStallAction_EmergencyBreak) {
...
...
profibus/lib/rt/src/os_linux/rt_io_pnak_locals.h
View file @
abadba95
...
...
@@ -57,7 +57,7 @@ typedef struct _PN_Alarm_Data {
class
PnIOCRData
{
public:
PnIOCRData
()
:
type
(
0
),
number_modules
(
0
),
identifier
(
0
),
io_data_length
(
0
)
{}
PnIOCRData
()
:
type
(
0
),
number_modules
(
0
),
identifier
(
0
),
io_data_length
(
0
)
,
clean_io_data_length
(
0
)
{}
unsigned
short
type
;
unsigned
short
number_modules
;
...
...
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