
4. CONVERSATIONAL MACRO FUNCTION
B–62073E–2/03
106
(4) Auxiliary macro program end (M99)
M99 or M99P(Sequence number) ;
The final part of the main program must command “M99”.
The following describes the main program “M99”.
1. If “M99” is commanded, the auxiliary macro execution ends.
2. If “M99” is commanded, it examines the value of conversational
macro control variable 2 (#8600) and, if it is changed, control
transfers to a new conversational macro program. If it is not
changed, the same conversational macro program continues to
execute. At this time, if address P is specified, execution restarts
from the sequence number block specified by P.
3. If “M99” is specified, local variables are initialized as <Vacant>.
Circuit control can be performed by conversational macro function.
Control is performed by a combination of the following 7 control codes.
These functions are valid if bit 7 of parameter 8508 is set to 1. Otherwise,
operation will be unpredictable.
G330 Circuit open
G331 Circuit close
G335 1 byte read
G336 Data transmission
G337 Macro variable data input
G338 Macro variable data output
G339 Directory information read, file deletion
A completion code is available which allows the user to check if
input/output processing has been executed normally. Check the code after
control code execution.
#8539: Completion code (read only)
(1) Circuit open (G330)
G330 Pp Bb Ss Cc ;
Function: Opens the specificed channel according to control
conditions and sets useable status.
P : Interface number of I/O device for foreground
1 : User macro control with RS–232–C1
2 : User macro control with RS–232–C2
3 : User macro control with RS–232–C3
101: Input control with RS–232–C 1
102: Input control RS–232–C 2
103: Input control RS–232–C 3
110 : Input control with remote buffer
113 : Input control with RS–422
201: Output control with RS–232–C 1
202: Output control with RS–232–C 2
203: Output control with RS–232–C 3
210: Output control with remote buffer
213: Output control with RS–422
301: Directory control with RS–232–C 1
302: Directory control with RS–232–C 2
303: Directory control with RS–232–C 3
310: Directory control with remote buffer
313: Directory control with RS–422
B : Baud rate of input/output device
4.5.23
RS–232–C Control by
Conversational Macro