Mitsubishi Electric GOT2000 Series Connection Manual page 142

Graphic operation terminal microcomputers, modbus/fieldbus products, peripherals
Hide thumbs Also See for GOT2000 Series:
Table of Contents

Advertisement

Outline of system operation
The following describes the processing on the host
side, display/processing on the GOT side, and data
transfer packets.
(Assuming that host side programs use programs
which perform the processing on host side shown
below.)
Processing
Processing on host side
Opens the port.
Writes "1" to the screen
switching device (D20).
Receives a response from
Initial
the GOT.
processing
Judges whether or not
there is an error in the
response from the GOT.
Writes an initial value to
device (D21).
When
Issues the
receiving a
current
response to
value
writing to
acquisition
device (D21)
request to
from the
device
GOT
(D21).
Creates the
next device
value (D21).
When
Calculates
receiving a
the sum
response to
check of the
reading of
send packet.
device (D21)
Issues the
from the
update
GOT
Reception of
request of
response/
device
interrupt from
(D21).
GOT
When
receiving an
Sets the
interrupt
state of the
requesting
base screen
the base
to base
screen
screen 2.
switching
from 1 to 2
When
receiving an
Sets the
interrupt
state of the
requesting
base screen
the base
to base
screen
screen 1.
switching
from 2 to 1
End
processing
(only when
Close the port.
receiving an
error
response)
2 - 84
2. MICROCOMPUTER CONNECTION (SERIAL)
2.7 System Configuration Examples
Packet
Display/
used for
Processing on
data transfer
GOT side
――
――
Screen 1
batch
Displays base
switching
screen 1.
Write
*1
packet
――
――
――
――
Batch
Displays "0" on
numerical
the numerical
value
value display
display write
on base screen
*2
1.
packet
Batch
numerical
value
display read
*3
Increments the
packet
numerical value
displayed on
base screen 1.
――
(The host side
repeats the
processing on
the left as long
――
as base screen
1 is displayed.))
Batch
numerical
value
display write
*2
packet
Touch touch
switch 1 to
Interrupt
switch to base
receive
screen 2.Notify
*6
the host by an
interrupt.
Touch touch
switch 3 to
Interrupt
switch to base
receive
screen 1.Notify
packet*6
the host by an
*6
interrupt.
――
――
*1
Displays the send packet structure of the screen 1 batch switching
write packet.
STX
Command
Address
W
D
0
0
2
0
02
57
44
30
30
32
30
H
H
H
H
H
H
H
(H)
(L)
(H)
(L)
Sum check is performed in this range.
*2
Displays the send packet structure of the numerical value display
batch write packet.
STX
Command
Address
W
D
0
0
2
1
02
57
44
30
30
32
31
H
H
H
H
H
H
H
(H)
(L)
(H)
(L)
Sum check is performed in this range.
*3
Displays the send packet structure of the numerical value display
batch read packet.
STX
Command
Address
R
D
0
0
2
1
02
52
44
30
30
32
31
H
H
H
H
H
H
H
(H)
(L)
(H)
(L)
Sum check is performed in this range.
*4
Displays the receive packet structure of the batch write response
packet.
When normally operated
When an error occurred
NAK
ACK
06
15
H
H
*5
Displays the receive packet structure of the batch read response
packet.
When normally operated
STX
Data
ETX
Sum check
(Changes
(any data)
according to
02
03
H
H
data section.)
(H)
(L)
(H)
Sum check is performed in this range.
*6
Displays the receive packet structure of the interrupt receive packet.
Output value
Interrupt data
(value of D13)
Number of
Data 1 (D20)
ETX
points
0
1
0
0
0
1
30
31
30
30
30
31
03
38
H
H
H
H
H
H
H
(H)
(L)
(H)
(L)
(H)
Number of
Sum check
ETX
Data 1 (D21)
points
(Changes
0
1
(any value)
according to
30
31
03
data section.)
H
H
H
(H)
(L)
(H)
(L)
(H)
Number of
Sum
ETX
points
Check
0
1
B
D
30
31
03
42
44
H
H
H
H
H
(H)
(L)
(H)
(L)
When an error occurred
NAK
15
H
(L)
Sum
Check
8
2
32
H
H
(L)
(L)

Advertisement

Table of Contents
loading

Table of Contents