Deco (Decode) - IDEC MICROSmart FC6A Series Ladder Programming Manual

Automation organizer windldr
Hide thumbs Also See for MICROSmart FC6A Series:
Table of Contents

Advertisement

10: D
C
ATA
ONVERSION

DECO (Decode)

DECO
*****
Valid Devices
Device
S1 (Source 1)
D1 (Destination 1)
For valid device address ranges, see "Device Addresses" on page 2-1.
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 exceeds the valid range, a
user program execution error will result, turning on special internal relay M8004 and the ERR LED on the FC6A Series MICROSmart.
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 "User Program Execution Errors" on page 3-10.
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.
Examples: DECO
DECO
D20
I0
D20
19
DECO
D10
I1
39
D10
10-16
I
NSTRUCTIONS
When input is on, the values contained in devices assigned by S1 and D1 are added together to
determine the destination, and the bit is then turned on.
S1
D1
*****
Function
Offset
First bit to count offset
When input I0 is on, the destination bit is determined by adding the value contained in data
register D20 assigned by device S1 to internal relay M104 assigned by destination device D1.
S1
D1
M104
Since the 19th bit from internal relay M104 is internal relay M127, the bit is then turned on.
M117
M137
M157
First bit
M177
M197
ON
M217
When input I1 is on, the destination bit is determined by adding the value contained in data
register D10 assigned by device S1 to data register D30 assigned by destination device D1.
S1
D1
D30
Since the 39th bit from data register D30 bit 0 is data register D32 bit 7, the bit is then turned
on.
Bit
D30
D31
D32
D33
ON
D34
D35
FC6A S
MICROS
ERIES
I
Q
X
X
X
15
14
13
12
11
10
L
P
MART
ADDER
ROGRAMMING
M
R
T
C
D
P
X
X
X
X
X
9
8
7
6
5
4
3
M
FC9Y-B1726
ANUAL
Constant
Repeat
X
M100
M120
M140
M160
M180
M200
2
1
0

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents