MLAxisReadParam

Pipe Network motion iconThis function/function block was added in KAS v4.02.

 Function Block - Returns the value of the specified axis parameter.

Inputs

Input

Data Type

Range

Unit

Default

Description

AxisID

DINT

No range

N/A

No default

ID Name of the Axis block.

ParameterNumber

INT

Enumerated

N/A

No default

See Axis Parameters.

Outputs

Output

Data Type

Range

Unit

Description

OK

BOOL

FALSE, TRUE

N/A

Indicates whether this function block has completed without error.

Value

LREAL

No range

N/A

Value of the axis parameter.

Remarks

None

Axis Parameters

ID

Parameter

Name

R/W

Update Rate Type

Description

1035

ML_AXIS_PARAM_BUS_INTERFACE_TYPE

Bus Interface Type

Read-only

Static

The parameter value is:

  • DRIVE_BUS_INTERFACE_ECAT when the axis is associated with an EtherCAT device.
  • DRIVE_BUS_INTERFACE_SIMULATOR when the axis is simulated.

FBD Language Example

FFLD Language Example

IL Language Example

Not available.

ST Language Example

(* Check if Pipe axis is associated with an EtherCAT device or simulated *)
Inst_MLAxisReadParam(PipeNetwork.AXIS1, ML_AXIS_PARAM_BUS_INTERFACE_TYPE);
IF Inst_MLAxisReadParam.OK THEN
   Axis1_Simulated := Inst_MLAxisReadParam.Value = DRIVE_BUS_INTERFACE_SIMULATOR;
END_IF; 

See Also

MLAxisReadBoolParam