Help - Search - Members - Calendar
Full Version: rotate word left
Forums.MrPLC.com > PLCs and Supporting Devices > Allen Bradley
chad
in a ge fanuc i am converting i have a rotate word left instruction

any idea what the allen bradley instruction would be ???

Doug-P
There is no A-B instruction called ROTATE, the closest you're going to get is a Bit Shift Left.

Using the BSL as a starting point you can 'roll your own' with a few other instructions to create this function.

If the output bit is unused, the BSL by itself would suffice.
Ken Moore
Possible work around:

You can shift bits in a word by multiplying or dividing by powers of 2.
Multiplying shifts the bits left, dividing shifts them right.

A eight bit shift would require 2^8 (256) for example.
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.