Mitsubishi Q2ACPU User Manual page 508

Qna series melsec
Table of Contents

Advertisement

APPENDICES
LEDA instruction
(excluding dedicated instructions for
AnACPU, AnUCPU)
Program example:
LEDA ABCDEFGH
LEDB instruction
(excluding dedicated instructions for
AnACPU, AnUCPU)
Program example:
LEDB IJKLMNOP
LRDP instruction
Program example:
LRDP K3 D10 D100 K10
LWTP instruction
Program example:
LWTP K3 D10 D100 K10
OUT instruction
Program example:
The number of counter points or the
device by which the set value is used
is set by parameter.
Number of counter points: 512
Setting val. stored dev. start: D3000
OUT C0
OUT C256 D3000
RFRP instruction
Program example:
RFRP H100 K10 W100 K10
RTOP instruction
Program example:
RTOP H100 K10 W100 K10
SCMP instruction
Program example:
LEDA SCAP
LEDC D10
LEDC D100
LEDC M0
LEDR
An
CPU Instruction
K10
App - 111
Instruction after A
QnA
Conversion
OUT SM1255
OUT SM1255
OUT SM1255
OUT SM1255
OUT C0 K10
OUT C256 D3000
OUT SM1255
OUT SM1255
OUT SM1255
LEDC D10
LEDC D100
LEDC M0
Corrective Action
Modify the instruction to an LED
instruction.
$MOV "ABCDEFGH" D0
$MOV "IJKLMNOP" D10
$+
D0 D10 D20
LED D20
LED display is performed after
adding the right 8 characters and
the left 8 characters.
Modify the instruction to a ZNRD
instruction.
J.ZNRD J0 K3 D10 D100 K10
M0
Modify the instruction to a ZNWR
instruction.
J.ZNWR J0 K3 D10 D100 K10
M0
After conversion, the parameters
will be set as defaults, so they
must be set again if using an
interrupt counter.
Modify the instruction to an RFRP
instruction for QnACPU.
U.RFRP U10 K10 W100 K10 M0
Modify the instruction to an RTOP
instruction for QnACPU.
U.RTOP U10 K10 W100 K10 M0
Modify the instruction to an
instruction using AND$= and OUT
instructions.
AND$= D0 D100
OUT M0

Advertisement

Table of Contents
loading

This manual is also suitable for:

Q3acpuQ4acpuQ2acpus1

Table of Contents