2-18
Section
Expansion Instructions (CPM2A/CPM2C/SRM1(-V2) Only)
160
2-18 Expansion Instructions (CPM2A/CPM2C/SRM1(-V2) Only)
A set of expansion instructions is available for the CPM2A, CPM2C (including
the CPM2C-S), and SRM1(-V2) to aid in special programming needs. Function
codes can be assigned to up to 18 of the expansion instructions to enable using
them in programs. This allows the user to pick the instructions needed by each
CPM2A, CPM2C, or SRM1(-V2) program to more effectively use the function
codes required 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
Function code 61
Function code 64
Function code 65
INI
SPED
PULS
MAX
MIN
SUM
INI
SPED
PULS
MAX
MIN
SUM
At the time of shipping, the function codes are
assigned as shown above. (In this example,
the instructions all relate to pulse outputs.)
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.
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.