Pulse Output Instructions
Example
Flags
7-27 Pulse Output Instructions
7-27-1 SET PULSES – PULS(65)
PULS(65)
P
C
N
Limitations
Note Refer to page 157 for more details on MCRO(99).
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.
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.
Ladder Symbols
@PULS(65)
P
C
N
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.
Main program
MCRO(99)
010
DM 0010
DM 0020
Main program
SBN(92)
010
Subroutine
RET(93)
END(01)
Operand Data Areas
P: Port specifier
000 or 010
C: Control data
000 or 001
N: Number of pulses
IR, SR, AR, DM, HR, LR
Section
7-27
487
Need help?
Do you have a question about the CPM1 - PROGRAMING MANUAL 02-2001 and is the answer not in the manual?
Questions and answers