EasyManuals Logo

IDEC MICROSmart FC6A Series Ladder Programming Manual

IDEC MICROSmart FC6A Series
604 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #171 background imageLoading...
Page #171 background image
FC6A S
ERIES
MICROS
MART
L
ADDER
P
ROGRAMMING
M
ANUAL
FC9Y-B1726 7-13
7: B
INARY
A
RITHMETIC
I
NSTRUCTIONS
INC (Increment)
DEC (Decrement)
Valid Devices
For valid device address ranges, see "Device Addresses" on page 2-1.
Since the INC and DEC instructions are executed in each scan while input is on, a pulse input from a SOTU or SOTD instruction should be used.
Valid Data Types
Increment beyond Limits
When the S/D value is at its maximum and is incremented by one, the value returns to 0, turning on the carry (M8003).
Decrement beyond Limits
When the S/D value is at its minimum and is decremented by one, the value returns to its maximum value (word or double-word
data) or to –1 (integer or long data), turning on the internal relay M8003 (carry or borrow).
Example: INC
Example: DEC
Data type W or I: S/D + 1 → S/D
Data type D or L: S/D·S/D+1 + 1 → S/D·S/D+1
When input is on, one is added to the 16- or 32-bit data assigned by device S/D and the result is stored to
the same device.
INC(*) S/D
*****
Data type W or I: S/D – 1 → S/D
Data type D or L: S/D·S/D+1 – 1 → S/D·S/D+1
When input is on, one is subtracted from the 16- or 32-bit data assigned by device S/D and the result is
stored to the same device.
DEC(*) S/D
*****
Device Function I Q M R T C D P Constant Repeat
S/D (Source/Destination) Device to increment data — — — — — — X — — —
W (word) X When a word device such as D (data register) is assigned as the source/destination, 1 point (word or integer
data) or 2 points (double-word or long data) are used.
I (integer) X
D (double word) X
L (long) X
F (float) —
S/D
D10
When input I0 is turned on, the data of D10 is incremented by one.
If SOTU is not programmed, the data of D10 is incremented in each scan.
I0
INC(W)
SOTU
100
D10
+
101
D101
S/D
D20
I1
DEC(W)
SOTU
When input I1 is turned on, the data of D20 is decremented by one.
If SOTU is not programmed, the data of D20 is decremented in each scan.
100
D20 –
99
D201

Table of Contents

Other manuals for IDEC MICROSmart FC6A Series

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the IDEC MICROSmart FC6A Series and is the answer not in the manual?

IDEC MICROSmart FC6A Series Specifications

General IconGeneral
BrandIDEC
ModelMICROSmart FC6A Series
CategoryComputer Hardware
LanguageEnglish

Related product manuals