
4. CONVERSATIONAL MACRO FUNCTION
B–62073E–2/03
108
(b) When the I/O device has received more data than it can handle
(over flow), it turns off the CS signal it sends to the CNC (the RS
signal of the I/O device). After it detects the OFF CS signal the
CNC stops data transmission within two characters. Data
transmission is continued when the CS signal is turned on again.
(c) When the I/O device becomes ready to receive data again, it turns
on the CS signal of the CNC (the RS signal of the I/O device).
The CNC then resumes data transmission and sends the
remaining data.
(d) When all the data has been transmitted, the I/O device turns off
the CS signal of the CNC (the RS signal of the I/O device).(1)
DataData
CompleteResumeSuspendStart
I/O device
CS
(Input)
CNC
SD
(Output)
Within two characters
(2) Circuit close (G331)
G331 ;
Function: Closes circuit during open.
(3) 1 byte read (G335)
G335 Pp ;
Function: Substitutes data to 1 byte reading specified macro variable.
P : Specifies macro variable number to substitute data which has
been read.
(4) Data transmission (G336)
G336 Cc (c ) (*H *) Kk Ff.e Dd Pp Zz ;
Function: Outputs data in specified format.
C : Specifies character code you desire to direct output.
( ) : Direct specifies the character row you desire to output enclosed
in ( ).
(**): Encloses the character row you desire to output by “(*“and”*)”
and specifies by internal code.
Character code is specified in hexadecimal.
Separate the codes with spaces.
K : Specifies number of spaces (null). Outputs only the number
of null codes specified by K.
F : Specifies format when outputting numerical value.
D : Specifies numerical value to be output.
P : Specifies sequence number containing character row. Output
contents are set in c character array registration program
control variable (#8509), and outputs character array of
sequence number 1 block specified by P in the program.
Z : Commands whether or not to set reading zero suppress when
commanding numerical value.
0 : Does not set reading zero suppress.
1 : Sets reading zero supprewss.