7-27
Section
Pulse Output Instructions
487
Note
Refer to page 157 for more details on MCRO(99).
Example
In this example, the contents of DM 0010 through DM 0013 are copied to SR 232
through SR 235, and then subroutine 10 is called and executed. When the sub-
routine is completed, the contents of SR 236 through SR 239 are copied to out-
put words DM 0020 to DM 0023.
MCRO(99)
010
DM 0010
DM 0020
SBN(92)
010
RET(93)
END(01)
Main program
Subroutine
Main program
Flags
ER:
A subroutine does not exist for the specified subroutine number.
An operand has exceeded a data area boundary.
Indirectly addressed DM word is non-existent. (Content of
*
DM word is
not BCD, or the DM area boundary has been exceeded.)
A subroutine has called itself.
An active subroutine has been called.
7-27 Pulse Output Instructions
7-27-1
SET PULSES – PULS(65)
P:
Port specifier
000 or 010
Ladder Symbols
Operand Data Areas
@PULS(65)
P
C
N
N
: Number of pulses
IR, SR, AR, DM, HR, LR
C:
Control data
000 or 001
PULS(65)
P
C
N
Limitations
This instruction is supported by the
CPM1A and CPM2A/CPM2C PCs with
transistor outputs only
.
N and N+1 must be in the same data area.
DM 6144 to DM 6655 cannot be used for N.