4/11/2020 12:33 PM | |
Joined: 9/27/2006 Last visit: 5/4/2024 Posts: 12257 Rating: (2666) |
Hello bin mulyadin; Please take a second to read your post once more, and try to imagine you are looking at it for the first time, as we are. You give no description of your process, or the CPU you are programming (or the software you are using), or the exact model of encoder you have installed, nothing that could give us a clue on what is your working environment. It makes it very difficult for us to know what help you require. All that is available at the moment concerning your class 2 master situation would be this document on your family of encoder, with the following quote: The device master files in SIEM24.zip have been designed for operating absolute encoders 6FX2001-5xxx with Profibus DP version A1 or later in the operating mode DP. Clock-synchronized operation with slave-to-slave communciation is not supported . https://support.industry.siemens.com/cs/us/en/view/14849784 Note that the quote mentions "device master files" so this applies to the Profibus master in your network, not to your slave (in this case, your encoder). Which makes sense. Class 1 and class 2 designation is applied only to masters in a Profibus network Class 1 masters (e.g. PLCs) hold a configuration of the slaves they communicate with and poll them acyclically. Class 2 masters do not have specific slaves, can communicate with other masters on the network and are used for supervisory purposes (e.g., Operator panels, SCADA software, configuration tools, etc...). https://visaya.solutions/en/qa/profibus-class-1-and-class-2-masters With more details we may be able to help you better. Hope this helps, Daniel Chartier |
Last edited by: dchartier at: 04/11/2020 12:56:43 |
|
This contribution was helpful to1 thankful Users |
4/23/2020 10:41 AM | |
Joined: 3/2/2012 Last visit: 4/24/2024 Posts: 45 Rating: (0) |
Hallo Daniel Chartier. Thank you for replying. My CPU is S7-400 P.N 6ES7 416-2XN05-0AB0, my Absolute Encoder is 6FX2 001-5FP24 with GSD SIEM0024. The encoder is mounted on the motor shaft which is used to move the axis in linear motion. My encoder now functions as expected. Only when we want to do refferencing, we need to open the coupling and rotate the encoder shaft to a certain position, say the "home" position. I want to have a feature where the PLC can send preset values to the encoder so that I don't have to open the coupling and rotate it by hand. As I understand it from the user manual, this feature is available after class 2 is activated in the parameter encoder, but I need a sample code / program for how to handle this "preset function". Best Regards bin mulyadin |
4/23/2020 2:01 PM | |
Joined: 9/27/2006 Last visit: 5/4/2024 Posts: 12257 Rating: (2666) |
Hello bin mulyadin; I have looked at the following manual on your Profibus encoder, and I now understand better the Encoder Class1/Class2 distinction you were describing earlier. Sorry for having misunderstood your initial question. https://support.industry.siemens.com/cs/ww/en/view/103472305 Two points on the initial positioning problem: first, how have you done the encoder commissioning, to set the encoder preset position (teach-in mode avilable): read chapter 5.3, The Commissioning mode. Second, are you planning to do the motor/encoder referencing through the drive or the PLC? More information on the system is still required. Hope this helps, Daniel Chartier |
Last edited by: dchartier at: 04/23/2020 14:02:13 |
|
This contribution was helpful to1 thankful Users |
4/24/2020 3:29 AM | |
Joined: 3/2/2012 Last visit: 4/24/2024 Posts: 45 Rating: (0) |
Hallo Daniel Chartier, Basically I only made connections to the encoder, configuring the hardware configuration using SIEM0024 GSD, using class 2 multiturn, I/O addressing and doing parametization such as increasing clockwise, Measuring units per revolution etc. Then I just get input (PID xxx) in binary and use it in my PLC program. This is done already and works. I plan to make a reference from PLC with condition once the axis is in its home position and I press the button on the HMI, the PLC sends "preset values" to the encoder. regards bin mulyadin |