Toshiba AS311 user manual Operation Procedure

Page 43

5. Operation Procedure

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

R0100 AS311 status (ON when ready) - Refer to section 5.4

R0200 Receiving normal complete (comes ON when receiving is complete normally) R0300 Receiving error complete (comes ON when receiving error has occurred)

X0006 Receive complete flag

X0007 Read ready flag

X0005 Receive error flag

Y0027 Read start flag

D0000 - D0063 Received message is stored here

D3000Receiving error information is stored here

D4000 - D4001 Parameters for READ instruction

This sample program works as follows.

Main program

-Rung 1: Calls Subroutine No. 0 when the AS311 is normal and both R0200 and R0300 are OFF.

-Rung 2: When R0200 comes ON (normal receiving), performs the necessary operation for the received message, then resets R0200 to OFF.

-Rung 3: When R0300 comes ON (receiving error has occurred), performs the error processing, then resets R0300 to OFF.

Subroutine No. 0

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

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

-Rung 3: Sets Y0027 (Read start flag) to ON if X0006 (Receive complete flag) is ON.

-Rung 4: When X0007 (Read ready flag) comes ON, reads the received message from the AS311’s buffer memory, 64 words starting with address 128, by READ instruction, and stores it into D0000 and after. Then resets Y0027 (Read start flag) to OFF, and sets R0200 to ON.

When X0005 (Receive error flag) comes ON, reads the error information from the AS311’s buffer memory, 1 word of address 16, by READ instruction, and stores it into D3000. Then resets Y0027 (Read start flag) to OFF, and sets R0300 to ON.

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

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

User’s Manual 41

Image 43
Contents AS311 Important Information Symbols Used In This Manual Safety PrecautionsAbout This Manual About This ManualInside 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 General specifications SpecificationsFunctional 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 Status 1 Status and command 0RSW1/2 information 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.