The text of a manual · part 27 of 68
DL405 User Manual: Chapter 5: Standard RLL Instructions, pages 223 to 232
Pages 223 to 232 of 608, from DL405 User Manual
The original document is the PDF (8.2 MB). This is its text as extracted, unedited; tables and drawings read best in the PDF, and each page heading opens it at that page.
For the AutomationDirect D4-08B-1, AutomationDirect D4-08ND3S, AutomationDirect D4-16TA, PLC Direct D4-16TD2, AutomationDirect D4-32ND3-1, Konnect-It D4-08B-1, Koyo D4-08B-1, Konnect-It D4-08ND3S, and 6 more models
Page 223
Standard RLL Instructions Timer, Counter, and Shift Register Instructions
Up/Down Counter (UDC)
430 440 450
DS
HPP
This Up/Down Counter counts up on each off to on transition of the Up input and counts down on each off to on transition of the Down input. The counter is reset to 0 when the Reset input is on. The count range is 0--99999999. The count input not being used must be off in order for the active count input to function.
Up
Counters
DL430 Range
CT aaa B bbb
Down
Counter #
Reset
Instruction Specification Counter Reference (CTaaa): Specifies the counter number. Preset Value (Bbbb): Constant value (K) or two consecutive V--memory locations. (V locations are 16-bit words.) Current Values: Current count is a double word value accessed by referencing the associated V or CT memory locations*. The V-memory location is the counter location + 1000. For example, the counter current value for CT5 resides in V--memory location V1005 and V1006. (V locations are 16-bit words.) Discrete Status Bit: The discrete status bit is accessed by referencing the associated CT memory location. It will be on if value is equal to or greater than the preset value. For example the discrete status bit for counter 2 would be CT2. Operand Data Type
UDC
5--51
Preset
The counter discrete status bit and the current value is not specified in the counter instruction.
Caution: The UDC uses two consecutive counter locations, since the preset can now be 8 digits, which requires two V--memory locations. For example, if UDC CT0 is used in the program, the next available counter is CT2. Or if CT0 was a normal counter, and CT1 was an up/down counter, then the next available counter would be CT3.
DL440 Range
DL450 Range
B aaa bbb aaa bbb aaa
CT
0--176
----
0--176
----
0--376 bbb ----
----
1400--7377 10000--37777
V--memory
V
----
1400--7377
----
1400--7377 10000--17777
Pointers (preset only)
P
----
----
----
1400--7377 10000--17777
----
1400--7377 10000--37777
Constants
K
----
0--99999999
----
0--99999999
----
0--99999999
Counter discrete status bits
CT
0--177
0--177
0--377
Counter current values
V/ CT*
1000--1177
1000--1177
1000--1377
Standard RLL Instructions
NOTE:* For the Handheld Programmer, both the Stage Counter discrete status bits and current value can be accessed with the same data type (example CT2). The way the data type is used determines if it is a status bit or a current value. Any comparative instruction using CT2 will access the current value, all other instructions using CT2 will access the status bit. Current values may also be accessed by the V-memory location. For DirectSOFT, the use of CT2 will refer to the timer’s discrete status bit. You should use V1002 (or the alias CTA2) to refer to the current value.
DL405 User Manual, 4th Edition
Page 224
5--52
Standard RLL Instructions Timer, Counter, and Shift Register Instructions
Up/Down Counter Example Using Discrete Status Bits
In the following example if X2 and X3 are off when X1 toggles from off to on the counter will increment by one. If X1 and X3 are off the counter will decrement by one when X2 toggles from off to on. When the count value reaches the preset value of 3, the counter status bit will turn on. When the reset X3 turns on, the counter status bit will turn off and the current value will be 0. Counting Diagram
DirectSOFT X1 UDC
CT2 X1
K3 X2
X2 X3 X3 Y10
Y10
CT2
Current Value
OUT
1
Handheld Programmer Keystrokes
2
1
2
0
Handheld Programmer Keystrokes (cont)
STR
X(IN)
1
K(CON)
3
STR
X(IN)
2
STR
CNT
2
STR
X(IN)
3
OUT
Y(OUT)
1
SHFT
U
D
Up/Down Counter Example Using Comparative Contacts
3
C
SHFT
CNT
0
2
In the following example, when X1 makes an off to on transition, counter CT2 will increment by one. Comparative contacts are used to energize Y3 and Y4 at different counts. The comparative contacts will turn off when the counter is reset. When the reset X3 turns on, the counter status bit will turn off and the current value will be 0. Counting Diagram
DirectSOFT (see Note) X1 UDC
CT2 X1
V1400 X2
X2 X3 X3
CTA2
Y3
K1
Y3
OUT Y4 CTA2
Y4
K2
Current Value
OUT
Standard RLL Instructions
Handheld Programmer Keystrokes
1
2
3
4
0
Handheld Programmer Keystrokes (cont)
STR
X(IN)
1
OUT
Y(OUT)
3
STR
X(IN)
2
STR
CNT
2
STR
X(IN)
3
OUT
Y(OUT)
4
SHFT
U
D
C
SHFT
V
1
4
0
0
STR
CNT
2
K(CON)
1
CNT
K(CON)
2
2
NOTE: Since this representation is showing a DirectSOFT example, you would use the alias CTA2 (or V1002) instead of CT2, which would be necessary for the equivalent rung entered with the Handheld.
DL405 User Manual, 4th Edition
Page 225
5--53
Standard RLL Instructions Timer, Counter, and Shift Register Instructions
The Shift Register instruction shifts data through a predefined number of control relays. The control ranges in the shift register block must start at the beginning of an 8 bit boundary and end at the end of an 8 bit boundary. The Shift Register has three contacts. S Data, determines the value (1 or 0) that will enter the register S Clock, shifts the bits one position on each low to high transition S Reset, resets the Shift Register to all zeros.
Shift Register (SR)
430 440 450
DS
HPP
SR
DATA
From C aaa CLOCK To
C bbb
RESET
With each off to on transition of the clock input, the bits which make up the shift register block are shifted by one bit position and the status of the data input is placed into the starting bit position in the shift register. The direction of the shift depends on the entry in the From and To fields. From C0 to C17 would define a block of sixteen bits to be shifted from lower address to higher address. From C17 to C0 would define a block of sixteen bits, to be shifted from higher address to lower address. The maximum size of the shift register block depends on the number of available control relays. The minimum block size is 8 control relays. Operand Data Type
Control Relay
DL430 Range
DL440 Range
DL440 Range
B aaa bbb aaa bbb aaa bbb
C
0--737
0--737
0--1777
0--1777
0--3777
0--3777
Handheld Programmer Keystrokes
DirectSOFT X1
Data Input
From
X2
STR
X(IN)
1
STR
X(IN)
2
C0
STR
X(IN)
3
SR
C(CR)
0
C17
C(CR)
1
7
SR
Clock Input To
X3
Reset Input
Inputs on Successive Scans Data
Clock
Reset
0
0
0
0
0
1
0
0
0
--
--
1
C0
C17
Standard RLL Instructions
1
Shift Register Bits
DL405 User Manual, 4th Edition
Page 226
5--54
Standard RLL Instructions Accumulator/Data Stack, Load, and Output Instructions
Accumulator/Data Stack Load and Output Instructions Using the Accumulator
Copying Data to the Accumulator
The accumulator in the DL405 series CPUs is a 32 bit register which is used as a temporary storage location for data that is being copied or manipulated in some manner. For example, you have to use the accumulator to perform math operations such as add, subtract, multiply, etc. Since there are 32 bits, you can use up to an 8-digit BCD number, or a 32-bit 2’s complement number. The accumulator is reset to 0 at the end of every CPU scan. The Load and Out instructions and their variations are used to copy data from a V--memory location to the accumulator, or, to copy data from the accumulator to V--memory. The following example copies data from V-memory location V1400 to V--memory location V1410. X1
V1400
LD
8
V1400 Copy data from V1400 to the lower 16 bits of the accumulator
9
3
5
8
9
3
5
8
9
3
5
Unused accumulator bits are set to zero Acc. 0
0
0
0
OUT V1410
V1410
Copy data from the lower 16 bits of the accumulator to V1410
Since the accumulator is 32 bits and V--memory locations are 16 bits, the Load Double and Out Double (or variations thereof) use two consecutive V--memory locations or 8 digit BCD constants to copy data either to the accumulator from a V--memory address or from a V--memory address to the accumulator. For example, if you wanted to copy data from V--memory location V1400 and V1401 to V--memory location V1410 and V1411, the most efficient way to perform this function would be as follows: X1
V1400
V1401
LDD V1400
6
7
3
9
5
0
2
6
Acc. 6
7
3
9
5
0
2
6
6
7
3
9
5
0
2
6
Copy data from V1400 and V1401 to the accumulator
OUTD V1410
Standard RLL Instructions
Copy data from the accumulator to V1410 and V1411
DL405 User Manual, 4th Edition
V1411
V1410
Page 227
5--55
Standard RLL Instructions Accumulator/Data Stack Load and Output Instructions Changing the Accumulator Data
X1
Instructions that manipulate data also use the accumulator. The result of the manipulated data resides in the accumulator. The data that was being manipulated is cleared from the accumulator. The following example loads the constant BCD value 4935 into the accumulator, shifts the data right 4 bits, and outputs the result to V1410. 4
9
3
5
31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16 15 14 13 12 11 10 9
8
7
6 5
4 3
2
1
0
0
1
0
0
1
1
0
1
Constant
LD K4935 Load the value 4935 into the accumulator Acc.
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
1
0
0
1
0
The upper 16 bits of the accumulator will be set to 0 S S
SHFR K4
S S
Shifted out of accumulator
31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16 15 14 13 12 11 10 9
8
7
6 5
4 3
2
1
0
0
0
0
1
0
1
0
1
1
0
4
9
3
Acc.
0
0
0
0
0 1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
Shift the data in the accumulator 4 bits (K4) to the right
OUT V1410 Output the lower 16 bits of the accumulator to V1410
V1410
Some of the data manipulation instructions use 32 bits. They use two consecutive V--memory locations or 8 digit BCD constants to manipulate data in the accumulator. The following example rotates the value 67053101 two bits to the right and outputs the value to V1410 and V1411. X1
Constant 6
LDD
7
0
5
3
1
0
1
K67053101 Load the value 67053101 into the accumulator
Acc.
31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16 15 14 13 12 11 10 9
8
7
6 5
4 3
2
1
0
0
0
1
0
0
0
0
0
0
1
31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16 15 14 13 12 11 10 9
8
7
6 5
4 3
2
1
0
0
0
0
0
1
0
0
0
0
8
C
4
0
1
1
0
0
1
1
S S
ROTR K2 Rotate the data in the accumulator 2 bits to the right
Acc.
1 0
0
1 0
1 0
0 1
1
0
0
0
0
0
1
0
1
0
0
1
1
0
0
0
S S
1 0
1 0
1 0
5
9
C
1
0
0
0
0
0
1 0
0
1
0
0
1
1
0
0
OUTD V1410 Output the value in the accumulator to V1410 and V1411
V1411
V1410
DL405 User Manual, 4th Edition
Standard RLL Instructions
0
Page 228
5--56
Standard RLL Instructions Accumulator/Data Stack, Load, and Output Instructions
The accumulator stack is used for instructions that require more than one parameter Using the Accumulator Stack to execute a function or for user defined functionality. The accumulator stack is used when more than one Load type instruction is executed without the use of the Out type instruction. The first load instruction in the scan places a value into the accumulator. Every Load instruction thereafter without the use of an Out instruction places a value into the accumulator and the value that was in the accumulator is placed onto the accumulator stack. The Out instruction nullifies the previous load instruction and does not place the value that was in the accumulator onto the accumulator stack when the next load instruction is executed. Every time a value is placed onto the accumulator stack the other values in the stack are pushed down one location. The accumulator is eight levels deep (eight 32 bit registers). If there is a value in the eighth location when a new value is placed onto the stack, the value in the eighth location is pushed off the stack and cannot be recovered. X1
Constant
LD K3245 Load the value 3245 into the accumulator
Acc. 0
0
0
X
X
X
3
2
4
5
X
5
X
1
X
5
X
1
Acc. 0
0
0
0
5
1
5
Accumulator Stack Level 1
X
X
X
X
X
X
X
X
Level 2
X
X
X
X
X
X
X
X
Level 3
X
X
X
X
X
X
X
X
Level 4
X
X
X
X
X
X
X
X
Level 5
X
X
X
X
X
X
X
X
Level 6
X
X
X
X
X
X
X
X
Level 7
X
X
X
X
X
X
X
X
Level 8
X
X
X
X
X
X
X
X
1
0
0
LD
0
3
6
2
3
4
6
5
3
Current Acc. value Acc. 0
0
0
0
6
3
6
Level 1
0
0
0
0
3
2
4
5
Level 2
X
X
X
X
X
X
X
X
Level 3
X
X
X
X
X
X
X
X
Level 4
X
X
X
X
X
X
X
X
Level 5
X
X
X
X
X
X
X
X
Level 6
X
X
X
X
X
X
X
X
Level 7
X
X
X
X
X
X
X
X
Level 8
X
X
X
X
X
X
X
X
3
Bucket Accumulator Stack
Previous Acc. value Acc. 0
0
0
Bucket
Accumulator Stack
Previous Acc. value
Constant
Load the value 6363 into the accumulator, pushing the value 5151 to the 1st stack location and the value 3245 to the 2nd stack location
5
Current Acc. value
Acc. 0
K6363
4
Previous Acc. value
LD
Standard RLL Instructions
0
Constant
Load the value 5151 into the accumulator, pushing the value 1234 onto the stack
2
Current Acc. value
Acc. X
K5151
3
0
5
1
5
1
Level 1
0
0
0
0
5
1
5
Level 2
0
0
0
0
3
2
4
1 5
Level 3
X
X
X
X
X
X
X
X
Level 4
X
X
X
X
X
X
X
X
Level 5
X
X
X
X
X
X
X
X
Level 6
X
X
X
X
X
X
X
X
Level 7
X
X
X
X
X
X
X
X
Level 8
X
X
X
X
X
X
X
X Bucket
The POP instruction rotates values upward through the stack into the accumulator. When a POP is executed the value which was in the accumulator is cleared and the value that was on top of the stack is in the accumulator. The values in the stack are shifted up one position in the stack.
DL405 User Manual, 4th Edition
Page 229
Standard RLL Instructions Accumulator/Data Stack Load and Output Instructions
X1
5--57
Previous Acc. value
POP
Acc. X POP the 1st value on the stack into the accumulator and move stack values up one location
X
X
X
X
X
X
X Accumulator Stack
Current Acc. value Acc. 0
0
OUT
0
0
V1400
V1400
4
4
5
5
4
4
5
5
Copy data from the accumulator to V1400
Level 1
0
0
0
0
3
7
9
Level 2
0
0
0
0
7
9
3
2 0
Level 3
X
X
X
X
X
X
X
X
Level 4
X
X
X
X
X
X
X
X
Level 5
X
X
X
X
X
X
X
X
Level 6
X
X
X
X
X
X
X
X
Level 7
X
X
X
X
X
X
X
X
Level 8
X
X
X
X
X
X
X
X
Level 1
0
0
0
0
7
9
3
0
Level 2
X
X
X
X
X
X
X
X
Level 3
X
X
X
X
X
X
X
X
Level 4
X
X
X
X
X
X
X
X
Level 5
X
X
X
X
X
X
X
X
Level 6
X
X
X
X
X
X
X
X
Level 7
X
X
X
X
X
X
X
X
Level 8
X
X
X
X
X
X
X
X
Level 1
X
X
X
X
X
X
X
X
Level 2
X
X
X
X
X
X
X
X
Level 3
X
X
X
X
X
X
X
X
Level 4
X
X
X
X
X
X
X
X
Level 5
X
X
X
X
X
X
X
X
Level 6
X
X
X
X
X
X
X
X
Level 7
X
X
X
X
X
X
X
X
Level 8
X
X
X
X
X
X
X
X
0
0
9
2
Previous Acc. value
POP
Acc. 0 POP the 1st value on the stack into the accumulator and move stack values up one location
0
0
0
4
5
4
5
0
3
7
9
2
Accumulator Stack
Current Acc. value Acc. 0
0
OUT
0
V1400
V1401
3
7
9
2
Copy data from the accumulator to V1401 Previous Acc. value POP
Acc. 0
0
0
0
3
7
9
2
X
7
9
3
0
Accumulator Stack
Current Acc. value POP the 1st value on the stack into the accumulator and move stack values up one location
OUT V1402
Acc. X
X
X
V1400
7
9
3
0
Copy data from the accumulator to V1402
Accumulator and Accumulator Stack Memory Locations
430 440 450
DS
HPP
Accumulator 0
0
3
V701
7
V700
Accumulator Stack Level 1
0
0
0
0
3
7
9
2
V703 -- V702
Level 2
0
0
0
0
7
9
3
0
V705 -- V704
Level 3
X
X
X
X
X
X
X
X
V707 -- V706
Level 4
X
X
X
X
X
X
X
X
V711 -- V710
Level 5
X
X
X
X
X
X
X
X
V713 -- V712
Level 6
X
X
X
X
X
X
X
X
V715 -- V714
Level 7
X
X
X
X
X
X
X
X
V717 -- V716
Level 8
X
X
X
X
X
X
X
X
V721 -- V720
DL405 User Manual, 4th Edition
Standard RLL Instructions
There may be times when you want to read a value that has been placed onto the accumulator stack without having to pop the stack first. Both the accumulator and the accumulator stack have corresponding V-memory locations that can be accessed by the program. You cannot write to these locations, but you can read them or use them in comparative boolean instructions, etc.
Page 230
5--58
Standard RLL Instructions Accumulator/Data Stack, Load, and Output Instructions
Using Pointers
Many of the DL405 series instructions will allow V--memory pointers as a operand. Pointers can be useful in ladder logic programming, but can be difficult to understand or implement in your application if you do not have prior experience with pointers (commonly known as indirect addressing). Pointers allow instructions to obtain data from V--memory locations referenced by the pointer value. NOTE: In the DL405 V-memory addressing is in octal. However the value in the pointer location which will reference a V-memory location is viewed as HEX. Use the Load Address instruction to move a address into the pointer location. This instruction performs the Octal to Hexadecimal conversion for you. The following example uses a pointer operand in a Load instruction. V-memory location 1400 is the pointer location. V1400 contains the value 340 which is the HEX equivalent of the Octal address V-memory location V1500. The CPU copies the data from V1500 (contains 2635) into the lower word of the accumulator.
X1
LD P1400 V1400 (P1400) contains the value 340 Hex. 340 Hex. = 1500 Octal which contains the value 2635. V1400 0
3
4
0
V1476
X
X
X
X
V1477
X
X
X
X
V1500
2
6
3
5
V1501
X
X
X
X
V1502
X
X
X
X
V1503
X
X
X
X
V1504
X
X
X
X
V1505
X
X
X
X
OUT
Accumulator 2
6
3
5
S S
V1600 Copy the data from the lower 16 bits of the accumulator to V1600.
V1600
2
6
3
5
V1601
X
X
X
X
The following example is similar to the one above, except for the LDA (load address) instruction which automatically converts the Octal address to the Hex equivalent. X1
LDA O 1500
OUT V 1400
LD P 1400
Load the lower 16 bits of the accumulator with Hexadecimal equivalent to Octal 1500 (340)
1
5
0
0 1500 Octal is converted to Hexadecimal 340 and loaded into the accumulator
Unused accumulator bits are set to zero
Copy the data from the lower 16 bits of the accumulator to V1400
Acc. 0
0
0
0
V1400 (P1400) contains the value 340 HEX 340 HEX. = 1500 Octal which contains the value 2635
0
3
4
0
0
3
4
0
V1400 OUT
Standard RLL Instructions
V 1600
Copy the data from the lower 16 bits of the accumulator to V1600
S S
V1400 0
3
4
0
V1476
X
X
X
X
V1477
X
X
X
X
V1500
2
6
3
5
V1501
X
X
X
X
V1502
X
X
X
X
V1503
X
X
X
X
V1504
X
X
X
X
V1505
X
X
X
X
S S
DL405 User Manual, 4th Edition
V1600
2
6
3
5
V1601
X
X
X
X
Accumulator 0
0
0
0
2
6
3
5
Page 231
5--59
Standard RLL Instructions Accumulator/Data Stack Load and Output Instructions
The Load instruction is a 16 bit instruction that loads the value (Aaaa) (either a V-memory location or a 4 digit constant) into the lower 16 accumulator bits. The upper 16 accumulator bits are set to 0.
Load (LD)
430 440 450
DS
HPP
430 440 450
DS
HPP
A aaa
The Load Double instruction is a 32 bit instruction that loads the value (Aaaa), which is either two consecutive V--memory locations or an 8 digit constant value, into the accumulator.
Load Double (LDD)
LD
Operand Data Type
LDD A aaa
DL430 Range
DL440 Range
DL440 Range aaa aaa aaa
A V--memory
V
All (See p. 3--40)
All (See p. 3--41)
All (See p. 3--42)
Pointer
P
All V mem (See p. 3--40)
All V mem (See p. 3--41)
All V mem (See p. 3--42)
Constant
K
0--FFFF
0--FFFF
0--FFFF
Discrete Bit Flags
Description
SP76 on when the value loaded into the accumulator by any instruction is zero.
NOTE: Two consecutive Load or Load Double instructions will place the value of the first load instruction onto the accumulator stack. In the following Load example, when X1 is on, the value in V1400 will be loaded into the accumulator and output to V1500. Handheld Programmer Keystrokes
DirectSOFT X1
LD V1400 Load the value in V1400 into the lower 16 bits of the accumulator
V1400
STR
X(IN)
1
LD
V
1
4
0
0
OUT
V
1
5
0
0
8
9
3
5
8
9
3
5
8
9
3
5
The unused accumulator bits are set to zero Acc. 0
0
0
0
OUT V1500 Copy the value in the lower 16 bits of the accumulator to V1500
V1500
In the following example, when X1 is on, the 32 bit value in V1400 and V1401 will be loaded into the accumulator and output to V1500 and V1501. DirectSOFT X1
V1500
Copy the value in the 32 bit accumulator to V1500 and V1501
OUTD
V1401
V1400
6
7
3
9
5
0
2
6
Acc. 6
7
3
9
5
0
2
6
6
7
3
9
5
0
2
6
Handheld Programmer Keystrokes STR
X(IN)
1
LD
SHFT
D
SHFT
V
1
4
0
0
OUT
SHFT
D
SHFT
V
1
5
0
0
V1501
V1500
DL405 User Manual, 4th Edition
Standard RLL Instructions
V1400
Load the value in V1400 and V1401 into the 32 bit accumulator
LDD
Page 232
5--60
Standard RLL Instructions Accumulator/Data Stack, Load, and Output Instructions
The Load Formatted instruction loads 1--32 consecutive bits from discrete memory locations into the accumulator. The instruction requires a starting location (Aaaa) and the number of bits (Kbbb) to be loaded. Unused accumulator bit locations are set to zero.
Load Formatted (LDF)
430 440 450
DS
HPP
Operand Data Type
LDF
A aaa K bbb
DL440 Range
DL450 Range
A aaa bbb aaa bbb
Inputs
X
0--477
----
0--1777
----
Outputs
Y
0--477
----
0--1777
----
Control Relays
C
0--1777
----
0--3777
----
Stage Bits
S
0--1777
----
0--1777
----
Timer Bits
T
0--377
----
0--377
----
Counter Bits
CT
0--177
----
0--377
----
Special Relays
SP
0--137 320--717
----
0--137 320--717
----
Global I/O
GX
0--1777
----
0--2777
----
Constant
K
----
1--32
----
1--32
Discrete Bit Flags
Description
SP76 on when the value loaded into the accumulator by any instruction is zero.
NOTE: Two consecutive Load instructions will place the value of the first load instruction onto the accumulator stack. In the following example, when C0 is on, the binary pattern of C10--C16 (7 bits) will be loaded into the accumulator using the Load Formatted instruction. The lower 6 bits of the accumulator are output to Y20--Y26 using the Out Formatted instruction. DirectSOFT C0
LDF
C10 K7
Load the status of 7 consecutive bits (C10--C16) into the accumulator
Constant K7
C16 C15 C14 C13 C12 C11 C10 OFF OFF OFF ON ON ON OFF
The unused accumulator bits are set to zero
Acc.
OUTF
Location C10
31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16 15 14 13 12 11 10 9
8
7
6 5
4 3
2
1
0
0
0
0
0
0
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
Y20 K7
Standard RLL Instructions
Copy the value from the specified number of bits in the accumulator to Y20--Y26
Handheld Programmer Keystrokes STR
C(CR)
0
LD
SHFT
F
SHFT
C(CR)
1
0
K(CON)
7
OUT
SHFT
F
SHFT
Y(OUT)
2
0
K(CON)
7
DL405 User Manual, 4th Edition
Location
Constant
Y26 Y25 Y24 Y23 Y22 Y21 Y20
Y20
K7
OFF OFF OFF ON ON ON OFF