EasyManuals Logo

NAiS FP1 User Manual

Default Icon
280 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #202 background imageLoading...
Page #202 background image
194
6-4. Hints for Programming High-level Instructions
2) Application Examples of Index Registers (IX, IY)
Saving/Outputting data in the same order that it is received/stored
Example 1: When saving the data in the same order in which it is received
• The data input from WX1 is transferred to the data registers starting from DT0 in the same order in
which it is received.
The contents of IX and the destination register address are changed as shown in the following table.
Example 2: When outputting the data in the same order in which it is stored.
• The data is output to WY0 starting from DT0 in the same order in which it is stored.
The contents of IY and the source data register address are changed as shown in the following table.
0 1
1 2
2 3
1st
2nd
3rd
Input times of X1
DT0
DT1
DT2
Contents of IY Source data register address
X1
F0 MV, IYDT0, WY0( DF )
F35 +1, IY
When X1 is turned ON, the data is output to WY1
from the data register specified by DT0 and IY.
X0
F0 MV, K0, IY
When X0 is ON, K0 is written to IY.
Each time X1 is turned ON, IY is increased by 1.
0 1
1 2
2 3
1st
2nd
3rd
Input times of X1
DT0
DT1
DT2
Contents of IX Destination data register
X1
F0 MV, WX1, IXDT0( DF )
F35 +1, IX
Each time X1 is turned ON, the data in WX1 is transferred
to the data register specified by the DT0 and IX.
X0
F0 MV, K0, IX
When X0 is ON, K0 is written to IX.
Each time X1 is turned ON, IX is increased by 1.

Table of Contents

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the NAiS FP1 and is the answer not in the manual?

NAiS FP1 Specifications

General IconGeneral
BrandNAiS
ModelFP1
CategoryController
LanguageEnglish

Related product manuals