5/13/2021 3:39 PM | |
Joined: 4/28/2021 Last visit: 6/27/2022 Posts: 32 Rating:
|
Hello everybody, I work with the newest LOGO with V8.3 and a Logo TDE I have a laser sensor, an stepper motor. For the moment, I can read the distance of the sensor on my display. I can also count up and down with F1 and F2. And my engine works with Q1 and Q2 ( already have a motor controller) If I press F1 (count up) the engine schould go to the value that i set up on the TD, and the same value as the laser sensor. If I press F2 (count down) the engine should go to the right to the value that i set up on the TD and the same value as the laser sensor. Example: If I count on the LOGO TDE untill 500mm (max value 3100mm), the engine should go to 500mm and stop. I can read distance with the laser sensor. Can some one help to change my program? See appendix. Sorry for bad English Mathias Attachmentlaser sensor count updown steppermotor.zip (470 Downloads) |
5/13/2021 4:15 PM | |
Joined: 4/28/2021 Last visit: 6/27/2022 Posts: 32 Rating:
|
laser sensor: SICK time of flight sensor 4-20mA, distance 0-3800mm |
5/13/2021 4:18 PM | |
Joined: 12/18/2014 Last visit: 8/22/2024 Posts: 33603 Rating:
|
4 mA = 0 mm and 20 mA = 3800 mm? |
5/13/2021 4:32 PM | |
Joined: 4/28/2021 Last visit: 6/27/2022 Posts: 32 Rating:
|
Okay, so what do i have to change? B012 and B002 only the settings or do I have to take another function block? the sensor is the sick WTT12L-A2563 my excuses it is 100-3800mm distance range, 4-20mA Attachmentlasersensor sick.pdf (497 Downloads) |
5/13/2021 4:50 PM | |
Joined: 12/18/2014 Last visit: 8/22/2024 Posts: 33603 Rating:
|
I would scale as in the attachment, with two analog amplifiers connected in series. With an analog amplifier, no correct values are obtained at 4-20 mA and a measuring range of 100-3800 mm. The first analog amplifier converts the 4-20 mA into 0-1000 units, the second analog amplifier then converts the 0-1000 units into the measuring range of 100-3800 mm.
AttachmentScaling_8.3.zip (476 Downloads) |
5/13/2021 5:02 PM | |
Joined: 4/28/2021 Last visit: 6/27/2022 Posts: 32 Rating:
|
Okay thanks, I changed the program, it works, thanks Do you also know how that i can connect them then, like i said earlier? The up - downcounter and motor Attachmentlaser sensor count updown steppermotor (2).zip (462 Downloads) |
5/13/2021 5:22 PM | |
Joined: 12/18/2014 Last visit: 8/22/2024 Posts: 33603 Rating:
|
I hope that is want you want ...
AttachmentScaling_8.3_V2.zip (572 Downloads) |
This contribution was helpful to
1 thankful Users |
Follow us on