MC_ReadBoolPar

PLCopen motion icon

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

Inputs

Input

Data Type

Range

Unit

Default

Description

Enable

BOOL

0, 1

N/A

No default

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

Outputs

Output

Data Type

Range

Unit

Description

Valid

BOOL

 

 

Indicates the Value output is valid.

Busy

BOOL

 

 

Indicates this function block is executing.

Error

BOOL

 

 

Indicates an invalid input was specified.

ErrorID

INT

 

 

Indicates the error if Error output is TRUE.

See PLCopen Function Block ErrorIDs for more information.

Value

BOOL

 

 

State of the Boolean parameter.

Remarks

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

MC_ReadBoolPar

Figure 6-217: MC_ReadBoolPar

FBD Language Example

Not available.

FFLD Language Example

IL Language Example

Not available.

ST Language Example

            (* MC_ReadBoolPar ST example *)
Inst_MC_ReadBoolPar( EnableRead, Axis1, MC_AXIS_PARAM_IN_POSITION );
Axis1InPosition := Inst_MC_ReadBoolPar.Value;