Controller Organizer

0 comments
About the Controller Organizer

The Controller Organizer is a graphical representation of the contents of your project. This window consists of a hierarchical tree of the folders and files that contain all of the information about the programs and data in the current project. The Controller Organizer is a Tool Window that offers special functionality for arranging and sizing it.


The default main folders in this tree are:

Controller Project Name - contains controller-scoped tags, controller fault handler and the power up handler.

Tasks - tasks are shown in this folder. Each task shows its own programs with ladder routines, function block routines, and program-scoped tags.

Motion Groups - Underneath the Motion Groups folder, you find groups of axes associated with each other gathered into groups. In addition, you find Ungrouped Axes, which are axes that have yet to be assigned to any particular group. You can assign these axes to specific motion groups via the Axis Assignment tab of the Motion Group Properties dialog.

Add-On Instructions - contains Add-On Instructions, their routines, and tag collections.

Trends - trends are shown in this folder.

Data Types - shows predefined and user-defined data types, which includes those data types associated with Add-On Instructions. User-defined data types are created in this folder.

I/O Configuration - contains the information about the hardware configuration of this controller project. It holds a hierarchy of modules with which the controller is configured to communicate.


In front of each folder, there is an icon containing a + sign or a - sign. The + sign indicates that the folder is collapsed. Click it to expand the tree display and display the files in the folder. The - sign indicates that the folder is already expanded and its contents are visible.

Clicking on the right mouse button brings up many different, context-sensitive popup menus. Often, you find that this is a shortcut to access the property window or to menu options from the menu bar.

Double-clicking on files in the Controller Organizer display often brings up functional dialogs, from which you can enter parameters to accomplish relevant tasks.

Note: The I/O Configuration folder displays an Attention icon if a module below it is faulted.

The Attention Icon is a yellow exclamation mark (!) with a triangle around it.

The I/O Configuration Folder (top level) displays the Attention Icon if a module below it is faulted; it does not display the Attention Icon if the module is inhibited, waiting, etc.

Each individual module icon displays the Attention Icon if the module is not running; in other words, it appears for all states except for running. For example, it appears if the module is:

faulted
waiting
etc.

Bitmaps
open folder trend
closed folder data type
tags folder data type folder open
continuous task open data type folder closed
continuous task closed I/O Configuration folder open
periodic task open I/O Configuration folder closed
periodic task closed I/O Configuration fault open (shown online when any module is faulted)
function block routine I/O Configuration fault closed (shown online when any module is faulted)
program folder open safety program folder open
program folder closed safety program folder closed
Add-On Instruction folder open sealed Add-On Instruction folder open
Add-On Instruction folder closed sealed Add-On Instruction folder closed
safety Add-On Instruction folder open sealed safety Add-On Instruction folder open
safety Add-On Instruction folder closed sealed safety Add-On Instruction folder closed
ladder routine module
main ladder routine faulted module
main safety ladder routine safety module


The Quick View Pane

The Quick View pane consists of the area directly beneath the Controller Organizer tree. This area is designed to give you a quick summary of information related to the selected item in the Controller Organizer. Often, this information includes descriptive and status information, as well as any routines, faults, and other related information.

- Download to PDF


Read More »

Bit Instructions

0 comments
PLC: Instruction Set

Bit Instructions
Use the bit (relay-type) instructions to monitor and control the status of bits, such as input bits or timer-control word bits.

Available Instructions

If you want to:
Use this instruction:
Enable outputs when a bit is set
XIC
Enable outputs when a bit is cleared
XIO
set a bit
OTE
set a bit (retentive)
OTL
clear bit (retentive)
OTU
Enable outputs for one scan each time a rung goes true
ONS
set a bit for one scan each time a rung goes true
OSR
set a bit for one scan each time the rung goes false
OSF
set a bit for one scan each time the input bit is set in function block
OSRI
set a bit for one scan each time the input bit is cleared in function block
OSFI


Examine On
The XIC instruction examines the data bit to see if it is set.

 Available Languages
- Ladder Diagram

Operands
Operand
Type
Format
Description
Data bit
BOOL
tag
bit to be tested

Example 1
If BIT1 is set, this enables the next instruction (the rung-condition-out is true).



Examine Off
The XIO instruction examines the data bit to see if it is cleared.

Available Languages
- Ladder Diagram

Operands
Operand
Type
Format
Description
Data bit
BOOL
tag
bit to be tested

Example 1
If BIT1 is cleared, this enables the next instruction (the rung-condition-out is true).


Output Energize
The OTE instruction sets or clears the data bit.

