MC_WriteBoolPar

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 Boolean parameter.

Inputs

Input

Data Type

Range

Unit

Default

Description

Execute

BOOL

0, 1

N/A

No default

Requests to write a Boolean axis parameter.

Axis

AXIS_REF

1, 256

N/A

No default

Name of a declared instance of the AXIS_REF library functionClosed A function calculates a result according to the current value of its inputs. A function has no internal data and is not linked to declared instances..

ParameterNumber

INT

No range

N/A

No default

Parameter number.

See Axis Parameters.

Value

BOOL

0, 1

N/A

No default

State to write.

Outputs

Output

Data Type

Range

Unit

Description

Done

BOOL

 

 

Indicates the Boolean 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.

Remarks

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

Figure 1: MC_WriteBoolPar

FBD Language Example

Not available.

FFLD Language Example


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

IL Language Example

Not available.

ST Language Example

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