Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TugboatEng on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

RSLogix - MicroLogix 1100 - Setting Timer preset as a variable

Status
Not open for further replies.

GFraser

Electrical
Joined
Mar 3, 2009
Messages
1
Location
CA
My code is meant to run separate outputs in sequence with Forward/Reverse and speed based off on a single analog input (potentiometer).

Basically, I have all of my logic completed, but the only thing that I need now is a way to convert the variable (a 100-1000 integer) stored in my N7:3 into a valid preset for the timers that control the cycling from one output to another.

Visual explanation of what I'm looking for:
 
just use mov n7:3 t4:0.pre
mov n7:3 t4:1.pre
to put n7:3 into timer presets
assuming you want a preset of 0.1 to 1 seconds
otherwise alter time base tab and/or scaling to suite range required

regards mel
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top