![NPM Motionnet G9001A Скачать руководство пользователя страница 98](http://html1.mh-extra.com/html/npm/motionnet-g9001a/motionnet-g9001a_user-manual_1713900098.webp)
DA70131-1/3E
IV-12
2) When using only the upper 8 bytes in the address map
The read command is constructed as follows:
15 14 13 12 11 10
9
8
7
6
5
4
3
2
1
0
0
1
1
0
0
0
0
1
0
#
#
X
X
X
X
&
Note 1: In the address creation step above, the program shifts the LOOP variable five bits left. This is
done to create the command above.
Note 2: The number of loop executions will always be less than 16. This is because one read loop can
obtain the data for 4 local devices. (64 / 16 = 4)
- Specify the address in these 6 bits.
- The lower 2 bits of the address byte are not used. Leave them
at 0.
- The lowest bit (marked with an "&") is empty. (Leave it at 0.)
When writing data used to
clear the flags, these bits
become "0101."
WORK = LOOP << 5
Com = 0x6100h or WORK
Outpw (0x0000h, Com)
Data = Inpw (0x0004h)
Start
Com = 0x5100h or WORK
Outpw (0x0004h, Data)
Outpw (0x0000h, Com)
Write back the data you just read in order to clear the
change-interrupt flag.
Note that the command is different from the one used to
read the data.
End
Assume that the routine is started by an interrupt being
issued; INT = LOW.
Sts = Inpw (0x0000h)
Read the status data in the center device.
EIOE = 1 ?
NO
YES
LOOP =0
- Shift the loop variable 5 bits left to create the read
address.
- Read the contents of the target address using the
command that was just created.
A
Communication
error?
NO
YES
Process specified by the user
LOOP = LOOP + 1
LOOP<4 ?
NO
YES
In this step, process all the flags that are 1 (the other flags
do not need to be processed.)
Although this example checks the interrupt flags on all the
addresses by using loop processing, you can check just
the areas required.
The bit positions which are 1 correspond to device and
port numbers whose input has changed.
Note 1
Note 2
A
Содержание 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...