Roland AR-200S User Manual

A R – 2 0 0 S AUDIO RECORDER
RS-232C Reference
AR-200S RS-232C Reference Version 1.0
© 2006
Unauthorized copying or reproduction of this manual in part or in whole is prohibited.
c
- Contents -
Section1 Introduction..............................................................................................................................1
1.1 If You Have Been Using the AR-3000 ..........................................................................................1
1.2 If You Have Been Using the AR-2000 ..........................................................................................1
Section2 Setup.........................................................................................................................................1
2.1 About the RS-232C Interface........................................................................................................1
2.1.1 Connector and Cable ............................................................................................................1
2.2 Handshaking .................................................................................................................................2
2.3 Setup Procedure ............................................................................................................................2
2.4 Connections with the Computer...................................................................................................2
2.5 Computer Settings ........................................................................................................................2
2.6 AR-200S Settings ..........................................................................................................................3
2.6.1 Baud Rate .............................................................................................................................3
Section3 Overview of Commands............................................................................................................4
3.1 Command Structure......................................................................................................................4
3.1.1 Communication Protocol......................................................................................................4
3.1.2 Command Format ................................................................................................................5
3.1.3 About Input Parameters ......................................................................................................6
3.1.4 About Output Parameters ...................................................................................................6
3.2 Precautions....................................................................................................................................6
Section4 Details of each Command.........................................................................................................7
4.1 Commands Transmitted from the External Device (Computer) to the AR-200S.......................7
4.2 Details of Commands Sent from the External Device (Computer) to the AR-200S...................8
4.2.1 Control Commands...............................................................................................................8
= PA Specifying the Playback Phrase ...........................................................................8
= PE Pause Playback / Restart Playback......................................................................8
= PL Start Playback.......................................................................................................9
= RL Playback from the Middle of a Phrase .................................................................9
> PLL Start Left Channnel Playback (Dual Mono Mode)............................................10
> PLR Start Right Channel Playback (Dual Mono Mode)............................................11
> PLB Start Playback (During Phrase Play Busy Out On) (Dual Mono Mode) ..........11
= ST Halting Playback/Recording ...............................................................................11
= AE Starting Time-Stamped Recording.............................................................................12
= RE Start Recording ...................................................................................................13
= RM Record Ready Mode.............................................................................................13
4.2.2 Editing Commands.............................................................................................................14
= DM Enable Execution of Editing Commands ...........................................................14
= CD Delete Card..........................................................................................................14
= FM Format Card ........................................................................................................14
= LS Recorded Phrase Protect Mode...........................................................................14
> LW Recorded Phrase Protect Mode...........................................................................14
AR-200S RS-232C Reference -
i
= PC Copy Phrase.........................................................................................................15
= PD Delete Phrase ......................................................................................................15
= PI Seek and Set Playback Points at the Locations of Silent Portions...................15
4.2.3 Setting Commands .............................................................................................................15
= CV Card Name Settings............................................................................................15
< PU Pattern Phrase Settings......................................................................................15
> PS (Pattern phrase Set up for AR-200S) .................................................................16
> SS Song Phrase Settings ..........................................................................................16
< SU Phrase Settings ...................................................................................................17
> PN Phrase Name Settings ........................................................................................17
> PR Phrase Repeat Settings.......................................................................................17
> PO Control Out Settings ...........................................................................................17
> PP Playback Point Settings......................................................................................18
> LP Loop Play Settings ..............................................................................................18
> PY Delay Time Settings............................................................................................18
> VM Play Volume Settings..........................................................................................18
> FD Fade In and Fade Out Settings ..........................................................................19
> TT Time Stamp Settings ..........................................................................................19
= BR Communication Speed Settings.......................................................................... 19
= CE Program(Count) Playback Settings....................................................................20
= DC Display Contrast Settings...................................................................................20
= DP Direct Playback Settings ....................................................................................20
> DL Direct Playback Settings ....................................................................................20
< SM System Settings...................................................................................................21
> CI Control Input Mode Settings ..............................................................................21
> DN Dual Mono Mode Settings...................................................................................22
> LT Line Out(Thru) Settings .....................................................................................22
> EQ Equalizer Settings...............................................................................................22
> BO Busy Out Settings ...............................................................................................22
4.2.4 Request Commands............................................................................................................23
< 2Q Pattern Phrase Setting Contents Request.........................................................23
> 3Q Pattern Phrase Setting Contents Request.........................................................23
> GQ Song Phrase Setting Contents Request .............................................................23
= AC Activity Sensing (Verify AR-200S Unit Activity)...............................................23
= AQ Reset the Phrase Output Counter......................................................................23
= CQ Card Setting Contents Request..........................................................................23
= DQ Direct Playback Setting Contents Request........................................................24
= MQ Card Remaining Capacity Request .................................................................... 24
< PQ Phrase Setting Contents Request.......................................................................24
> QQ Phrase Setting Contents Request.......................................................................25
< SQ System Setting Contents Request......................................................................25
> YQ System Setting Contents Request......................................................................25
AR-200S RS-232C Reference -
ii
= TQ Time Stamp Request...........................................................................................26
= UQ Program (Count) Playback Setting Contents Request ......................................26
= VR Version Request ..................................................................................................26
4.2.5 Reply Commands................................................................................................................26
= ACK Response to Normal Reception of a Command ..................................................26
= ER Reply to the AR-200S When an Error Has Occurred ........................................26
= Xon (11H)/Xoff (13H) Allow or Disable Transmission. Used for Handshaking...........27
4.3 Commands Sent from the AR-200S to the External Device (Computer).................................. 27
4.4 Details of Commands Sent from the AR-200S to the External Device (Computer).................27
4.4.1 Setting Output Commands ................................................................................................ 27
= CS Card Setting Output ...........................................................................................27
< PU Pattern Phrase Setting Output ..........................................................................27
> PS Pattern Phrase Setting Output ..........................................................................28
> SS Song Phrase Setting Output...............................................................................28
< SU Phrase Setting Output ........................................................................................ 29
> RU Phrase Setting Output ........................................................................................30
= AC Active Sensing Reply........................................................................................... 31
= CE Program (Count) Playback Setting Output .......................................................31
= CR Card Remaining Capacity Output......................................................................31
= DP Direct Playback Setting Output .........................................................................31
< SM System Setting Output .......................................................................................32
> SY System Setting Output .......................................................................................33
= TI Time Stamp Settings ..........................................................................................33
= VR Version Output....................................................................................................34
4.4.2 Commands Transmitted from the AR-200 Automatically ..............................................34
= %% Card Operation Progress Status Output ...........................................................34
= AE Output the Total Number of Phrases Recorded on the Card ............................34
= CC Card Insertion Status Output ............................................................................34
= PE Output the Elapsed Time from the Start of the Phrase.................................... 34
> ST Output at Finish of Playback .............................................................................35
4.4.3 Reply Commands................................................................................................................35
= ACK Acknowledge Normal Status, Indicate Normal Reception of a Command .......35
= ER Replies When an Error Has Occurred................................................................35
= Xon (11H) / Xoff (13H) Allow or Disable Transmission. Used for Handshaking.........36
Section5 Appendix...................................................................................................................................37
5.1 AR-200S Commands List............................................................................................................37
5.1.1 AR-2000 Compatible Commands List ...............................................................................37
5.1.2 AR-3000/200S Commands (Commands Newly Added with the AR-3000/200S) List......39
5.2 Characters That Can Be Used in Phrase Names and Card Names..........................................40
5.3 Sample Algorithms......................................................................................................................41
5.3.1 Playing Back a Phrase .......................................................................................................41
5.3.2 Recording ( Nomal Recording ) .......................................................................................... 42
AR-200S RS-232C Reference -
iii
5.3.3 Recording ( Time-Stamped Recording).............................................................................. 43
5.3.4 Verifying the Parameters (Data Settings) of All Phrases Starting with the
Lowest-Numbered Phrase.................................................................................................44
5.3.5 Deleting a Phrase...............................................................................................................45
AR-200S RS-232C Reference -
iv
Section1 Introduction
This manual explains how to control the AR-200S using RS-232C. For details on the operation of the AR-200S itself, refer to the AR-200S owner's manual. This manual assumes that you have a basic understanding of computers. For explanations of computer terminology or operation, please refer to commercially available manuals.
The contents of this manual are subject to change without notice.

