7/10/2020 5:04 PM | |
Posts: 6 Rating: (0) |
Hi everyone, To start, I'm quite new to TIA portal, I'm using the 14.0 version with a S7-1500 1511C-1PN. I try to run this maquette from fischertechnik : https://www.fischertechnik.de/en/products/simulating/training-models/511938-sim-3d-robot-24v-simulation The model is comming with 3 DC motors, and a really poor documentation (here it is: https://content.ugfischer.com/cbfiles/fischer/Zulassungen/ft/144643-Encodermotor24V.pdf ) What I want to do: move those DC motors to a given position. For this I want to read the measured value from quadraturencoder signals, and I'm using high speed counter, with impulse A&B, and maximum frequency of 1k Hz, but in any case I was able to read the value. For more specification, I'm using the default inputs of HSC 1, and I plugged my signal A into the DI0 and signal B to DI1, where DI0/DI1 are %I10.0 and %I10.1 I understand the problem isn't really difficult, and it's more likely a problem for a non-correct setting, so here my question: how to set up correctly the high speed counter to be able to read the value from the Quadraturencoder ? (and is the hsc the good way to do it ?) Big thanks for people who will take the time to answer ! |
Last edited by: WavestoneSII at: 07/10/2020 17:06:52 |
|
7/14/2020 12:52 AM | |
Joined: 7/7/2010 Last visit: 11/19/2024 Posts: 15406 Rating: (2446)
|
The tricky part for encoder data capture is wiring it properly. Maybe you can post a picture of a wiring diagram (sketched on a napkin is fine!).
|
science guy |
|
This contribution was helpful to1 thankful Users |
7/16/2020 9:32 AM | |
Joined: 4/28/2015 Last visit: 10/25/2024 Posts: 398 Rating: (57)
|
Hello, please have a look to the documentation of the following application example (you only need the documentation):
Maybe the chapters 2.1.1, 2.3 and 2.5 are helpful for you to connect your 24V encoder with the controller... |
7/20/2020 10:46 AM | |
Posts: 6 Rating: (0) |
Hello, Once it's plugged to the power supply, I link defaut HSC inputs to the corresponding output, in my case I got %I10.0 plugged to terminal 13 (Signal A) and %I10.1 plugged to terminal 14 (Signal B). I activated the HSC_1, and I setup the following type of signal : incremental encoder (A,B, phase shift), and the signal evaluation is set to double. Filter frequence is set to 100khz. I hope this help to get me this HSC work !
|
Last edited by: WavestoneSII at: 07/20/2020 10:47:42 |
|
7/20/2020 11:16 AM | |
Posts: 6 Rating: (0) |
Hello, Thanks for you answer ! I carefully read the document, and here my understanding: - Chapter 2.1.1 said my PLC is compatible with 2SpeedPositionning technology - Chapter 2.3 don't work with me as I'm not using any more module than my PLC - Chapter 2.5 contains many information but no solution - Chapter 2.6 explain how to set up the HSC depending on the encoder, but not how to read the value. Overall, I'm not sure this is the right technology object I should use because it asks more input than the maquette/model is providing. But as I'm new, I can't figure it out. I am waiting for your future advice on the topic, maybe one day I'll make those DC motors run as I want too !
|
7/21/2020 12:26 PM | |
Posts: 6 Rating: (0) |
Hello, Thanks for your answer, in attachment you'll see a small video of my simple setup: I got signal A and B plug into the first two digital input as I explain in my previous answer, and the first output always on to move DC motor up and down manually. So as we may see, I got LEDs flashing as they should while the motor is on action. So I guess the wiring is correctly setup. HSC_1 was enabled, and main OB1 only contains the %Q4.0. on (first output). I hope this help, I'll make another post with a screen of my HSC configuration (because I can't attach more than one file to a post...), and another with the OB1 and my HSC_1 setup.
Attachment20200721_114752.avi (367 Downloads) |
7/22/2020 10:40 PM | |
Joined: 3/16/2015 Last visit: 10/10/2021 Posts: 1250 Rating: (173) |
Did you download the hardware configuration to the CPU? You're going to get things done much faster by downloading this manual the go to General Informatiom>Technology Function manuals-SIMATIC>S7-1500,ET200MP,ET200SP,ET200AL Counting, measurement and position detection. You can jump straight to using the high speed counter technology object and read the steps to configure and commission the counter. Hopefully that will get you faster results. |
Follow us on