![]() |
||
|
This board is for PLC Related Q&A ONLY. Please DON'T use it for advertising, etc. |
||
| ||
New Here? Please read this important info!!!
|
|
#1 |
|
Member
![]() 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 |
|
|
|
#2 |
|
Member
|
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. |
|
|
|
#3 | |
|
Member
![]() Join Date: Oct 2004
Posts: 363
|
Quote:
Sounds like a case for using indirect and pointers. |
|
|
|
|
#4 | |
|
Member
![]() Join Date: Jan 2006
Location: Singapore
Posts: 7
|
Quote:
How to use this pointer function in OMron PLC .. is it possible to explain.. or any example pls advise |
|
|
|
|
#5 |
|
Member
|
Here is good tutorial for indirect addressing in Omron PLC's.
|
|
|
|
#6 |
|
Member
![]() 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. |
|
|
|
#7 |
|
Member
![]() 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 |
|
|
|
#8 |
|
Member
|
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. |
|
![]() |
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|
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 |