Sunday, May 29, 2011

OMRAN CPM2A - industrial automation tutorial





MODEL                : OMRAN CPM2A

SOFTWARE                   : CX_PROGRAM

VERSION                      : 6.0

.

































































































TIM/CNT Instructions

[Simple dialog mode]
The following can be input as the first operand (The TIM/CNT number) of TIM/CNT instructions.
1.      TIM/CNT number
2.      The name of NUMBER-type symbols registered in symbol tables
The case of 1.
If a comment is entered in the [Edit Comment] dialog of the first operand, a TIM/CNT contact (BOOL type) of the TIM/CNT number is registered in Global symbols table without its name and with its comment. If the corresponding TIM/CNT contact exists in the Local or Global symbols tables, a TIM/CNT contact is not newly registered.
The case of 2.
The registered comment becomes edit-active in the [Edit Comment] dialog, and the changes are reflected in symbols table. A TIM/CNT contact is not newly registered.

[Detailed dialog mode]
When a name of a new NUMBER-type symbol  is entered in the [Find Symbol] dialog displayed by pressing the [...] button in the operand box of the instruction dialog, the entered NUMBER-type symbol is newly registered in the Local symbols table. At the same time, the corresponding TIM/CNT contact (BOOL type) is registered in Global symbols table without its name and with its comment. If the corresponding TIM/CNT contact exists in the Local or Global symbols tables, a TIM/CNT contact is not newly registered. If the type of symbols entered as the first operand is not NUMBER, the corresponding TIM/CNT contact is not registered in symbols tables.

Comment display of the first operand of TIM/CNT instruction in Ladder View
·         If the TIM/CNT number is input as the first operand, the comment of a TIM/CNT contact is displayed.
·         If a NUMBER-type symbol name is input as the first operand, the comment of the symbol is displayed

UP_DOWN COUNTER:
















MAIN PROGRAM:

























SUBROUTINE: