Download PCL6045B_Application Manual 050713

Transcript
(4) Zero position return method 3 (ORM = 3h)
After starting at constant speed, the motor will stop immediately after the specified number of EZ pulses
has been counted. In high-speed operation, it decelerates and stops with counting up EZ after the ORG
input is turned ON.
Counter reset timing and ERC signal output timing at zero return completion is when counting up the
number of EZ pulses specified.
An example of constant speed operation <Stop immediately after the specified number of EZ pulses
has been counted after the ORG input is turned ON.>
(1) Write FH constant speed start command
(51h).
(2) When the ORG input is turned ON, the
PCL starts counting EZ pulses.
(3) The motor will stop immediately after the
specified number of EZ pulses has been
counted.
The counter reset and ERC signal output
timing is triggered by completion of the
zero return.
Start
Specify a zero return operation
method in ORM in RENV3
ORM (bits 0 to 3) = 3h
Enter the EZ count value in EZD in
RENV3
EZD (bit 4 to 7) = 1h
(Number of EZ pulses counted = EZD setting + 1)
To move in the (+) direction: MOD (bits 0 to 6) = 10h
Enter a zero return operation code in
To move in the (-) direction: MOD (bits 0 to 6) = 18h
MOD in the PRMD
Specify an operation speed pattern
If you want to reuse the same pattern, this setting is not
needed.
Write a start command
FH constant speed start command = 0x0051h
Wait for the operation to complete
End
p645_wreg(AXS_AY,WRENV3,0x00000013);
p645_wreg(AXS_AY,WPRMD,0x00000010);
p645_vset(AXS_AY,1000L,10000L,300,0,0,0,'L',0);
p645_wcom(AXS_AY,STAFH);
p645_wait(AXS_AY);
- 47 -
/* Specify zero return operation 3 (ORM=3h) */
/* The number of EZ pulses to */
/* count is two (EZD = 1) */
/* Specify a zero return operation */
/* in the + direction (MOD=10h) */
/* Y-axis, linear acceleration/deceleration */
/* from 1000pps to 10Kpps, 300mS */
/* FH constant speed start command */
/* Wait for the motor to stop */