Mitsubishi PLC Shift Register and Instruction ( SFR, SFL)


 

In basic shift register is a register that is designed to allow the bits of its contents to be moved to left or right. Now when it come for a PLC to use such a register there are different instructions which make use of this instruction according the requirement. Like in Mitsubishi PLC the SFR, SFL, BSFR, BSFL instruction can be used to shift a bit.

 

SFR, SFL Instruction Mitsubishi PLC 

SFR, SFL Instruction is used to shift bits in 16bit word, like D10.

 

 Shown above is the ladder logic using SFR and SFL Instruction, K1 used here defines number of bits to shift.

 

 If i press M0 once then the result is:

If i press M0 four more times then the result is:

 
 If i press M1 here once then the result is:





Post a Comment

Previous Post Next Post