Sequence Program Example - Mitsubishi Electric F920GOT-K Hardware Manual

Got-f900 series graphic operation terminal
Table of Contents

Advertisement

GOT-F900 SERIES (CONNECTION)
22.3.4

Sequence Program Example

This section explains a program when the screen data is created using the GT Designer.
1 2 3 4 5 6 7
The data can be displayed on the screen using "Ascii display" or "Ascii input".
1) Occupied device
a) System Information Setting
Read device: D10 (b5 and b6 are occupied.)
Write device: D20 (D24 b5 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)
Input for bar code input invalid
M25: Bar code input
When data processing
is completed, the input
is set to ON.
Input
GOT-F900
indicates space.
MOV
K2M10
MOV
D24
Bar code input invalid
. . . . . . . . . . . . .
M15
. . . . . . . . . . . . . . . . . . . . . . . . . .
Program for
processing bar
code data
(arbitrary)
(D50 to D54)
Bar code input
read completed
T0
. . . . . . . . . . . . .
M16
. . . . . . . . . . . . .
T0
K10
Bar code reader
RS-232C
RS-422
. . . . .
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)
. . . . .
The ON/OFF status of D24 (b7 to b0) is transferred
K2M20
to M27 to M20. (M25: Bar code input)
Program this to make the bar code input invalid.
(Program this upon necessity.)
When the data is input from the bar code reader,
M25 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.)
After data input (M25) from the bar code reader is
finished, M16 turns ON to indicate that read is
completed. When M16 turns ON, M25 is set to OFF
by the GOT-F900 to enable input of the next data.
In this example, M16 is ON for 1 second.
(If M16 remains ON, the next bar code input data
cannot be read.)
Connection of Bar Code Reader 22
Connected to RS-232C port
FX Series PLC
22-7
21
22
23

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents