
6.MACRO EXECUTOR FUNCTION B-63943EN-2/01
- 182 -
Data transmission G336
- Format
G336 Cc (_) (‘_’) (*_*) Kk Ff.e Dd Pp Zz ;
C : Specify a code to be directly output. (Specify one
character.)
Code conversion processing is not performed. Specify
this address when outputting a code other than the
control codes (DC1 to DC4) and ASCII/ISO codes.
K : Specify the number of non-drilled holes.
The output code is not a space (20h) but a null code
(00h) (non-drilling).
(‘_’)
(*_*)
: Half-size characters (codes listed in the katakana code
table, alphanumeric code table, and symbol code table
in Appendix B, "Code Tables") can be used. Kanji
and hiragana codes cannot be used.
The other addresses are the same as for screen display control (G243).
So, see Subsection 6.1.3.5, "Character display (G243)".
- Explanation
Data is transmitted in a specified format.
Before being transmitted, a specified character string is converted to
ASCII/ISO or EIA codes according to the specification at line open
time.
Example
G336 C18 K20 (FANUC) K20 C20 ;
IF [#8539 NE 0] GOTO900 ;
Transmission processing completed
N900 Error processing;
C18 : Transmits DC2 (12h).
K20 : Transmits 20 null codes (Feed).
FANUC (ASCII / ISO / EIA code)
K20 : Transmits 20 null codes (Feed).
C20 : Transmits DC4(14h).
When a line is opened in transmission control mode, 1-byte reception
cannot be executed. If an attempt is made to execute it, a completion
code of 8 is set.