PDA

View Full Version : OMRON-C200HS -Search function


GanShan
April 27th, 2006, 10:29 AM
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

IO_Rack
April 27th, 2006, 12:03 PM
Here is a link to the manual.

C200HS Operation Manual (http://oeiwcsnts1.omron.com/pdfcatal.nsf/PDFLookupByUniqueID/876E975328B3139086256C91006D0B7D/$FILE/M11W235E151202.pdf?OpenElement)

You may have a couple of options.

Section 5-17 lists all the data comparison instructions.

scottmurphy
April 27th, 2006, 04:21 PM
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.

GanShan
April 28th, 2006, 09:20 AM
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

IO_Rack
April 28th, 2006, 09:32 AM
Here is good tutorial for indirect addressing (http://forums.mrplc.com/index.php?download=195) in Omron PLC's.

scottmurphy
April 28th, 2006, 01:31 PM
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.

GanShan
May 8th, 2006, 10:12 AM
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

IO_Rack
May 8th, 2006, 02:22 PM
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.