Expansion Instructions (Cpm2A/Cpm2C/Srm1(-V2) Only) - Omron CPM1 Programming Manual

Hide thumbs Also See for CPM1:
Table of Contents

Advertisement

2-16 Expansion Instructions (CPM2A/CPM2C/SRM1(-V2) Only)

A set of expansion instructions is available for the CPM2A, CPM2C, and
SRM1(-V2) to aid in special programming needs. Function codes can be as-
signed to up to 18 of the expansion instructions to enable using them in pro-
grams. This allows the user to pick the instructions needed by each CPM2A,
CPM2C, or SRM1(-V2) program to more effectively use the function codes re-
quired to input instructions.
The mnemonics of expansion instructions are followed by "(----)" as the function
code to indicate that they must be assigned function codes by the user in the
instructions table before they can be used in programming (unless they are used
under their default settings).
Any of the instructions not assigned function codes will need to be assigned
function codes in the instructions table used by the Programming Device and the
CPM2A/CPM2C or SRM1(-V2) before they can be used in programming. The
assignments of expansion instructions in the instructions table will change the
meaning of instructions and operands, so be sure to set the instructions table
before programming and transfer the proper instructions table to the CPM2A/
CPM2C or SRM1(-V2) before program execution.
Example: CPM2A/CPM2C PCs
The specific instructions used in the following example are for the CPM2A/
CPM2C. The concepts are the same for the SRM1(-V2).
Function code 61
Function code 64
Function code 65
At the time of shipping, the function codes are
assigned as shown above. (In this example,
the instructions all relate to pulse outputs.)
Note
1. Set the PC model to "CQM1" when setting the expansion instructions for the
SRM1(-V2) or CPM2A/CPM2C from the SSS.
2. The PC Setup must be set for user-defined expansion instruction function
codes in order for function codes to be assigned. Set bits 08 to 11 of
DM 6602 to 1.
INI
Function code 61
SPED
PULS
Function code 64
MAX
Function code 65
MIN
SUM
If pulse outputs are not being used, and if
maximum values, minimum values, and
sums are required, then the Set Instructions
operation can be used as shown above to
reassign instructions in the instruction table.
Section
2-16
INI
SPED
PULS
MAX
MIN
SUM

Advertisement

Table of Contents
loading

This manual is also suitable for:

Srm-v2Cpm1aCpm2aSrm1Cpm2c

Table of Contents