4: B
ASIC
I
NSTRUCTIONS
4-26
FC6A S
ERIES
MICROS
MART
L
ADDER
P
ROGRAMMING
M
ANUAL
FC9Y-B1726
Reverse Shift Register (SFRN)
For reverse shifting, use the SFRN instruction. When SFRN instructions are programmed, two addresses are always required. The
SFRN instructions are entered, followed by a shift register number selected from appropriate device addresses. The shift register
number corresponds to the lowest bit number in a string. The number of bits is the second required address after the SFRN
instructions.
The SFRN instruction requires three inputs. The reverse shift register circuit must be programmed in the following order: reset
input, pulse input, data input, and the SFRN instruction, followed by the last bit and the number of bits.
• The last bit status output can be programmed directly after the SFRN instruction. In this example, the status of bit R20 is read to output Q0.
• Each bit can be loaded using the LOD R# instructions.
• For details of reset, pulse, and data inputs, see "Forward Shift Register (SFR)" on page 4-24.
Note:
Output is initiated only for those bits highlighted in bold print.
Note:
When power is turned off, the statuses of all shift register bits are normally cleared. It is also possible to maintain the statuses of shift register
bits by using the Function Area Settings as required. See Chapter 5 "Functions and Settings" - "Memory Backup" in the "FC6A Series MICROSmart
User’s Manual".
Note:
The SFRN instruction cannot be used in an interrupt program. If used, a user program execution error will result, turning on special internal
relay M8004 and the ERR LED on the FC6A Series MICROSmart. For details about the user program execution errors, see "User Program Execution
Errors" on page 3-10.
Note:
For restrictions on ladder programming of shift register instructions, see "Restriction on Ladder Programming" on page 4-33.
Ladder Diagram
I0
I1
SFRN
R20
7
I2
Reset
Pulse
Data
R21
Last Bit
# of Bits
R23
R25
Q0
Q1
Q3
Q2
Last Bit
# of Bits
R0 to R255
1 to 256
LOD
LOD
LOD
SFRN
OUT
LOD
OUT
LOD
OUT
LOD
OUT
I0
I1
I2
R20
7
Q0
R21
Q1
R23
Q2
R25
Q3
Instruction
Data
Program List
Structural Diagram
I2
I0
R20
Reset
Data
I1
Pulse
R21
R22
R23
Shift Direction
Last Bit: R20
# of Bits: 7
R24
R25
R26
Summary of Contents for MICROSmart FC6A Series
Page 1: ...B 1726 7 FC6A SERIES Ladder Programming Manual ...
Page 8: ...Preface 7 FC6A SERIES MICROSMART LADDER PROGRAMMING MANUAL FC9Y B1726 ...
Page 32: ...1 OPERATION BASICS 1 20 FC6A SERIES MICROSMART LADDER PROGRAMMING MANUAL FC9Y B1726 ...
Page 96: ...3 INSTRUCTIONS REFERENCE 3 18 FC6A SERIES MICROSMART LADDER PROGRAMMING MANUAL FC9Y B1726 ...
Page 130: ...4 BASIC INSTRUCTIONS 4 34 FC6A SERIES MICROSMART LADDER PROGRAMMING MANUAL FC9Y B1726 ...
Page 192: ...9 SHIFT ROTATE INSTRUCTIONS 9 12 FC6A SERIES MICROSMART LADDER PROGRAMMING MANUAL FC9Y B1726 ...
Page 272: ...12 DISPLAY INSTRUCTIONS 12 24 FC6A SERIES MICROSMART LADDER PROGRAMMING MANUAL FC9Y B1726 ...
Page 284: ...14 REFRESH INSTRUCTIONS 14 6 FC6A SERIES MICROSMART LADDER PROGRAMMING MANUAL FC9Y B1726 ...
Page 502: ...25 DATA LOG INSTRUCTIONS 25 22 FC6A SERIES MICROSMART LADDER PROGRAMMING MANUAL FC9Y B1726 ...
Page 546: ...26 SCRIPT 26 44 FC6A SERIES MICROSMART LADDER PROGRAMMING MANUAL FC9Y B1726 ...
Page 598: ...APPENDIX A 14 FC6A SERIES MICROSMART LADDER PROGRAMMING MANUAL FC9Y B1726 ...