
[Return]
EW_OK( 0) Successful.
EW_LENGTH( 2) Incorrect data block length "length".
EW_NUMBER( 3) Incorrect parameter number "buf.datano".
EW_ATTRIB( 4) Incorrect axis number "buf.type".
Any data other than -1, 0 or (1,..,amount of
controlled axes) has been specified.
EW_PROT( 7 ) Write operation is prohibited.
[Description]
Alters the multiple parameter data stored in the CNC.
Even if "PARAMETER WRITE" is "DISABLE" in setting data, it is possible
to alter CNC's parameter data.
The attribute of CNC parameter depends on the type and axis, and it is
different for each parameter. It is as follows, and can be got by
cnc_rdparainfo() function.
Parameter type Meaning Byte size
--------------------------+---------------------------------+---------
Bit parameter Every bits have each definition. 1
Bit parameter with axis Every bits have each definition. 1
(each axis)
Byte parameter 1-byte data is stored. 1
Byte parameter with axis 1-byte data is stored.(each axis) 1
Word parameter 2-byte data is stored. 2
Word parameter with axis 2-byte data is stored.(each axis) 2
2-Word parameter 4-byte data is stored. 4
2-Word parameter with axis 4-byte data is stored.(each axis) 4
Real parameter 4-byte data which indicates value
of variable and 4-byte data which
indicates number of places of 8
decimals are stored.
Real parameter with axis 4-byte data whidh indicates value
of variable and 4-byte data which
indicates number of places of 8
decimals are stored.(each axis)
It is impossible to write any bit parameter bit by bit.
8 bits(i.e. 1 byte) which belong to the same parameter number are
written at the same time.
PW000 alarm :"PLEASE TURN OFF POWER" may be issued when some specific
parameters are written.
Refer "PARAMETER MANUAL" of CNC for details of each parameters.