74 D50 PLC User's Manual
Substitution, Increment/Decrement Instruction Details
Instruction
Mnemonic Substitution Formula Range
Bit
■ Byte
LET
DLET
Direct substitution of number
(direct output of number)
■ Word
Ladder
D: Destination
S: Source
Example: S = M0, and M0 is 123
D = R17, and R17 is 45
Before execution: M0 = 123, R17 = 45
After execution: M0 = 123, R17 = 123
Description
Range: LET: 0 to 255
DLET: 0 to 65,535
1. Either a register (R, M, K, L, or W) address or a constant number can be assigned for S.
2. When S is a register address, copy the data of the register to D.
3. When S is a constant number, copy the value to D.
4. This operation occurs on every scan for which the input condition to the instruction is true.
Example
Program Expression Time Chart
LET
R
D =
S =
LET
D = M0000
S = 123
LET
D = M0001
S = 100
R000.2
R
LET
D = R0003
S = M0000
R000.3
R
R000.2
R000.3
M000.0
M000.1
R000.3
0000 0123 0123
0000 0100 0100
0000 0000 0123
Artisan Technology Group - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisantg.com