Set Pulses - Puls(65) - Omron CPM1 Programming Manual

Hide thumbs Also See for CPM1:
Table of Contents

Advertisement

Special Instructions
Mask/Unmasking All
Interrupts (CC=100/200)
Flags
5-26-9 SET PULSES – PULS(65)
PULS(65)
P
C
N
Limitations
Description
336
ing bit in D to 1 in order to renew the input's counter SV. (Bits 00 to 03 corre-
spond to 00000 to 00003 in CQM1 PCs, 00003 to 00006 in CPM1/CPM1A
PCs.)
CQM1 PCs
Word D bits: 3 2 1 0
CPM1/CPM1A PCs
Word D bits: 3 2 1 0
This function is used to mask or unmask all interrupt processing. Masked
inputs are recorded, but ignored. Refer to page 44 for details.
The control data, D, is not used for this function. Set D to #0000.
ER:
A counter's SV is incorrect. (CC=003 only)
Indirectly addressed DM word is non-existent. (Content of *DM word
is not BCD, or the DM area boundary has been exceeded.)
CC=100 or 200 while an interrupt program was being executed.
CC=100 when all inputs were already masked.
CC=200 when all inputs were already unmasked.
CC and/or D are not within specified values.
Ladder Symbols
@PULS(65)
P
C
N
This instruction is available in the CPM1A with transistor outputs and
CQM1 only.
N and N+1 must be in the same data area.
DM 6143 to DM 6655 cannot be used for N.
PULS(65) is used to set parameters for pulse outputs that are started later in
the program using SPED(64) or ACC(––). The parameters that can be set are
the number of pulses that will be output in independent mode, the direction of
pulse outputs from ports 1 and 2, and the deceleration point for pulse outputs
controlled by ACC(––) mode 0.
Since PULS(65) has a relatively long execution time, the cycle time can be
reduced by executing the differentiated version (@PULS(65)) of this instruc-
tion only when it is needed.
Interrupt input 00000 counter SV (0: Change, 1: Don't change)
Interrupt input 00001 counter SV (0: Change, 1: Don't change)
Interrupt input 00002 counter SV (0: Change, 1: Don't change)
Interrupt input 00003 counter SV (0: Change, 1: Don't change)
Interrupt input 00003 counter SV (0: Change, 1: Don't change)
Interrupt input 00004 counter SV (0: Change, 1: Don't change)
Interrupt input 00005 counter SV (0: Change, 1: Don't change)
Interrupt input 00006 counter SV (0: Change, 1: Don't change)
Operand Data Areas
P: Port specifier
000, 001, or 002
C: Control data
N: Number of pulses
IR, SR, AR, DM, HR, LR
Section 5-26
000 to 005

Advertisement

Table of Contents
loading

Table of Contents