Data Search -- Srch - Omron CPM1 Programming Manual

Hide thumbs Also See for CPM1:
Table of Contents

Advertisement

Flags
7-26-10 DATA SEARCH - - SRCH(- - - -)
SRCH(----)
N
R
1
C
Limitations
Description
The high-speed counter function and pulse output functions cannot be used whi-
le synchronized pulse control is in operation. An error will occur and SR 25503
will be turned ON if a related pulse output instruction is executed to use one of
these functions while synchronized pulse control is being performed.
If the input frequency exceeds the maximum in the table above, the maximum
input frequency for that range will be used. If the input frequency falls below the
minimum, an input frequency of 0 Hz will be used.
Output Frequency Range
The output frequency range is 10 Hz to 10 kHz. If the calculated output frequen-
cy (input frequency × scaling factor/100) exceeds 10 kHz, pulses will be output at
10 kHz. If the calculated output frequency falls below 10 Hz, pulses will not be
output (0 Hz).
Changing the Scaling Factor or Output Port
The scaling factor can be changed while synchronized pulse control is in opera-
tion by executing SYNC(----) again with a different scaling factor, but the output
port specifier cannot be changed during operation.
Stopping the Synchronized Pulse Control Output
The synchronized pulse output can be stopped by executing INI(61) with C=005
or switching the PC to PROGRAM mode.
ER:
A data area boundary is exceeded.
Indirectly addressed DM word is non-existent. (Content of *DM word is
not BCD, or the DM area boundary has been exceeded.)
P1 is not 000, P2 is not 000 or 010, or C is not BCD between 0001 and
1000.
SYNC(----) is executed when bits 08 to 15 of DM 6642 are not set for
synchronized pulse control.
SYNC(----) is executed in an interrupt subroutine while a pulse I/O or
high-speed
SPED(64), PULS(65), ACC(----), PWM(----), or SYNC(----)) is being
executed in the main program.
Ladder Symbols
@SRCH(----)
N
R
1
C
This instruction is available in the CPM2A/CPM2C only.
N must be BCD between 0001 to 9999.
R
and R
+N--1 must be in the same data area.
1
1
DM 6144 to DM 6655 cannot be used for C.
When the execution condition is OFF, SRCH(----) is not executed. When the
execution condition is ON, SRCH(----) searches the range of memory from R
R
+N--1 for addresses that contain the comparison data in C. If one or more ad-
1
dresses contain the comparison data, the EQ Flag (SR 25506) is turned ON and
the lowest address containing the comparison data is identified in C+1. The ad-
dress is identified differently for the DM area:
counter
instruction
(INI(61),
Operand Data Areas
N: Number of words
IR, SR, AR, DM, HR, TC, LR, #
R
: First word in range
1
IR, SR, AR, DM, HR, TC, LR
C: Comparison data, result word
IR, SR, AR, DM, HR, LR
Section
7-26
PRV(62),
CTBL(63),
to
1

Advertisement

Table of Contents
loading

This manual is also suitable for:

Srm-v2Cpm1aCpm2aSrm1Cpm2c

Table of Contents