- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
Link copied. Please paste this link to share this article on your social media post.
Posted: 2023-03-21 08:35 AM
PACDRIVE - LMC : Encoder reset on touch probe
Good morning,
with a LMC402 I should reset a logical encoder, connected to rotative axis, when a touch probe input rises.
If I call a FC_SetposSingle in a task I'll be late.
There is a way for connecting the reset to the rise edge of touch probe ?
Thanks in advance
Andrea Arduini
- Labels:
-
Material Handling
-
PacDrive
Link copied. Please paste this link to share this article on your social media post.
Accepted Solutions
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
Link copied. Please paste this link to share this article on your social media post.
Posted: 2023-03-28 05:14 AM
As mentioned before, the TouchProbe object latches the position of the configured source independent of the task process.
It is therefore possible to process the latched position in an IEC task - as in this case by calling FC_SetPosSingle. Therefore it is not necessary to start the IEC process by the touch probe.
But if you want to do this anyway, the property 'CaptureOk' of the touch probe object is used to indicate the occurrence of a sensor signal.
Link copied. Please paste this link to share this article on your social media post.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
Link copied. Please paste this link to share this article on your social media post.
Posted: 2023-03-28 02:10 AM . Last Modified: 2023-03-28 02:20 AM
Hello,
The TouchProbe on PacDrive is Hardware related with a high accuracy in latching positions of the attached source. That means if you latch the position by using a TouchProbe and call FC_SetPosSingle() within an IEC task you, the result (latched position which is written with FC_SetPosSingle) is super precise.
But if you simply want to be 'fast' in calling FC_SetPosSingle() after the TouchProbe sonsor signal, you can call FC_SetPosSingle() within an ExternalTriggered Task (Event: RTP_Axis or CamSwitchGroup which allow interval 0f 50µs).
BR, Ulrich
Link copied. Please paste this link to share this article on your social media post.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
Link copied. Please paste this link to share this article on your social media post.
Posted: 2023-03-28 03:23 AM
Thank you very much Ulrich,
for better understand the first solution I should create a IEC task configured in that way :
Type : Event
Event : my touchprobe.Edge
and than I add a call to the function FC_SetPosSingle()
Is that correct ?
Thanks in advance
Andrea
Link copied. Please paste this link to share this article on your social media post.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
Link copied. Please paste this link to share this article on your social media post.
Posted: 2023-03-28 05:14 AM
As mentioned before, the TouchProbe object latches the position of the configured source independent of the task process.
It is therefore possible to process the latched position in an IEC task - as in this case by calling FC_SetPosSingle. Therefore it is not necessary to start the IEC process by the touch probe.
But if you want to do this anyway, the property 'CaptureOk' of the touch probe object is used to indicate the occurrence of a sensor signal.
Link copied. Please paste this link to share this article on your social media post.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
Link copied. Please paste this link to share this article on your social media post.
Posted: 2023-03-28 05:49 AM
Thanks very kind of you.
Link copied. Please paste this link to share this article on your social media post.

