Re: Shift registers


[ Follow Ups ] [ Post Followup ] [ Internet PLC Forum ] [ FAQ ]

Posted ByCK on December 06, 2001 at 15:44:43:

In Reply to: Shift registers posted byRod on December 06, 2001 at 12:41:44:

If you just want to shift one channel (16-bit) it is quite straigthforward, just specify the variable name (e.g. RELAY[1] for relay #1 to relay #16):

LSHIFT RELAY[1], 1

You can cascade multiple channel together in a chain so that the shift register can shift in multiple of 16 bits.

See the sample program "LeftShift.PC5" in the "Samples" directory when you run the TRILOGI Version 5.0 software. Run the simulator, right click on the "LftShift" input so that it is latched ON and observe how the bits are being shifted left (towards higher position) in 4 channels cascade (64 bit shifts).


: I'm trying to figure out how to use the shift register function on the tri-logic4 program. I'm not quite sure on how to use the lshift instruction. If someone could give me an example or try to explain this function to me it would be greatly appreciated

: Thanks
: Rod




Follow Ups



Post Followup

Name:
E-Mail:

Subject:

Comments:

Optional Link URL:
Link Title:
Optional Image URL:


[ Follow Ups ] [ Post Followup ] [ Internet PLC Forum ] [ FAQ ]