11/11/2014 4:51 PM | |
Joined: 11/29/2011 Last visit: 6/6/2024 Posts: 1358 Rating: (232) |
HI, RETVAL=6 if REQ is 1 I created a 130bytes long structure named accordingly the ET200M Operating Instruction. I attached the exported SCL source as reference. Applologise for the lack of comments. Regards AttachmentSCL_source.zip (140 Downloads) |
Last edited by: Min_Moderator at: 11/11/2014 5:13 PMCreate attachment from text - What you read here, please check with manuals and your requirements. |
|
11/11/2014 8:44 PM | |
Joined: 1/28/2009 Last visit: 7/11/2024 Posts: 6844 Rating: (1363)
|
Hello MicroMan, Just to add a point regarding SFC13 and reading diagnostics provided by DP-Slave."Slave_Diag" is one of the most important section of PROFIBUS telegram while initialization of a master/slave communication. The least number of bytes that are compulsory for slave diag data is 6 and the maximum length of diagnostic data of each slave is determined in its GSD file.While exchanging data between master and slave, slave can inform the master about internal pending diagnostic by a response with high priority .
Somehow it is possible to receive those data with SFC13 or while checking online status of Slave in HW.Config.Structure of diagnostic data is explained in manual related to each salve and it may consist standard diagnostic, identifier diagnostic and device diagnostic .This data is only generated while the real Slave exists on the bus because it is part of PROFIBUS telegram and PLCSIM cannot generate all. Also check this sample: How do you read out the diagnosis data of a PROFIBUS DP slave with the SFC13 "DPNRM_DG" and how do you evaluate the data in the user program? I hope these explanations help, Hamid Hosseini |
Last edited by: hdhosseini at: 11/12/2014 4:56 AM |
|
This contribution was helpful to2 thankful Users |
Follow us on