Function BlockMC_WriteBoolParPLCopen motion icon

Description

The MC_WriteBoolPar function block writes the specified axis Boolean parameter.

The MC_WriteBoolPar function block

Arguments

For more detail on how inputs and outputs work, refer to PLCopen Function Blocks - General Rules

Input

Execute

Description

Requests to write a Boolean axis parameter

 

Data type

BOOL

 

Range

0, 1

 

Unit

N/A

 

Default

Axis

Description

Name of a declared instance of the AXIS_REF library function. For more details, About Axis Name and Number

 

Data type

AXIS_REF

 

Range

[1,256]

 

Unit

N/A

 

Default

ParameterNumber

Description

Parameter number, see table in Axis Parameters

 

Data type

INT

 

Range

 

Unit

N/A

 

Default

Value

Description

State to write

 

Data type

BOOL

 

Range

0, 1

 

Unit

N/A

 

Default

Output

Done

Description

Indicates the Boolean parameter has been written

 

Data type

BOOL

Busy

Description

Indicates this function block is executing

 

Data type

BOOL

Error

Description

Indicates an invalid input

 

Data type

BOOL

ErrorID

Description

Indicates the error if Error output is set to TRUE

See table in PLCopen Function Block ErrorID Output

 

Data type

INT

Example

Structured Text

            (* MC_WriteBoolPar ST example *)
            
WriteBool := FALSE;
Inst_MC_WriteBoolPar( WriteReq, Axis1, 1050, WriteBool );

Ladder Diagram

MC_WriteBoolPar: LD example


  • Currently, MC_WriteBoolPar does not support any parameters (1050 is an arbitrary number chosen for example)

Go back to the top of the page [Top]