114
Using the RS-232C interface
Specifying an action with short intervals
Some commands like Palette Select, which need some time to load,
transmit <stx>RD; after the procedure (in this case, loading) is
completed.
fig.232c02.eps
a.
Transmit a command from the control PC to the RG-100.
b.
If received correctly, the RG-100 returns ACK, and if an
error occurs, the RG-100 returns ER.
• An error occurs in a case when, for instance, the code sequence
was incorrect.
• “ACK” is an ASCII code signal name (code number 06H
[hexadecimal]) that tells the control PC that the command was
correctly received.
c.
When ACK is returned in b. and the command can be
processed, transmit <stx>RD; after the procedure is
completed.
When a different command is processed or when in a mode
where the command cannot be processed, transmit <stx>BY;.
*
Do not transmit the next command before <stx>RD; or <stx>BY is
returned.
About the command types
The commands have several types.
• Type 0: Control code stands alone
This type does not end with a “;.” It features only the control
code.
Ex. ACK
• Type 1: Control code without arguments
This type ends with a “;.”
Ex. <stx>ST;
• Type 2: Control code with arguments
Command: argument, argument...;
The command and arguments are separated with a “:” (colon).
The code ends with a “;” (semicolon).
About arguments
Arguments basically are decimal codes, and are flexible in length.
Ex. <stx>MV:8;/<stx>MV:5;
Ex. <stx>PJ:2;/<stx>PJ:64;
Commands sent from a control PC
to RG-100
There are two types of commands sent from the control PC to the
RG-100.
1.
Control (start) commands
These commands specify an action, such as recording or
playing.
2.
Query commands
These are the commands ACK, ER, BY, RD.
These commands require a reply from the RG-100 when sent
commands or request commands.
Commands specifications
Movie Select
Selects movies 1 to 8.
• Command <stx>MV:<n>; (Command type: type 2)
*
<n> = ASCII code for “1,” “2,”–”8”
Ex. <stx>MV:8;
❍
: When command is received, returns ACK, and selects movie.
*
1
: Changes to Movie Play mode.
Palette Select
Selects palettes.
Proceeds when Palette number is selected by the INC/DEC buttons
and defined by the ENTER button.
In Movie Play Mode, selects palette numbers 1–64.
• Command <stx>PJ:<n>; (Command type: type 2)
*
<n> = ASCII codes for “1,” “2,”–”64”
Ex. <stx>PJ:60;
❍
: When command is received, returns ACK, and selects palette.
After procedure completed, returns complete message RD.
*
1
: Changes to Schedule Play mode
×
: When command is received, returns ACK, followed by BY (BUSY),
as palette cannot be changed in this mode.
PC
a. <stx> + command
RG-100
b. <ack> or <stx>ER;
c. <stx>RD; or <stx>BY;
Details on commands
Play
Mode
MOVIE
WEEKLY
DAILY 1
DAILY 2
Schedule
Play
❍
*
1
❍
*
1
❍
*
1
❍
*
1
Movie Play
❍
❍
❍
❍
Play
Mode
MOVIE
WEEKLY
DAILY 1
DAILY 2
Schedule
Play
❍
×
×
×
Movie Play
❍
*
1
×
×
×
000RG-100.book 114 ページ 2004年8月6日 金曜日 午後5時37分