14: D
ATA
C
ONVERSION
I
NSTRUCTIONS
14-12
« FC4A M
ICRO
S
MART
U
SER
’
S
M
ANUAL
»
DECO (Decode)
Applicable CPU Modules
Valid Operands
For the valid operand number range, see pages 6-1 and 6-2.
▲
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 operand 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.
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
FC4A-C10R2/C
FC4A-C16R2/C
FC4A-C24R2/C
FC4A-D20K3/S3
FC4A-D20RK1/RS1 & FC4A-D40K3/S3
—
—
—
—
X
Operand
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 is on, the values contained in operands designated by S1 and D1 are
added to determine the destination, and the bit so determined is turned on.
DECO
S1
*****
D1
*****
D1
M104
S1
D20
I0
DECO
M117
M100
M137
M120
M157
M140
M177
M160
M197
M180
M217
M200
When input I0 is on, the destination bit is determined by adding the value con-
tained in data register D20 designated by operand S1 to internal relay M104 des-
ignated by destination operand D1.
Since 19th bit from internal relay M104 is internal relay M127, the bit so deter-
mined is turned on.
19
D20
First bit
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
D34
D35
When input I1 is on, the destination bit is determined by adding the value con-
tained in data register D10 designated by operand S1 to data register D30 desig-
nated by destination operand D1.
Since 39th bit from data register D30 bit 0 is data register D32 bit 7, the bit so
determined is turned on.
ON
39
D10
Содержание FC4A-C10R2
Страница 1: ...FC4A SERIES Micro Programmable Logic Controller User s Manual FC9Y B812 ...
Страница 6: ...PREFACE 4 FC4A MICROSMART USER S MANUAL ...
Страница 94: ...2 MODULE SPECIFICATIONS 2 74 FC4A MICROSMART USER S MANUAL ...
Страница 184: ...6 ALLOCATION NUMBERS 6 20 FC4A MICROSMART USER S MANUAL ...
Страница 218: ...8 ADVANCED INSTRUCTIONS 8 8 FC4A MICROSMART USER S MANUAL ...
Страница 240: ...11 BINARY ARITHMETIC INSTRUCTIONS 11 8 FC4A MICROSMART USER S MANUAL ...
Страница 244: ...12 BOOLEAN COMPUTATION INSTRUCTIONS 12 4 FC4A MICROSMART USER S MANUAL ...
Страница 252: ...13 SHIFT ROTATE INSTRUCTIONS 13 8 FC4A MICROSMART USER S MANUAL ...
Страница 274: ...15 WEEK PROGRAMMER INSTRUCTIONS 15 8 FC4A MICROSMART USER S MANUAL ...
Страница 378: ...22 DUAL TEACHING TIMER INSTRUCTIONS 22 4 FC4A MICROSMART USER S MANUAL ...
Страница 386: ...23 INTELLIGENT MODULE ACCESS INSTRUCTIONS 23 8 FC4A MICROSMART USER S MANUAL ...
Страница 408: ...24 ANALOG I O CONTROL 24 22 FC4A MICROSMART USER S MANUAL ...
Страница 426: ...26 COMPUTER LINK COMMUNICATION 26 6 FC4A MICROSMART USER S MANUAL ...