Download "user manual"

Transcript
GOT-F900 SERIES (CONNECTION)
22.3.4
Connection of Bar Code Reader 22
Sequence Program Example
This section explains a program when the screen data is created using the GT Designer.
Bar code reader
Connected to RS-232C port
1 2 3 4 5 6 7
RS-232C
GOT-F900
FX Series PLC
RS-422
The data can be displayed on the screen using "Ascii display" or "Ascii input".
indicates space.
1) Occupied device
a) System Information Setting
Read device: D10 (b5 and b6 are occupied.)
Write device: D20 (D20 b6 is occupied.)
b) Bar Code Setting (write destination device and number of devices)
Write destination device: D50
Number of devices: 5 (D50 to D54 are occupied.)
c) Other setting
M15: Bar code input invalid
M16: Read of bar code input complete
2) Program example
M8000 (always ON)
M0V K2M10 D10 . . . . . The ON/OFF status of M10 to M17 is transferred to
D10 (b7 to b0). (M15: Bar code input invalid, M16:
Bar code input read completed)
M0V D20 K2M20 . . . . . The ON/OFF status of D20 (b7 to b0) is transferred
to M27 to M20. (M26: Bar code input)
Input for bar code input invalid Bar code input invalid
M15 . . . . . . . . . . . . . Program this to make the bar code input invalid.
(Program this upon necessity.)
M26: Bar code input . . . . . . . . . . . . . . . . . . . . . . . . . .
Program for
processing bar
When data processing
code data
is completed, the input
(arbitrary)
is set to ON.
(D50 to D54)
Input
T0
When the data is input from the bar code reader,
M26 turns ON.
The ASCII code data is written from the GOT-F900
to the write destination devices (D50 to D54).
(Because the ASCII code data is automatically
written from the GOT-F900, program for write is not
required.)
Bar code input
read completed
M16 . . . . . . . . . . . . . After data input (M26) from the bar code reader is
finished, M16 turns ON to indicate that read is
completed. When M16 turns ON, M26 is set to OFF
by the GOT-F900 to enable input of the next data.
T0 . . . . . . . . . . . . . In this example, M16 is ON for 1 second.
K10
(If M16 remains ON, the next bar code input data
cannot be read.)
22-6