1.1 If You Have Been Using the AR-3000

The AR-200's command set, which employs RS-232C, is designed to be partly compatible with the AR-3000. Since the AR-200S and AR-3000 are not functionally identical in every respect, some functions cannot be used. For more information, check the included specifications.

1.2 If You Have Been Using the AR-2000

The AR-200S's command set, which employs RS-232C, is designed to be backwardly compatible with the AR-2000. This means it is possible for you to continue using the control system you have used with the AR-2000. However, since the AR-200S and AR-2000 are not functionally identical in every respect, some functions cannot be used. For more information, check the included specifications.

Section2 Setup

2.1 About the RS-232C Interface

RS-232C is a standardized type of serial interface. The connections which are used by the AR-200S are discussed below.

2.1.1 Connector and Cable

Connector specifications Cable specifications *2
*1 This is already connected in inside of the
*1 *1
AR-200S. (4 – 6, 7 - 8 )
*2 At least three line(RXD, TXD, GND) should be
connected as shown in a figure.
AR-200S RS-232C Reference -
1

2.2 Handshaking

If the AR-200S's processing speed is slower than the speed at which data is transmitted from the computer, measures must be taken to avoid data loss. Conversely, data loss will also occur if data is transmitted from the AR-200S faster than the computer can process it. For these reasons, the AR-200S uses “Xon/Xoff” handshaking. The external computer can control transmission from the AR-200S in the same way. The ASCII code signal name for Xon is DC1, which is 11H. The ASCII code signal name for Xoff is DC3, which is 13H.

