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 January 11th, 2007, 03:48 AM   #1
flyers
Member
Singapore

flyers is offline
 
Join Date: Sep 2006
Location: Amk
Posts: 293
Something about Mitsubishi FX2N programming

Hi guys,

I've just got a software & FX2N mitsubishi PLC today, I'm trying to get familiar with the s/w environment.

1) I'm trying to create a counter and a timer, but I can't find the timer symbol at the top of the software, where it is hiding?

2) I try to program by typing the instruction (like AB ASCII format), Input contact i type LD X0, output I type OUT Y0, but I can't type connter or timer, anyone knows what's the correct code?

  Reply With Quote
Old January 11th, 2007, 04:09 AM   #2
Potter
Member
United Kingdom

Potter is offline
 
Potter's Avatar
 
Join Date: Nov 2004
Location: Nottingham, England
Posts: 77
In ladder mode use the output symbol (F7).

For the address type the timer or counter you want to use, then a space then the value you want to enter. For example to use counter 3 with a preset value of 5 it would be C3 K5.

In instruction list it would be:
OUT C3 K5
  Reply With Quote
Old January 11th, 2007, 04:33 AM   #3
flyers
Member
Singapore

flyers is offline
 
Join Date: Sep 2006
Location: Amk
Posts: 293
Quote:
Originally Posted by Potter
In ladder mode use the output symbol (F7).

For the address type the timer or counter you want to use, then a space then the value you want to enter. For example to use counter 3 with a preset value of 5 it would be C3 K5.

In instruction list it would be:
OUT C3 K5
Potter,

Thanks a lot, i got it
  Reply With Quote
Old January 11th, 2007, 06:16 AM   #4
flyers
Member
Singapore

flyers is offline
 
Join Date: Sep 2006
Location: Amk
Posts: 293
Hi,

1) May I ask, how can I create another subroutine, referring to the attached picture, I've a MAIN routine, I want to add another Alarm routine.

2) Do I need to use a JUMP to subroutine if I have 2 or more routines? (AB RSLogix 500 needs that).

Thank you.
  Reply With Quote
Old January 11th, 2007, 06:22 AM   #5
504bloke
Lifetime Supporting Member + Moderator
England

504bloke is offline
 
504bloke's Avatar
 
Join Date: Jan 2005
Location: West Ssx
Posts: 2,620
Its not possible.

Confusing huh! I love GX Developer
__________________
Regards

Dave



"When you are courting a nice girl an hour seems like a second. When you sit on a red-hot cinder a second seems like an hour. That's relativity."
Albert Einstein (1879-1955)
  Reply With Quote
Old January 11th, 2007, 07:36 AM   #6
flyers
Member
Singapore

flyers is offline
 
Join Date: Sep 2006
Location: Amk
Posts: 293
Unhappy

Quote:
Originally Posted by 504bloke
Its not possible.

Confusing huh! I love GX Developer
Huh!!? You serious? Even Micrologix 1000 got diff subroutines assigned.

So I have to chunk the few hundred lines of code in a main ladder only??
  Reply With Quote
Old January 11th, 2007, 07:42 AM   #7
Potter
Member
United Kingdom

Potter is offline
 
Potter's Avatar
 
Join Date: Nov 2004
Location: Nottingham, England
Posts: 77
Quote:
Originally Posted by flyers
Huh!!? You serious? Even Micrologix 1000 got diff subroutines assigned.

So I have to chunk the few hundred lines of code in a main ladder only??
He is.
If I could change one thing about GX Developer that would be it.
  Reply With Quote
Old January 11th, 2007, 08:12 AM   #8
flyers
Member
Singapore

flyers is offline
 
Join Date: Sep 2006
Location: Amk
Posts: 293
Quote:
Originally Posted by Potter
He is.
If I could change one thing about GX Developer that would be it.
OMG...Brilliant idea by the Jap!

This is apply to all Mitsubishi PLC or the software limitation?

Last edited by flyers; January 11th, 2007 at 08:14 AM.
  Reply With Quote
Old January 11th, 2007, 10:40 AM   #9
Steve Etter
Lifetime Supporting Member + Moderator
United States

Steve Etter is offline
 
Steve Etter's Avatar
 
Join Date: Apr 2002
Location: Morristown, TN
Posts: 753
Flyer/Potter,

Actually, it is the CPU that limits you from using multiple programs. If you were to use a Q01 series (or higher), you can. The software itself (while certainly not the most user-friendly out there) is not your limiting factor.

Steve
  Reply With Quote
Old January 11th, 2007, 11:27 PM   #10
flyers
Member
Singapore

flyers is offline
 
Join Date: Sep 2006
Location: Amk
Posts: 293
Quote:
Originally Posted by Steve Etter
Flyer/Potter,

Actually, it is the CPU that limits you from using multiple programs. If you were to use a Q01 series (or higher), you can. The software itself (while certainly not the most user-friendly out there) is not your limiting factor.

Steve
Steve, thanks for your information, you mean this limitation apply to all FX2N plc, right?

After using Mitsubishi & Yokogawa PLC software, I still very much in love with AB!!
  Reply With Quote
Old January 12th, 2007, 05:12 AM   #11
Marc
Member
United States

Marc is offline
 
Marc's Avatar
 
Join Date: Jun 2004
Location: Nashua, NH
Posts: 424
Yes,

Unfortunately it applies to all f series processors.

Subroutines in the q series not sure about the a series.

Marc
  Reply With Quote
Old January 12th, 2007, 06:26 AM   #12
Steve Etter
Lifetime Supporting Member + Moderator
United States

Steve Etter is offline
 
Steve Etter's Avatar
 
Join Date: Apr 2002
Location: Morristown, TN
Posts: 753
While I can't say definitively, I believe the Q series is the only one that features subroutines. Having worked with many of the A series as well, I have never seen them there, either.

Steve
  Reply With Quote
Old January 12th, 2007, 07:08 AM   #13
panic mode
Member
Canada

panic mode is online now
 
panic mode's Avatar
 
Join Date: May 2003
Location: Toronto, Canada
Posts: 1,961
Q, QnA, QnAS allow creating multiple program files.
other CPUs don't (A, FX). working on A series controller and
18000 steps, all in just one file sure makes you curse those who
didn't think of possibility of spitting it up...
  Reply With Quote
Old January 12th, 2007, 08:55 AM   #14
Goody
Member
United Kingdom

Goody is offline
 
Goody's Avatar
 
Join Date: Apr 2002
Location: Huddersfield W Yorks UK
Posts: 978
A sort of way I have found for splitting up subroutines - or for that matter different parts of the program is by putting statements in the left hand margin.
If these are quite verbose, it actually appears to split the left bus line and leaves subroutines and routines seperated from the rest of the program.

As you then scroll down you can see where one section ends and another starts
  Reply With Quote
Old January 13th, 2007, 09:26 AM   #15
Marc
Member
United States

Marc is offline
 
Marc's Avatar
 
Join Date: Jun 2004
Location: Nashua, NH
Posts: 424
You can also create a subroutine (even though it is still in the main program) by using an S coil. When the S coil is true, anything after the STL instruction that matches that coil will execute till you reach the next RET statement.

ie out S5
STL S5
RUNG
RUNG
RUNG
RUNG
RET

The rungs between STLl5 and RET will only execute when S5 is true, S5 can be anywhere in the program, not just above STL l5.

(NOTE, outputs and data will remian in the last state the subroutine was scanned unless turned off in another section of code so be careful, I make the last rung of the STL (right before the RET a reset of all data and outputs that should not retain "last scanned states"

But they are still in the main program so it doesn't really split them up visually for you like a subruitine in RSlogix

They are handy though

Marc
  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
Mitsubishi FX2N PLC & HMI communication e_pramod LIVE PLC Questions And Answers 15 February 12th, 2012 03:41 AM
Mitsubishi PLC FX2N with modbus Platootod LIVE PLC Questions And Answers 5 February 6th, 2012 07:48 AM
Mitsubishi Fx2n Working With Protool LEF LIVE PLC Questions And Answers 3 March 12th, 2008 04:11 AM
mitsubishi FX2N topalisg LIVE PLC Questions And Answers 4 June 19th, 2006 01:53 PM
Mitsubishi Fx2n Working With Protool LEF LIVE PLC Questions And Answers 0 March 30th, 2006 07:20 AM


All times are GMT -5. The time now is 12:04 AM.


.