16.2.2 Procedure - Connecting a Two-dimensional Code Reader

Configure settings to store the data from a two-dimensional code reader in the device address of Device/PLC by using an internal device of the display unit.

  1. From the [Project] menu, select [System Settings], and click [Input Equipment] to open Input Equipment Settings dialog box.

  2. From the [Type] drop-down list, select [Two-Dimensional Code Reader].

  3. Select the port to connect from [USB/SIO(RS232C)], [USB], or a serial port, such as [COM1].

    • If the port is also used for other devices/PLCs, displays to the right of the [Port] as above.

    • When using one of the following models, you cannot select [USB/SIO (RS232C)].

    • IPC Series

    • SP5000 Series Open Box

    • LT4000 Series

    • When using one of the following models, you cannot select [USB].

    • IPC Series

    • SP5000 Series Open Box

  4. Set the [Read Mode].

  5. In [Communication Settings], set [Speed], [Data Length], [Parity], [Stop Bit], [Flow Control], and [5V Power Supply].

  6. For [Save Data in], select [Internal Device].

  7. From the [Internal Device Storage Start Address], set the start address of the data storage internal device.

  8. Click [Extended] to configure the [Set Up Receive Completion Bit], [Data Size] and [Initialization Settings]. For [Specify size], set the size of the data to read in bytes.

    • If [Set Up Receive Completion Bit] is not set, when data is read continuously the data gets overwritten.

    • If [Set Up Receive Completion Bit] is set, turn OFF the receive completion bit when input is complete. The display unit will not read code data without turning the read completion bit OFF.

  9. From the [Common Settings (R)] menu, select [Global D-Script] and click [Create].

  10. For the [Trigger] select [When Bit turns ON], and specify the bit address that was set in [Set Up Receive Completion Bit] in step 8 as [Bit Address].

  11. Click the [Function] tab, and from the [Built-in Function (Instruction)] select [Memory Operation].

  12. Double-click [Copy Memory], and in the dialog box that follows, define the parameters for the destination address (device address of Device/PLC), source address (internal address), and number of words.

  13. Click [OK]. The program is described in the [Script Expression Area].

  14. Also, from the [Built-in Function(Instruction)] pull-down menu, select [Bit Operation].

  15. Double-click [Clear Bit], and specify the bit address that was set in the [Set Up Receive Completion Bit] field in step 8.

  16. Click [OK].