You are not registered yet. Please click here to register!


 
 
plc storereviewsdownloads
This board is for PLC Related Q&A ONLY. Please DON'T use it for advertising, etc.
 
Try our online PLC Simulator- FREE.  Click here now to try it.

---------->>>>>Get FREE PLC Programming Tips

New Here? Please read this important info!!!


Go Back   PLCS.net - Interactive Q & A > PLCS.net - Interactive Q & A > LIVE PLC Questions And Answers

PLC training tools sale

Reply
 
Thread Tools Display Modes
Old April 27th, 2006, 10:29 AM   #1
GanShan
Member
Singapore

GanShan is offline
 
Join Date: Jan 2006
Location: Singapore
Posts: 7
OMRON-C200HS -Search function

Hi
Am having OMRON c200HS cpu 21 PLC , I ve created a a library of DM which contains
Differnet type of products to run . these types are Character strings (WSH67RTY_X) every string take about 10 Data memory(DM1000-Dm1009).
I ve selected one type using a bit switch through touch screen.Now I use barcode scanner to scan the type name and stored in a separate DM.

Now I wouldlike to Compare the Scanned type name and the selected type name .
Is there any special instructions to use .....

CMP just compare 1 Dm only ...?
Among 50 types how to bring out the selected data memory.

Can any members can help
  Reply With Quote
Old April 27th, 2006, 12:03 PM   #2
IO_Rack
Member
United States

IO_Rack is offline
 
IO_Rack's Avatar
 
Join Date: Aug 2003
Posts: 92
Here is a link to the manual.

C200HS Operation Manual

You may have a couple of options.

Section 5-17 lists all the data comparison instructions.
  Reply With Quote
Old April 27th, 2006, 04:21 PM   #3
scottmurphy
Member
New Zealand

scottmurphy is offline
 
Join Date: Oct 2004
Posts: 363
Quote:
CMP just compare 1 Dm only ...?
Among 50 types how to bring out the selected data memory.

Sounds like a case for using indirect and pointers.
  Reply With Quote
Old April 28th, 2006, 09:20 AM   #4
GanShan
Member
Singapore

GanShan is offline
 
Join Date: Jan 2006
Location: Singapore
Posts: 7
Quote:
Originally Posted by scottmurphy
Sounds like a case for using indirect and pointers.
Hi Scott
How to use this pointer function in OMron PLC .. is it possible to explain.. or any example

pls advise
  Reply With Quote
Old April 28th, 2006, 09:32 AM   #5
IO_Rack
Member
United States

IO_Rack is offline
 
IO_Rack's Avatar
 
Join Date: Aug 2003
Posts: 92
Here is good tutorial for indirect addressing in Omron PLC's.
  Reply With Quote
Old April 28th, 2006, 01:31 PM   #6
scottmurphy
Member
New Zealand

scottmurphy is offline
 
Join Date: Oct 2004
Posts: 363
As IO rack stated, have a look at the tutorial he posted.

Do you understand the concept of pointers and indirect addressing? If so, with a little bit of reading, you should able to interpret the example, and implement it in your application.

If not, do some searches on this site, on indirect and pointers etc, and then come back with your questions.
  Reply With Quote
Old May 8th, 2006, 10:12 AM   #7
GanShan
Member
Singapore

GanShan is offline
 
Join Date: Jan 2006
Location: Singapore
Posts: 7
thanks all
i ve stored my data starting from DM2000, in a 10 nos interval , so i whenevr a bit activated i just add 2000 and multiply 10 to get the corresponding datamemory ..

I ve another question , how can i use the PLC clock in my program,
i wanted to turn on some output on some particular day and month of the year .. how can i tap from plc clock ? pls advise
  Reply With Quote
Old May 8th, 2006, 02:22 PM   #8
IO_Rack
Member
United States

IO_Rack is offline
 
IO_Rack's Avatar
 
Join Date: Aug 2003
Posts: 92
Calendar / Clock information is stored in the AR area in channels 18 through 21.

In section 3-5 of the manual, (posted above) the details are described.
  Reply With Quote
Reply
Jump to Live PLC Question and Answer Forum

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Topics
Thread Thread Starter Forum Replies Last Post
Omron -c200hs, Lk201-v1 GanShan LIVE PLC Questions And Answers 14 April 1st, 2007 08:18 AM
Omron c200hs problem ... marq LIVE PLC Questions And Answers 13 May 22nd, 2006 01:07 AM
Search function in InTouch zhphust LIVE PLC Questions And Answers 2 December 7th, 2004 06:21 PM
To Phil. About the search function. JesperMP LIVE PLC Questions And Answers 10 September 19th, 2004 12:30 AM
How to use FIFO function using OMRON CX? sutton LIVE PLC Questions And Answers 7 July 12th, 2004 09:02 AM


All times are GMT -5. The time now is 07:40 AM.


.