
B-63943EN-2/01 6.MACRO EXECUTOR FUNCTION
- 201 -
Data writing 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
ASCII codes.
K : Specify the number of space characters (20h).
(‘_’)
(*_*)
: 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 output in a specified format.
A specified character string is converted to ASCII codes for output.
For a data write, open memory card control in the write control mode
(P=24).
Example
G330 P24 L500 ; →
G336 C18 K20 (FANUC) K20 ;
IF [#8539 NE 0] GOTO900 ;
Write processing completed
G331;
GOTO1000;
N900 Error processing
N1000 Next processing
Open in write control mode
K20 : Outputs 20 space characters (20h).
FANUC (ASCII code)
K20 : Outputs 20 space characters (20h).
Macro variable input G337
- Format
G337 Pp Qq R99 ;
- Explanation
Macro variable data is read from the memory card opened in the read
control mode, and is assigned to specified macro variable.
This processing is the same as macro variable data input (G337)
described in Section 6.5, "READER/PUNCHER INTERFACE",
except that data is input from the memory card.