Вы находитесь на странице: 1из 2

B.

WINDOW FUNCTION DESCRIPTION


(PMC–PA1/PA3/SA1/SA2/SA3/SA5/SB/
SB2/SB3/SB4/SB5/SB6/SB7/SC/SC3/SC4) APPENDIX B–61863E/14

B.4.7 [Description]
Writing a Parameter Data can be written in a parameter in the CNC.
(:Low–speed There are four types of parameters in the CNC: Bit parameters having a
Response) definite meaning for each bit, byte parameters holding 1–byte data, word
parameters holding 2–byte data, and double word parameters holding
4–byte data. Therefore, the length of the written data varies according to
the parameter specified.
Note that bit parameters cannot be written in bit units. The eight bits (one
byte) for the parameter number must be written at a time. This means that
when a bit needs to be written, the whole data for the corresponding
parameter number shall be read first, modify the target bit in the read data,
then the data shall be rewritten.
For axis parameters, data for a specific axis can be read, or data for all axes
can be read at a time.
For details of parameter data, refer to the Operator’s manual of the CNC.
Some parameters cause a P/S alarm 000 when data is written. (The power
must be turned off before continuing operation.)
[Input data structure]

Top address + 0
(Function code)
18

2 When no axis or one axis is specified


(Completion code) L = 1: Bit or byte parameter
— L = 2: Word parameter
(Need not be set.) L = 4: Double word parameter
4
(Data length)
L When all axes are specified
(L = 1, 2, 4, 1*n, 2*n, 4*n)
L = 1*n: Bit or byte parameter
6 L = 2*n: Word parameter
(Data number) L = 4*n: Double word parameter
N
(N = parameter number)
8 M = 0: No axis
(Data attribute) M = 1 to n: A specific axis
M M = –1: All axes
(M = Axis number)
When all axes are specified by spindle parame-
ters (parameters 4000 to 4799), only two axes
are specified.

Value

10 Parameter data Parameter–dependentform

1072
B. WINDOW FUNCTION DESCRIPTION
(PMC–PA1/PA3/SA1/SA2/SA3/SA5/SB/
B–61863E/14 APPENDIX SB2/SB3/SB4/SB5/SB6/SB7/SC/SC3/SC4)

[Completion codes]
0 : Parameter data has been written normally.
2 : The data byte length of the parameter specified for writing is
invalid.
3 : The parameter number specified for writing is invalid.
4 : The specified data attribute is invalid because it is neither 0, –1,
nor a value from 1 to n (n is the number of axes).
6 : Although a certain option, such as the pitch error compensation
option, is required for the data of the parameter number specified
for writing, it is not provided.
[Output data structure]

Top address + 0
(Function code)
18

2
(Completion code)
?
(See the explanation of
the completion codes.)
4
(Data length)
L
(L = Input data)

6
(Data number)
N
(N = Input data)
8
(Data attribute)
M
(M = Input data) Value

10 Parameter data: Input data Parameter–dependentform

CAUTION
Parameters may not become effective immediately
depending on the parameter numbers.

1073

Вам также может понравиться