516
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.
301
87 to 89
For expansion instructions.
213
90
(@)SEND
NETWORK SEND
Transmits data to another node in the network.
406
91
(@)SBS
SUBROUTINE ENTRY
Calls and executes subroutine N.
377
92
SBN
SUBROUTINE DEFINE
Marks start of subroutine N.
379
93
RET
RETURN
Marks the end of a subroutine and returns control to main pro-
gram.
379
97
(@)IORF
I/O REFRESH
Refreshes all I/O words between the start and end words.
Cannot be used with the SRM1.
382
98
(@)RECV
NETWORK RECEIVE
Requests data transfer from another node in the network.
410
99
(@)MCRO
MACRO
Calls and executes a subroutine replacing I/O words.
383
Code
Mnemonic
Name
Function
Page
17
(@)ASFT
ASYNCHRONOUS SHIFT
REGISTER
Creates a shift register that exchanges the contents of adja-
cent words when one of the words is zero and the other is not.
268
18
TKY
TEN KEY INPUT
Inputs 8 digits of BCD data from a 10-key keypad.
434
19
(@)MCMP
MULTI-WORD COMPARE
Compares a block of 16 consecutive words to another block of
16 consecutive words.
285
47
(@)RXD
RECEIVE
Receives data via a communications port.
415
48
(@)TXD
TRANSMIT
Sends data via a communications port.
417
60
CMPL
DOUBLE COMPARE
Compares two eight-digit hexadecimal values.
284
61
(@)INI
MODE CONTROL
Starts and stops counter operation, compares and changes
counter PVs, and stops pulse output.
255
62
(@)PRV
HIGH-SPEED COUNTER
PV READ
Reads counter PVs and status data of high-speed counters.
257
63
(@)CTBL
COMPARISON TABLE
LOAD
Registers a comparison table and starts comparison for high-
speed counters.
243
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.
395
65
(@)PULS
SET PULSES
Outputs the specified number of pulses at the specified fre-
quency. The pulse output cannot be stopped until the specified
number of pulses have been output.
393
66
(@)SCL
SCALE
Performs a scaling conversion on the calculated value.
305
67
(@)BCNT
BIT COUNTER
Counts the total number of bits that are ON in the specified
block of words.
385
68
(@)BCMP
BLOCK COMPARE
Judges whether the value of a word is within 16 ranges
(defined by lower and upper limits).
283
69
(@)STIM
INTERVAL TIMER
Controls interval timers used to perform scheduled interrupts.
241
87
DSW
DIGITAL SWITCH INPUT
Inputs 4- or 8-digit BCD data from a digital switch.
427
88
7SEG
7-SEGMENT DISPLAY
OUTPUT
Converts 4- or 8-digit data to 7-segment display format and
then outputs the converted data.
424
89
(@)INT
INTERRUPT CONTROL
Performs interrupt control, such as masking and unmasking
the interrupt bits for I/O interrupts.
391
---
(@)ACC
ACCELERATION CON-
TROL
Together with PULS(––), ACC(––) controls the acceleration
and/or deceleration of pulses output from port 1 or 2.
400
---
(@)ACOS
ARC CoSINE
Calculates the arc cosine of a 32-bit floating-point number.
366
Code
Mnemonic
Name
Function
Page