still having problems w/ altiva 32s

ganutenator

Lifetime Supporting Member
Join Date
May 2002
Location
kansas
Posts
1,440
and apparently my r and 0 keys.
altivar 320.

Calculated stop works near perfect for the ATV 312.
ATV 320 not so much.
Code:
(*********************************************************
On-the-Fly Time Delay Calculation (using current velocity)

Time Delay Before Stop = (Desired Stop Dist - (Velocity in ft/sec **2 / 2 * drive decel))/Velocity
**********************************************************)

(*** BRIDGE ***)

(*convert current bridge speed rpm into ft/sec*)
bridge_write_speed_real := INT_TO_REAL (IN := Bridge_write_speed_rpm);
(*1.5708 x velocity ft/sec / 30 (30:1 gear box) x 60 sec*)
bridge_write_speed_ft_sec:= 1.5708 * bridge_write_speed_real / (30.0 * 60.0);


(*calculate time delay for stop; if/then prevents a divide by zero error*)
If (bridge_write_speed_ft_sec > 0.0) then
	bridge_stop_time_delay_real:= (1.0 - (bridge_write_speed_ft_sec**2)/2.467)/bridge_write_speed_ft_sec;
	(*convert decimal time delay real into milli seconds*)
	bridge_stop_time_delay:=REAL_TO_DINT(bridge_stop_time_delay_real * 1000.0);
end_if;

If (bridge_stop_time_delay > 0) Then
	bridge_stop_time_preset_calc:= DINT_TO_TIME(bridge_stop_time_delay);
else
	bridge_stop_time_preset_calc:= t#0s;
end_if;
 

Similar Topics

i AM HAVING A PROBLEM WITH AN SLC 5 PLC. RS LINX IS ABLE TO FIND BOTH NODES. BUT, WHEN I TRY TO GO ONLINE WITH THE PLC RS LOGIX STOPS SHOWING NODE...
Replies
5
Views
3,620
The ATv 31's and 312's worked great. sans so move and the documentation. Why did they have to discontinue them? The 320's are not performing...
Replies
2
Views
1,795
So much thanks for your reply.... I have rearranged the RS232 pins as 2-3, 3-2, 5-5 and then I configured driver as RS232 DF1 with 19.2K baudrate...
Replies
0
Views
4,221
Thanks for all your great help I really appreciate all of the suggestions and I think I have tried them all. but I still cannot get my rslinx...
Replies
4
Views
2,373
Why is the configuration IP different from the actual IP address still able to run normally?
Replies
6
Views
821
Back
Top Bottom