Deco (Decode) - IDEC FC4A-C10R2 User Manual

Fc4a series microsmart micro programmable logic controller
Table of Contents

Advertisement

14: D
C
ATA
ONVERSION

DECO (Decode)

DECO
*****
Applicable CPU Modules
FC4A-C10R2/C
FC4A-C16R2/C
Valid Operands
Operand
S1 (Source 1)
D1 (Destination 1)
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
DECO
D20
I0
19
D20
DECO
D10
I1
D10
39
14-12
I
NSTRUCTIONS
When input is on, the values contained in operands designated by S1 and D1 are
S1
D1
added to determine the destination, and the bit so determined is turned on.
*****
FC4A-C24R2/C
Function
Offset
First bit to count offset
When input I0 is on, the destination bit is determined by adding the value con-
S1
D1
tained in data register D20 designated by operand S1 to internal relay M104 des-
M104
ignated by destination operand D1.
Since 19th bit from internal relay M104 is internal relay M127, the bit so deter-
mined is turned on.
M117
M137
M157
M177
First bit
M197
ON
M217
When input I1 is on, the destination bit is determined by adding the value con-
S1
D1
tained in data register D10 designated by operand S1 to data register D30 desig-
D30
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.
D30
D31
D32
D33
ON
D34
D35
« FC4A M
FC4A-D20K3/S3
I
X
Bit
15 14 13 12 11 10
S
U
'
M
ICRO
MART
SER
S
ANUAL
FC4A-D20RK1/RS1 & FC4A-D40K3/S3
X
Q
M
R
T
C
D
X
X
X
— —
X
X
X
— —
X
9
8
7
6
5
4
3
»
Constant
Repeat
0-255
M100
M120
M140
M160
M180
M200
2
1
0

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents