97
Description
This function performs arithmetic operations on numerical values, position data,
or the contents of registers. When the first term is a register, the second and third
terms will be integers. (Non-integer values are rounded to the nearest integer.)
When the first term is a position data address, the second and third terms will be
real numbers and values below the fourth decimal place will be rounded off.
The possible values for the result are as follows:
–39,999,999 to –0.0001
0
0.0001 to 39,999,999
An error will occur if the first term’s data isn’t within the acceptable range. The
possible values for the first term are as follows:
When the first term is position data:
–39,999,999 to +39,999,999
When the first term is a register:
0000 to 1999
Registers are cleared to zero when the power is turned on, so be sure to initialize
the register contents when the program is started.
Example Program
:
:
N010
G60
A0000=A1000–500
:
:
5-5-19 G63: SUBSTITUTION
Substitutes position data and registers.
Format
G63_<first term = second term >
Parameters
The following table shows the possible settings for the parameters.
Parameter
Possible settings
First term
A0000 to A1999
E00 to E31
Second term
A0000 to A1999
E00 to E31
–39,999,999 to +39,999,999
X or Y
Description
This function copies position data, register contents, present values, or numeri-
cal values into position data addresses or registers.
When the second term is an axis name, the present position of that axis in the
reference coordinate system is copied to the first term. That present position is
copied according to the pulse rate and minimum unit setting for that axis speci-
fied in the system parameters.
When the first term is a register, the value in the second term will be treated as an
integer. Non-integer values are rounded to the nearest integer.
An error will occur if the first term’s data isn’t within the acceptable range. The
possible values for the first term are as follows:
When the first term is position data:
–39,999,999 to +39,999,999
When the first term is a register:
0000 to 1999
Registers are cleared to zero when the power is turned on, so be sure to initialize
the register contents when the program is started.
Example Program
:
:
N010
G63
A1000=123.45
:
:
G Functions
Section 5-5
Содержание C200H-MC221 -
Страница 1: ...Cat No W315 E1 03 Motion Control Unit C200H MC221 OPERATION MANUAL ...
Страница 2: ......
Страница 3: ...C200H MC221 Motion Control Unit Operation Manual Details Revised June 2010 ...
Страница 4: ...iv ...
Страница 6: ...vi ...
Страница 10: ......
Страница 12: ......
Страница 16: ...xvi ...
Страница 42: ......
Страница 48: ......
Страница 196: ......
Страница 212: ......
Страница 242: ......
Страница 258: ......
Страница 304: ......