![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
Содержание SYSMAC C200H-ASC02
Страница 1: ...Cat No W165 E1 04 ASCII Unit SYSMAC C200H ASC02 ...
Страница 2: ...C200H ASC02 ASCII Unit Operation Manual Revised September 2002 ...
Страница 3: ...iv ...
Страница 5: ...vi ...
Страница 7: ...TABLE OF CONTENTS viii Glossary 159 Index 163 Revision History 165 ...
Страница 122: ...Appendix B Specifications 115 130 35 100 5 ...
Страница 167: ...Cat No W165 E1 04 Note Specifications subject to change without notice Printed in Japan Authorized Distributor ...
Страница 168: ...Cat No W165 E1 04 C200H ASC02 ASCII Unit OPERATION MANUAL ...