MC_WriteBoolPar

PLCopen motion icon

 Function Block - Writes the specified axis Boolean parameter.

Inputs

Input

Data Type

Range

Unit

Default

Description

Execute

BOOL

FALSE, TRUE

N/A

No default

Requests to write a Boolean 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

BOOL

FALSE, TRUE

N/A

No default

State to write.

Outputs

Output

Data Type

Range

Unit

Description

Done

BOOL

FALSE, TRUE

N/A

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

 

 

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