Toshiba AS311 user manual Operation Procedure

Page 47

5. Operation Procedure

In this sample program, the following devices/registers are used.

R0100 AS311 status (ON when ready) - Refer to section 5.4 R0110 Internal flag to start transmitting

R0201 Transmitting normal complete (comes ON when transmitting is complete normally)

R0301 Transmitting error complete (comes ON when transmitting error has occurred)

X000F Write ready flag

X000E Transmit complete flag

X000D Transmit error flag

Y002F Transmit start flag

D0200 - D0263 Transmitting message is set here

D3010Transmitting error information is stored here

D4010 - D4011 Parameters for WRITE instruction

D4000 - D4001 Parameters for READ instruction

This sample program works as follows.

Main program

-Rung 1: Prepares a transmission message and sets it into D0200 and after (maximum 64 words in this sample). Then sets R0110 to ON.

-Rung 2: Calls Subroutine No. 1 when the AS311 is normal and R0110 is ON.

-Rung 3: When R0201 comes ON (normal transmitting), resets R0110 and R0201 to OFF.

-Rung 4: When R0301 comes ON (transmitting error has occurred), performs the error processing, then resets R0110 and R0301 to OFF.

Subroutine No. 1

-Rung 1: Indicates the entry of Subroutine No. 1.

-Rung 2: Reads XW000 and XW001 from the AS311 by direct I/O instruction.

-Rung 3: When X000F (Write ready flag) is ON, writes the message that is stored in D0200 to D0263 into the AS311’s buffer memory, 64 words starting with address 576, by WRITE instruction, and sets Y002F (Transmit start flag) to ON.

-Rung 4: When X000E (Transmit complete flag) comes ON, resets Y002F (Transmit start flag) to OFF, and sets R0201 to ON.

When X000D (Transmit error flag) comes ON, reads the error information from the AS311’s buffer memory, 1 word of address 17, by READ instruction, and stores it into D3010. Then resets Y002F (Transmit start flag) to OFF, and sets R0301 to ON.

-Rung 5: Writes YW002 and YW003 into the AS311 by direct I/O instruction.

-Rung 6: Indicates the return of Subroutine No. 1.

User’s Manual 45

Image 47
Contents AS311 Important Information Symbols Used In This Manual Safety PrecautionsInside This Manual About This ManualAbout This Manual Terminology Related ManualsContents Contents Ascii Interface Module AS311 Section AS311 Overview Introduction AS311 OverviewRead Write AS311 functionsAS311 External featuresNo.7 SW1  channel 1 transmission parameter setting switchesSW2  channel 2 transmission parameter setting switches Status LEDsRSW1/RSW2  Optional rotary switches RS-232C/RS-422 selection switches for channelChannel 1 and channel 2 serial ports Hardware reset switchAscii Interface Module AS311 Section Specifications Functional specifications SpecificationsGeneral specifications Transmission specifications Ascii Interface Module AS311 Section Cable Connections RS-232C connection Cable ConnectionsRS-422 connection Txda Rxda Txdb Rxdb Rtsa Ctsa Rtsb CtsbAscii Interface Module AS311 Section Register Configuration I/O allocation and I/O registers Register ConfigurationD C B a 9 8 7 6 5 4 3 2 1 No use Memory map AS311 buffer memoryRead instruction FUN237 Buffer memory accessWrite instruction FUN238 Parameter area RSW1/2 information Status and command 0Status 1 SW2 information SW1 informationCH1 receive error 16 CH2 receive error Command 1CH1 channel status 18 CH2 channel status CH1 transmit error 17 CH2 transmit errorCH1 trailing code 24 CH2 trailing code CH1 receive length 19 CH2 receive lengthCH1 time-out check 25 CH2 time-out check Receiving and transmitting data area Section Operation Procedure Transmission message format Operation ProcedureAS311 sets Receive complete to on Received message read sequence Flag control timing2 T3 sample program for message receiving Operation Procedure Operation Procedure T3 sets Transmit start to on Write sequence for message transmitting Flag control timing2 T3 sample program for message transmitting Operation Procedure Operation Procedure Checking the AS311 operation status Resetting the AS311 by software Setting the trailing code Setting the time-out check time Section RAS Information LED indication RAS InformationModule status Buffer memory informationSwitch setting status Error information for data receiving Error information for data transmitting Trouble shooting Ascii Interface Module AS311 Appendix Operand Specification of the Read instructionAppendix FunctionH0A Specification of the Write instruction RW010 XW020 D0100 Toshiba Corporation

AS311 specifications

The Toshiba AS311 is a well-rounded notebook designed to cater to the needs of students, professionals, and casual users alike. With a focus on affordability and reliability, this laptop strikes a balance between performance and efficiency, making it an appealing choice for those seeking a dependable computing solution.

One of the main features of the Toshiba AS311 is its lightweight design. Weighing approximately 2.5 kg, this laptop is easily portable, allowing users to carry it to classes, meetings, or coffee shops without hassle. The sleek profile is complemented by a durable chassis that can withstand the rigors of daily use.

At the heart of the AS311 is a powerful processor that ensures smooth performance across a variety of applications. Typically equipped with Intel's Pentium or Core series processors, the AS311 provides adequate computing power for tasks such as word processing, web browsing, and light multimedia consumption. Paired with sufficient RAM, users can run multiple applications simultaneously without noticeable lag.

The display of the Toshiba AS311 is another notable feature. With a 15.6-inch HD screen, users can enjoy clear visuals whether they are streaming videos or working on projects. The display's anti-glare technology reduces eye strain, making it suitable for long usage sessions, whether indoors or outdoors.

Connectivity is crucial in today's digital landscape, and the AS311 doesn't disappoint. It offers multiple USB ports, an HDMI output, and an SD card reader, allowing users to connect various peripherals and external devices seamlessly. Additionally, the inclusion of Wi-Fi and Bluetooth capabilities ensures that users can stay connected to the internet and other devices wirelessly.

Battery life is often a concern for laptop users, and the Toshiba AS311 addresses this with a reasonably long-lasting battery. With a lifespan that can extend throughout a typical work or school day, users can go about their activities without constantly searching for power outlets.

From its practical design to its robust performance capabilities, the Toshiba AS311 is a well-crafted notebook that meets the diverse needs of users. Whether for educational pursuits, professional tasks, or entertainment, the AS311 provides a solid computing experience, proving to be a reliable companion for those on the go. With its array of features and user-friendly design, it's a compelling option for individuals looking for an affordable yet capable laptop.