EasyManuals Logo

Omron CPM1 Programming Manual

Omron CPM1
541 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #475 background imageLoading...
Page #475 background image
454
Programming Instructions Appendix A
Expansion Instructions
The following table shows the instructions that can be treated as expansion instructions. The default function
codes are given for instructions that have codes assigned by default.
86 (@)ASC ASCII CONVERT Converts hexadecimal values from the source word to eight-bit
ASCII code starting at leftmost or rightmost half of starting
destination word.
268
87 to 89 For expansion instructions. 118
91 (@)SBS SUBROUTINE ENTRY Calls and executes subroutine N. 321
92 SBN SUBROUTINE DEFINE Marks start of subroutine N. 323
93 RET RETURN Marks the end of a subroutine and returns control to main pro-
gram.
323
97 (@)IORF I/O REFRESH Refreshes all I/O words between the start and end words.
Cannot be used with the SRM1.
326
99 (@)MCRO MACRO Calls and executes a subroutine replacing I/O words. 327
Code Mnemonic Name Function CPU Units Page
17 (@)ASFT ASYNCHRONOUS SHIFT
REGISTER
Creates a shift register that exchanges the con-
tents of adjacent words when one of the words is
zero and the other is not.
All 235
18 TKY TEN KEY INPUT Inputs 8 digits of BCD data from a 10-key keypad. CQM1 356
19 (@)MCMP MULTI-WORD COMPARE Compares a block of 16 consecutive words to
another block of 16 consecutive words.
CQM1 253
47 (@)RXD RECEIVE Receives data via a communications port. CQM1/
SRM1
349
48 (@)TXD TRANSMIT Sends data via a communications port. CQM1/
SRM1
350
60 CMPL DOUBLE COMPARE Compares two eight-digit hexadecimal values. All 252
61 (@)INI MODE CONTROL Starts and stops counter operation, compares
and changes counter PVs, and stops pulse out-
put.
All except
SRM1
225
62 (@)PRV HIGH-SPEED COUNTER
PV READ
Reads counter PVs and status data for the high-
speed counter.
All except
SRM1
227
63 (@)CTBL COMPARISON TABLE
LOAD
Compares counter PVs and generates a direct
table or starts operation.
All except
SRM1
220
64 (@)SPED SPEED OUTPUT Outputs pulses at the specified frequency (10 Hz
to 50 KHz in 10 Hz units). The output frequency
can be changed while pulses are being output.
CQM1 338
65 (@)PULS SET PULSES Outputs the specified number of pulses at the
specified frequency. The pulse output cannot be
stopped until the specified number of pulses have
been output.
CQM1 336
66 (@)SCL SCALE Performs a scaling conversion on the calculated
value.
CQM1 272
67 (@)BCNT BIT COUNTER Counts the total number of bits that are ON in the
specified block of words.
All 328
68 (@)BCMP BLOCK COMPARE Judges whether the value of a word is within 16
ranges (defined by lower and upper limits).
All 250
69 (@)STIM INTERVAL TIMER Controls interval timers used to perform sched-
uled interrupts.
All 218
87 DSW DIGITAL SWITCH INPUT Inputs 4- or 8-digit BCD data from a digital switch. CQM1 355
88 7SEG 7-SEGMENT DISPLAY
OUTPUT
Converts 4- or 8-digit data to 7-segment display
format and then outputs the converted data.
CQM1 354
89 (@)INT INTERRUPT CONTROL Performs interrupt control, such as masking and
unmasking the interrupt bits for I/O interrupts.
All except
SRM1
334
Code Mnemonic Name Function Page

Table of Contents

Other manuals for Omron CPM1

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Omron CPM1 and is the answer not in the manual?

Omron CPM1 Specifications

General IconGeneral
ModelCPM1
ManufacturerOmron
Instruction SetBasic and advanced instructions
Power Supply100 to 240 VAC or 24 VDC
CommunicationRS-232C
I/O Points10, 20, 30, or 40 points depending on the model
TimersYes, multiple timers available
CountersYes, multiple counters available
Input Voltage24V DC
Output TypeRelay or transistor
Number of I/O Points10, 20, 30, 40
Communication PortsRS-232C (optional)
Operating Temperature0°C to 55°C
Storage Temperature-20°C
Humidity10% to 90% (non-condensing)
DimensionsVaries depending on the model
WeightVaries depending on the model
Program Memory2048 steps (2K steps)

Related product manuals