Melsec-q, 14 dedicated instructions, Program examples – MITSUBISHI ELECTRIC Mitsubishi Programmable Logic Controller QD75D User Manual

Page 593

Advertising
background image

14 - 11

MELSEC-Q

14 DEDICATED INSTRUCTIONS

(6) If the PSTRT instruction is executed in either of the following cases, an error

"Dedicated instruction error" (error code: 804) will occur and positioning cannot be

started.

• Any value other than 1 to 600, 7000 to 7004, and 9001 to 9004 is set to

"Starting number" (device: (S)+2) of the control data.

• The instruction for a non-existent axis is specified.

(Example: The PSTRT2 instruction is specified when the QD75P1 is used.)

[Program examples]

• The following program executes the positioning start of positioning data No. 1 when

X100 turns ON.

Use D30 to D32 as the control data devices of positioning data No. 1, and M32 and

M33 as the completion devices.

Positioning start program

<Positioning start command pulse>

<Positioning start No. 1 setting>

<Positioning start command hold>

<Positioning start execution>

<Positioning start command storage OFF>

[Program example for use when dedicated instruction is not used]

Positioning start program (when dedicated instruction is not used)

<Positioning start command pulse>

<Positioning start No. 1 setting>

<Positioning start execution>

<Positioning start signal OFF>

DX0C

Advertising