
[Description]
Alters the multiple setting parameter data stored in the CNC.
Even if "PARAMETER WRITE" is "DISABLE" in setting data, it is possible
to alter CNC's setting parameter data.
The attribute of setting data depends on the type and axis, and it is
different for each setting data. It is as follows, and can be got by
cnc_rdsetinfo() function.
Setting data type Meaning Byte size
---------------------------+---------------------------------+---------
Bit setting data Every bits have each definition. 1
Bit setting data with axis Every bits have each definition. 1
(each axis)
Byte setting data 1-byte data is stored. 1
Byte setting data with axis 1-byte data is stored.(each axis) 1
Word setting data 2-byte data is stored. 2
Word setting data with axis 2-byte data is stored.(each axis) 2
2-Word setting data 4-byte data is stored. 4
2-Word setting data with ax.4-byte data is stored.(each axis) 4
Real setting data 4-byte data which indicates value
of variable and 4-byte data which
indicates number of places of 8
decimals are stored.
Real setting data with ax. 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 setting data bit by bit.
8 bits(i.e. 1 byte) which belong to the same setting data number are
written at the same time.
Refer "PARAMETER MANUAL" of CNC for details of each setting
parameters.
Store the setting parameters to be written in "buf" in following
order. The data structure is same as "Read setting parameters (range
specified) (cnc_rdsetr)".
+-----------------------+
│Setting param. Number 1│ <-- buf[0].datano
│-----------------------│
│ Type 1 │ <-- buf[0].type
│-----------------------│
│ Data 1 │ <-- buf[0].u.cdata/idata/ldata/rdata
│ │ cdatas/idatas/ldatas/rdatas
│-----------------------│
:
│-----------------------│
│Setting param. Number n│ <-- buf[n].datano
│-----------------------│
│ Type n │ <-- buf[n].type
│-----------------------│
│ Data n │ <-- buf[n].u.cdata/idata/ldata/rdata
│ │ cdatas/idatas/ldatas/rdatas
+-----------------------+