
[Description]
Reads the parameter data stored in the CNC.
This function is used for reading the various settings of CNC to
execute any processes which are equivalent to CNC's by the application
program, etc.
The attribute of CNC parameter depends on the type and axis, and it is
different for each parameter.
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 read any bit parameter bit by bit.
8 bits(i.e. 1 byte) which belong to the same parameter number are read
at the same time.
Refer "PARAMETER MANUAL" of CNC for details of each parameters.
Specify the parameter number in "number" with binary format.
Specify one of following values corresponding with each parameter
as axis number in "axis".
axis 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 parameter data of none axis type parameter or the axis type
parameter data which was read for one specified axis is stored in
"buf.u.cdata/idata/ldata/rdata". The axis type parameters which were
read for all axes are stored in "buf.u.cdatas/idatas/ldatas/rdatas".
The data format depends on each parameter. The format of Byte/Word/
2-Word parameter is generally signed binary.