Skip to main content

10.4.3.14. COPYM2R

10.4.3.14. COPYM2R

 

This command replaces the shift variable R with the MW variable for embedded PLC sequentially. This command reduces the execution time when many MW, R variables are repeatedly replaced.

 

Explanation

This is the function of replacing the X, Y, Z, Rx, Ry, Rz and cfg item of R variable with the values in MW variable.

Grammar

COPYM2R SM=<MW start number>,SR=<R variable start number>,Rcnt=<Number of R variable to copy>,MWInt=<Number to variables to jump between the 7 MWs>

Parameter

MW

start number

Enter the number of MW variable to start copying.

1~1000

R variable start number

Enter the number of R variable to start copying.

9~100

Number of R variable to copy

Enter the number of R variable to copy. 7 MW variable values are entered to one R variable.

1~92

Number to variables to jump between the 7 MWs

Enter the number of variables to jump after copying 7 MW variables and before copying 7 variables. That is, if the value is 3, it copies to 1~7 and then to 11~17.

0~15

Example

COPYM2R SM=1,SR=9,Rcnt=1,MWInt=0

 

 

 

l  Enter the X, Y and Z item of R variable with MW/10 value, and Rx, Ry and Rz item with MW/100. But for cfg, replace the value as is.