Description
Motion Control instruction "MC_WriteParam" enables the writing of tags of the positioning axis technology object in the user program. In contrast to the value assignment of the tags in the user program, "MC_WriteParam" can also change values of read-only tags.
You can learn about the tags, the conditions under which they can be written and the time at which they take effect in the description of the technology object tags.
Requirements
-
The positioning axis technology object has been configured correctly.
-
To write tags that are read-only in the user program, the axis must be disabled.
-
Tags whose change requires a restart cannot be written with "MC_WriteParam".
Override response
A MC_WriteParam command cannot be aborted by any other Motion Control command.
A new MC_WriteParam command does not abort any active Motion Control commands.
Parameters
|
Parameter |
Declaration |
Data type |
Default value |
Description |
|
|---|---|---|---|---|---|
|
Parameter |
INPUT |
VARIANT (BOOL, INT, DINT, UDINT, REAL) |
- |
VARIANT pointer to the technology object tags positioning axis (destination address) to be written |
|
|
Value |
INPUT |
VARIANT (BOOL, INT, DINT, UDINT, REAL) |
- |
VARIANT pointer to the value to be written (source address) |
|
|
Execute |
INPUT |
BOOL |
FALSE |
Start of the command with a positive edge |
|
|
Done |
OUTPUT |
BOOL |
FALSE |
TRUE |
Value was written |
|
Busy |
OUTPUT |
BOOL |
FALSE |
TRUE |
The command is being executed |
|
Error |
OUTPUT |
BOOL |
FALSE |
TRUE |
An error occurred during execution of the command. The cause of the error can be found in parameters "ErrorID" and "ErrorInfo". |
|
ErrorID |
OUTPUT |
WORD |
16#0000 |
Error ID for parameter "Error" |
|
|
ErrorInfo |
OUTPUT |
WORD |
16#0000 |
Error info ID for parameter "ErrorID" |
|
See also
MC_Power: Enable, disable axis as of V6 (S7-1200)
MC_Reset: Acknowledge fault, restart technology object as of V6 (S7-1200)
MC_Home: Home axes, set reference point as of V6 (S7-1200)
MC_Halt: Stop axis as of V6 (S7-1200)
MC_MoveAbsolute: Absolute positioning of axis as of V6 (S7-1200)
MC_MoveRelative: Relative positioning of axis as of V6 (S7-1200)
MC_MoveVelocity: Move axis at set velocity as of V6 (S7-1200)
MC_MoveJog: Move axis in jog mode as of V6 (S7-1200)
MC_CommandTable: Run axis commands as motion sequence as of V6 (S7-1200)
MC_ChangeDynamic: Change dynamic settings of axis as of V6 (S7-1200)
MC_ReadParam: Continuously read motion data of a positioning axis as of V6 (S7-1200)