5 SEQUENCE INSTRUCTIONS FOR MOTION CPU
5.2.3 END instruction
5.2.4 Index ornament
With the END instruction, both the circuit mode and the list mode are automatically
created, so programming is not necessary.
(1) The index ornament is used to add an index (Z0, Z1) to a device, add the details
of the directly designated device number and index register, and designate the
device number.
(2) The index (Z0, Z1) can be set between -32768 to 32767 with a sign added.
(3) The index ornament is used only for the MOV instruction.
(4) The usable instruction format is shown below.
(a) Transmission of data to Z0, Z1
(b) Possible device combinations of MOV instruction with index ornament
S (source)
Constant Kn or Hn
Example) K100
Word device
Example) D2000
Word device
MOV
Example) D2000Z0
Word device
Example) D2000Z0
Bit designation
Example) K2M0
MOV Kn Z0
MOV
Use Kn or Hn
Z0 or Z1
D (destination)
Word device
Example) D2000Z0
(Note-1)
Word device
Example) D2100Z1
(Note-1)
+ Zn
Word device
Example) D2001Z0
(Note-1)
+ Zn
Bit designation
Example) K2Y20
Word device
Example) D2000Z0
(Note-1): The word device refers to T, C, D and W.
5 - 12
Program example
(Note-1)
+ Zn
MOV K100 D2000Z0
(Note-1)
+ Zn
MOV D2000 D2100Z1
(Note-1)
+ Zn
MOV D2000Z0 D2001Z0
MOV D2000Z0 K2Y20
(Note-1)
+ Zn
MOV K2M0 D2000Z0