MC_WriteParam

PLCopen motion icon

 Function BlockClosed A function block groups an algorithm and a set of private data. It has inputs and outputs. - Writes the specified axis parameter.

Inputs

Input

Data Type

Range

Unit

Default

Description

Execute

BOOL

0, 1

N/A

No default

Requests to write an axis parameter.

Axis

AXIS_REF

1, 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 for more information.

Value

LREAL

No range

N/A

No default

Value to write.

Outputs

Output

Data Type

Range

Unit

Description

Done

BOOL

 

 

Indicates the parameter has been written.

Busy

BOOL

 

 

Indicates this function block is executing.

Error

BOOL

 

 

Indicates an invalid input was specified.

ErrorID

INT

 

 

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

See PLCopen Function Block ErrorIDs for more information.

Remarks

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

Figure 6-221: The MC_WriteParam function block

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);