A--41
Micro Programmable Controller CPM1A
Program Example
TIM
000
A
250
Value of the analog
setting 0 (0 to 200)
MUL(32)
250
#0003
DM0500
TIM
001 DM 0500
B
25313(ON)
BCD multiplication
Value of the analog setting 0
(0 to 200)
Triples the above value
Multiplication result (0 to 600
JPULSE OUTPUT FUNCTION
The CPM1A transistor output models have an output function
capable of outputting a pulse of 20 Hz to 2 kHz (single-phase
output).
When used in combination with a Stepping Driver or SmartStep
Servodriver, positioning can be easily performed.
Application Example
Changing the speed of the Stepping Motor.
SmartStep Servodriver
Stepping Motor
Output point
01000 or 01001
25,000 pulses
200 Hz
1khz
Z
00000 turns ON 0001 turns ON (limit switch)
Pulse rate
Output
frequency
Program Example
PULS(65)
000
000
DM 0000
15000
MOV(21)
#5000
DM 0000
25315
MOV(21)
#0002
DM 0001
MOV(21)
#0200
DM 0100
@SPED(64)
000
000
DM 0100
MOV(21)
#0020
DM 0100
25315
00200
15000
00001
00025000
DM 0001 DM 0000
1 scan turns ON.
Speed change limit switch
Changes to 200 Hz when the
limit switch is turned ON.
Frequency data (x 10 Hz)
Output mode (single)
Frequency conversion:
Pulse rate (BCD 8 digits)
Pulse rate setting
Sets the initial frequency to
2,000 pulses/second.
Sets the number of output pulses as
25,000 (times) in the data memory area.
Output port (output point 01000)