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
1e70d5dd
Commit
1e70d5dd
authored
Jan 02, 2012
by
Claes Sjofors
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Profinet, set correct status on profinet device when losing connection
parent
14b9b8ad
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
2 deletions
+11
-2
profibus/changelog.txt
profibus/changelog.txt
+5
-2
profibus/lib/rt/src/os_linux/rt_pn_iface.cpp
profibus/lib/rt/src/os_linux/rt_pn_iface.cpp
+6
-0
No files found.
profibus/changelog.txt
View file @
1e70d5dd
#
060227 cs - Changelog created.
060227 cs - Changelog created.
060509 cj - Added some commentation.
060509 cj - Added some commentation.
Fixed bug in pb_ai and pb_di. 3-byte input where not properly
Fixed bug in pb_ai and pb_di. 3-byte input where not properly
aligned when byte swapping.
aligned when byte swapping.
...
@@ -30,4 +30,7 @@
...
@@ -30,4 +30,7 @@
110429 cs profibus Profibus gsd Bit and BitArea syntax fix for space between Bit and (
110429 cs profibus Profibus gsd Bit and BitArea syntax fix for space between Bit and (
110531 cs profinet Recall buffer added to profinet configurator.
110531 cs profinet Recall buffer added to profinet configurator.
110531 cs profinet Script functions GetIoDeviceData and SetIoDeviceData to modify profinet configuration added.
110531 cs profinet Script functions GetIoDeviceData and SetIoDeviceData to modify profinet configuration added.
110909 rk profinet Added functionality for acyclic write to a device
110909 rk profinet Added functionality for acyclic write to a device
\ No newline at end of file
111222 rk profinet Added support for handling more than one API.
111222 rk profinet Bugfixes in profinet_viewer.
111230 rk profinet Set correct status on profinet device when losing connection.
profibus/lib/rt/src/os_linux/rt_pn_iface.cpp
View file @
1e70d5dd
...
@@ -1577,6 +1577,12 @@ void handle_device_state_changed (io_sAgentLocal *local, io_sAgent *ap) {
...
@@ -1577,6 +1577,12 @@ void handle_device_state_changed (io_sAgentLocal *local, io_sAgent *ap) {
pwr_sClass_PnDevice
*
dev
;
pwr_sClass_PnDevice
*
dev
;
dev
=
(
pwr_sClass_PnDevice
*
)
slave_list
->
op
;
dev
=
(
pwr_sClass_PnDevice
*
)
slave_list
->
op
;
dev
->
State
=
dev_state
.
State
[
ii
];
dev
->
State
=
dev_state
.
State
[
ii
];
if
(
dev
->
State
==
PNAK_DEVICE_STATE_CONNECTED
)
dev
->
Status
=
PB__NORMAL
;
else
dev
->
Status
=
PB__NOCONN
;
errh_Info
(
"Profinet - New device state, dev: %s, state: %d"
,
slave_list
->
Name
,
dev
->
State
);
errh_Info
(
"Profinet - New device state, dev: %s, state: %d"
,
slave_list
->
Name
,
dev
->
State
);
}
}
}
}
...
...
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