Interval Timer -- Stim - Omron CPM1 Programming Manual

Hide thumbs Also See for CPM1:
Table of Contents

Advertisement

Flags
7-27-2 INTERVAL TIMER - - STIM(69)
STIM(69)
C1
C2
C3
Limitations
Description
Starting Interrupt Timers
(C1= 000 or 003)
Unmasking Interrupts (C1=200)
Use the INT(89) instruction with C1=200 to unmask interrupts as follows:
ER:
A data area boundary is exceeded.
Indirectly addressed DM word is non-existent. (Content of
not BCD, or the DM area boundary has been exceeded.)
C1 is not 000 to 004,100, or 200.
C2 is not 0000 to 000F.
INT(89) is executed with C1=100 or C1=200 while an interrupt program
was being executed.
INT(89) is executed with C1=100 when all inputs were already masked.
C1=200 when inputs were not all unmasked.
Ladder Symbols
@STIM(69)
C1
C2
C3
Note STIM(69) is an expansion instruction in the CPM2A/CPM2C and SRM1(-V2).
The function code 69 is the default setting and can be changed if desired.
C1 must be 000, 003, 006. or 010.
If C1 is 000 or 003, C3 represents a BCD subroutine number up to 0049.
If C1 is 006, constants cannot be used for C2 or C3.
If C1 is 010, both C2 and C3 must be set to 000.
STIM(69) is used to control the interval timers by performing four basic func-
tions: starting the timer for a one-shot interrupt, starting the timer for scheduled
interrupts, reading the timer's PV, and stopping the timer. Set the value of C1 to
specify which of these functions will be performed, as shown in the following
table. Refer to Section 2 Special Features for more detailed descriptions of using
interval timer interrupts. STIM(69) is also described in more detail after the table.
C1 value
000
Starts the one-shot interrupt timer.
003
Starts the scheduled interrupt timer.
006
Reads the timer PV.
010
Stops the timer.
Set C1=000 to activate the one-shot interrupt timer. Set C1=003 to start the
scheduled interrupt timer.
(@)INT(89)
200
000
000
Operand Data Areas
C1: Control data #1
000 to 008, 010 to 012
C2: Control data #2
IR, SR, AR, DM, HR, TC, LR, #
C3: Control data #3
IR, SR, AR, DM, HR, TC, LR, #
Function
Section
7-27

DM word is

Advertisement

Table of Contents
loading

This manual is also suitable for:

Srm-v2Cpm1aCpm2aSrm1Cpm2c

Table of Contents