Bcdls (Bcd Left Shift) - IDEC MICROSmart FC6A Series Ladder Programming Manual

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

Advertisement

BCDLS (BCD Left Shift)

BCDLS
*****
When S2 = 1 (digits to shift)
Valid Devices
Device
S1 (Source 1)
S2 (Source 2)
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.
S1
S2
*
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.
Before shift:
After shift:
Function
Data for BCD shift
Quantity of digits to shift
FC6A S
MICROS
ERIES
MART
S1
0
1
2 3
0
1
2
3 4
MSD
I
Q
X
X
L
P
M
ADDER
ROGRAMMING
ANUAL
9: S
/ R
HIFT
OTATE
S1+1
4
5
6 7
Shift to the left
5
6
7 0
LSD
M
R
T
C
D
P
X
X
X
X
X
X
FC9Y-B1726
I
NSTRUCTIONS
0
0
Constant
Repeat
1-7
9-5

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents