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 February 1st, 2007, 08:08 AM   #1
Nik
Member
Russian Federation

Nik is offline
 
Join Date: Jul 2006
Location: Moscow
Posts: 2
Question realization of repetitive rungs in RSLogix ?

Hello people!
My greetings from fas snowy Russia!
I work as a PLC programmer more than a year. I started with Simatic S7, wrote a dozen programms on it. Because that was my first PLC soft, i inherited the most of methods "how to programme something" in step7 style, using Function blocks, Fucntions, structues, and flexible memory area... Now i encountered with such a controller kind as Allen Bradley - SLC (RSLogix500). Interesting controller. And i found its quite differnt from S7. There is no function blocks in RSLogix500? How do you write programms without it, when you need to write many rungs of the same kind?
I wrote the "dummy" rung with variables with symbol descriptions. Then copied it 10 times. Then with Ctrl+H command i tried to replace symbol, for example, "CTP1_ON" to "CTP2_ON". But it cant replace only part in symbol name, it replace the whole symbol variable insted! There is no wildcards when i need to replace symbol name of variable?
  Reply With Quote
Old February 1st, 2007, 09:12 AM   #2
Matthias von Zorn
Member
United States

Matthias von Zorn is offline
 
Matthias von Zorn's Avatar
 
Join Date: Jan 2003
Location: Michigan
Posts: 490
You can recreate a function block style in AB by using subroutines. You will need to pass the data in and out of it.

Personally, Ive used the VB in RSLogix to write a program that writes the programs. This way it is easy to write 7 identical control zones for example. Sucks to have to make a change this way tho.

Instead of replacing the sybol, replace the variable. For example, when writing repeats, I used different B and N files for each repeat. Then, on the new ladder, find and replace (use LOCAL mode) say B10 with B12 and N11 with N13, and so forth. So, replace B10:?/? with B12:?/? (wildcard). Note this will not replace B10:?/?? with B12:?/??. You will need to do this on a second replace.

matt
  Reply With Quote
Old February 1st, 2007, 09:22 AM   #3
PeterW
Member
Canada

PeterW is offline
 
Join Date: Jun 2006
Location: Edmonton
Posts: 2,418
I've done the same with sub routines.

I have created data areas, which contained variables and pointers to other data areas and passed a pointer to that main data area on entering the sub routine.
  Reply With Quote
Old February 1st, 2007, 10:08 AM   #4
Nik
Member
Russian Federation

Nik is offline
 
Join Date: Jul 2006
Location: Moscow
Posts: 2
Thanks for clarifying!
Hm. Compared to Siemens, the methods described above seems not so convenient in use.
For VB i need Visual Basic editor - it goes with Proffesional version. I have only standart.
Whats the difference between the N (Integer) data files and B (Binary) ones? I can use N7:0/0 instead of B3:0/0 and so on. So, i can use whole structure in one data file. Is that correct?

In S7 its possible to create a programm with no accent to variable's address. Its possible due to symbol representation. In AB i should always keep in mind the address?
  Reply With Quote
Old February 1st, 2007, 10:14 AM   #5
Matthias von Zorn
Member
United States

Matthias von Zorn is offline
 
Matthias von Zorn's Avatar
 
Join Date: Jan 2003
Location: Michigan
Posts: 490
Yea, nothing will prevent you from using the bit call on the N file number. Its more for strong data typing so there is less chance of mix up. But you can use B7:0 or N10:0/0 if you want. I do like to keep them seperate. Floats are seperate tho. They convert to 16 bit and back dynamically in things like ADD and DIV, so you must use the float for floating point. Its really nice being able to say do this

N7:0 * F12:0 = N7:1

without having to convert anything. Unlike the cheap plcs from AD, omron, and others. BCD Must Die! And since when is 16 bit DIV 16 bit = 32Bit??? Arg. None of this is an issue in Logix.

matt
  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
Shifting I/O Modules, Slots: RSLogix 500 Question mbd0722 LIVE PLC Questions And Answers 8 February 4th, 2012 04:56 PM
RSLogix 5000 V15 Features Samneggs LIVE PLC Questions And Answers 18 April 20th, 2006 05:45 PM
RSLogix 500 bug bit me today.... jstolaruk LIVE PLC Questions And Answers 1 February 3rd, 2006 01:08 AM
RSLogix 500 Vs. RsLogix 5 mrdmrd LIVE PLC Questions And Answers 7 February 21st, 2005 05:11 AM
RSLogix 500 warning Beryl LIVE PLC Questions And Answers 6 April 13th, 2004 02:53 PM


All times are GMT -5. The time now is 01:57 AM.


.