Programming Example In Continuous Mode; Programming Example In Independent Mode; Using Pulse Output Instructions - Omron CPM1 - PROGRAMING MANUAL 02-2001 Programming Manual

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

Advertisement

CPM1A Pulse Output Functions

2-6-1 Programming Example in Continuous Mode

2-6-2 Programming Example in Independent Mode

2-6-3 Using Pulse Output Instructions

Setting the Number of
Pulses
132
In this example program, pulse output begins from IR 01000 when input
IR 00004 turns ON, and is stopped when input IR 00005 turns ON.
SPED(64) can be used to stop pulse output. When using SPED(64) for that pur-
pose, specify #0000 (constant or word contents) as the pulse frequency.
00004 (pulse output condition)
00005 (pulse output stop condition)
In this example program, pulse output begins from IR 01000 when input
IR 00004 turns ON, and is stopped after the specified number of pulses have
been output. The pulse amount is set in DM 0100 and DM 0101.
00004 (pulse output condition)
00004 (pulse output condition)
Before beginning pulse output using the independent mode use PULS(65) as
shown below to set the number of pulses to be output. This setting is not required
for the continuous mode.
@PULS(65)
000
000
N
In N, set the beginning word address of the words where the number of pulses is
set. Store the number of pulses in words N and N+1, in eight digits BCD, with the
leftmost four digits in N+1 and the rightmost four digits in N.
Make the setting within a range of 00000001 to 16777215 (BCD).
Section
@SPED(64)
Begins pulse output.
Output from 01000
000
001
Continuous mode
#0100
Pulse frequency: 1 kHz
@INI(61)
Stops pulse output.
000
003
000
@PULS(65)
Sets the number of pulses.
000
000
DM 0100
Pulse number setting
@SPED(64)
Begins pulse output.
000
Independent mode
000
Pulse frequency: 1 kHz
#0100
2-6

Hide quick links:

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the CPM1 - PROGRAMING MANUAL 02-2001 and is the answer not in the manual?

Table of Contents