22.5
Communicating with Unsupported Peripheral Devices
Action
Create an extended script to
output data read from a barcode connected to the USB to a serial
printer connected to COM1.
Commands Used
When the "if" condition, enclosed in brackets
"( )", is true, the expression following the "if ( )" statement is
run.
22.11.10 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
N1 == N2 True if N1 is equal to N2.
22.11.11 Comparison
A fixed string is stored in the data
buffer.
22.11.8 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.8 Text Operation
This control variable is used to clear the
Send buffer, Receive buffer, and error status.
22.11.10 Conditional Expressions
A character string or character code is
concatenated with the text buffer.
22.11.8 Text Operation
Obtains the length of the stored string.
22.11.8 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.12 Operator
Adds a constant to a Word device's data.
22.11.12 Operator
This function is used to convert an integer
to a decimal string.
22.11.8 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.8 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
|