User Manual

Motion control is easy
10.5 Motion control instructions
Easy Book
240 Manual, 03/2014, A5E02486774-AF
Writeable parameter name
Writeable parameter name
Sensor[1].PassiveHoming.Mode
PositionLimitsSW.Active
Sensor[1].PassiveHoming.SideInput
PositionLimitsSW.MinPosition
Sensor[1].PassiveHoming.SwitchedLevel
PositionLimitsSW.MaxPosition
Units.LengthUnit
Homing.AutoReversal
Mechanics.LeadScrew
Homing.ApproachDirection
DynamicLimits.MinVelocity
Homing.ApproachVelocity
DynamicLimits.MaxVelocity
Homing.ReferencingVelocity
Table 10- 30 Parameters for the MC_WriteParam instruction
Parameter and type
Data type
Description
PARAMNAME
IN
Variant
Name of parameter where value is written
VALUE
IN
Variant
Value to write to assigned parameter
EXECUTE
IN
Bool
Start the instruction. Default value: FALSE
DONE
OUT
Bool
Value has been written. Default value: FALSE
BUSY
OUT
Bool
If TRUE, the instruction is operating. Default value: FALSE
ERROR
OUT
Real
If TRUE, an error occurred. Default value: FALSE
ERRORID
OUT
Word
ID of the error
ERRORINFO
OUT
Word
Related information to the ERRORID
Table 10- 31 Condition codes for ERRORID and ERRORINFO
ERRORID
(W#16#...)
ERRORINFO
(W#16#...)
Description
0
0
Successful change of an Axis TO-DB parameter
8410
[1]
0028
[1]
Set an invalid parameter (Axis TO-DB parameter with incorrect length)
8410
[1]
0029
[1]
Set an invalid parameter (no Axis TO-DB parameter)
8410
[1]
002B
[1]
Set an Invalid parameter (read-only Axis TO-DB parameter)
8410
[1]
002C
[1]
Set a valid parameter, but axis is not disabled
Config
Error
[2]
Config
Error
[2]
Set a valid parameter (public read-only Axis TO-DB parameter) out-of-range
Config
Error
[3]
Config
Error
[3]
Set a valid parameter (public Axis TO-DB parameter) out-of-range
[1] Error at MC_WriteParam
[2] Error at MC_Power
[3] Error at MC_Power and MC_MoveXXX or MC_CommandTable