MC_WriteParam

PLCopen motion icon

 Function Block - Writes the specified axis parameter.

Inputs

Input

Data Type

Range

Unit

Default

Description

Execute

BOOL

FALSE, TRUE

N/A

No default

Requests to write an axis parameter.

Axis

AXIS_REF

1 to 256

N/A

No default

Name of a declared instance of the AXIS_REF library function.

ParameterNumber

INT

No range

N/A

No default

Parameter number.

See Axis Parameters.

Value

LREAL

No range

N/A

No default

Value to write.

Outputs

Output

Data Type

Range

Unit

Description

Done

BOOL

FALSE, TRUE

N/A

Indicates the parameter has been written.

Busy

BOOL

FALSE, TRUE

N/A

Indicates this function block is executing.

Error

BOOL

FALSE, TRUE

N/A

Indicates an invalid input was specified.

ErrorID

INT

-32768 to +32767

 

Indicates the error if the Error output is set to TRUE.

See PLCopen Function Block ErrorIDs.

Remarks

See Function Blocks - General Rules about how inputs and outputs work.

Figure 1: The MC_WriteParam

FBD Language Example

Not available.

FFLD Language Example

IL Language Example

Not available.

ST Language Example

            (* MC_WriteParam ST example *)
            
MasterOffset := 12.34;
Inst_MC_WriteParam( EnableWrite, Axis1, MC_AXIS_PARAM_MASTER_OFFSET, MasterOffset);