Yaskawa MP900 Series Motion Programming Manual User Manual

Page 186

Advertising
background image

Variables (Registers)

5.2.6 D Variables (D Registers)

5 -16

J

Programming Examples

Specifying the Position and Speed in Axis Move Commands as
Variables

D

Parameter

Reference unit = mm
When decimal point position = 3

DL00100 = 100000;

DL00102 = 200000;

DL00104 = 300000;

DL00106 = 500000;

MVS [X]DL00100 [Y]DL00102 [Z]DL00104 FDL00106;

Using Variables in Operations

D

Bit Designation

DB001000 = IB001001 & MB000101;

D

Integer Designation

DW00102 = CW00103 | DW00104 & DW00105;

D

Double Integer Designation

DLC00106 = DL00108*ML0011/ML00200;

D

Real Number Designation

DF00200 = MF00202*DF00202*3.14;

When the travel distance coordinate value or speed is designated as a variable in the following mo tion com-
mands, double integer data must be used.
MOV, MVS, MCW/MCC, ZRN, SKP, MVT, EXM, POS, ACC, SCC, IAC, IDC, IFP, FMX, INP

→ 1000.000 mm

→ 2000.000 mm

→ 3000.000 mm

→ 5000.000 mm/min

5

A

EXAMPLE

"

A

EXAMPLE

"

IMPORTANT

Advertising
This manual is related to the following products: