MLAxisWriteParam

Pipe Network motion icon This function/function block was added in KAS v4.05.

 Function Block - Write an axis property for a Pipe Network Axis.

Inputs

Input

Data Type

Range

Unit

Default

Description

AxisID

DINT

1 to 1024

N/A

No default

ID of the Axis block.

ParameterNumber

INT

Enumerated

N/A

No default

See Axis Parameters.

Value

LREAL

No range

N/A

No default

State to write.

Outputs

Output

Data Type

Range

Unit

Description

OK

BOOL

FALSE, TRUE

N/A

Indicates whether this function block has completed without error.

Remarks

None

Axis Parameters

ID

Parameter

Name

R/W

Update Rate Type

Description

1036

ML_AXIS_PARAM_SIM_CLOSING

Simulator Distance
Closing Fraction

Read / Write

Controller

This setting affects how responsive a simulated axis is to changing command positions.

  • The valid range of this parameter is (0.0, 1.5).
  • The default value is 0.7.

Values use these ranges:

  • (0.0, 1.0): Simulate following error.
    • Value 0.1 generates a large following error.
    • Value 0.9 generates a small following error.
  • 1.0: No following error.
  • (1.0,1.5): Simulate leading error.

  • Value 1.0 is recommended when using an axis as a virtual master to command motion through camming and/or gearing.

FBD Language Example

FFLD Language Example

IL Language Example

Not available.

ST Language Example

(* Set perfect following for simulated axes *)MLAxisWriteParam(PipeNetwork.AXIS1, ML_AXIS_PARAM_SIM_CLOSING, LREAL#1.0);

 

See Also

MLAxisReadParam