Omron CPM1 - PROGRAMING MANUAL 02-2001 Programming Manual page 507

Hide thumbs Also See for CPM1 - PROGRAMING MANUAL 02-2001:
Table of Contents

Advertisement

Pulse Output Instructions
Flags
7-27-2 SPEED OUTPUT– SPED(64)
SPED(64)
P
M
F
Limitations
Description
ue of the number of movement pulses will be used. (For example, if the number
of movement pulses is –500, a value of 500 will be used.)
ER:
A data area boundary is exceeded.
Indirectly addressed DM word is non-existent. (Content of *DM word is
not BCD, or the DM area boundary has been exceeded.)
P is not 000 or 010.
C is not 000 or 001. (C cannot be set to 001 when relative coordinates
are being used.)
The number of output pulses is not between –16,777,215 and
16,777,215.
PULS(65) is executed in an interrupt subroutine while a pulse I/O or
high-speed
SPED(64), PULS(65), ACC(––), PWM(––), or SYNC(––)) is being
executed in the main program.
After PULS(65) is executed, the absolute value of the number of move-
ment pulses is not between 1 and 16,777,215.
Ladder Symbols
@SPED(64)
P
M
F
This instruction is supported by the CPM1A and CPM2A/CPM2C PCs with
transistor outputs only.
In the CPM1A: F must be BCD, #0000 or #0002 to #0200.
In the CPM2A/CPM2C: F must be BCD, #0000 or #0001 to #1000.
DM 6144 to DM 6655 cannot be used for F.
SPED(64) is used to set the output pulse frequency and start the pulse output
from the specified output bit. When the execution condition is OFF, SPED(64) is
not executed. When the execution condition is ON, SPED(64) sets the pulse fre-
quency F for the output bit specified by P. M determines the output mode.
In general, SPED(64) should be executed just once each time that the frequency
needs to be set; use the differentiated variation (@SPED(64)) or an input condi-
tion that is ON for just one cycle.
Note Refer to 2-5 Pulse Output Functions for more details.
Port Specifier (P)
The port specifier indicates the output bit where the pulses will be output.
P
000 Single-phase pulse output 0 without acceleration or deceleration (output
01000)
010 Single-phase pulse output 1 without acceleration or deceleration (output
01001)
This setting is supported by CPM2A/CPM2C PCs only.
counter
instruction
(INI(61),
Operand Data Areas
F: Target frequency
IR, SR, AR, DM, HR, LR, #
Pulse output location(s)
Section
PRV(62),
CTBL(63),
P: Port specifier
001 or 010
M: Output mode
000 or 001
7-27
489

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents