22.5 Communicating with Unsupported Peripheral Devices

Action

Create an extended script that is triggered on touching the print button, and outputs data read from a bar code to a printer connected to the display unit.

Commands Used

When the "if" condition enclosed in brackets "( )" is true, the expression following the "if ( )" statement is run.
22.11.11 Conditional Expressions

Shows the quantity of data (number of bytes) received at that time. The received data size is read-only.
22.11.3 SIO Port Operation

True if N1 is equal to N2 (N1 == N2).
22.11.12 Comparison

A fixed string is stored in the data buffer.
22.11.9 Text Operation

Receives data of the size indicated in Received Data Size (bytes) from the Extended SIO and stores it in the data buffer.
22.11.3 SIO Port Operation

Each byte of string data stored in the offset of the data buffer is copied to the LS area according to the number of strings.
22.11.9 Text Operation

This control variable is used to clear the Send buffer, Receive buffer, and error status.
22.11.11 Conditional Expressions

A character string or character code is concatenated with the text buffer.
22.11.9 Text Operation

Obtains the length of the stored string.
22.11.9 Text Operation

Sends the data in the data buffer with Extended SIO according to the size of Number of Send Bytes.
22.11.3 SIO Port Operation

Assign the value on the right hand side to the left hand side.
22.11.13 Operator

Adds a constant to a Word device's data.
22.11.13 Operator

This function is used to convert an integer to a decimal string.
22.11.9 Text Operation

The data of the string stored in the LS area is copied to the data buffer according to the number of strings in a byte-by-byte transfer.
22.11.9 Text Operation

22.5.1 Procedure - Communicating with Unsupported Peripheral Devices

22.5.2 Structure of Extended Scripts

22.5.3 Procedure for Creating Scripts