3/25/2013 7:08 PM | |
Joined: 9/23/2005 Last visit: 1/22/2025 Posts: 4396 Rating: (1464)
|
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 ModuleStatus 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 ModuleStatus 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_ModuleStatus.zip (1245 Downloads) |
Last edited by: O_Moderator at: 6/20/2013 7:47 AMDenilson Pegaia |
|
6/19/2013 7:53 PM | |
Joined: 9/23/2005 Last visit: 1/22/2025 Posts: 4396 Rating: (1464)
|
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 modules; false=for not configured modules)MyState_defective = false MyState_disabled = true MyState_exists = true (for existent modules; false=for not configured modules) MyState_problem = false Equipment (ET200SP) missing (not present – Ethernet cable unpluged)MyState_active_or_not_complete = true (for existent modules; false=for not configured modules)MyState_defective = true (for existent modules; false=for not configured modules) MyState_disabled = false MyState_exists = false MyState_problem = true (for existent modules; false=for not configured modules) Equipment (ET200SP) with internal error (one module missing) MyState_active_or_not_complete = true (for existent modules; false=for not configured modules)MyState_defective = True for fault modules (IM, index 1, and the missing module); false for ok modules MyState_disabled = false MyState_exists = true for present modules (false for missing modules) MyState_problem = false for ok module (true for missing modules) Notes: In this example, the HW identifier is related just to ET200S IMThe index is related to the “sub units” of the ET200SP: IM = index = 1 IM PN interface = index = 2 First IO module = index = 3 Second IO module = index = 4 … Server Module = Index = 8 (in thisexemple). AttachmentDIAG_ModuleStatus_V2.zip (1358 Downloads) |
Last edited by: O_Moderator at: 6/20/2013 7:47 AMDenilson Pegaia |
|
Follow us on