OMRON PLC PROGRAMMING BASICS

OMRON Programming Basics : CX PROGRAMMER

Friends today we are here with programming basics for OMRON. Here we are guiding you towards CX- programmer software use. The PLC specifications and programming basics will be different for different software. For Siemens you have to visit our programming basics article in Simatic manager.

MODEL            : OMRON CPM2A

 SOFTWARE  : CX_PROGRAM

VERSION        : 6.0

 

INPUT ADDRESS:

0.0, 0.1…………….0.11

1.0, 1.1………………1.11

OUTPUT:

10.0,10.1………….10.7

11.0, 11.1…………..11.7

INTERNAL MEMORY

AR0.0………………AR0.15

…………………………………

AR20.0…………….AR20.15

TIMER

TIM<SPACE><ADDRESS><SPACE>#VALUE

RANGE 000 – 255

COUNTER

CNT<SPACE><ADDRESS><SPACE>#VALUE

RANGE 000 – 255

UPDOWN COUNTER

CNTR<SPACE><ADDRESS><SPACE>#VALUE

JUMP

JMP<SPACE><ADDRESS>

00 – 49

JME<SPACE><ADDRESS>

SUBROUTINE

SBS<SPACE><ADDRESS>

00 – 49

SBN<SPACE><ADDRESS>

RETURN

RET

Rungs

 

 

 

A ladder rung is a horizontal slice of a ladder program which contains a complete, single set of logic instructions which power to flow from left power bar to the right.

CX-Programmer automatically creates space for a new rung at the bottom of the program section. To enter element in rung further up the program, it is necessary to manually insert a new rung into the ladder editor. When the new rung space has been placed, elements(contacts/coils and instructions) may be entered.

The Section/Rung manager can be used for easy manipulation and commenting of rungs.

 

 

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:

 

JUMP FUNCTION:

 

MAIN PROGRAM:

 

SUBROUTINE:

 

For education and career related information please visit here>>

 

 

 

 

 

 

Leave a Reply

Your email address will not be published. Required fields are marked *