Increment counter w...
 
Notifications
Clear all

Increment counter when rotating for long periods

1 Posts
1 Users
0 Likes
83 Views
(@Dan_S)
Posts: 0
New Member Guest
 

My application is using an SM23375DT motor. I have a section of hose with a weight on the other end. I want to rotate the motor until the hose fails. I use the following for the stoppage after change in torque, which is working fine:

WHILE Bt 'During trajectory...
IF TRQ<1000 'True if string broke
GOTO (10)
ENDIF
LOOP

I found the following "wraparound" code in the manual, but don't know if I've invoked it correctly or not:

IF Bw 'encoder limit reached
PRINT ("Wraparound occurred",#13)
Zw 'reset encoder
ENDIF

My problem is the counter. What would be the code for tracking revolutions, and possibly cascading that variable into another one if it overflows?
Any help would be great; I attached my .sms
Thanks to all

 
Posted : 22/10/2019 7:25 am
Share: