Toshiba T2N User Manual Page 198

  • Download
  • Add to my manuals
  • Print
  • Page
    / 272
  • Table of contents
  • TROUBLESHOOTING
  • BOOKMARKS
  • Rated. / 5. Based on customer reviews
Page view 197
3.User Data
User's manual 185
The following shows an example of the operation when index
modification is applied to a program.
Example)
The following processing is carried out when X0010 changes from OFF
to ON
Substitute 3 times the value of the content of C000 in index register I
Store content of XW005 in D(3000 + I)
Add 1 to the content of I and store content of XW010 in D(3000 + I)
Add a further 1 to the content of I and store content of XW012 in
D(3000 + I)
Incidentally,
A
P is a positive pulse contact which becomes ON once only when
device A starts-up from OFF to ON (up to the instruction execution of
the following scan)
—[ A B C + 1• C ]—is multiplication instruction which multiplies
A by B and stores it in double-length register C + 1• C
[ +1 A ]— is an increment instruction which adds 1 to the content of
A and stores it in A
[ A MOV B ]— is a data transfer instruction which substitutes the
content of A in B .
1. Substitutions of values to index registers and index modification may
be carried out any number of times during a program. Therefore,
normally, the program will be easier to see if a value substitution to
an index register is executed immediately before index modification.
2. Be careful that the registers do not exceed the address range
through index modification. When the results of index modification
exceed the address range, the instruction becomes non-
executable, and special relays (S0051 and S0064) which indicate
‘boundary error become ON.
NOTE
Page view 197
1 2 ... 193 194 195 196 197 198 199 200 201 202 203 ... 271 272

Comments to this Manuals

No comments