![YOKOGAWA F3RS22-0N User Manual Download Page 35](http://html1.mh-extra.com/html/yokogawa/f3rs22-0n/f3rs22-0n_user-manual_3494923035.webp)
4-4
IM 34M6H21-01E
2nd Edition : Aug, 2001-00
4.2 Transmission Text and Format Specifications
Data Output
Data output is performed with the OUTPUT statement.
The OUTPUT statement can be used to specify the output format, as well as whether a
terminator is to be appended and code conversion to be performed before output.
Table 4.3 Format Specification using the OUTPUT statement
Type Statement
Terminator
Code
Conversion
I
OUTPUT S, P, ~
OUTPUT S P USING “~”, ~
appended
automatically
Yes
II
OUTPUT S, P, ~
OUTPUT S P USING “#,~”, ~
Not appended
(appended by user)
Yes
III
OUTPUT S, P NOFORMAT; ~
Not appended
No (YM – BASIC/FA internal
code)
S: Slot number
P: Port number
z
Type
I
The output data undergoes code conversion, the terminator is appended automatically
and the data is output to the line. If there is an image specification, it follows the image
specification. For details on the format of the image specification, refer to the IMAGE
statement in the user’s manual “BASIC CPU Modules and YM-BASIC/FA Programming
Language” (IM34M6Q22-01E). The terminator can be specified as any character string
of two or less characters. The default is CR-LF.
BASIC program
Data on the line
10 ASSIGN RS22=5
20 A$=”ABCD”: B=100
30 OUTPUT 5,2;A$;B
40 OUTPUT 5,2 USING”3A,MDDZ.Z”;A$;B
Note: The above real variable B is converted to a character string before output.
z
Type
II
The output data undergoes code conversion before output. No terminator is appended.
If a terminator is required, the user has to ensure that it is appended during output.
BASIC program
10 ASSIGN RS22=5
20 A$=”ABCD”: B=100
Data on the line
30 TERM$=CHR$($0D)
40 OUTPUT 5,2;A$;B;TERM$;
50 OUTPUT 5,2 USING”#,3A,MDDZ.Z,2A”;A$;B;TERM$
A
B
C
D
1
0
0
CR
LF
CR
LF
A
B
C
1
0
0
.
0
A
B
C
D
1
0
0
CR
A
B
C
1
0
0
.
0
CR
Summary of Contents for F3RS22-0N
Page 11: ...Blank Page...
Page 15: ...Blank Page...
Page 28: ...3 3 IM 34M6H21 01E 2nd Edition Aug 2001 00 External Dimensions Unit mm 83 2 28 9 2 12 1 100...
Page 31: ...Blank Page...
Page 59: ...Blank Page...
Page 63: ...Appx 3 2 IM 34M6H21 01E 2nd Edition Aug 2001 00 Blank Page...
Page 65: ...Blank Page...