Programming Instructions
Expansion Instructions
The following table shows the instructions that can be treated as expansion instructions in the CPM2A, CPM2C,
and SRM1(-V2) PCs. The default function codes are given for instructions that have codes assigned by default.
Code Mnemonic
17
(@)ASFT
ASYNCHRONOUS SHIFT
REGISTER
47
(@)RXD
RECEIVE
48
(@)TXD
TRANSMIT
60
CMPL
DOUBLE COMPARE
61
(@)INI
MODE CONTROL
62
(@)PRV
HIGH-SPEED COUNTER
PV READ
63
(@)CTBL
COMPARISON TABLE
LOAD
64
(@)SPED
SPEED OUTPUT
65
(@)PULS
SET PULSES
66
(@)SCL
SCALING
67
(@)BCNT
BIT COUNTER
68
(@)BCMP
BLOCK COMPARE
69
(@)STIM
INTERVAL TIMER
89
(@)INT
INTERRUPT CONTROL
---
(@)ACC
ACCELERATION
CONTROL
---
AVG
AVERAGE VALUE
---
(@)FCS
FCS CALCULATE
---
(@)HEX
ASCII-TO-HEXADECIMAL Converts ASCII data to hexadecimal data.
---
(@)HMS
SECONDS TO HOURS
---
(@)MAX
FIND MAXIMUM
---
(@)MIN
FIND MINIMUM
---
(@)NEG
2'S COMPLEMENT
562
Name
Creates a shift register that exchanges the con-
tents of adjacent words when one of the words
is zero and the other is not.
Receives data via a communications port.
Sends data via a communications port.
Compares two eight-digit hexadecimal values.
Starts and stops counter operation, compares
and changes counter PVs, and stops pulse out-
put.
Reads counter PVs and status data for the high-
speed counter.
Compares counter PVs and generates a direct
table or starts operation.
Outputs pulses at the specified frequency (10
Hz to 50 KHz in 10 Hz units). The output fre-
quency can be changed while pulses are being
output.
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.
Performs a scaling conversion on the calculated
value.
Use the Programming Console or SSS to ac-
cess this instruction for the SRM1(-V2).
Counts the total number of bits that are ON in
the specified block of words.
Judges whether the value of a word is within 16
ranges (defined by lower and upper limits).
Controls interval timers used to perform sched-
uled interrupts.
Performs interrupt control, such as masking and
unmasking the interrupt bits for I/O interrupts.
Together with PULS(––), ACC(––) controls the
acceleration and/or deceleration of pulses output
from port 1 or 2.
Adds the specified number of hexadecimal
words and computes the mean value. Rounds
off to 4 digits past the decimal point.
Checks for errors in data transmitted by a Host
Link command.
Converts second data to hour and minute data.
Finds the maximum value in specified data area
and outputs that value to another word.
Finds the minimum value in specified data area
and outputs that value to another word.
Converts the four-digit hexadecimal content of
the source word to its 2's complement and out-
puts the result to R.
Use the Programming Console or SSS to ac-
cess this instruction for the SRM1(-V2).
Function
Appendix A
CPU Units Page
All
410
All
505
All
507
All
436
All
399
CPM2A/
401
CPM2C
CPM2A/
396
CPM2C
CPM2A/
489
CPM2C
CPM2A/
487
CPM2C
All
421
(But, Ver-
sion 2 only
for SRM1)
All
499
All
434
All
504
CPM2A/
501
CPM2C
CPM2A/
491
CPM2C
CPM2A/
476
CPM2C
All
500
All
451
CPM2A/
454
CPM2C
CPM2A/
472
CPM2C
CPM2A/
474
CPM2C
All
455
(But, Ver-
sion 2 only
for SRM1)
Need help?
Do you have a question about the CPM1 - PROGRAMING MANUAL 02-2001 and is the answer not in the manual?