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 #185 background imageLoading...
Page #185 background image
FC6A S
ERIES
MICROS
MART
L
ADDER
P
ROGRAMMING
M
ANUAL
FC9Y-B1726 9-5
9: S
HIFT
/ R
OTATE
I
NSTRUCTIONS
BCDLS (BCD Left Shift)
Valid Devices
For valid device address ranges, see "Device Addresses" on page 2-1.
When T (timer) or C (counter) is used as S2, the timer/counter current value (TC or CC) is displayed.
The number of digits that can be shifted as S2 are 1 through 7.
Make sure that the source data determined by S1 and S1+1 is between 0 and 9,999 for each data register. If either source data is over 9,999, a user
program execution error will result, turning on special internal relay M8004 and the ERR LED on the FC6A Series MICROSmart. When S2 is higher
than 7, a user program execution error will also result.
When a user program execution error occurs, the execution of the instruction is canceled. The data in S1 and S1+1 is left unchanged and the next
instruction is executed. For user program execution errors, see "User Program Execution Errors" on page 3-10.
Valid Data Types
When a word device such as D (data register) is assigned as source S1, 2 points (double-word data) are used.
When a bit device such as I (input), Q (output), M (internal relay), or R (shift register) is assigned as source S2, 16 points are used.
When a word device such as T (timer), C (counter), or D (data register) is assigned as source S2, 1 point is used.
When input is on, the 32-bit binary data assigned by S1 is converted into 8 BCD digits, shifted
to the left by the quantity of digits assigned by S2, and converted back to 32-bit binary data.
Valid values for each of S1 and S1+1 are 0 through 9,999.
The number of digits that can be shifted is 1 through 7.
Zero is set to the lowest digit after each shift.
BCDLS S1
*****
S2
*
Before shift:
After shift:
0 2 31
MSD
S1 S1+1
Shift to the left
LSD
4 6 75 0
1 3 42 5 7 060
When S2 = 1 (digits to shift)
0
Device Function I Q M R T C D P Constant Repeat
S1 (Source 1) Data for BCD shift — — — — — — X — — —
S2 (Source 2) Quantity of digits to shift XXXXXXX— 1-7 —

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