Function
• When Execute changes to TRUE, the MC_ReadAxisParameter instruction reads the axis parame-
ters of the axis specified with Axis and outputs them to AxisParameter
(Axis Parameters).
• You can use this instruction to read the axis parameters regardless of the status of the
Cfg.AxEnable (Axis Use) axis variable.
Precautions for Correct Use
• This instruction reads the values of the axis parameters that are valid when the instruction is
executed, and not the values that are saved in the non-volatile memory of the CPU Unit.
For example, if you write the axis parameters with the MC_W
rite (Write MC Setting) instruc-
tion, the written axis parameters are read.
• If you use this instruction together with the MC_WriteAxisParameter (Write Axis Parameters)
instruction, check Done from the MC_WriteAxisParameter (Write Axis Parameters) before
you read the axis parameters.
• The values of the axis parameters are output to AxisParameter (Axis Parameters) only at the
completion of instruction execution. They are not written to AxisParameter (Axis Parameters)
after that. Therefore, if you write values to AxisParameter (Axis Parameters), the previous
values are overwritten.
Axis Parameters That Are Read
Refer to Axis Parameters That Are Written and Read on page 5-57
for the parameters that are read by
this instruction.
Timing Charts
A timing chart for execution of the MC_ReadAxisParameter (Read Axis Parameters) instruction is
shown below
.
Busy
Execute
CommandAborted
Done
Error
ErrorID
16#0000
Re-execution of Motion Control Instructions
For details on re-execution of motion control instructions, refer to the NY
-series Industrial Panel PC /
Industrial Box PC Motion Control User’s Manual (Cat. No. W559).
5 Common Command Instructions
5-63
NY-series Motion Control Instructions Reference Manual (W561)
MC_ReadAxisParameter
5
Function