D variables (d registers) -14 – Yaskawa MotionSuite Series Machine Controller Programming Manual User Manual
Page 186

MotionSuite™ Series Machine Controller Programming Manual
Chapter 5: Variables (Registers)
5-14
5.2.6
D Variables (D Registers)
!
!
!
! Outline
The D variables (D registers) are the internal variables owned by each motion program.
They can only be used within the corresponding programs.
!
!
!
! Detailed Explanation
The D register command method is shown as follows:
The D registers are used as variables to substitute the calculation results, or designate the
positioning coordinate values and speeds with variables. The variable numbers are
displayed with decimals.
The size is set up by the Program Configuration: Property. (Default: 32 words)
!
!
!
! Program Example
When designating position and speed during an axis movement command execution
When using the variables in the calculations
Important Point
When designating the moving amount coordinate values or speeds with variables during
the following motion commands, the 32-bit integer number must be used.
MOV, MVS, MCW/MCC, ZRN, SKP, MVT, EXM, POS,
ACC, SCC, IAC, IDC, IFP, FMX, INP
DW00000 ~
DW10240 (maximum)
• Parameter (Command unit: mm, decimal place: 3)
DL00100=100000;
DL00102=200000;
DL00104=300000;
DL11016=500000;
MVS[X]DL00100[Y]DL00102[Z]DL00104FDL00106;
→ 1000.000mm
→ 2000,000mm
→ 3000,000mm
→ 5000,000mm/min
• Bit designation
DB001000=IB001001&MB000101;
• Integer number designation
DW00102=CW00103|DW00104&DW00105;
• 32-bit integer number designation
DLC00106=DL00108*PL0011/ML00200;
• Real number designation
DF00200=MF00202*DF00202*3.14;