Mitsubishi Electronics 13JW55 ユーザーズマニュアル
(2)
CHAPTER 4 SEQUENCE AND BASIC INSTRUCTIONS -PART 1-
4- 1 to 4-42
4.1 List of Instruction Explained in this Chapter ···················································································· 4- 1
4.2 Differences between OUT and SET / RST ································································ 4- 4
4.3 Measuring Timer ····························································································································· 4- 5
4.4 Counting by Counter ······················································································································· 4- 6
4.5 PLS / PLF ·························································································································· 4-14
4.6 MC / MCR ·························································································································· 4-20
4.7 FEND / CJ / SCJ / CALL / RET ············································································ 4-24
4.7.1 FEND ······························································································································· 4-24
4.7.2 CJ / SCJ ·················································································································· 4-27
4.7.3 CALL(P) / RET ········································································································ 4-31
4.8 Exercise·········································································································································· 4-35
4.8.1 Exercise 1 LD to NOP··········································································································· 4-35
4.8.2 Exercise 2 SET, RST ············································································································ 4-36
4.8.3 Exercise 3 PLS, PLF············································································································· 4-38
4.8.4 Exercise 4 CJ, CALL, RET, FEND························································································ 4-39
CHAPTER 5 BASIC INSTRUCTION -PART 2-
5- 1 to 5-58
5.1 Notation of Values (Data) ················································································································ 5- 1
5.2 Transfer Instruction ························································································································· 5- 9
5.2.1 MOV (P) ··························································································································· 5-
9
5.2.2 BIN (P) ····························································································································· 5-16
5.2.3 BCD (P) ··························································································································· 5-18
5.2.4 Example of specifying digit for bit devices and transferring data ············································ 5-21
5.2.5 FMOV (P) / BMOV (P) ································································································ 5-22
5.2.5 FMOV (P) / BMOV (P) ································································································ 5-22
5.3 Comparison Operation Instruction ································································································· 5-27
5.4 Arithmetic Operation Instruction····································································································· 5-32
5.4.1 +(P) / -(P) ···················································································································· 5-32
5.4.2 * (P) / / (P) ··················································································································· 5-36
5.4.3 32-bit data instructions and their necessity ············································································· 5-41
5.4.4 Calculation examples for multiplication and division including decimal points ······················· 5-43
5.4.4 Calculation examples for multiplication and division including decimal points ······················· 5-43
5.5 Index Register and File Register···································································································· 5-44
5.5.1 How to use index register Z····································································································· 5-44
5.5.2 How to use file register R ········································································································ 5-46
5.5.2 How to use file register R ········································································································ 5-46
5.6 External Setting of Timer/Counter Set Value and External Display of Current Value ··················· 5-49
5.7 Exercise·········································································································································· 5-51
5.7.1 Exercise 1 MOV ···················································································································· 5-51
5.7.2 Exercise 2 BIN and BCD conversion ···················································································· 5-52
5.7.3 Exercise 3 FMOV ·················································································································· 5-53
5.7.4 Exercise 4 Comparison instruction ······················································································· 5-54
5.7.5 Exercise 5 Addition and subtraction instructions ·································································· 5-55
5.7.6 Exercise 6 Multiplication and division instructions································································ 5-56
5.7.7 Exercise 7 D-multiplication and D-division ··········································································· 5-57
Project name
QTEST 1
Project name
QTEST2
Project name
QTEST3
Project name
QTEST4
Project name
QTEST5
Project name
QTEST6
Project name
QTEST7
Project name
QTEST8
Project name
QTEST9
Project name
QTEST10
Project name
QTEST11