1/3/2025 9:55 PM | |
Joined: 2/1/2010 Last visit: 8/28/2025 Posts: 212 Rating:
|
I am not aware of any block to check this in 'base' PCS7. However, If you are using Route Control or APF, those have some additional blocks & functionality with watchdogs built in which can give you some information in the AS program. For route control, it would only be 100% accurate if your RC and OS server was the same machine and you had dependent runtime set up, otherwise it might not detect all situations. APF would be inherent since it runs only in the OS runtime. You could potentially use the CONx_LOAD output value(s) from the CPU_RT block and compare it >0 average over a certain amount of time which would indicate some traffic is occuring. (where x = the netpro connection ID integer of your OS connection(s)) Or you could build your own block or use an APL block and write some logic in C or VBS script to run continuously in the OS server (or only on the master server if redundant) and check the watchdog value changes with CFC code. I've never had this use case but it is an interesting one. I'm interested if someone else has a different solution or what you finalize on. |
If my post helped you, please rate. Thanks. |
|
1/7/2025 2:59 PM | |
Joined: 2/1/2010 Last visit: 8/28/2025 Posts: 212 Rating:
|
Oh, I forgot about SFC87 / CONEC. Here's an old thread: https://support.industry.siemens.com/forum/ww/en/posts/display-cpu-netpro-connections-to-the-wincc-hmi/27837 I'm pretty sure the engineering interface for module information uses a remote call or something similar to display that data. SFC87 is not put in the AS code directly but its called by CONEC block which is part of basis library. If you look at the CONEC help should be able to determine which MSGSTA# output word holds the connection information for the netpro connection you want. Does it work for what you need? |
If my post helped you, please rate. Thanks. |
|
1/8/2025 4:28 AM | |
Joined: 8/5/2014 Last visit: 8/25/2025 Posts: 191 Rating:
|
Hi, Does this block(FB88) work with simulator or do we need CPU?
|
Regards, |
|
1/8/2025 1:52 PM | |
Joined: 2/1/2010 Last visit: 8/28/2025 Posts: 212 Rating:
|
SIMIT and PLCSIM have support for SFC87 which is the portion of FB88 you need, however they might substitute some functionality. You will have to test it yourself and read the manuals. I still think it would be easier to just build in watchdog functionality to your use case instead of direct monitoring. What is your use case anyhow? For example, OPC values coming from the OS server and needing to take action when they go stale? There are better ways to handle that than monitoring the connection status. |
If my post helped you, please rate. Thanks. |
|
1/9/2025 1:58 PM | |
Joined: 2/1/2010 Last visit: 8/28/2025 Posts: 212 Rating:
|
When using Alarm_7B you have to install OS scripts to do the connection monitoring. (Similar to what I said initially.) Buffering of Process Messages including Time Stamps with ALARM_7B So if I understand your use case correctly, I think there is no reason to monitor the connection status from within the AS with any block other than ALARM_7B as defined in manual of the SIOS article I linked above. Specifically chapter 5. |
Last edited by: RVS.wick at: 01/09/2025 13:59:58If my post helped you, please rate. Thanks. |
|
Follow us on