Mitsubishi GOT1000 Series Connection Manual page 819

Graphic operation terminal
Hide thumbs Also See for GOT1000 Series:
Table of Contents

Advertisement

3
Host side sample program
The sample program (written in C) on the host side is included in GT Designer2 and installed when GT
Designer2 is installed.
4
Outline of system operation
The following describes the processing on the host side, display/processing on the GOT side, and data
transfer packets.
Processing
Opens the port.
Writes "1" to the screen switching device (D20).
Receives a response from the GOT.
Initial processing
Judges whether or not there is an error in the
response from the GOT.
Writes an initial value to device (D21).
When receiving a
response to writing to
device (D21) from the
GOT
When receiving a
response to reading of
device (D21) from the
GOT
Reception of response/
interrupt from GOT
When receiving an
interrupt requesting the
base screen switching
from 1 to 2
When receiving an
interrupt requesting the
base screen switching
from 2 to 1
End processing
(only when receiving an error
Close the port.
response)
Processing on host side
Issues the current value
acquisition request to
device (D21).
Creates the next device
value (D21).
Calculates the sum
check of the send
packet.
Issues the update
request of device (D21).
Sets the state of the
base screen to base
screen 2.
Sets the state of the
base screen to base
screen 1.
Packet used for data
Display/Processing on GOT side
transfer
Screen 1 batch
Displays base screen 1.
*1
switchingWrite packet
Batch numerical value
Displays "0" on the numerical
2
value display on base screen 1.
displayWrite packet*
Batch numerical value
displayRead packet*3
Increments the 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
*2
Write packet
Touch touch switch 1 to switch to
Interrupt receive
base screen 2. Notify the host by
*6
packet
an interrupt.
Touch touch switch 3 to switch to
Interrupt receive
base screen 1. Notify the host by
*6
packet
an interrupt.
19.7 System Configuration Examples
17
18
19
20
21
22
23
24
19 - 89

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents