22.11.8.2 Send

Outputs the designated number of bytes to the COM port. The data is output regardless of the printer type specified.

IO_WRITE (Printer port, Output Data Storage Address, Number of Output Bytes)

Example expression 1:

   IO_WRITE ([p:PRN], [w:[#INTERNAL]LS1000], 10)

In the example above, 10 bytes of data stored in LS1000 and later areas are output from the COM port.

Example expression 2:

   IO_WRITE ([p:PRN], [w:[#INTERNAL]LS1000], [w:[#INTERNAL]LS0800])

In the example above, the number of bytes of data written from LS1000 to LS0800 is output to COM port.

Example expression 3:

   IO_WRITE ([p:PRN], [w:[#INTERNAL]LS1000], [t:0010])

In the example above, the data stored in LS1000 and later areas are output from the COM port. The number of bytes is that same as that written in the Temporary address [t:0010].

Data Storage Mode

When data is read from device addresses upon execution of the COM Port Operation function, you can specify the storage order of the readout data.

Setting the data storage mode in LS9130 can change the storage order.

The mode can be selected from four options: 0, 1, 2 or 3.

Mode 0

For example, when the COM Port Operation function is used to read the string "ABCDEFG" from a device address

[w:[#INTERNAL]LS9130] = 0
IO_WRITE ([p:PRN], [w:[#INTERNAL]LS1000], 7)

Mode 1

For example, when the COM Port Operation function is used to read the string "ABCDEFG" from a device address

[w:[#INTERNAL]LS9130] = 1
IO_WRITE ([p:PRN], [w:[#INTERNAL]LS1000], 7)

Mode 2

For example, when the COM Port Operation function is used to read the string "ABCDEFG" from a device address

[w:[#INTERNAL]LS9130] = 2
IO_WRITE ([p:PRN], [w:[#INTERNAL]LS1000], 7)

Mode 3

For example, when the COM Port Operation function is used to read the string "ABCDEFG" from a device address

[w:[#INTERNAL]LS9130] = 3
IO_WRITE ([p:PRN], [w:[#INTERNAL]LS1000], 7)