Available Languages
- Ladder Diagram

Operands
Operand
Type
Format
Description
Data bit
BOOL
tag
bit to be set or cleared

Example 1


Output Latch
The OTL instruction sets (latches) the data bit. When enabled, the OTL instruction sets the data bit.  The data bit remains set until it is cleared, typically by an OTU instruction.  When disabled, the OTL instruction does not change the status of the data bit.

Available Languages
- Ladder Diagram

Operands
Operand
Type
Format
Description
Data bit
BOOL
tag
bit to be set

Example 1


Output Unlatch
The OTU instruction clears (unlatches) the data bit. When enabled, the OTU instruction clears the data bit.  When disabled, the OTU instruction does not change the status of the data bit.

Available Languages
- Ladder Diagram

Operands
Operand
Type
Format
Description
Data bit
BOOL
tag
bit to be cleared

Example 1


One Shot
The ONS instruction enables or disables the remainder of the rung, depending on the status of the storage bit. When enabled and the storage bit is cleared, the ONS instruction enables the remainder of the rung.  When disabled or when the storage bit is set, the ONS instruction disables the remainder of the rung.

Available Languages
- Ladder Diagram

Operands
Operand
Type
Format
Description
Storage bit
BOOL
tag
Internal storage bit
Stores the rung-condition-in from the last time the instruction was executed

Example 1


One Shot Rising
The OSR instruction sets or clears the output bit, depending on the status of the storage bit. When enabled and the storage bit is cleared, the OSR instruction sets the output bit.  When enabled and the storage bit is set or when disabled, the OSR instruction clears the output bit.

Available Languages
- Ladder Diagram
- Function Block (OSRI)
- Structured Text (OSRI)

Operands
Operand
Type
Format
Description
Storage bit
BOOL
tag
Internal storage bit
Stores the rung-condition-in from the last time the instruction was executed
Output bit
BOOL
tag
Bit to be set

Example 1


One Shot Falling
The OSF instruction sets or clears the output bit, depending on the status of the storage bit. When disabled and the storage bit is set, the OSF instruction sets the output bit.  When disabled and the storage bit is cleared, or when enabled, the OSF instruction clears the output bit.

Available Languages
- Ladder Diagram
- Function Block (OSFI)
- Structured Text (OSFI)

Operands
Operand
Type
Format
Description
Storage bit
BOOL
tag
Internal storage bit
Stores the rung-condition-in from the last time the instruction was executed
Output bit
BOOL
tag
Bit to be set

Example 1


One Shot Rising with Input
The OSRI instruction sets the output bit for one execution cycle when the input bit toggles from cleared to set.

Available Languages
- Ladder Diagram (OSR)
- Function Block
- Structured Text

Operands
Operand
Type
Format
Description
OSRI tag
FBD_ONESHOT
structure
OSRI structure

FBD_ONESHOT Structure
Input Parameter
Data Type
Description
EnableIn
BOOL
Function Block:
If cleared, the instruction does not execute and outputs are not updated.  If set, the instruction executes. Default is set.
Structured Text:
No effect.  The instruction executes.
InputBit
BOOL
Input bit.  This is equivalent to rung condition for the ladder diagram OSR instruction.
Default is cleared.


Output Parameter
Data Type
Description
EnableOut
BOOL
Enable output
OutputBit
BOOL
Output bit

Example 1 (Function Block)

Example 2 (Structured Text)
OSRI_01.InputBit := BIT1;
OSRI(OSRI_01);
OUT1 := OSRI_O1.OutputBit;


One Shot Falling with Input
The OSFI instruction sets the OutputBit for one execution cycle when the InputBit toggles from set to cleared.

Available Languages
- Ladder Diagram (OSF)
- Function Block
- Structured Text

Operands
Operand
Type
Format
Description
OSFI tag
FBD_ONESHOT
structure
OSFI structure

FBD_ONESHOT Structure
Input Parameter
Data Type
Description
EnableIn
BOOL
Function Block:
If cleared, the instruction does not execute and outputs are not updated.  If set, the instruction executes. Default is set.
Structured Text:
No effect.  The instruction executes.
InputBit
BOOL
Input bit.  This is equivalent to rung condition for the ladder diagram OSR instruction.
Default is cleared.

Output Parameter
Data Type
Description
EnableOut
BOOL
Enable output
OutputBit
BOOL
Output bit

Example 1 (Function Block)

Example 2 (Structured Text)
OSFI_01.InputBit := BIT1;
OSFI(OSFI_01);
OUT1 := OSFI_01.OutputBit;


- Download to PDF



Read More »