Help - Search - Members - Calendar
Full Version: FFL/FFU instruction,reset positition
Forums.MrPLC.com > PLCs and Supporting Devices > Allen Bradley
mad1
I have the FFU and FFL instructions in a program. After the position value stops, reaches the Length value, how do I reset this to "0"?
BobLfoot
QUOTE(mad1 @ Apr 12 2007, 09:29 AM) [snapback]52850[/snapback]

I have the FFU and FFL instructions in a program. After the position value stops, reaches the Length value, how do I reset this to "0"?


If the Position Value is reaching the Length Value then the .dn bit is also true for your control register.

Normally each FFL increases the position value by 1 and each FFU decreases it by 1. So if your Pos is reaching LEN then your buffer either is not big enough or your FFU's are not cycling.

You can reset the POS to zero either thru a series of FFU's or by a MOV that loads R?:$.POS to zero.
rpraveenkum
Use Res instruction with Control register RES R6:0
mad1
QUOTE(rpraveenkum @ Apr 12 2007, 11:13 PM) [snapback]52888[/snapback]

Use Res instruction with Control register RES R6:0


Thanks!
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2010 Invision Power Services, Inc.