![NPM Motionnet G9001A Скачать руководство пользователя страница 101](http://html1.mh-extra.com/html/npm/motionnet-g9001a/motionnet-g9001a_user-manual_1713900101.webp)
DA70131-1/3E
IV-15
2-7. Data communication 1: Put the value in the register of the PCL device
The data communication example below shows data being placed in a register that is integrated in the PCL
device.
Assume that the local devices to be used are as follows.
Assume that "00123456h" will be placed in the "PRMV" register of the PCL device .
Device type
Configuration item
Device number
PCL device
Device address
40 (28h)
.
A data communication command is constructed as follows:
15 14 13 12 11 10
9
8
7
6
5
4
3
2
1
0
0
1
0
0
0
0
0
0
0
0
#
#
#
#
#
#
Specify the address in these
Start
End
Outpw (0x0006h, 0x00B0h)
Outpw (0x0006h, 0x3456h)
Outpw (0x0006h, 0x0012h)
- Store the data in the receiving FIFO in the following order.
1) Write the command to the PCL device register.
2) Write the data (lower 16 bits)
3) Write the data (upper 16 bits)
- The writing order to the FIFO is specified for the PCL
device in the user's manual for the PCL.
- The register access command for the PCL device is
specified in the user's manual for the PCL device.
Outpw (0x0000h, 0x4028h)
- Start data communication with the specified device
number.
A PCL device that receives this communication will
write the data to the register specified in the data details.
CEND = 1
YES
Sts = Inpw (0x0000h)
Read status
Waits until the data communication is complete.
This process may be waiting for an interrupt.
- Check the EDTE bit. If the data communication failed,
take the defined steps.
- Note that the EDTE bit will be cleared by reading the
status.
- The EDTE bit changes with the same timing as the
CEND bit.
EDTE = 1
NO
Error processing
YES
Содержание 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...