Help - Search - Members - Calendar
Full Version: C200H remote rack
Forums.MrPLC.com > PLCs and Supporting Devices > Omron
ramo813
My project is this:
Add ASC-02 ascii card to a C200H rack system (for a printer).

Some of the issues and info:
1. C200H cpu already has two expansion racks.
2. All racks are full (all cards needed).
3. With parts already on-hand, I mounted the 9-slot backplane with the RT201 directly under rack "0". Terminator switch = on. Dip switches 1~6 as follows: off, off, on, off, off, off. Switch 3 set to on because program is already using words on 05000~05915 range as working bits.
4. So... I'll use words 06000~06915 on remote rack. I relocated 4 OD212 output cards from rack "0", slots 6,7,8 and 9 to the remote rack slots 6,7,8 and 9. I will perform find and replace function in my off-line copy of program; old address words Q00600~Q00915 will become Q06600~Q06915. I'am using CPT 1.12...(LOL). Laptop connection is made through host link card LK201-V1 in rack "0" slot 2.
5. I installed the RM201 (rotary set to "0") in slot 9 of rack "0"
6. I will install the ascii card in rack "0" slot 8 after I confirm equipment operation up to this point.
7. RS485 cable connection between RM & RT is done. Power wiring to RT is done.
8. So...if your still reading this and haven't switched to another topic by now, I would greatly appreciate any comments and suggestions before I power-up to transfer the program changes. This is my first C200H expansion/ remote project.

Thanks in advance
RAMO813
helpsmilie.gif

Sleepy Wombat
1.Prior to any thing... Backup Backup Backup (upload all data tables as well and settings for the cards etc) but you already know this...

2. From a brief glance of what you are doing it seems ok.

Pity they just couldn;t upgrade the processor to a CS1 with new racks to boot, throw out the LK201 and use a SCU41 to talk to the printer along with upgrading the software to CX-One... Actually on that if using TXD instructions you could have set the inbuilt RS232 port on the CPU to talk to the printer. Then you would not need the ASCII card...

I have done a similar task though where the ASCII card talked to an old ASCII terminal and printer (which also required feedback from the user via a keyboard).. Upgraded the procesor to a CS1, got rid of the LK201, replaced the ASCII terminal with a panel PC and auto ran Hyper terminal.. (there was a couple of tweaks I had to make to the BASIC program for the ASCII card, but all has been running well for a year now..)

3. Good luck.

ramo813
QUOTE(Sleepy Wombat @ Aug 12 2008, 05:51 PM) [snapback]72468[/snapback]

1.Prior to any thing... Backup Backup Backup (upload all data tables as well and settings for the cards etc) but you already know this...

2. From a brief glance of what you are doing it seems ok.

Pity they just couldn;t upgrade the processor to a CS1 with new racks to boot, throw out the LK201 and use a SCU41 to talk to the printer along with upgrading the software to CX-One... Actually on that if using TXD instructions you could have set the inbuilt RS232 port on the CPU to talk to the printer. Then you would not need the ASCII card...

I have done a similar task though where the ASCII card talked to an old ASCII terminal and printer (which also required feedback from the user via a keyboard).. Upgraded the procesor to a CS1, got rid of the LK201, replaced the ASCII terminal with a panel PC and auto ran Hyper terminal.. (there was a couple of tweaks I had to make to the BASIC program for the ASCII card, but all has been running well for a year now..)

3. Good luck.



Thanks for the reply and advice. I'm with ya on the Backup Backup Backup. Even though my company's engineering dept maintains all software backups on the lan system...I have been bit before by multiple individuals working on the same plc logic. As of today the remote rack is communicating and the four relocated output cards tested operational. I did run into a snag though...for some reason I was unable to use my original choice of address words 60~69 in the IO table configuration RT-1. Had to use RT-0 with words 50~59, which of coarse required me to readdress some existing work bits in the program, oh well. I was told that maybe logical order must be observed?? After some additional readdressing of the relocated output cards and a test run of the equipment to verify production readiness I'll be ready to drop in the ascii card on rack 0...plenty of room now. Just hope I've brushed up enough on my BASIC to load the ascii and do some printing. Thanks again. smile.gif
Sleepy Wombat
Here is an example of the BASIC code.. note that in this example "PRINT" is for a ASCII terminal (ie arunning hyperterminal) and "LPRINT" is for the serial printer.

CODE

4980 UF=1:GOTO 5110
4990 PCWRITE "@R,46,1,1B0";1 :RETURN
5000 LPRINT "TIME = ",TIME$, " DATE = ",DATE$
5010 LPRINT "OPERATOR = ",INI$," SHIFT =",SFT$
5020 RETURN
5030 PCWRITE"@R,46,1,1B1";2 :RETURN
5040 PCREAD"@R,33,1,1B15";CHECK$
5050 IF CHECK$ <>"0" THEN RETURN
5060 X=1 : RETURN
5070 IF Z$="G" THEN PCWRITE "@R,57,1,1B0";1
5080 IF Z$="E" THEN PCWRITE "@R,57,1,1B1";2
5090 IF Z$="D" THEN PCWRITE "@R,57,1,1B2";4
5100 RETURN
5110 PCREAD"@D,29,1,I4";EMP$:PCREAD"@D,10,1,I4";RTW$ :PCREAD"@D,24,1,I4";ECL$
5120 PCREAD"@D,13,1,1I4";PFP$ :PCREAD"@D,41,1,1I4";CPL$ :PCREAD"@D,40,1,1I4";WF$ :PCREAD"@D,42,1,1I4";FCW$
5130 GOTO 5160
5140 TEMP = VAL(TEMP$) :TEMP = TEMP * .025 :RETURN
5160 GOSUB 5000 :LPRINT "CYL. NO-"CYLNUM$," SIZE-"SIZE$
5165 LPRINT "BATCH NO-"BAT$
5170 TEMP$ = RTW$ :GOSUB 5140
5180 LPRINT "RING TARE WEIGHT-"TEMP
5190 TEMP$ = EMP$ :GOSUB 5140
5200 LPRINT "ACTUAL EMPTY WEIGHT-"TEMP
5210 TEMP$ = ECL$ :GOSUB 5140
5220 LPRINT "EMPTY CYL AND LEAD WEIGHT-"TEMP
5225 PFP = VAL(PFP$) : PFP = PFP / 2.8988
5230 LPRINT " COMPENSATED PHOSPHINE FILLED PRESSURE-" PFP
5240 TEMP$ =CPL$ :GOSUB 5140
5250 LPRINT "CYL + PH3 + LEAD-"TEMP
5260 TEMP$ = WF$ :GOSUB 5140
5270 LPRINT "CYL AND CONTENTS-"TEMP
5280 TEMP$ = FCW$ :GOSUB 5140
5290 IF UF=1 THEN LPRINT " CYL. UNDERFILLED WEIGHT-"TEMP
5300 IF UF<>1 THEN LPRINT " CYL. WEIGHT CORRECT-"TEMP
5305 LPRINT " END OF REPORT"

This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2010 Invision Power Services, Inc.