MC_WriteAxisParameter
The MC_WriteAxisParameter instruction writes axis parameters in the MC Function Module.
Instruction Name
FB/
FUN
Graphic expression ST expression
MC_WriteAxis-
Parameter
Write Axis
Parameters
FB
MC_WriteAxisParameter_instance
Axis Axis
AxisParameter AxisParameter
Execute
Error
ErrorID
ErrorParameterCode
CommandAborted
MC_WriteAxisParameter
Done
Busy
MC_WriteAxisParameter_instance
(
Axis :=parameter,
AxisParameter :=parameter,
Execute :=parameter,
Done =>parameter,
Busy =>parameter,
CommandAborted =>parameter,
Error =>parameter,
ErrorID =>parameter,
ErrorParameterCode
=>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.
ErrorParameterCode Parameter
Detail Code
WORD
*1
Contains the attached information for some error co-
des. If the information is saved, the detail code of the
parameter for which the error occurred is output.
*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.
5 Common Command Instructions
5-47
NY-series Motion Control Instructions Reference Manual (W561)
MC_WriteAxisParameter
5
Variables