3/25/2013 5:55 PM | |
Joined: 9/23/2005 Last visit: 11/11/2024 Posts: 4351 Rating: (1452)
|
Hi, The manual “SIMATIC SIMATIC S7-1500, ET 200MP, ET 200SP System diagnostics” (http://support.automation.siemens.com/WW/view/en/59192926) gives a good overview of how to get diagnose of the S7-1500. I posted some general considerations about diagnose at https://www.automation.siemens.com/BR/tf/WW/en/Posts/89419#top I post here a sample project that shows how to use the instruction/block DeviceStates to get some diagnose data in the user program. The sample program is located in the Block_1 (FB1) called from Main_1 (OB1) and using the instance data block “aaa” (DB1), where the relevant data are allocates.In Block_1 I call the block DeviceStatus several times, to get different types of information. The Watch table shows also the relevant data for the user. Note: not all functions could be 100% simulated in PLC Sim AttachmentDIAG_DeviceStatus.zip (2505 Downloads) |
Last edited by: O_Moderator at: 6/20/2013 7:32 AMLast edited by: Pegaia at: 3/25/2013 5:56 PMLast edited by: Pegaia at: 3/25/2013 5:56 PMLast edited by: Denilson Pegaia at: 8/16/2017 8:57:54 PMLast edited by: Denilson Pegaia at: 8/16/2017 9:00:35 PMDenilson Pegaia |
|
This contribution was helpful to3 thankful Users |
6/19/2013 10:49 PM | |
Joined: 9/23/2005 Last visit: 11/11/2024 Posts: 4351 Rating: (1452)
|
Hi, Here there is a new version, now tested. No significant changes. Online tested values: Equipment (ET200SP) running ok MyState_active_or_not_complete = true (for existent Devices; false=for not configured Devices) MyState_defective = false MyState_disabled = true MyState_exists = true (for existent Devices; false=for not configured Devices) MyState_problem = false Equipment (ET200SP) missing (not present – Ethernet cable unpluged) MyState_active_or_not_complete = true (for existent Devices; false=for not configured Devices) MyState_defective = true (for existent Devices; false=for not configured Devices) MyState_disabled = false MyState_exists = false MyState_problem = true (for existent Devices; false=for not configured Devices) Equipment (ET200SP) with internal error (one module missing) MyState_active_or_not_complete = true (for existent Devices; false=for not configured Devices) MyState_defective = True for fault Device (In this case for ET200SP with a missing module); false for ok Devices MyState_disabled = false MyState_exists = true for present Devices (false not configured Devices) MyState_problem = false for ok Device (true for missing Devices) Notes: In this example, the index has the follow sign: CPU PN interface = index = 1 First IO Device (ET200SP)= index = 2 Second IO Device (not configured)= index = 3 … AttachmentDIAG_DeviceStatus_V2.zip (1992 Downloads) |
Last edited by: O_Moderator at: 6/20/2013 7:33 AMDenilson Pegaia |
|
This contribution was helpful to7 thankful Users |
7/21/2015 3:39 PM | |
Joined: 7/26/2011 Last visit: 11/6/2024 Posts: 14 Rating: (1) |
Hi, How to open this project in tia portal v13?
|
7/27/2015 9:43 PM | |
Joined: 7/26/2011 Last visit: 11/6/2024 Posts: 14 Rating: (1) |
Thanks for hint. Now project is opening in tia. Greetings |
7/28/2015 12:45 PM | |
Joined: 9/23/2005 Last visit: 11/11/2024 Posts: 4351 Rating: (1452)
|
Hi,
it is a pleasure to help you. |
Denilson Pegaia |
|
11/26/2015 4:37 PM | |
Posts: 7 Rating: (3) |
The value 261 is the Hardware Identifier found in the Devices & Networks in Tia! Open your component and check under General --> Hardware Identifier |
Follow us on