![NPM Motionnet G9001A Скачать руководство пользователя страница 26](http://html1.mh-extra.com/html/npm/motionnet-g9001a/motionnet-g9001a_user-manual_1713900026.webp)
DA70131-1/3E
I-20
4-5-3. "Change to Input Change Interrupt Setting" area
Port information for the I/O devices (G9002A) that are connected can be obtained automatically using the cyclic
communication system. The center device also uses cyclic communication to periodically obtain status information
for the data devices (G9x03, G9004A) that are connected.
These changes to input ports and status changes in data devices can be detected automatically, and then the
center device can generate an interrupt (
___
INT ) for a CPU.
This area can be addressed by writing bits that correspond to the local device number whose status you want to
monitor. When a bit is set to "1" its status will be monitored
Ex.: When you want to monitor port 2 on device number 0.
In order to specify device number 0, you have to access address 0C0h.
As shown above, there are 4 bits which correspond to each local device. The lowest 4 bits will be the area for
setting up input change interrupts for the local device with the lowest address number.
The lowest of the 4 bits corresponds to port 0, the next bit corresponds to port 1. The next bits of it correspond Port
2 and Port 3 respectively.
When you want to monitor another local device, determine the address using the following rule (discard any
remainder).
Address = 0C0h + (device number / 2)
The rule is the same for an 8-bit CPU, except that the data will be transferred in units of 8 bits.
Since mainly status information corresponds to each port on data devices (G9x03, G9004A), you just enter a "1" for
the port which has the status you want to monitor.
For details, see "5-1-3. Input change interrupt" (Be especially careful when monitoring the status of a device to
make sure that port 0 is not monitoring all the bits.)
For details about which status information corresponds to which port, see the user's manual for each data device
(G9x03, G9004A).
(For examples of use, see point (2) in the "Set up an input-change interrupt" section of "Software Examples" in
Chapter IV.)
Содержание Motionnet G9001A
Страница 1: ...DA70131 1 3E G9001A G9002A User s Manual Center device I O device Remote I O Remote Motion...
Страница 7: ...DA70131 1 3E I 1 I Center device G9001A User s Manual...
Страница 8: ...DA70131 1 3E I 2...
Страница 50: ...DA70131 1 3E I 44...
Страница 51: ...DA70131 1 3E II 1 II I O device G9002A User s Manual...
Страница 52: ...DA70131 1 3E II 2...
Страница 66: ...DA70131 1 3E II 16...
Страница 67: ...DA70131 1 3E III 1 III Connection Examples and Recommended Environments G9000 Series...
Страница 68: ...DA70131 1 3E III 2...
Страница 87: ...DA70131 1 3E IV 1 IV Software Examples flow chart G9001A...
Страница 88: ...DA70131 1 3E IV 2...