2.3 Setup Procedure

Here is the procedure for setting up the external computer and the AR-200S.
1) Connections with the computer Use an RS-232C cable to connect the two devices. Refer to “2.4 Connections with the computer.”
2) Turn on the power for the AR-200S and the computer
3) Computer settings Set the communication parameters. Refer to “2.5 Computer settings.”
4) AR-200S settings Set the communication parameters. Refer to “2.6 AR-200S settings.”
5) Operate the AR-200S Transmit data between the external computer and the AR-200S.

2.4 Connections with the Computer

1) Turn off the power of the AR-200S and the computer.
2) Use the appropriate cable to connect the RS-232C -compatible connector of the computer to the RS-232C connector located on the rear panel of the AR-200S. Refer to “2.1.1 Connector and Cable” for the appropriate cable to use.

2.5 Computer Settings

1) Communication parameters for the computer
Communication method start - stop system (asynchronous) full duplex Baud rate 4800 / 9600 / 19200 / 38400 BPS (for compatibility with legacy models : AR-200S) Parity none Data length 8 bits Stop bit 1 bit Code set ASCII Xon Xoff on
If you are using MS-DOS, the above settings can be made using the “SPEED” and “SWITCH” commands. For details on these settings, refer to your MS-DOS owner's manual.
AR-200S RS-232C Reference -
2

2.6 AR-200S Settings

When using the AR-2000 via RS-232C, the baud rate must be specified.

2.6.1 Baud Rate

If the AR-200S's power is turned on when a card is not inserted, the baud rate will default to 9600 bps. If a card is then inserted, the settings will change to the settings which are contained in the card. However this will occur only for the first-inserted card, and subsequently inserted cards will be ignored.
AR-200S RS-232C Reference -
3

Section3 Overview of Commands

The AR-200S and the computer communicate using commands.

3.1 Command Structure

