Download Print this page

Omron CPM1A Manual page 20

Micro programmable controller
Hide thumbs Also See for CPM1A:

Advertisement

Program Example
1.
Analog timer for 0.0 to 20.0 seconds
A
TIM
000
J PULSE 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.
Output point
01000 or 01001
SmartStep Servodriver
25,000 pulses
Output
1 khz
Z
frequency
200 Hz
00000 turns ON
250
Value of the analog
setting 0 (0 to 200)
Stepping Motor
Pulse rate
0001 turns ON (limit switch)
2.
Analog timer for 0.0 to 60.0 seconds
25313(ON)
MUL(32)
250
#0003
DM0500
B
TIM
001
Program Example
1 scan turns ON.
25315
MOV(21)
#5000
DM 0000
MOV(21)
#0002
DM 0001
MOV(21)
#0200
DM 0100
25315
PULS(65)
000
1 scan turns ON.
000
DM 0000
00200
@SPED(64)
000
15000
000
DM 0100
Speed change limit switch
00001
MOV(21)
#0020
DM 0100
15000
Micro Programmable Controller
BCD multiplication
Value of the analog setting 0
(0 to 200)
Triples the above value
Multiplication result (0 to 600)
DM 0500
Sets the number of output pulses as
25,000 (times) in the data memory area.
DM 0001
DM 0000
0
0
0
2
5
0
0
0
Sets the initial frequency to
2,000 pulses/second.
Pulse rate setting
Pulse rate (BCD 8 digits)
Frequency conversion:
Output port (output point 01000)
Output mode (single)
Frequency data (x 10 Hz)
Changes to 200 Hz when the
limit switch is turned ON.
CPM1A
A--41

Advertisement

loading