Reading M-Codes - Mitsubishi Electric SV13/22 Programming Manual

Table of Contents

Advertisement

APPENDICES
4.3

Reading M-Codes

[Program Example]
System configuration
A172SHCPUN
172S
ENC
A1S
Y40
Y000
to
Y00F
System configuration
A172SHCPUN
172S
ENC
A1S
Y40
Y000
to
Y00F
Downloaded from
ManualsNet.com
An example of a program for reading an M-code on completion of positioning start
or on completion of positioning is shown here.
The distinction between positioning start completion and positioning completion is
made with the following signals.
• Positioning start completed .........M1600+20n (positioning start completed signal)
• Positioning completed..................M1601+20n (positioning completed signal)
(1) A program that outputs the M-code for axis 1 from Y000 to Y00F to an external
destination on completion of positioning start and after conversion to BCD
code, is shown here.
A172B
A
A1S
X10
M1600
0
CIRCUIT END
(2) A program that outputs the M-code for axis 1 from Y000 to Y00F to an external
destination on completion of positioning and after conversion to BCD code, is
shown here.
A172B
A
A1S
X10
M1600
0
CIRCUIT END
search engine
Sequence program
Axis 1 positioning start completed signal
BCD
Sequence program
Axis 1 positioning start completed signal
BCD
APP − 43
P
K4
D813
Y0000
Y000 to Y00F designation
M-code storage area for axis 1
BCD conversion instruction
P
K4
D813
Y0000
Y000 to Y00F designation
M-code storage area for axis 1
BCD conversion instruction

Advertisement

Table of Contents
loading

This manual is also suitable for:

A172shcpunA171shcpun

Table of Contents