DA70131-1/3E
IV-19
2-10. Data communication 4: Start a PCL6045B using a CPU emulation device
The CPU emulation device (G9004A) can substitute for a CPU, and it can be connected to normal CPU peripheral
devices. This section gives an example of how to start the PCL6045B (LSI made by NPM that is used to generate
pulse trains for 4 axes) by the CPU emulation device (G9004A).
Device type
Configuration item Configuration data
G9004A
Device address
40 (28h)
Registers to set in the PCL6045B
Register name
Set value
Remark
PRFL
00000100h
PRFH
00000200h
PRMG
012Bh
Multiplication rate = 1
Start
Outpw (0x0006h, 0x1184h)
Outpw (0x0006h, 0x0100h)
Outpw (0x0006h, 0x0000h)
Outpw (0x0006h, 0x0100h)
Outpw (0x0006h, 0x0081h)
Outpw 0x0006h, 0x1184h)
Outpw (0x0006h, 0x0200h)
Outpw (0x0006h, 0x0000h)
Outpw (0x0006h, 0x0100h)
Outpw (0x0006h, 0x0082h)
Outpw (0x0006h, 0x1184h)
Outpw (0x0006h, 0x012Bh)
Outpw (0x0006h, 0x0000h)
Outpw (0x0006h, 0x0100h)
Outpw (0x0006h, 0x0085h)
Outpw (0x0006h, 0x0100h)
Outpw (0x0006h, 0x0051h)
Send command data to the G9004A and it will process it one
command at a time, similar to a CPU (to control the
PCL6045B)
NO
YES
Dev Sts = Inpw (0x0000h)
Instruction to write data to the PCL6045B I/O buffer
Instruction to write the data in the I/O buffer of the
PCL6045B to the PRFL register
Instruction to write the data in the I/O buffer of the
PCL6045B to the PRMG register
Instruction to write the data in the I/O buffer of the
PCL6045B to the PRFH register
Instruction to write data to the PCL6045B I/O buffer
Instruction to write data to the PCL6045B I/O buffer
Instruction to the PC6045B to start feeding a pulse train at
FH speed
Outpw (0x0000h, 0x4028h)
Data communication command (send the command
data stored in the FIFO)
CEND = 1 ?
* This step checks the read status EDTE flag. If a
communication error occurs the next process should not
be started.
If there is no error, the PCL6045B will begin operation.
(In this step, it is not clear if the PCL6045B is operating
or not.)
C
om
m
a
nd dat
a
A
EDTE = 1
NO
Error processing
YES
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...