Main Content

Function Block (AOI)

Ladder Diagram Function Block (AOI)

  • Function Block (AOI) block

Libraries:

Description

The Ladder Diagram function block is a standalone, organizational unit. Use this block in the absence of a general hierarchy of controller, task, program, and ladder diagram. It is also called an AOI block. The Ladder Diagram function block consists of a ladder diagram and function block variables. The function block variables represent the function variables used in the ladder diagram and provide information about its data types, size, and initial value.

Limitations

  • Input and output variable data types must be SINT, DINT, INT, REAL, or BOOL.

  • Input and output variable size must be one.

  • You must not use global variables in ladder diagrams inside the Logic Routine.

  • You must set the data types for constant blocks connected to inputs as Inherit: Inherit via back propagation

Ports

Input

expand all

The EnableIn port controls the execution of the block and reflects the rung state preceding the block. If the rung state preceding the block is false, the EnableIn signal is set to false, the block does not execute the custom logic, and the outputs are not updated.

Output

expand all

If the EnableIn input to the block is false, the custom logic implemented by the block is not executed and the EnableOut signal is set to false. If EnableIn is true and the custom instruction executes, the EnableOut signal is set to true.

Parameters

expand all

Inputs and Outputs

Name of the AOI function block that you want to create. The Rockwell Automation® Studio 5000 IDE must support the ladder logic instruction name.

Programmatic Use

Block Parameter: PLCPOUName
Type: character vector
Value: character vector
Default: 'FB'

Name of the AOI instance that you want to generate code for or the instance name for the imported AOI instruction. The Rockwell Automation Studio 5000 IDE must support the ladder logic instruction name.

Programmatic Use

Block Parameter: PLCOperandTag
Type: character vector
Value: character vector
Default: 'D'

Button that opens the AOI variable table.

Programmatic Use

Block Parameter: PLCEditVariableSS
Type: button

Button that opens the ladder logic routine to implement the AOI ladder logic.

Programmatic Use

Block Parameter: PLCEditPOU
Type: button

Check box that you select to enable the ladder logic inside the EnableInFalse routine.

Programmatic Use

Block Parameter: PLCAllowEnableInFalse
Type: check-box

Button that opens the ladder logic routine to implement the AOI EnableInFalse ladder logic.

Programmatic Use

Block Parameter: PLCEditEnableInFalse
Type: button

Check box that you select to enable the ladder logic inside the Prescan routine.

Programmatic Use

Block Parameter: PLCAllowPrescan
Type: check-box

Button that opens the ladder logic routine to implement the AOI Prescan ladder logic.

Programmatic Use

Block Parameter: PLCEditPrescan
Type: button

Version History

Introduced in R2019a