
[Description]
Reads the setting parameter stored in the CNC.
This function is used for getting the information of I/O device from
the setting parameter to input/output via Reader/Puncher interface of
CNC by the application program, etc.
The attribute of setting data depends on the type and axis, and it is
different for each setting data.
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 read any bit setting data bit by bit.
8 bits(i.e. 1 byte) which belong to the same setting data number are
read at the same time.
Refer "PARAMETER MANUAL" of CNC for details of each setting parameter.
Specify the setting parameter number in "number" with binary format.
Specify one of following values corresponding with each setting
parameter as axis number in "axis".
axis Setting parameter type
-----------------------+------------------------------------
0 Ordinary (none axis type) parameter
-1 All axes data of axis type parameter
1,..,amount of One specified axis data of
controlled axis axis type parameter
The setting parameter of none axis type setting parameter or the axis
type setting parameter which was read for one specified axis is stored
in "buf.u.cdata/idata/ldata/rdata". The axis type setting parameter
which were read for all axes are stored in "buf.u.cdatas/idatas/ldatas/
rdatas".
The data format depends on each setting parameter. The format of
Byte/Word/2-Word/Real setting parameter is generally signed binary.