Mitsubishi Electronics Comprehensive Guide to M Code Output Functions for QD75D Controllers

Models: QD75P QD75D

1 768
Download 768 pages 34.72 Kb
Page 545
Image 545

12CONTROL SUB FUNCTIONS

[4]Setting the M code output function

MELSEC-Q

The following shows the settings to use the "M code output function".

(1)Set the M code No. in the positioning data " Da.10 M code".

(2)Set the timing to output the M code ON signal (X4, X5, X6, X7).

Set the required value in the following parameter, and write it to the QD75. The set details are validated at the rising edge (OFF ON) of the PLC READY signal (Y0).

 

 

 

 

Setting

 

Buffer memory address

 

 

Setting item

Setting details

Axis

Axis

Axis

Axis

 

 

value

 

 

 

 

 

1

2

3

4

 

 

 

 

 

 

 

 

 

M code ON signal

 

Set the timing to output the M code ON signal.

 

 

 

 

 

Pr.18

 

 

0: WITH mode

27

177

327

477

 

 

 

output timing

 

1: AFTER mode

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Refer to Section 5.2 "List of parameters" for setting details.

[5] Reading M codes

"M codes" are stored in the following buffer memory when the M code ON signal turns ON.

 

 

 

 

Monitor

 

 

 

Buffer memory address

 

 

Monitor item

Storage details

Axis

Axis

Axis

Axis

 

 

value

 

 

 

 

 

 

 

1

2

3

4

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

The M code No. (

 

M code) set in the

 

 

 

 

 

 

 

 

 

Da.10

 

 

 

 

 

Md.25

 

Valid M code

 

808

908

1008

1108

 

 

 

positioning data is stored.

 

 

 

 

 

 

 

 

 

Refer to Section 5.6 "List of monitor data" for information on the storage details.

The following shows a sequence program example for reading the " Md.25

M code" to the PLC CPU data register (D110). (The read value is used to command the sub work.)

Read M codes not as "rising edge commands", but as "ON execution commands".

Valid

Example

M code ON signal

FROM H0 K808 D110 K1

ON execution command

D110: valid M codes

12 - 69

Page 545
Image 545
Mitsubishi Electronics QD75D Setting the M code output function, Reading M codes, M code No Code set, Pr.18, Da.10 Md.25