
B–61863E/15
5. FUNCTIONAL INSTRUCTIONS
PMC SEQUENCE PROGRAM
247
W1=0 : No error
W1=1 : Error found. In the case where the index value set in “(e) Index
storage address” exceeds the value set in “(b) Storage address
of number of data table elements”, it becomes W1=1. The
reading or writing of the data table isn’t executed.
In PMC–SB5/SB6/SB7 for Series 16i/160i/18i/180i Power
Mate i, PMC–SA5/SB6/SB7 for Series 21i/210i, PMC–SB7
for Series 0i–B, and PMC–NB6 for Series 15i when setting
format specification in the extended format, in the case the
value set in “(b) Storage address of number of data table
elements”, it becomes W1=1. The reading or writing of a data
table is executed for the normal index values but not executed
as for the wrong index values.
(a) Read data from data table (extended specification)
XMOVB
RST=0
0041
ACT=1
W1
R0 R100
RW=0
R200 D0
R200 A
R201
R202
R203
Data table
D0 2
Index array
R100 D
Input/Output
data array
The operation of the instruction :
(1) R102 ³ R200
(2) R105 ³ R201
(3) R108 ³ R202
(4) R100 ³ R203
B
D
D1 5R101
D2 8R102 A
D3 0R103
R104
R105 B
R106
R107
R108 C
C
The number of data table elements : R0=9
The number of index array elements : 4
Fig.5.32.6 (a) Example for XMOVB (extended specification)
(only for PMC–SB5/SB6/SB7 for Series 16i/160i/18i/180i Power Mate i, PMC–SA5/SB6/SB7 for Series 21i/210i,
PMC–SB7 for Series 0i–B, and PMC–NB6 for Series 15i)
5.32.5
Error Output (W1)
5.32.6
Example for Extended
Specification