![background image](http://html1.mh-extra.com/html/omron/sysmac-c200h-asc02/sysmac-c200h-asc02_operation-manual_742429137.webp)
Formatting and Data Conversion
Appendix D
132
Contents of PC word
0
0
0
1
PC WRITE “ B 0 ” ; J
Integer variable
0
0
0
2
PC WRITE “ B 1 ” ; J
0
0
1
0
PC WRITE “ B 4 ” ; J
8
0
0
0
PC WRITE “ B 15 ” ; J
←
J = - 3 2 7 4 9 = & H 8 0 1 3
B Format
1
Note
Integer variables in B format will cause an error.
A Format
Contents of PC word
0
0
5
1
PC WRITE “ 2 A 1 ” ; A $
0
0
5
2
PC WRITE “ 2 A 2 ” ; A $
5
1
0
0
PC WRITE “ 2 A 3 ” ; A $
5
2
0
0
←
A $ = “ Q R S T ”
5
1
5
2
5
3
5
4
Character variable
Q : & H 5 1
R : & H 5 2
S : & H 5 3
T : & H 5 4
←
A ( 1 ) = 1 2 3
A ( 2 ) = 4 5 6 7
A ( 3 ) = 8 9 0 1
A ( 4 ) = 2 3 4 5
9
8
7
6
Contents of PC word
5
4
3
2
1
0
9
8
7
6
5
4
PC WRITE “ S 4 I 4 ” ; A ( 1 )
Integer variable
(in format I)
S Format
Summary of Contents for SYSMAC C200H-ASC02
Page 1: ...Cat No W165 E1 04 ASCII Unit SYSMAC C200H ASC02 ...
Page 2: ...C200H ASC02 ASCII Unit Operation Manual Revised September 2002 ...
Page 3: ...iv ...
Page 5: ...vi ...
Page 7: ...TABLE OF CONTENTS viii Glossary 159 Index 163 Revision History 165 ...
Page 122: ...Appendix B Specifications 115 130 35 100 5 ...
Page 168: ...Cat No W165 E1 04 C200H ASC02 ASCII Unit OPERATION MANUAL ...