11: D
ATA
C
ONVERSION
I
NSTRUCTIONS
11-16
FT1A S
MART
A
XIS
U
SER
’
S
M
ANUAL
FT9Y-B1382
DECO (Decode)
Applicable CPU Modules
Valid Devices
For the valid device address range, see pages 6-1 and 6-2
(Basic Vol.).
Internal relays M0 through M1277 can be designated as D1. Special internal relays cannot be designated as D1.
Valid values for the offset designated by source device S1 are 0 through 255. Make sure that the offset designated by S1 and the last bit of
destination data determined by the sum of S1 and D1 are within the valid value range. If the offset or destination data is out of the valid range, a
user program execution error will result, turning on special internal relay M8004 and the ERR LED on the CPU module.
When a user program execution error occurs, the execution of the instruction is canceled. The value of D1 is left unchanged and the next instruction
is executed. For user program execution errors, see Chapter 4 “User Program Execution Errors” on page 4-21.
Since the DECO instruction is executed in each scan while input is on, a pulse input from a SOTU or SOTD instruction should be used as required.
Examples: DECO
When input is on, the values contained in devices designated by S1 and D1 are added to
determine the destination, and the bit so determined is turned on.
DECO
S1
*****
D1
*****
FT1A-12
FT1A-24
FT1A-40
FT1A-48
FT1A-Touch
X
X
X
X
X
Device
Function
I
Q
M
R
T
C
D
Constant
Repeat
S1 (Source 1)
Offset
X
X
X
X
—
—
X
0-255
—
D1 (Destination 1)
First bit to count offset
—
X
X
—
—
X
—
—
When input I0 is on, the destination bit is determined by adding the value contained in data
register D20 designated by device S1 to internal relay M104 designated by destination device D1.
Since 19th bit from internal relay M104 is internal relay M127, the bit so determined is turned on.
D1
M104
S1
D20
I0
DECO
M117
M100
M137
M120
M157
M140
First bit
M177
M160
M197
M180
ON
M217
M200
19
D20
When input I1 is on, the destination bit is determined by adding the value contained in data
register D10 designated by device S1 to data register D30 designated by destination device D1.
Since 39th bit from data register D30 bit 0 is data register D32 bit 7, the bit so determined is
turned on.
D1
D30
S1
D10
I1
DECO
Bit
15
14
13
12
11
10
9
8
7
6
5
4
3
2
1
0
D30
D31
D32
D33
ON
D34
D35
39
D10
Summary of Contents for microsmart pentra
Page 1: ...FT1A SERIES FC9Y B1382 Ladder Programming Manual ...
Page 6: ...Preface 5 FT1A SMARTAXIS USER S MANUAL FT9Y B1382 ...
Page 104: ...7 DATA COMPARISON INSTRUCTIONS 7 10 FT1A SMARTAXIS USER S MANUAL FT9Y B1382 ...
Page 122: ...8 BINARY ARITHMETIC INSTRUCTIONS 8 18 FT1A SMARTAXIS USER S MANUAL FT9Y B1382 ...
Page 138: ...10 SHIFT ROTATE INSTRUCTIONS 10 12 FT1A SMARTAXIS USER S MANUAL FT9Y B1382 ...
Page 162: ...11 DATA CONVERSION INSTRUCTIONS 11 24 FT1A SMARTAXIS USER S MANUAL FT9Y B1382 ...
Page 188: ...12 CALENDAR COMPARISON INSTRUCTIONS 12 26 FT1A SMARTAXIS USER S MANUAL FT9Y B1382 ...
Page 198: ...15 REFRESH INSTRUCTIONS 15 4 FT1A SMARTAXIS USER S MANUAL FT9Y B1382 ...
Page 202: ...16 INTERRUPT CONTROL INSTRUCTIONS 16 4 FT1A SMARTAXIS USER S MANUAL FT9Y B1382 ...
Page 266: ...20 DUAL TEACHING TIMER INSTRUCTIONS 20 4 FC5A MICROSMART USER S MANUAL FC9Y B1273 ...
Page 318: ...25 USER COMMUNICATION INSTRUCTIONS 25 22 FT1A SMARTAXIS USER S MANUAL FT9Y B1382 ...