Mc_Writeparam (Write Parameters Of A Technology Object) Instruction - Siemens S7-1200 System Manual

Hide thumbs Also See for S7-1200:
Table of Contents

Advertisement

Technology instructions
9.3 Motion control
9.3.5.12

MC_WriteParam (write parameters of a technology object) instruction

You use the MC_WriteParam instruction to write a select number of parameters to change
the functionality of the axis from the user program.
Table 9- 50
MC_WriteParam instruction
LAD / FBD
STEP 7 automatically creates the DB when you insert the instruction.
1
In the SCL example, "MC_WriteParam_DB" is the name of the instance DB.
2
You can write to the parameters that are public. You cannot write to "MotionStatus" and
"StatusBits". The valid parameters are listed in the table below:
Writeable parameter name
Actor.InverseDirection
Actor.DirectionMode
Actor.DriveParameter.PulsesPerDriveRevolution
Sensor[1].ActiveHoming.Mode
Sensor[1].ActiveHoming.SideInput
Sensor[1].ActiveHoming.Offset
Sensor[1].ActiveHoming.SwitchedLevel
Sensor[1].PassiveHoming.Mode
Sensor[1].PassiveHoming.SideInput
Sensor[1].PassiveHoming.SwitchedLevel
Units.LengthUnit
Mechanics.LeadScrew
DynamicLimits.MinVelocity
DynamicLimits.MaxVelocity
478
SCL
"MC_WriteParam_DB"(
Parameter:=_variant_in_,
Value:=_variant_in_,
Execute:=_bool_in_,
Done:=_bool_out_,
Error:=_real_out_,
ErrorID:=_word_out_,
ErrorInfo:=_word_out_);
Description
You use the MC_WriteParam
instruction to write to public
parameters (for example,
acceleration and user DB values).
Writeable parameter name
DynamicDefaults.Acceleration
DynamicDefaults.Deceleration
DynamicDefaults.Jerk
DynamicDefaults.EmergencyDeceleration
PositionLimitsHW.Active
PositionLimitsHW.MaxSwitchedLevel
PositionLimitsHW.MinSwitchedLevel
PositionLimitsSW.Active
PositionLimitsSW.MinPosition
PositionLimitsSW.MaxPosition
Homing.AutoReversal
Homing.ApproachDirection
Homing.ApproachVelocity
Homing.ReferencingVelocity
S7-1200 Programmable controller
System Manual, 03/2014, A5E02486680-AG

Advertisement

Table of Contents
loading

Table of Contents