DA70131-1/3E
IV-17
2-9. Data communication 3: Start the PCL device
The data communication example below shows how to start pulse output by setting the registers in the PCL
device.
The local devices are the same as in the previous section.
Assume that the data to place in the PCL device are as follows (only the data needed to trigger the pulse
output).
Register name
Set value
Remarks
PRFL
00000100h
PRFH
00000200h
PRMG
00C7h
Multiplication rate = 1
PRFH setting
- Process the next set of data the same way.
YES
NO
PRFL setting
- Write a register write command and place the data in the
FIFO.
- Lastly, issue a device communication command.
- Check the EDTE bit to see if this data communication
ended normally before starting the next data
communication.
YES
NO
Start
Outpw (0x0006h, 0x00B1h)
Outpw (0x0006h, 0x0100h)
Outpw (0x0006h, 0x0000h)
Outpw (0x0000h, 0x4028h)
NO
Dev Sts = Inpw (0x0000h)
Outpw (0x0006h, 0x00B2h)
Outpw (0x0006h, 0x0200h)
Outpw (0x0006h, 0x0000h)
Outpw (0x0000h, 0x4028h)
NO
Dev_Sts = Inpw(0x0000h)
CEND = 1?
CEND = 1 ?
EDTE = 1
Error processing
YES
EDTE = 1
Error processing
YES
A
B
Содержание 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...