4/3/2020 5:06 PM | |
Joined: 3/1/2019 Last visit: 6/13/2024 Posts: 17 Rating: (0) |
[snip] I have another issue. OB86 only works when it is an Event (during the PLC Run there is some Hardware that connects or disconnect). This doesn't work if when I turn on the PLC that Device is already disconnected. How can I know this without using the Device State, because if I want to add another device to my network I have to add another Device State Check. ------------------------------------------------------------------------------------------ |
Last edited by: Jen_Moderator at: 04/06/2020 09:01:22New subject after splitting. Division of questions into separate topics. Last edited by: RW_CPN at: 04/08/2020 16:56:15 |
|
4/7/2020 4:17 PM | |
Joined: 7/7/2010 Last visit: 6/14/2024 Posts: 14802 Rating: (2381)
|
If it is possible to hard-wire a spare digital input to always be ON for each networked device, you can monitor the state of that digital input to detect any remote device is working properly. If it is not possible, you can use your physical I/O addresses to get the hardware ID / logical addresses and check if they are online, or in some impossible state, like all inputs exactly zero for an extended period of time. If there is a heartbeat available, or you can create one, monitor remote device heartbeats for signs of life.
|
science guy |
|
4/8/2020 7:46 PM | |
Joined: 3/1/2019 Last visit: 6/13/2024 Posts: 17 Rating: (0) |
I'm not understanding your code fully. Can you help me? |
4/13/2020 6:35 PM | |
Joined: 3/1/2019 Last visit: 6/13/2024 Posts: 17 Rating: (0) |
After some tries, the best solution I came was to Use the Device Check function. I was not quite sure how to use it but after some experimenting, I got the result I wish.
|
4/13/2020 7:42 PM | |
Joined: 7/7/2010 Last visit: 6/14/2024 Posts: 14802 Rating: (2381)
|
Might I suggest instead of hardcoding 269 to a global DB, consider dragging that constant from the default tag table system constants to the circled input to the MOVE block. Then no matter what order you build your profinet network, the local IO system hardware ID will get picked up automatically by the system constant.
|
science guy |
|
Follow us on