Commands consist of STX (02H) + two uppercase characters. However, the Type 0 commands listed later are exceptions to this.

3.1.1 Communication Protocol

Depending on the command, four types of communication protocol are used between the computer and the AR-200S. As also explained in chapter 4, the ACK referred to in this document is ASCII code 06H (ACK), and the ER command is a command that transmits/receives an error.
1) When telling the AR-200S to perform an operation or make a setting.
This is done using the 4.2.1 Control and 4.2.3 Setting commands explained in chapter 4. Commands use the following procedure.
a. stx + command COMPUTER AR-200S b. ack or stx ER command
a. The command is sent from the computer to the AR-200S. b. If the command is received correctly, the AR-200S will transmit an ACK command. If not, it
will transmit an ER command.
2) To verify the settings of the AR-200S
This is done using the 4.2.4 Request command explained in chapter 4. The command to check
the setting status of the AR-200S uses the following procedure.
a. stx + command COMPUTER AR-200S b. stx + command or stx ER command
c. ack or stx ER command
a. The command is sent from the computer to the AR-200S. b. If the command was received correctly, the AR-200S will transmit its settings as the Setting
output command. If the command was received incorrectly, the AR-200S will transmit an ER command.
If the output from the AR-200S is received correctly, send an ACK command. This ACK may
be omitted, and is not absolutely necessary. If not correctly, an ER command “ER:0;” can be sent to the AR-200S. The AR-200S will re-transmit the Setting output command that was output instep “b”. This command may also be omitted, and is not absolutely necessary.
You may instead re-do the sequence from step “a”.
AR-200S RS-232C Reference -
4
3) Commands originating automatically from the AR-200S
Some commands are transmitted automatically from the AR-200S. The two commands CC (card
insertion status output) and %% (completion status output when a card operation takes place) fall in this category, and use the following procedure.
a. stx + command COMPUTER AR-200S
a. The AR-200S will automatically transmit the command. There is no need to return an ACK, etc.
4) Commands accompanied by confirmation
The 4.2.2 Edit command explained in chapter 4 is of this type. To prevent accidental erasure of
data, edit commands are executed after entering Delete mode. Commands use the following procedure.
a. stx + DM command COMPUTER AR-200S b. ack or stx ER command
c. ack or stx ER command
d. stx + Edit command ( same as step “c” )
e. ack or stx ER command
a. Transmit the DM command. The AR-200S will enter Delete mode. Then PLAY/CLIP
indicator and REC indicator will flash alternately.
b. If the DM command is received correctly, an ACK will be returned. If there is a command
error, the ER command will be returned and the AR-200S will automatically exit Delete
mode. c. If no error has occurred, transmit the command you wish to execute. d. To confirm, the AR-200S will send back the command that it received in step “c”. e. If the command is correct, send an ACK. This will cause the command to be executed. Then,
after receiving the command, the AR-200S will automatically exit Delete mode. If the
command is an error, you can send an ER command “ER:1;”. The command will be canceled,
and the AR-200S will exit Delete mode.

3.1.2 Command Format

Commands (control signals) have several formats. Type 0: Those consisting only of a control code. ' ; ' etc. is not attached. These consist only of a control code. Example) ACK Type 1: Commands with no parameters These commands end in ' Example) stxST; Type 2: Commands with parameters. Command : parameter, parameter . . . ; Command and parameter are separated by a colon ' : ' Parameter and parameter are separated by a comma ' , ' A semicolon ' ; ' is placed at the end of the parameter.
; '
AR-200S RS-232C Reference -
5

3.1.3 About Input Parameters

1) Generally, parameters use decimal notation, and are variable length. Example) stxDC:10; stxDC:5; Example) stxMP:A1,30; ,stxMP:A20,255;
2) Characters in a card name etc. are enclosed in double quotation marks ( “ ). Example) stxCV:0,“ABCDEFGH”,0;
3) To specify the phrase, put an ‘A’ in front of the phrase number.
Example) stxPA:A1; ( plays back phrase 1)
* A01 , A001 or A0001 is the same as A1.

