OPTICAL MARK READER SR-430 OPTICAL MARK READER SR-430 Operating manual Operating manual Head Office : 7-24-14, Oizumi-Gakuen-cho, Nerima-ku, Tokyo 178-8686, Japan Telephone : (03)3978-2335 Fax : (03)3978-5229 C43497510-00
Introduction Introduction Thank you very much for purchasing our product. Before using this product, be sure to thoroughly read this manual so that you can use it properly. Notice Microsoft Visual Basic is a registered trademark of Microsoft Corporation. This product must not be reproduced or modified without permission from SEKONIC.
6.
Warranty Warranty This product will be warranted without any charge for one year after delivery. In case of a failure occurring during this period, we repair it for free if it is judged to be related to our responsibility. In this case, we temporarily keep the failed product to repair it. For details, contact the shop at which you have purchased it.
Safety Precautions Safety Precautions This "Safety Precautions" page lists various symbols for ensuring safety operation of this product so as to prevent users, other people or properties from being damaged. Thoroughly read these precautions and understand the meanings of the symbols before proceeding to the main text of this manual. Warning Improper operation by neglecting this instruction may result in death or serious injury.
Warning Warning ● A fire or an electric shock may result if this product continues to be used with strange smell or sound. In this case, immediately turn the power switch off and then remove the power code from the outlet. After making sure that smoke generation has stopped, ask the sales shop for repair. Never attempt to repair by yourself since it may cause serious danger. ● Do not modify or disassemble this device. Otherwise, it may cause a fire or an electric shock.
Caution Caution ● Be sure to ground the main unit with a ground cable. Otherwise, an electric shock may occur. ● When connecting or disconnecting the ground cable, be sure to remove the power code from the outlet. Otherwise, an electric shock may occur. ● Do not place the device in an unstable location. Otherwise, it may fall, resulting in an injury. ● When opening or closing the upper part of the main unit, do not place your hand on the paper feeding surface.
Table of Contents Table of Contents 1. Precautions on Usage ......................................................................................................... 1 2. Names of Each Part ........................................................................................................... 2 3. Specifications ..................................................................................................................... 5 4. Installing the USB Driver ............................................
Table of Contents 12. External Views ................................................................................................................. 55 13. Appendix ......................................................................................................................... 56 13-A Reference for card creation .................................................................................. 56 13-B Code Tables ...................................................................................
1.Precautions on Usage 1. Precautions on Usage Handle the device with the following in mind so as to enable the functions of it to be fully utilized. (1) Before usage, make sure that the power connector is firmly connected to an outlet. Avoid connecting or disconnecting the connector during operation or while the power switch is turned on. (It may result in a failure.) (2) Since the card reading part is equipped with an optical lens, never insert a screwdriver or the like.
2.Names of Each Part 2.
2.
2.
3.Specifications 3. Specifications 1. Available cards Card size: Standard-sized card, postcard-sized card, long-sized card Paper type: OCR paper. Paper ream weight: (70)* 90kg to 135kg (basic weight: (83.8g/m2) 104.7g/m2 to 157.0g/m2) (thickness: (0.11mm) 0.13mm to 0.19mm) The 70kg paper is available to standard size only. 2. Mark line number Standard-sized card: Data = 12 lines, timing = 1 line Postcard-sized card: Data = 15 lines, timing = 1 line 3. Mark column 140 columns max.
4.Installing the USB Driver 4. Installing the USB Driver The USB driver must be installed to use this product over a USB interface connection. If using this product over a RS-232C connection, the driver does not need to be installed, and the procedures in this chapter are not necessary. 4-A Before Installation To use a USB interface connection, load the supplied CD-ROM, and install the driver by following the installation procedure in this chapter.
4.Installing the USB Driver 4-B Installation Procedure (*The screens in the explanations below use Windows XP.) (1) Check that the SR-430 is not connected. (2) Start Windows, load the "driver CD", and run the installer program "sr430usbInstaller.exe" on the CD. Double click (3) Click the "Install" button. (4) Click "Continue Anyway". After installation is completed, the program will ask you to restart the computer for certain environments. Click "Yes" to restart the computer.
4.Installing the USB Driver (5) After the computer is restarted, turn on the power for the SR-430, and connect it to the computer's USB port. 1) Turn on the power 2) Connect to the PC using a USB cable (6) The Found New Hardware Wizard is started. In response to "Can Windows connect to Windows Update to search for software", select "No, not this time". (7) In response to "What do you want the wizard to do", select "Install from a list or specific location (Advanced)".
4.Installing the USB Driver (8) Select "Search for the best driver in these locations", insert a check mark for "Include this location in the search", and click the Browse button and select the "C:\Program Files\SEKONIC \SR-430" folder. 1) Select 2) Add check mark 3) Select the folder (9) Click "Continue Anyway". (10) Click "Finish" to complete the installation.
4.Installing the USB Driver 4-C Checking the Assigned Port The COM port must be designated when using this software. After installing the USB driver, follow the procedure below to check the port number assigned when using the USB interface. (1) Right-click My Computer on the Desktop to open a pop-up menu, and click Properties. (2) Select the "Hardware" tab, and click the Device Manager. 1) Select 2) Click (3) Click Ports, and check the assigned port in parentheses for the "SR-430" entry.
4.Installing the USB Driver 4-D Troubleshooting for Communication Errors -1 Changing the Assigned Port The assigned port can be changed if the port number assigned to the SR-430 cannot be recognized by the software or when you want to use a specific port. The procedure for changing the port is described below. (1) Right-click the "SR-430" entry from the Device Manager screen (see section 4-C), and then click Properties from the pop-up menu.
4.Installing the USB Driver 4-E Uninstall Procedure From the "Control Panel", go to "Add or Remove Programs", click the Change/Remove button, and uninstall by following the instructions.
5.Operation 5. Operation 5-A Preparation Install the device and open the stacker. Set the card stopper at an appropriate position for the card size to be used and raise the side guard at the specified position. (Make sure that the card stopper has not been set inside out.) During this operation, be careful not to allow bright light to directly enter the card ejector or hopper. Open the stacker. A Raise the side guard. Set the card stopper like this.
5.Operation 5-B Functions and Operating Method of Operation Panel The operation panel is equipped with the following two switches and four LEDs (lamps): (1) Functions of switches FEED : Pressing this switch feeds one card. CLEAR : Clears an error, if any. The hardware or cover open error, however, cannot be cleared. (2) Meanings of LED display TEST (yellow) : Comes on in the test mode. ERROR (red) : Comes on when an error occurs. READY (green) : Comes on when communication is enabled.
5.Operation 5-C Setting Cards (1) Pressing the [PUSH] button on the left of the hopper generates a "clicking" sound to lock the hopper at the card setting position. Pressing the [PUSH] button again unlocks the hopper to raise it. Do not unlock it by pressing the card. (2) Set cards while the hopper is lowered at the setting position. Set them with the marked surfaces facing upward and the timing mark sides facing left. At this time, well-align the cards.
5.Operation Notes 1. Carefully handle cards so that they will not be bent or damaged. Otherwise, a paper feeding or reading error may occur. 2. When adding cards, lower the hopper and be sure to reset cards. Otherwise, a paper feeding error may occur. (6) Setting double-feeding detection function The device is equipped with a function to issue a double-feeding (DF) error.
5.Operation (7) Handling cards 1) Do not use any card in one of the following states: Soiled or damaged card, card to which dust or a foreign matter adheres, curled card or folded card (folded in two, four, etc.) 2) Storage of cards Avoid storing cards in a place subject to sudden environmental change. Pay sufficient attention to moisture and keep them in a cabinet or the like. Do not leave them in a dusty place like near a window.
5.Operation OK NG Clearance No clearance, but cards are not aligned.
5.Operation 5-D Power Connection and Operation Test (1) Connect the power code after turning the power switch off. (2) Turning the power switch on turns the "POWER" LED (orange) on to sound a buzzer. This turns the device in the ready status for commands from the host computer. If the "ERROR" LED (red) comes on or a buzzer continuously sounds, turn the power switch off and refer to "5-F Troubleshooting". (3) Pressing the "Feed" switch once feeds one card. Keep pressing it continuously feeds cards.
5.Operation 5-F Troubleshooting (1) Error display Internal error Hardware error (70H to 76H) Card jamming Card jam (31H or 32H) - Card slips to prevent feeding. - Card is attempted to be fed Card feeding error (33H) with the hopper being lowered. Action Turn the power off once and on again. If the device is not restored, contact the sales shop. Remove cards by referring to 5-F-(2). More than one card are fed at a DF error (36H) time. Check the card conditions. Timing mark read fails.
5.Operation (2) Action when a card jam or feeding error occurs Follow the procedure below when a card jam or feeding error occurs. Procedure 1) Lower the hopper to open the top cover. 2) Manually remove the jammed card(s). 3) After removing, make sure that no torn piece of paper is left. 4) Slowly lower the top cover toward you until it is locked. (Make sure it is locked, otherwise, a feeding error may occur.) This turns the "ERROR" LED (red) off.
6.Connection to Computer 6. Connection to Computer SR-430 is available to connect either RS-232C or USB to the Computer. The Computer is recognized USB interface, In case of both of cable connected to Computer. Connection status Only USB is connected. USB RS-232C Available N/A N/A Available Available N/A Only RS-232C is connected. USB & RS-232C are connected. Connect the device to a computer by referring to the following procedure.
6.Connection to Computer (3) Setting data format Set the same data format to this device and the computer. The DIP switches are set as shown in the table below by default. Before changing the settings of the DIP switches, be sure to turn the power of the device off. When setting the data format of the computer, refer to its operation manual. OFF ON 1 2 3 4 5 6 #1 DIP switch function: Set the device as follows: (* refers to the default settings) DIP SW No.
6.Connection to Computer (4) Communication control method This device has the following two unreceivable states. In these states, set the communication timing by the host computer. 1. Due to half-duplex communication, data reception is disabled while the device is sending data. 2. Data reception is disabled while the device is executing a command or the internal communication buffer is full. The device notifies this state using an RS signal.
7. How to Enter Mark 7. How to Enter Mark (1) Dimensions of mark : Width = 3.5 to 5.0mm Thickness = 0.4mm or moe (2) Writing implements : Pencil of HB or softer, OCR marker, mechanical pencil (infrared visible light specifications: The above + ball-point pen) (3) Density : PCS = 0.7 min. (*1) (4) Typical entries OK NG (○) (×) Note: When using a mechanical pencil, be sure to enter a mark with enough density.
8.Adjusting Reading Sensitivity 8. Adjusting Reading Sensitivity Although the mark reading sensitivity of this device is set at level 4 by default, it can be changed so as not to read stains as marks when particularly stained cards are read. (1) Open the top cover of the device to turn SW2. In SR-430 (SR-410 compatible) mode Turn SW2 to level 1 to maximize the reading sensitivity. Turn SW2 to level 0 to minimize the reading sensitivity.
9.Control Commands 9. Control Commands This device operates according to command signals sent from the host computer. Control commands and data are all sent and received in ASCII codes. 9-A Initialize Commands The following commands are used to change the status of the device immediately after the power is turned on: -1 Kinds of Initialize Commands Command -2 Format Explanation DL DLE DL∼ Sets the reading density. DD DC3 DD∼ Sets the difference in the reading density.
9.Control Commands -3 DC3 DD Command (Reading Density Difference Setting Command) [Explanation] This command is for setting the density difference allowable from the darkest mark in the CA and EA modes. After setting the difference, marks thinner than the setting are cancelled and those in the allowable range are all output. The density difference is set at "01" by default. In this case, mark data of the darkest density are output. This setting is not stored after the power is turned off.
9.Control Commands -4 DLE T Command (Timing Format Setting Command) [Explanation] This command is for setting mark read timing (timing mark type). If the DIP switch setting has not been changed, the setting by this command is not required when the power is turned on. When the T command is executed, the set value remains unchanged unless the device is reset or the power is turned off. When using the timing control type, be sure to set the read timing by this command.
9.Control Commands Descriptions of each read timing format ("R" refers to the read area) [Descriptions of each control type] R d 1. Timing control type R=dxm m = Specified multiple (fixed at 3) d = Timing mark width R 2. Direct-under type 3. Mark-to-mark type 4. Mark-to-mark type (front end or blank space not to be read) (front end or blank space to be read) -30- R 1st column 1st column R R Approx. 2.
9.Control Commands -4-2 In SR-307 compatible mode [Format] Host Computer This device DLE T CR (10H) (55H) (0DH) N CR Receive (0DH) * N is the 1-byte ASCII numerical code indicating the reading method.
9.Control Commands Descriptions of each read timing format ("R" refers to the read area) [Descriptions of each control type] R d 1. Timing control type R=dxm m = Specified multiple (fixed at 3) d = Timing mark width R 2. Direct-under type 3. Mark-to-mark type (front end or blank space to be read) R 1st column R Approx. 2.
9.Control Commands -5 DC3 Command (Read Line Specify Command) [Explanation] This command is for specifying the number of lines of data to be read. When the DC3 command is executed, the set value remains until the device is reset or the power is turned off. When the power is turned on or the device is reset, the number of lines will become the value set to the DIP switch, and when the DC3 command is executed, the priority will be given to the software.
9.Control Commands -7 DC4 Command (STX, ETX Setting Command) [Explanation] This command is for determining the ETX code following data output from the device and the recognizing method of received data. When the DC4 command is executed, the set value remains until the device is reset or the power is turned off. [Format] DC4 S1 S2 (14H) S3 CR (0DH) The values of S1 determine the statuses of the ETX code, etc. S1 = 0 : Initializes the device. (This value erases S1 = 7 data stored in the memory.
9.
9.Control Commands Character codes settable when S1 = 5 Upper 4 bit Lower 4 bit 0 2 3 0 1 4 5 @ SH 2 ! D2 3 EX 4 ET 5 ” $ NK % 6 AK SN & 7 BL EB ’ 8 BS 9 HT EM A LF SB : B HM EC ; [ C CL → < ¥ = ] > ^ D -8 1 ( ) , ← E SO ↑ F SI ↓ . _ CAN Command (Reset Command) [Explanation] This command is used as the reset command. (This command initializes the device.
9.Control Commands 9-B Card Feed Commands -1 ? Command (Card Feed Command) [Explanation] When this command is transmitted, the device sends one card only and reads it. After reading the card, the device outputs an error status code and waits for a command from the host computer. Separators like STX and ETX can be added using the DC4 command.
9.Control Commands -2-2 SR-307 compatible mode Code HEX 0 30H Cards have been sent normally. Explanation 1 31H Not used. 2 32H Jam error (cards have not been sent normally.) 3 33H 4 34H 5 35H Not used. Timing mark error (only 3 or less timing marks detected.) Card empty (There is no card in the card hopper.) A jam error (32H) is assumed for the DF error.
10.Data Transfer Mode 10. Data Transfer Mode 10-A Data Transfer Commands The following commands are used to transfer data read from one card to the host computer: -1 Types of data transfer commands Mode Explanation A Outputs the number at a mark when the mark is detected on the 9 to 0 lines in one column, or outputs a space when no mark or more than 2 marks are detected. The data is output as an ASCII code. The X and Y lines are neglected. B Outputs data in one specified column in the A mode format.
10.Data Transfer Mode 10-B A Mode(1-byte Fixed Output Command) [Explanation] This command is for outputting the number at a mark when a mark is detected on the 9 to 0 lines in one column or outputs a space when no mark or more than two marks are detected. This device neglects marks and prints on the X and Y lines and outputs data as a 1-byte fixed length ASCII code for one column. Separators like STX and ETX can be added using the DC4 command.
10.Data Transfer Mode 10-C C Mode (Fixed Length Output Command) [Explanation] One column is divided in units of four lines. Existence of a mark on each line is indicated by "1" and non-existence is indicated by "0." The 4-bit unit is regarded as a 4-digit hexadecimal number, and the ASCII codes from 0 to F are output. Data are of fixed length of 3 bytes a column. (A 15-line postcard-sized card is a fixed length of 4 bytes a column. The 16th line, however, is always "0" as a dummy line.
10.Data Transfer Mode 10-D CA Mode (Fixed Length Output Command for Automatic Density Distinction) [Explanation] The data format is the same as the one in the C mode. This command is for automatically distinguishing mark density for one column. When there are several marks, it cancels light-colored marks of larger density difference than the set difference and outputs marks of smaller density difference than the set difference.
10.Data Transfer Mode 10-E E Mode (Variable Length Output Command) [Explanation] This command is for returning ASCII codes corresponding to marked line positions. Data are of a variable length corresponding to the number of marks. CR codes are added at break points between columns. When no mark is detected in a column, "a space + CR" is output. The correspondence between line positions and ASCII codes can be set in two ways as shown in the tables below by turning DIP SW6 on and off.
10.Data Transfer Mode 10-F EA Mode (Variable Length Output Command for Automatic Density Distinction) [Explanation] The data format is the same as the one in the E mode. This command is for automatically distinguishing mark density for one column. When there are several marks, it cancels light-colored marks of larger density difference than the set difference and outputs marks of smaller density difference than the set difference.
10.Data Transfer Mode 10-G ED Mode (Variable Length Output Command with Density Data) [Explanation] The data format is the same as the one in the E mode. One byte indicating density data is added after each mark data to output it in two byte units. Separators like STX and ETX can be added using the DC4 command.
10.Data Transfer Mode 10-H ES Mode (Variable Length Output Command by Density and Mark Data) [Explanation] The data format is the same as the one in the E mode. This command is for outputting mark and density data separately. The density data format is also the same as the one in the ED mode. Separators like STX and ETX can be added using the DC4 command.
10.Data Transfer Mode 10-I G Mode (EBCDIC Code Convert and Output Command) [Explanation] This command is for reading EBCDIC-based punched hole codes of one column and converting the codes into 1-byte ASCII codes to output them. This device outputs a space when a mark position does not agree with the EBCDIC code or when no mark is detected. Separators like STX and ETX can be added using the DC4 command.
10.Data Transfer Mode 10-J B Mode [Explanation] This command is for outputting data in one specified column in the A mode format after indicating a certain column. [Format] DLE B CR NI N2 (10H) (42H) (0DH) CR (0DH) N1N2 .... Specifies a certain column. 10-K D Mode [Explanation] This command is for outputting data in one specified column in the C mode format after indicating a certain column. [Format] DLE D (10H) (44H) CR NI N2 (0DH) CR (0DH) N1N2 .... Specifies a certain column.
10.Data Transfer Mode 10-M Other Commands -1 ENQ Command (Error Status Output Command) [Explanation] This command is for outputting the status after card feeding. The data are of 1-byte fixed length ASCII codes. Separators like STX and ETX can be added using the DC4 command. [Format] Host Computer This device ENQ CR Receive (05H) (0DH) Receive Data output # Error status For error statuses, see 8-B-2.
10.Data Transfer Mode -2 Timing Mark Count Check Commands ENQ T Command (Read Area Count Output Command) [Explanation] This command is for returning the number of read timing marks. Whether a certain record has a different timing mark count or not can be checked by checking the number of timing marks after the card feed command (? command) is issued. The data are of 3-byte fixed length ASCII codes. Separators like STX and ETX can be added using the DC4 command.
10.Data Transfer Mode -3 Sensor Status Check Commands ENQ S Command (Sensor Status Inquiry Command) [Explanation] This command is for returning the present status of the card sensor. (The existence of a card at each sensor position can be detected using this command.) The data is of a form of 1-byte ASCII numeric code + CR. "1" is returned when a card is detected or "0" when no card is detected.
10.Data Transfer Mode 1 Roles of sensors Sensor S1 : Located at the card hopper and detects that cards have been set. Sensor S2 : Located at the card feeding port and detects that card feeding has started. Sensor S3 : Located at the reader and reads data. Sensor S4 : Located at the card ejector and detects that cards have been ejected. DF sensor : Located between S1 and S2 and detects double-feeding. Cover open : Detects whether the top cover is open or not.
11. Cleaning and Time of change of parts 11. Cleaning and Time of change of parts 11-A Cleaning Clean the rollers, reading lens and sensors since various malfunctions are caused if they are stained. (1) Cleaning of rollers After feeding 5,000 sheets or paper or a large amount of cards or using carbon paper, wipe the rollers by softly pressing clean cloth slightly wetted with disinfectant alcohol (ethanol) to them. If the rollers are stained, the stains may rub off to cards or malfunction may occur.
11. Cleaning and Time of change of parts (4) Cleaning procedure 1) Turn the power off and remove the power code from the outlet. 2) Lower the hopper and open the top cover. Opening method (1) Raise the lock lever toward you to unlock the cover. (2) Pressing up the top cover away from you automatically holds the cover. 3) Clean the internal parts. 4) Close the top cover. Closing method Slowly lower the cover toward you until it is locked.
12.External Views 12.
13.Appendix 13. Appendix 13-A Reference for card creation (1) Overall dimensions of card Width Length Standard-sized card 82.55mm 187.32mm Postcard-sized card 105mm 148mm 82.55mm 304.8mm 82.55∼110.0mm 150∼304.8mm Long-sized card Card of other size Width For details of dimensions of cards, refer to the reference drawing in 12-A-(6).
13.Appendix (3) Printing of timing mark Direct-under type Timing mark width (W) Standard-sized card Card of other size 1.0 ± 0.05mm 1.0 ~ 10mm Timing mark length (L) Control type Mark-to-mark type 0.89 ± 0.05mm 1.0 ± 0.05mm 3.0 ± 0.1mm Timing mark pitch (P) 2.21mm 2.5mm min. 4.23mm min. 2.5mm min. Blank between timing marks (D) 1.5mm 1.5mm min. Timing mark width × 2+1.5mm min. 1.5 ~ 30.0mm Number of timing marks Four points min.
13.Appendix (6) Reference Drawings (1) Timing mark direct-under type (standard-sized card) A 6.35 6.35 2.21 2.21 5.0 min. 3±0.1 6.35×11 Tolerance not accumulated. 187.32 0.1 0.8 max. 4.0 0.1 A Timing mark Mark entry column 82.55 General tolerance±0.20 Allowable range of overall dimensions 187.20 187.45 -58- 82.73 Unit: mm 82.47 9.0 min. 1.0±0.05 0.
13.Appendix (2) Timing mark direct-under type A 6.35 6.35×(Line−1) Tolerance not accumulated. 0.2 A 4.0 min. 9.0 min. 3±0.1 3.5∼4.3 Card length 2.5 min. 0.1 0.1 A 0.8∼1.5 1.0±0.05 Standard 2.5 min. 5.0 min. 6.35 0.1 Mark entry column Timing mark Card width General tolerance±0.20 0.
13.Appendix (3) Timing mark control type A 6.35 6.35×(Line−1) Tolerance not accumulated. 0.2 A 4.0 min. 0.89±0.05 0.1 Card length 4.23 min. 4.23 min. 1.33 9.0 min. 6.35 0.1 A 9.0 min. 3.5∼4.3 0.8∼1.5 3±0.1 Mark entry column Timing mark Card width 0.2 A General tolerance±0.
13.Appendix (4) Timing mark-to-mark type A 6.35 6.35×(Line−1) Tolerance not accumulated. 0.2 A 4.0 min. Card length 0.1 0.1 A 3±0.1 3.5∼4.3 0.8∼1.5 1.0±0.05 2.5 min. 2.5 min. 9.0 min. 6.35 9.0 min. Mark entry column Timing mark Card width 0.2 A General tolerance±0.
13.Appendix 13-B Code Tables (1) ASCII code Upper bit Lower bit 0 000 1 001 2 010 3 011 4 100 5 101 6 110 7 111 0 1 2 3 4 5 0000 0001 0010 0011 0100 0101 NUL SOH STX ETX EOT ENQ DLE DC1 DC2 DC3 DC4 NAK SP ! ” # $ % 0 1 2 3 4 5 @ A B C D E P Q R S T U a b c d e p q r s t u 6 7 8 9 A 0110 0111 1000 1001 1010 ACK BEL BS HT LF SYN ETB CAN EM SUB & ’ ( ) * 6 7 8 9 : F G H I J V W X Y Z f g h i j v w x y z B C D E F 1011 1100 1101 1110 1111 VT FF CR SO SI ESC FS GS RS US + , − .
13.Appendix (3) EBCDIC punch code/ASCII code correspondence table Character Punched hole position ASCII code Character Punched hole position ASCII code Space None 20H + 8,6,Y 2BH & − ^ Y X 26H 2DH ; > 8,6,X 8,6,0 3BH 3EH / 0 X,Y 1,0 0 5EH 2FH 30H ” ? + 8,7 8,7,0 3,0,Y 22H 3FH 2BH 1 2 3 1 2 3 31H 32H 33H A B C 1,Y 2,Y 3,Y 41H 42H 43H 4 5 6 4 5 6 34H 35H 36H D E F 4,Y 5,Y 6,Y 44H 45H 46H 7 8 9 7 8 9 37H 38H 39H G H I 7,Y 8,Y 9,Y 47H 48H 49H & : $ ! # .
13.Appendix 13-C Typical sample program Sample program using Microsoft Visual Basic (Sample program is contained in the accessony CD-ROM) This sample program is designed to open and close a communication line, transmit data and control how to receive data of a fixed or variable length. Refer to this program for programming. Before executing a program, attach "Command Button", "Text Box" and "MSComm" to your form. Note: Please use "MScomm" compornent which upon "Microsoft Visual Basic 6.0".
13.Appendix ’ >>>>> Check device communication <<<<< If MSComm1.DSRHolding = False Then ’ Check communication. MsgBox "The device is not turned on"+ Chr(&HD) + _ "or no communication cable is connected. !!", 16, "SR-430 Sample Program-1" Screen.MousePointer = 0 Exit Sub End If If MSComm1.CTSHolding = False Then ’ Check device communication state. MsgBox "The device is not in the receivable state. !!", 16, "SR-430 Sample Program-1" Screen.MousePointer = 0 Exit Sub End If ’ >>>>> Initialize <<<<< MSComm1.
13.Appendix ’ >>>>> Read timing mark count <<<<< MSComm1.Output = Chr(&H5) + "T" + Chr(&HD) Do DoEvents Loop Until MSComm1.InBufferCount = 3 TMCount = MSComm1.Input ’ Send timing mark count read command. ’ Wait until timing mark count is received. ’ Receive timing mark count. Text1.Text = "Timing mark count : " + TMCount + Chr(&HD) + Chr(&HA) ’ Display timing mark count. ’ >>>>> Read C mode (read fixed length data) <<<<< MSComm1.
13.