10: S
HIFT
/ R
OTATE
I
NSTRUCTIONS
10-6
FT1A S
MART
A
XIS
U
SER
’
S
M
ANUAL
FT9Y-B1382
Example: BCDLS
M8120 is the initialize pulse special internal relay.
When the CPU starts operation, the MOV (move) instructions set 123 and 4567 to data
registers D10 and D11, respectively.
Each time input I0 is turned on, the 32-bit binary data of data registers D10 and D11
designated by S1 is converted into 8 BCD digits, shifted to the left by 1 digit as
designated by device S2, and converted back to 32-bit binary data.
Zeros are set to the lowest digits as many as the digits shifted.
REP
SOTU
I0
S1 –
4567
D1 –
D11
S1
D10
S2
1
BCDLS
MOV(W)
M8120
REP
S1 –
123
D1 –
D10
MOV(W)
Before shift:
After first shift:
0
2 3
1
D10
D11
Shift to the left
4
6 7
5
0
1
3 4
2
5
7 0
6
0
After second shift:
MSD
LSD
2
4 5
3
6
0 0
7
1
0
When S2 = 1 (digits to shift)
Содержание microsmart pentra
Страница 1: ...FT1A SERIES FC9Y B1382 Ladder Programming Manual ...
Страница 6: ...Preface 5 FT1A SMARTAXIS USER S MANUAL FT9Y B1382 ...
Страница 104: ...7 DATA COMPARISON INSTRUCTIONS 7 10 FT1A SMARTAXIS USER S MANUAL FT9Y B1382 ...
Страница 122: ...8 BINARY ARITHMETIC INSTRUCTIONS 8 18 FT1A SMARTAXIS USER S MANUAL FT9Y B1382 ...
Страница 138: ...10 SHIFT ROTATE INSTRUCTIONS 10 12 FT1A SMARTAXIS USER S MANUAL FT9Y B1382 ...
Страница 162: ...11 DATA CONVERSION INSTRUCTIONS 11 24 FT1A SMARTAXIS USER S MANUAL FT9Y B1382 ...
Страница 188: ...12 CALENDAR COMPARISON INSTRUCTIONS 12 26 FT1A SMARTAXIS USER S MANUAL FT9Y B1382 ...
Страница 198: ...15 REFRESH INSTRUCTIONS 15 4 FT1A SMARTAXIS USER S MANUAL FT9Y B1382 ...
Страница 202: ...16 INTERRUPT CONTROL INSTRUCTIONS 16 4 FT1A SMARTAXIS USER S MANUAL FT9Y B1382 ...
Страница 266: ...20 DUAL TEACHING TIMER INSTRUCTIONS 20 4 FC5A MICROSMART USER S MANUAL FC9Y B1273 ...
Страница 318: ...25 USER COMMUNICATION INSTRUCTIONS 25 22 FT1A SMARTAXIS USER S MANUAL FT9Y B1382 ...