Omron Timers

Giz99

Member
Join Date
Feb 2007
Location
Toronto
Posts
98
I have a simple count down timer on an Omron CPU43. I put a set value of #200 and the timer times down for 20 seconds. I now use DM120 for the set value and move 200 into DM120. The timer counts down for approx 10 seconds and then gives me an error when it is completed. I assume my value of DM120 is probably in the wrong format. I want to be able to use an HMI to vary the timer value in DM120. I have tried defining DM120 as an INT and UINT_BCD.

Giz.
 
Hi
Enter the data into DM120 as BCD, i.e. #0200, or if the set this as the format in the HMI if the value is coming from here.
As an aside, you can (and I do) convert the plc to use decimal timers. Right-mouse the plc in the project tree and select properties from the context menu.
Pp
 
paraffin power said:
Hi
Enter the data into DM120 as BCD, i.e. #0200, or if the set this as the format in the HMI if the value is coming from here.
As an aside, you can (and I do) convert the plc to use decimal timers. Right-mouse the plc in the project tree and select properties from the context menu.
Pp

That would have been really helpful for me too! I just finished a project with Omron PLCs where everything was binary except for the timers and counters that I thought had to be BCD. It's still good to know for future reference.

Thanks.
 
I got it working. I found that my HMI could not send BCD values which the timers work in but it will display a Decimal value but send it as binary. I was then able to do a Binary to BDC BCD(24) conversion and put this value in the timer. I guess I am just used to working on other brands of PLCs which allow you to directly address these values and modify them as required.

Giz.
 
If you have a CJ1, CS1 or CP1 you can set timers and counters to be either BCD or decimal - the older PLCs were really BCD based - the later ones I mentioned are far more binary based and that is why you can choose either BCd or decimal for timers and counters.
 

Similar Topics

Hello im new to plc programming with Omron Cx Programmer I have made a program to trigger timers one after the other and repeat the process...
Replies
23
Views
5,652
Hi Guys.. Appreciate you can help me on this...May i know the max value (TIM and CNT) for Omron PLC CPM2A(SYSWIN) ??Can someone explain to me...
Replies
20
Views
6,127
Okay here is my problem... I am using a c200h-cpu 21, and I am trying to get it to calculate cycle times... This is starting to get pretty...
Replies
4
Views
2,901
Hey guys, I can't find an example of the long-timer instruction. I tried implementing one today and the first word was flipping between two values...
Replies
3
Views
3,043
Hi, I'm trying to convert some Omron code into SLC500 logic. This is from an old Sysmac CQM1 Omron plc. I can understand most of it, except for...
Replies
6
Views
7,413
Back
Top Bottom