3.1.4 About Output Parameters

1) Generally, parameters use decimal notation, and are variable length. But phrase name and time are fixed length. Example) phrase name( A1 – A999 , B1 – B999 ) : A001 , A020 , A300 , _. Example) phrase name( A1000 , B1000 ) : A1000 , B1000 Example) Time : 00H00M06S14F7S / 05M40S / 00S04F / 30S0 _.

3.2 Precautions

1) While the computer and the AR-200S are communicating, please avoid the following actions, which could result in destruction of the data in the card.
- Inserting or removing the memory card.
- Moving the protect switch of the card.
- Disconnecting the RS-232C cable. ...etc.
AR-200S RS-232C Reference -
6

Section4 Details of each Command

4.1 Commands Transmitted from the External Device (Computer) to the AR-200S

The following 5 types of command are transmitted from the external device to the AR-200S. “External” in these explanations refers to the computer. “AR” refers to the AR-200S.
1) Control (execute) commands
These command signals cause the AR-200S to operate; e.g., playback or record. The player functions use mostly these commands.
2) Editing commands
To prevent accidental erasure of data, edit commands are executed after entering Delete mode. Commands are executed using the following procedure.
1. External to AR
The DM command is sent, and the AR-200S enters Delete mode.
2. AR to External
When the command is received correctly, an ACK is returned. If the command is not correct, an error code is returned, and Delete mode is automatically
exited.
* When no command is received for two minutes, the Delete mode is automatically exited.
3. External to AR If no error has occurred, transmit the command to be executed.
4. AR to External The command transmitted in step 3 will be re-transmitted for confirmation.
5. External to AR If the command is correct, transmit an ACK command. The command will be executed, and Delete mode will be exited automatically. If the
command is an error, transmit an ER command “ER:1;”. Delete mode will be exited automatically. Commands valid when in Delete mode
External to AR
CD: Delete Card CP: Copy Card FM: Format Card LS: Recorded Phrase Protect Mode
In Delete mode, when a command other than an Edit command is received by the AR-200S, it will automatically exit Delete mode, and execute that command. If the AR-200S receives an Edit command when not in Delete mode, it will transmit an ER command, and ignore the Edit command that was received.
3) Setting commands These commands are used to set AR-200S parameters from the external device.
LW: Recorded Phrase Protect Mode PC: Copy Phrase PD: Delete Phrase PI: Seek and Set Playback Points at the
Locations of Silent Portions
AR-200S RS-232C Reference -
7
4) Request commands This command causes the AR-200S to output the status of its current settings. When a Request
command is transmitted to the AR-200S, the AR-200S will transmit the requested contents as the Setting output command. In this case, an ACK will not be returned. However for the AC and AQ commands, an ACK will be output. If the command was not correct, an ER command will be returned.
5) Reply commands Reply commands are necessary for communication control, for example to notify that a
command was received correctly.

4.2 Details of Commands Sent from the External Device (Computer) to the AR-200S

Commands compatible with the AR-2000 are marked as shown below (relevant symbol appears before name). = Commands for the AR-2000/AR-3000/AR-200S (those common to both the AR-2000, AR-3000
and AR-200S)
> Commands for the AR-3000/AR-200S (commands newly added with the AR-3000 and AR-200S) < Commands for the AR-2000 (for the AR-2000; includes items that cannot be used with the
AR-3000/AR-200S)

4.2.1 Control Commands

