TA600032-EN0/0
- 65 -
6.2
Operation mode
"G9006" can select two operation modes from "Local operation mode" or "Monitor operation mode".
The operation mode can be selected with "RADD.MONI".
6.2.1
Local operation mode (message communication)
When "RADD.MONI = 0" is set, "Local operation mode" is selected.
In the "Local operation mode", there is a "Device number" like other "Local LSI" products.
"Port data" of "Own device" and "Virtual local LSI" can be sent to "Center LSI".
In the "Local operation mode", up to seven "Virtual local LSIs" with consecutive "Device numbers" can be added to "G9006".
Since the "Port data" is 4 bytes, one "G9006" can send up to 32 bytes of "Port data".
For example, a "Local CPU" can send the data read from a "24-bit A/D Converter" (ADC) via "G9006" to the "Center LSI" by the
following procedures:
Step 1)
After resetting "G9006", prepare for "Local operation mode".
1.
"Local CPU" writes "Device number", "Operation mode", "Port attribute", etc. to "G9006".
(Write "RADD = 0200h" from the "Local CPU".)
2.
The "Local CPU" writes the "Port change event" (MSTS.IPTC) interrupt setting to "G9006".
(In order to monitor the "Request frame," write "RENV1 = 0040h" from the "Local CPU.")
3.
The "Local CPU" writes a command to connect "G9006" to "Motionnet
®
".
(Write "CDVON" (10h) operation command from the "Local CPU".)
Step 2)
After resetting "Center LSI", connect to "Local LSI".
4.
"Center LSI" executes "System communication" (1000h).
("Attribute information" is automatically responded from "G9006".)
5.
"Center LSI" executes "I/O communication start" (3000h).
("Response frame" is automatically responded from "G9006".)
6.
"Center LSI" writes "ADC start reading request" to the port 3 (output port) of "G9006".
(Appropriate "ADC start reading request" data can be written depending on the system.)
7.
"Local CPU" recognizes "INT = L level" of "G9006".
("INT = L level" is output by the "Port change event" interrupt in any of the "Local LSI".)
8.
"Local CPU" reads "Status" (MSTS) from "G9006".
(The "Local CPU" can recognize the generation of the "Port change event" interrupt.)
9.
"Local CPU" reads "Port data" while clearing "Port change interrupt flag" of "G9006".
(The "Local CPU" can use "Port change interrupt information reading" control command to read the data addressed to
"ADC" from the "Center LSI".)