
258
Operating Precautions
Appendix A
Communications Transmission Code and Transfer Control Signal
Depending on the device code specifications for the OPEN command, the limitations of the codes output when
executing the PRINT command have changed (all transmission codes have been changed to outputs except
for those specified using the TERM command for port 2). In the same way, depending on the device code spec-
ifications for the OPEN command, the operations of the transfer control signals (timing chart) have been
changed. Check the interface and external devices (See
SECTION 4 Data Exchange with General-purpose
External Devices
).
Terminal Emulation Mode Selection
If the same terminal used with the C200H-ASC02 is to be used with the C200H-ASC11/ASC21/ASC31 and it
supports VT100 mode, use VT100 mode. If the terminal does not support VT100 mode, use FIT10 mode.
Using PC READ/PC WRITE (Including @) Character-string
Variables
In the C200H-ASC02, when character-string variables are used for the variable with the PC READ/PC WRITE
(including @) commands, the first four characters in the character string are written, and only these four char-
acters are read to the variable. For the C200H-ASC11/ASC21/ASC31, all of the characters stored in the vari-
able are written and word data up to 255 characters can be read.
Example: C200H-ASC02
PC READ “@D,0,5,5H4” ; A$,B$,C$,D$,E$
Example: C200H-ASC11/ASC21/ASC31
PC READ “@D,0,5,5H4” ; A$(Five words of data will be read from A$.)
The following example show the difference in operations between the C200H-ASC02 and the C200H-ASC11/
ASC21/ASC31 when the following format is used.
Example: PC READ “@D,0,5,5H4” ; A$(0)
C200H-ASC02: The first word will be stored in A$(0).
C200H-ASC11/ASC21/ASC31: Five words of data will be stored in A$(0).
If changing from the C200H-ASC02 to the C200H-ASC11/ASC21/ASC31, the program will also need to be
changed as the operations are different.
Example 1
Before changing:
10 PC READ “@D,0,10,S10H4” : A$(0)
Executing this program with a C200H-ASC11/ASC21/ASC31 will generate a FORMAT ERROR.
After changing:
10 PC READ “@D,0,10,S10H4” : A (0)
20 FOR I=0 TO 9 : A$(I)=RIGHT$ (“0000” + HEX$(A(I)),4) : NEXT I
Example 2
Before changing:
10 PC READ “@D,0,5,5H4” ; A0$,A1$,A2$,A3$,A4$
After changing:
10 PC READ “@D,0,5,5H4” ; A$
20 A0$=MID$(A$,1,4)
30 A1$=MID$(A$,5,4)
40 A2$=MID$(A$,9,4)
50 A3$=MID$(A$,13,4)
60 A4$=MID$(A$,17,4)
When using a C200H-ASC11/ASC21/ASC31, PC and DM data can be easily sent to and from peripheral
devices.
Содержание C200H-ASC11
Страница 1: ...C200H ASC11 ASC21 ASC31 ASCII Units Operation Manual Revised June 2000...
Страница 2: ...iv...
Страница 4: ...vi...