Playback Commands
= PA Specifying the Playback Phrase
Function: Specifying the playback phrase
Syntax: stxPA: a, a, ....., a;
a Phrase number
Example) PA:A1,A3,B5; Specify A0001 and A0003 and B0005 as the playback phrases. The specified phrases are consecutively played back from the left.
Note: A maximum of 100 phrases can be specified in one line. Be sure that the phrase numbers are registered (i.e., for which data exists).
= PE Pause Playback / Restart Playback
Function: Pauses Playback / Restarts playback Syntax: stxPE;
Note: When this command is sent during phrase playback, the AR-200S stops playback
and enters the paused state. Sending the PE command again releases the pause, and playback resumes from where it was paused. When operation is paused with the PE command, the AR-200S outputs the elapsed time from the start of the phrase to the point where paused. (Refer to AE command 4 . 4 . 1 )
Caution: The command is not compatible with the Dual Mono Mode. Phrases other than audio phrases cannot be specified.
The AR-200S cannot respond to this command during crossfades, repeats, or intervals.
The command is not compatible with audio phrases recorded in Mode 2.
AR-200S will transmit an ER command.
AR-200S RS-232C Reference -
8
= PL Playback Start
Function: Starts Playback Syntax: stxPL;
ExamplestxPA:A0001 ,A0003,A0007,A0006 ,A0010;
When phrases are specified as above with the PA command, phrases A0001, A0003, A0007,
A0006, and A0010 are played back in sequence.
Note: Phrases specified with the PA command are played back in sequence.
If no playback phrase is specified with the PA command, phrase A0001 is assigned and played back.(* If no phrases are available, the ER command is output.)
* When Dual Mono Mode is on (for settings, refer to 4.2.3 SM Commands), phrases specified with the PA command are split into odd- and even-numbered phrases. The odd-numbered phrases are played back through the left channel and the even-numbered phrases are played back through the right channel.
(Compatible with mono phrases. Not compatible with stereo phrases. For more details, refer to the AR-200S Owner's Manual.) Interval playback does not go into effect, even if the playback mode is set to interval playback with the AR-200S.
= RL Playback from the Middle of a Phrase
Function: Playback from the Middle of a Phrase Syntax: stxRL: a, b;
a Locate Forward / Backward 0 Backward 1 Forward b Offset Time 0H0M0S0F – 11H59M59S**F
Example) stxRL:1,0H10M59S0F;
- After specifying a phrase: Playback begins 10 minutes 59 seconds from the
beginning of the phrase of the specified number.
- While playback is paused: Playback begins from the point that is 10 minutes 59
seconds after the point where the pause was initiated.
AR-200S RS-232C Reference -
9
Note: The number of digits for **F (frame) increases according to the value of MTC
type.
The range in which the offset time can be specified is valid only within a single
phrase.
An offset time that exceeds the recording time for the phrase cannot be
specified.
(The AR-200S outputs an ER command.) You can play back a phrase from a
point offset by a specified time before or after a paused point by sending this command while playback is paused (see the PE command).
* When “Return Specified” is issued with an offset time longer than elapsed time:
The phrase is played back from the beginning.
* When “Forward Specified” is issued with an offset time longer than the
remaining time: An ER command is output and playback is not carried out. (The paused state remains in effect, so specify a new offset time and send an RL command again.)
Caution: The command is not compatible with the Dual Mono Mode. Phrases other than audio phrases cannot be specified.
The command is not compatible with audio phrases recorded in Mode 2.
>PLL Start Left Channel Playback (Dual Mono Mode)
Function: Starts playback of the left channel Syntax: stxPLL;
Example) stxPA:A0001,A0003,A0007,A0006,A0010;
When Dual Mono Mode is on and the above phrases are specified with the PA command,
phrases A0001, A0003, and A0007 are played back in sequence through the left channel.
Note: Odd-numbered phrases specified with the PA command are played back in sequence
through the left channel. If no playback phrase is specified with the PA command, phrase A0001 is assigned and played back.(* If no phrases are available, the ER command is output.)
Compatible with mono phrases. Not compatible with stereo phrases. For more details, refer to the AR-200S Owner's Manual.
Caution: If the AR-200S is not set to Dual Mono Mode, the ER command is output.
Interval playback does not go into effect, even if the playback mode is set to interval playback with the AR-200S.
AR-200S RS-232C Reference -
10
Loading...
+ 35 hidden pages