MC_ReadAxisParameter
The MC_ReadAxisParameter instruction reads axis parameters in the MC Function Module.
Instruction Name
FB/
FUN
Graphic expression ST expression
MC_ReadAxis-
Parameter
Read Axis
Parameters
FB
MC_ReadAxisParameter_instance
Axis Axis
AxisParameter AxisParameter
Execute
Error
ErrorID
CommandAborted
MC_ReadAxisParameter
Done
Busy
MC_ReadAxisParameter (
Axis :=parameter,
AxisParameter :=parameter,
Execute :=parameter,
Done =>parameter,
Busy =>parameter,
CommandAborted =>parameter,
Error =>parameter,
ErrorID =>parameter
);
Variables
Input Variables
Name Meaning Data type Valid range Default Description
Execute Execute BOOL TRUE or
FALSE
FALSE The instruction is executed when the value
of this variable changes to TRUE.
Output Variables
Name Meaning
Data
type
Valid
range
Description
Done Done BOOL TRUE or
F
ALSE
TRUE when the instruction is completed.
Busy Executing BOOL TRUE or
F
ALSE
TRUE when the instruction is acknowledged.
CommandAborted Command
Aborted
BOOL TRUE or
F
ALSE
TRUE when the instruction is aborted.
Error Error BOOL TRUE or
F
ALSE
TRUE while there is an error.
ErrorID Error Code WORD
*1
Contains the error code when an error occurs.
A value of 16#0000 indicates normal execution.
*1. The upper four digits of the event code give the error code for ErrorID. Refer to the NY
-series Troubleshooting Manual
(Cat. No. W564) for the event codes.
Output Variable Update Timing
Name Timing for changing to TRUE Timing for changing to FALSE
Done When the instruction is completed.
• When Execute is TRUE and changes to
F
ALSE.
• After one period when Execute is FALSE.
5 Common Command Instructions
5-61
NY-series Motion Control Instructions Reference Manual (W561)
MC_ReadAxisParameter
5
Variables