The text of a manual · part 28 of 53
DL06 Micro PLC User Manual, Volume 1 of 2, pages 270 to 279
Pages 270 to 279 of 524
The original document is the PDF (6.4 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 Direct Logic DL06 and Koyo DL06 D0-06DD1
Page 270
Chapter 5: Standard RLL Instructions - Math
Multiply Binary Top of Stack (MULBS)
1 2 3 4 5 6 7 8 9 10 11 12 13 14 A B C D
DS5
Used
HPP
Used
Multiply Binary Top of Stack is a 16 bit instruction that multiplies the 16 bit binary value in the first level of the accumulator stack by the 16 bit binary value in the accumulator. The result resides in the accumulator and can be 32 bits (8 digits max.). The value in the first level of the accumulator stack is removed and all stack locations are moved up one level. Discrete Bit Flags
MULBS
Description
SP63 SP70
On when the result of the instruction causes the value in the accumulator to be zero. On any time the value in the accumulator is negative.
NOTE: Status flags are valid only until another instruction uses the same flag.
In the following example, when X1 is on, the Load instruction moves the value in V1400 into the accumulator. The value in V1420 is loaded into the accumulator using the Load instruction, pushing the value previously loaded in the accumulator onto the stack. The binary value in the accumulator stack’s first level is multiplied by the binary value in the accumulator using the Multiply Binary Stack instruction. The Out Double instruction copies the value in the accumulator to V1500 and V1501. DirectSOFT 5 DirectSOFT32 Display X1
Load the value in V1400 into the accumulator
LD V1400
C
V1400 3 5 0
The unused accumulator bits are set to zero Acc.
0
0
0
0
C
3
5
0
V1420 0 Load the value in V1420 into the accumulator
LD V1420
Multiply the binary value in the accumulator with the binary value in the first level of the accumulator stack
MULBS
Copy the value in the accumulator to V1500 and V1501
OUTD V1500
0
Acc.
0
0
0
0
0
1
4
Acc.
0
0
0
F
4
2
4
0
0
0
0
F
4
2
5–116
B 1
SHFT
L ANDST
D
SHFT
L ANDST
D
SHFT
M ORST
U
SHFT
D
GX OUT
ENT E
B 1
3 B 3 ISG
L ANDST
4 E
A 0
C 4
1
S RST
ENT
F
A
B
1
5
0 A
1
B 3
A
2
0
A 0
0
4
V1500
Handheld Programmer Keystrokes STR
4
0
V1501
$
1
The unused accumulator bits are set to zero
ENT ENT
ENT
DL06 Micro PLC User Manual, 3rd Edition Rev. A
0
Accumulator stack after 1st LDD 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
Accumulator stack after 2nd LDD Level 1
0
0
0
0 C
3
5
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
Page 271
Chapter 5: Standard RLL Instructions - Math
Divide Binary by Top OF Stack (DIVBS) DS5
Used
HPP
Used
Divide Binary Top of Stack is a 32 bit instruction that divides the 32 bit binary value in the accumulator by the 16 bit binary value in the first level of the accumulator stack. The result resides in the accumulator and the remainder resides in the first level of the accumulator stack.
DIVBS
Discrete Bit Flags
Description
SP53 SP63 SP70
On when the value of the operand is larger than the accumulator can work with. On when the result of the instruction causes the value in the accumulator to be zero. On any time the value in the accumulator is negative.
NOTE: Status flags are valid only until another instruction uses the same flag.
In the following example, when X1 is on, the value in V1400 will be loaded into the accumulator using the Load instruction. The value in V1420 and V1421 is loaded into the accumulator using the Load Double instruction also, pushing the value previously loaded in the accumulator onto the accumulator stack. The binary value in the accumulator is divided by the binary value in the first level of the accumulator stack using the Divide Binary Stack instruction. The value in the accumulator is copied to V1500 and V1501 using the Out Double instruction. DirectSOFT 5 DirectSOFT32 Display X1
Accumulator stack after 1st LDD
V1400 0
Load the value in V1400 into the accumulator
LD
0
1
4
The unused accumulator bits are set to zero
V1400
Acc. 0
0
0
0
0
V1421 0
0
0
0
1
4
V1420 0
C
3
5
0
Load the value in V1420 and V1421 into the accumulator
LDD V1420
Acc. 0
0
0
0
C
3
5
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 Accumulator stack after 2nd LDD
Divide the binary value in the accumulator by the binary value in the first level of the accumulator stack
DIVBS
Acc. 0
Copy the value in the accumulator to V1500 and V1501
OUTD V1500
0
0
0
0
0
V1501
0
0
0
0
9
9
C
C
V1500
4
4
Level 1
0
0
1
4
Level 2
X
X X
0
0
X X
0
0
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
Handheld Programmer Keystrokes B
$ STR
1
SHFT
L ANDST
D
SHFT
L ANDST
D
D
I
SHFT GX OUT
B 3
3 SHFT
The remainder resides in the first stack location
ENT E 1 D
B
3
3
8
V AND
D
B 1 B
3
A 4
1
A 0
E
C
1
4
S RST
ENT
F
A 5
0
A 2
A 0
ENT
0
0
ENT
ENT
Level 1
0
0
0
0
Level 2
X
X X
0
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
DL06 Micro PLC User Manual, 3rd Edition Rev. A
0
0
0
1 2 3 4 5 6 7 8 9 10 11 12 13 14 A B C D
5–117
Page 272
Chapter 5: Standard RLL Instructions - Transcendental Functions
Transcendental Functions
1 2 3 4 5 6 7 8 9 10 11 12 13 14 A B C D
The DL06 CPU features special numerical functions to complement its real number capability. The transcendental functions include the trigonometric sine, cosine, and tangent, and also their inverses (arc sine, arc cosine, and arc tangent). The square root function is also grouped with these other functions. The transcendental math instructions operate on a real number in the accumulator (it cannot be BCD or binary). The real number result resides in the accumulator. The square root function operates on the full range of positive real numbers. The sine, cosine and tangent functions require numbers expressed in radians. You can work with angles expressed in degrees by first converting them to radians with the Radian (RADR) instruction, then performing the trig function. All transcendental functions utilize the following flag bits. Discrete Bit Flags
Description
SP53 SP63 SP70 SP72 SP73 SP75
On when the value of the operand is larger than the accumulator can work with. On when the result of the instruction causes the value in the accumulator to be zero. On anytime the value in the accumulator is negative. On anytime the value in the accumulator is an invalid floating point number On when a signed addition or subtraction results in an incorrect sign bit. On when a real number instruction is executed and a non-real number was encountered.
Sine Real (SINR) DS5
Used
HPP
N/A
DS5
Used
HPP
N/A
DS5
Used
HPP
N/A
DS5
Used
HPP
N/A
5–118
The Sine Real instruction takes the sine of the real number stored in the accumulator. The result resides in the accumulator. Both the original number and the result must be Real data type (IEEE floating point format).
S INR
Cosine Real (COSR) The Cosine Real instruction takes the cosine of the real number stored in the accumulator. The result resides in the accumulator. Both the original number and the result must be Real data type (IEEE floating point format)..
COSR
Tangent Real (TANR) The Tangent Real instruction takes the tangent of the real number stored in the accumulator. The result resides in the accumulator. Both the original number and the result must be Real data type (IEEE floating point format).
TANR
Arc Sine Real (ASINR) The Arc Sine Real instruction takes the inverse sine of the real number stored in the accumulator. The result resides in the accumulator. Both the original number and the result must be Real data type (IEEE floating point format).
DL06 Micro PLC User Manual, 3rd Edition Rev. A
AS INR
Page 273
Chapter 5: Standard RLL Instructions - Transcendental
Arc Cosine Real (ACOSR) Used
HPP
N/A
DS5 HPP
DS5 HPP
The Arc Cosine Real instruction takes the inverse cosine of the real number stored in the accumulator. The result resides in the accumulator. Both the original number and the result must be Real data type (IEEE floating point format).
1 2 Arc Tangent Real (ATANR) 3 The Arc Tangent Real instruction takes the inverse tangent of ATANR the real number stored in the accumulator. The result resides in the accumulator. Both the original number and the result must 4 be Real data type (IEEE floating point format). Square Root Real (SQRTR) 5 The Square Root Real instruction takes the square root of the SQR TR real number stored in the accumulator. The result resides in the 6 accumulator. Both the original number and the result must be Real data type (IEEE floating point format). 7 NOTE: The square root function can be useful in several situations. However, if you are trying to do the square-root extract function for an orifice flow meter measurement as the PV to a PID loop, note that the 8 PID loop already has the square-root extract function built in. The following example takes the sine of 45 degrees. Since these transcendental functions 9 operate only on real numbers, we do a LDR (load real) 45. The trig functions operate only in radians, so we must convert the degrees to radians by using the RADR command. After using 10 the SINR (Sine Real) instruction, we use an OUTD (Out Double) instruction to move the result from the accumulator to V-memory. The result is 32-bits wide, requiring the Out Double to move it. 11 12 45.000000 13 0.7358981 14 0.7071067 A 0.7071067 B C NOTE: The current HPP does not support real number entry with automatic conversion to the 32-bit IEEE format. You must use DirectSOFT 5 for entering real numbers, using the LDR (Load Real) instruction. D
DS5
ACOSR
Used N/A
Used N/A
Accumulator contents (viewed as real number)
DirectSOFT Direct SOFT 5 5 X1
LDR
R45
Load the real number 45 into the accumulator.
RADR
Convert the degrees into radians, leaving the result in the accumulator.
SINR
Take the sine of the number in the accumulator, which is in radians.
OUTD
V2000
Copy the value in the accumulator to V2000 and V2001.
DL06 Micro PLC User Manual, 3rd Edition Rev. A
5–119
Page 274
Chapter 5: Standard RLL Instructions - Bit Operation
Bit Operation Instructions
1 2 3 4 5 6 7 8 9 10 11 12 13 14 A B C D
Sum (SUM) DS5
Used
HPP
Used
SUM
The Sum instruction counts number of bits that are set to “1” in the accumulator. The HEX result resides in the accumulator. Discrete Bit Flags
Description
SP63
On when the result of the instruction causes the value in the accumulator to be zero.
In the following example, when X1 is on, the value formed by discrete locations X10–X17 is loaded into the accumulator using the Load Formatted instruction. The number of bits in the accumulator set to “1” is counted using the Sum instruction. The value in the accumulator is copied to V1500 using the Out instruction. NOTE: Status flags are valid only until another instruction uses the same flag.
DirectSOFT 5 Direct SOFT32 Display X1
X17 X16 X15 X14 X13 X12 X11 X10 LDF
ON ON OFF OFF ON OFF ON ON
X10 K8
The unused accumulator bits are set to zero
Load the value represented by discrete locations X10–X17 into the 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
1
1
0
0
1
1
Acc.
0
0
0
0
0
0
0
0
0
0
0
Acc. 0
SUM
0
0
0
0
0
0
0
0
0
0
0
0
0
0
5
0
0
0
5
Sum the number of bits in the accumulator set to “1”
OUT V1500
V1500
Copy the value in the lower 16 bits of the accumulator to V1500 Handheld Programmer Keystrokes $
B STR
1
SHFT
L ANDST
SHFT
S RST
GX OUT
5–120
D
ENT F
3
A
B 5
1
SHFT
U ISG
M ORST
PREV
PREV
PREV
I 0
8
ENT
ENT B
F 1
A 5
A 0
0
ENT
DL06 Micro PLC User Manual, 3rd Edition Rev. A
0
0
0
0
1
Page 275
Chapter 5: Standard RLL Instructions - Bit Operation
Shift Left (SHFL) DS5
Used
HPP
Used
Shift Left is a 32 bit instruction that shifts the bits in the accumulator a specified number (Aaaa) of places to the left. The vacant positions are filled with zeros and the bits shifted out of the accumulator are discarded.
SHFL A aaa
Operand Data Type
DL06 Range aaa
....................................A V-memory . . . . . . . . . . . . . . . . . . . . . . . . . . . . . V Constant . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . K
See memory map 1-32
Discrete Bit Flags
Description
SP63 SP70
On when the result of the instruction causes the value in the accumulator to be zero. On anytime the value in the accumulator is negative.
In the following example, when X1 is on, the value in V2000 and V2001 will be loaded into the accumulator using the Load Double instruction. The bit pattern in the accumulator is shifted 2 bits to the left using the Shift Left instruction. The value in the accumulator is copied to V2010 and V2011 using the Out Double instruction. NOTE: Status flags are valid only until another instruction uses the same flag. DirectSOFT 5 Direct SOFT32
V2001
X1
6
LDD
7
0
V2000 5
33 31 10 01
V2000 Load the value in V2000 and V2001 into the accumulator
SHFL
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
1
0
0
0
0
0
0
1
1
1
0
0
1
1
1
0
0
0
0
0
1
0
1
0
0
1
1
0
0
0
0
K2 The bit pattern in the accumulator is shifted 2 bit positions to the left
. . . .
Shifted out of the accumulator
OUTD V2010 Copy the value in the accumulator to V2010 and V2011
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
1 0
0
0
0
0
0
1
0
0
C
4
0
4
0
0
0 1
0 1
1
0
9
B STR
1
SHFT
L ANDST
SHFT
S
GX OUT
SHFT
RST
D
D
D
C 3
H
A 2
F 7
5 C
3
0
C
1
4
0
0 1
0
0 1
0
0
1
1
0
0
0
1
0
V2010
ENT
3 SHFT
0
V2011
Handheld Programmer Keystrokes $
0
L ANDST A
2
A 0 C 2
B 0
A 0
A 1
0
0
ENT
ENT ENT
DL06 Micro PLC User Manual, 3rd Edition Rev. A
0
1 2 3 4 5 6 7 8 9 10 11 12 13 14 A B C D
5–121
Page 276
Chapter 5: Standard RLL Instructions - Bit Operation
Shift Right (SHFR)
1 2 3 4 5 6 7 8 9 10 11 12 13 14 A B C D
DS5
Used
HPP
Used
Shift Right is a 32 bit instruction that shifts the bits in the accumulator a specified number (Aaaa) of places to the right. The vacant positions are filled with zeros and the bits shifted out of the accumulator are lost. Operand Data Type
SHFR A aaa
DL06 Range aaa
....................................A V-memory . . . . . . . . . . . . . . . . . . . . . . . . . . . . . V Constant . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . K
See memory map 1-32
Discrete Bit Flags
Description
SP63 SP70
On when the result of the instruction causes the value in the accumulator to be zero. On anytime the value in the accumulator is negative.
In the following example, when X1 is on, the value in V2000 and V2001 will be loaded into the accumulator using the Load Double instruction. The bit pattern in the accumulator is shifted 2 bits to the right using the Shift Right instruction. The value in the accumulator is copied to V2010 and V2011 using the Out Double instruction. NOTE: Status flags are valid only until another instruction uses the same flag. DirectSOFT 5 Direct SOFT32
V2001
X1
6
Constant
LDD
7
0
V2000 5
33 11 00 11
V2000 Load the value in V2000 and V2001 into the accumulator
SHFR
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
1
0
0
0
0
0
1
1
1
0
0
1
1
1
0
0
0
0
0
1
0
1
0
0
1
1
0
0
0
0
0
K2
... .
The bit pattern in the accumulator is shifted 2 bit positions to the right
Shifted out of the accumulator
OUTD V2010 Acc.
Copy the value in the accumulator to V2010 and V2011
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
4
C
4
0
0
0
1 0
1 0
0 1
0
1
1 0
1 0
1 0
9
C
1
0
0
0
0
V2011 Handheld Programmer Keystrokes $
B STR
1
SHFT
L ANDST
D
SHFT
S
SHFT
GX OUT
SHFT
5–122
RST
ENT D
3
D
C 3
H
F 7
5 C
3
A 2
R ORN A
2
A 0 C 2
B 0
A 0
A 1
0
0
ENT
ENT ENT
DL06 Micro PLC User Manual, 3rd Edition Rev. A
0
1 0
0
1
0
0
1
1
V2010
0
0
Page 277
Chapter 5: Standard RLL Instructions - Bit Operation
Rotate Left (ROTL) DS5
Used
HPP
Used
Rotate Left is a 32 bit instruction that rotates the bits in the accumulator a specified number (Aaaa) of places to the left.
R OTL A aaa
Operand Data Type
DL06 Range aaa
....................................A V-memory . . . . . . . . . . . . . . . . . . . . . . . . . . . . . V Constant . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . K
See memory map 1-32
Discrete Bit Flags
Description
SP63 SP70
On when the result of the instruction causes the value in the accumulator to be zero. On anytime the value in the accumulator is negative.
In the following example, when X1 is on, the value in V1400 and V1401 will be loaded into the accumulator using the Load Double instruction. The bit pattern in the accumulator is rotated 2 bit positions to the left using the Rotate Left instruction. The value in the accumulator is copied to V1500 and V1501 using the Out Double instruction. NOTE: Status flags are valid only until another instruction uses the same flag. DirectSOFT 5 DirectSOFT32 Display V1401
X1
LDD
6 7
V1400
0 5
3 1
0 1
V1400 Load the value in V1400 and V1401 into the accumulator ROTL K2
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
1
0
0
0
0
0
0
0
1
1
1
0
0
1
1
1
0
0
0
0
0
1
0
1
0
0
1
1
0
0
0
The bit pattern in the accumulator is rotated 2 bit positions to the left
OUTD V1500 31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16 15 14 13 12 11 10 9
Copy the value in the accumulator to V1500 and V1501
Acc.
1
0
0
1
1
1
0
0
0
0
9 C 1 4 V1501
Handheld Programmer Keystrokes $
B STR
1
1
0
1
0
0
1
1
0
0
0
1
0
C
8
7
6
5
4
3
2
1
0
0
0
0
0
0
0
1
0
1
4
0 5
V1500
ENT
SHFT
L ANDST
D 3
3
SHFT
R ORN
O INST#
T MLR
GX OUT
SHFT
D
D
B
E 1
L ANDST B
3
0
C 2 F
1
A 4
A 5
A 0
ENT
ENT A
0
0
0
ENT
DL06 Micro PLC User Manual, 3rd Edition Rev. A
1 2 3 4 5 6 7 8 9 10 11 12 13 14 A B C D
5–123
Page 278
Chapter 5: Standard RLL Instructions- - Bit Operation
Rotate Right (ROTR)
1 2 3 4 5 6 7 8 9 10 11 12 13 14 A B C D
DS5
Used
HPP
Used
Rotate Right is a 32 bit instruction that rotates the bits in the accumulator a specified number (Aaaa) of places to the right.
R OTR A aaa
Operand Data Type
DL06 Range aaa
....................................A V-memory . . . . . . . . . . . . . . . . . . . . . . . . . . . . . V Constant . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . K
See memory map 1-32
Discrete Bit Flags
Description
SP63 SP70
On when the result of the instruction causes the value in the accumulator to be zero. On anytime the value in the accumulator is negative.
In the following example, when X1 is on, the value in V1400 and V1401 will be loaded into the accumulator using the Load Double instruction. The bit pattern in the accumulator is rotated 2 bit positions to the right using the Rotate Right instruction. The value in the accumulator is copied to V1500 and V1501 using the Out Double instruction. DirectSOFT 5 Direct SOFT Display V1401 X1
6
LDD
7
0
V1400 5
3
1
0
1
V1400 Load the value in V1400 and V1401 into the accumulator
ROTR
Acc.
K2
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
0
0
0
0
1
1
1
0
0
1
1
1
0
0
0
0
0
1
0
1
0
0
1
1
0
0
0
0
The bit pattern in the accumulator is rotated 2 bit positions to the right
OUTD V1500 Copy the value in the accumulator to V1500 and V1501
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
0
0
1
0
0
0
0
4
C
4
0
1 0
0
1 0
1 0
B STR
1
SHFT
D 3
3
SHFT
R ORN
O INST#
T MLR
GX OUT
SHFT
D
5–124
1 0
1 0
1 0
5
9
C
1
0
0
0
0
ENT
L ANDST
D
B
E 1
2 F
1
A 4
C
R ORN B
3
0
V1501
Handheld Programmer Keystrokes $
0 1
A 5
A 0
ENT
ENT A
0
0
0
ENT
DL06 Micro PLC User Manual, 3rd Edition Rev. A
0
1 0
0
1
0
0
1
1
V1500
0
0
Page 279
Chapter 5: Standard RLL Instructions - Bit Operation
Encode (ENCO) DS5
Used
HPP
Used
The Encode instruction encodes the bit position in the accumulator having a value of 1, and returns the appropriate binary representation. If the most significant bit is set to 1 (Bit 31), the Encode instruction would place the value HEX 1F (decimal 31) in the accumulator. If the value to be encoded is 0000 or 0001, the instruction will place a zero in the accumulator. If the value to be encoded has more than one bit position set to a “1”, the least significant “1” will be encoded and SP53 will be set on. Discrete Bit Flags
ENCO
Description
SP53
On when the value of the operand is larger than the accumulator can work with.
NOTE: The status flags are only valid until another instruction that uses the same flags is executed.
In the following example, when X1 is on, The value in V2000 is loaded into the accumulator using the Load instruction. The bit position set to a “1” in the accumulator is encoded to the corresponding 5 bit binary value using the Encode instruction. The value in the lower 16 bits of the accumulator is copied to V2010 using the Out instruction. DirectSOFT 5 Direct SOFT32 X1
V2000 1
0
0
0
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
0
0
0
0
LD V2000 Load the value in V2000 into the lower 16 bits of the accumulator
Acc.
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
Bit postion 12 is converted to binary ENCO
Encode the bit position set to “1” in the accumulator to a 5 bit binary value
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
0
0
0
0
0
Acc.
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
OUT V2010 Copy the value in the lower 16 bits of the accumulator to V2010
C
V2010
Handheld Programmer Keystrokes $
B STR
1
ENT
SHFT
L ANDST
D
SHFT
E
N TMR
C
SHFT
V AND
GX OUT
4
C 3
A 2
2
A 0
O INST#
ENT
C
A 2
A 0
B 0
0
A 1
0
ENT
ENT
DL06 Micro PLC User Manual, 3rd Edition Rev. A
Binary value for 12.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 A B C D
5–125