4.8.1 Practice Question (1)
................................................................................................................. 4-34
4.8.2 Practice Question (2)
................................................................................................................. 4-35
4.8.3 Practice Question (3)
................................................................................................................. 4-37
4.8.4 Practice Question (4)
................................................................................................................. 4-38
CHAPTER 5 BASIC INSTRUCTION Part 2 5- 1 to 5-60
5.1 Notation of Numbers (Data) ...................................................................................................................... 5- 1
5.2 Transfer Instruction ................................................................................................................................... 5- 9
5.2.1 MOV (P)
16-bit data transfer...................................................................................................... 5- 9
5.2.2 BIN (P)
BCD BIN data conversion instruction........................................................................ 5-16
5.2.3 BCD (P)
BIN BCD data conversion instruction ...................................................................... 5-18
5.2.4 Example of specifying digit for bit devices and data transfer............................................................ 5-21
5.2.5 FMOV (P)
FMOV (Batch transfer of the same data)
BMOV (P)
BMOV (Batch transfer of the block data)................................................................ 5-22
5.3 Comparison Operation Instruction ........................................................................................................... 5-27
5.4 Arithmetic Operations Instruction............................................................................................................. 5-32
5.4.1
(P) · (P) BIN 16 bit data addition/subtraction................................................................ 5-32
5.4.2 * (P)
· / (P) BIN 16 bit multiplication/division......................................................................... 5-36
5.4.3 32-bit data instructions and their necessity....................................................................................... 5-42
5.4.4 Calculation examples of multiplication/division that include decimal points
(in the case where an arithmetic operation "
*
" or "/" is used) .......................................................... 5-44
5.5 Index Register, File Register.................................................................................................................... 5-45
5.5.1 How to use index register Z............................................................................................................... 5-45
5.5.2 How to use file register R .................................................................................................................. 5-47
5.6 External Setting of the Timer/Counter Set Value, and the External Display of the Current Value ......... 5-51
5.7 Practice Question ..................................................................................................................................... 5-53
5.7.1 Practice Question (1)
MOV......................................................................................................... 5-53
5.7.2 Practice Question (2)
BIN, BCD conversion............................................................................... 5-54
5.7.3 Practice Question (3)
FMOV....................................................................................................... 5-55
5.7.4 Practice Question (4)
Comparison instruction............................................................................ 5-56
5.7.5 Practice Question (5)
, .......................................................................................................... 5-57
5.7.6 Practice Question (6)
*
, / ............................................................................................................ 5-58
5.7.7 Practice Question (7)
D
*
, D/....................................................................................................... 5-59
CHAPTER 6 USING OTHER FUNCTIONS 6- 1 to 6-26
6.1 Clock Function........................................................................................................................................... 6- 1
6.2 Test Function at Online ............................................................................................................................. 6- 3
6.2.1 Turning device "Y" ON/OFF forcibly................................................................................................... 6- 4
6.2.2 Setting and resetting device "M" ........................................................................................................ 6- 5
6.2.3 Changing a current value of device "T".............................................................................................. 6- 6
6.2.4 Reading error steps ............................................................................................................................ 6- 7
6.2.5 Remote RUN/STOP ........................................................................................................................... 6- 8
6.3 Forced I/O Assignment by Parameter Settings ........................................................................................ 6- 9
6.4 Using Retentive
Timers ............................................................................................................................. 6-11
6.5 Batch Replacement of Devices................................................................................................................ 6-13
6.5.1 Batch replacement of device numbers ............................................................................................. 6-13
6.5.2 Batch switching of specified devices between normally open and normally close .......................... 6-14
6.6 Write During RUN..................................................................................................................................... 6-15
6.7 Registering Devices.................................................................................................................................. 6-16
6.8 Creating Comments ................................................................................................................................. 6-18