Delta AS Series Programming Manual page 1071

Hide thumbs Also See for AS Series:
Table of Contents

Advertisement

Example
When M0 is ON, the data in D0–D3 is "1234567", and the data in D10 is "AB". When the $INS instruction executes, it
inserts "AB" into the string in D0–D3 after the character indicated by the value in D30, and stores the result in D20–D24.
If the value in D30 is 1, the execution result is as follows.
b15
D0
16#32(2)
16#
34(4)
D1
16#
36(6)
D2
16#
00
D3
16#
42(B)
D10
Ignored
D11
D30
If the value in D30 is 0, the execution result is as follows.
b15
D0
16#32(2)
16#34(4)
D1
16#36(6)
D2
D3
16#00
16#42(B)
D10
D11
I gnored
D30
b8
b7
b0
16#31( 1)
16#
33(3)
16#
35(5)
After the instruction
16#
37(7)
is executed
16#
41(A)
16#
00
1
b8
b7
b0
16#31(1)
16#33(3)
Af ter
16#35(5)
execution
16#37(7)
16#41(A)
16#00
0
Cha p ter 6 App l ied Ins truc tio ns
b15
b8
b7
16#
41(A)
16#31( 1)
16#
32(2)
16#
42(B)
16#
34(4)
16#
33(3)
16#
36(6)
16#
35(5)
16#
00
16#
37(7)
b15
b8
b7
16#42(B)
16 #41(A)
16#32(2 )
16 #31(1)
16#34(4)
16 #33(3)
16# 36(6)
16 #35(5)
16#00
16 #37(7)
b0
D20
D21
D22
6_
D23
D24
b0
D20
D21
D22
D23
D24
6 - 7 9 1

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents