9/25/2018 8:18 AM | |
Joined: 4/28/2015 Last visit: 10/25/2024 Posts: 398 Rating:
|
Hello, for detailed Information, please have a look at the motion control manual of S7-1200 controller, you get with the following link: https://support.industry.siemens.com/cs/ww/en/view/109754206 See chapter 1.2 and 2.2.1 for possible encoder connection and chapter 5.4.3.3 for encoder configuration... |
9/25/2018 9:12 AM | |
Posts: 2826 Rating:
|
Hello Mister T, The intent from the Topic Starter is to have an encoder as a measuring device. It is not for the control of motion. Such is my understanding of the question. Thank you for your continued attention. |
9/26/2018 9:43 AM | |
Joined: 4/28/2015 Last visit: 10/25/2024 Posts: 398 Rating:
|
Hello, a "real encoder" with phase A and phase B is doing the same. The Point is, that phase A and B are exactly adjusted, so the signal of Phase B is changing exactly in the middle of the signal of phase A and vice versa. To detect the direction of the movement, it is necessary, that first phase A is changing from 0 to 1 and then phase B, while signal status of phase A is 1 - like it is shown in the picture above. Isn't it possible for you to use the command "CTRL_HSC_EXT" and check the following bits in structure "HSC_COUNT": CurrentCount = Counter value, counting up and down, depending on the "encoder" direction For more information, hava a look at the following links: System Manual - Information of the commands (chapter 10.1.1) and the structure (Table 10-4) Easy Book (01/2015) - Connection the "Encoder" (chapter 6.6.1) |
Follow us on