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

Get the book!

If you're really looking to learn about PLCs, you NEED our book...

"Your Personal PLC Tutor - A Guide to Understanding PLCs"

Easy to read and uses 'plain' language!
Get $$FREE$$ priority mail shipping too!!!
You WILL be glad you did!!

Click Here now to order

Reply
 
Thread Tools Display Modes
Old February 28th, 2008, 04:26 PM   #1
rlmts
Member
Wales

rlmts is offline
 
rlmts's Avatar
 
Join Date: Jul 2003
Location: Newport, S.Wales, UK
Posts: 109
Question Telemecanique - TSX17 - Tasks

Hi!

Before I post too much detail... is anyone familiar with the programming structure of TSX17 programs?

I have a print-out of the 'ladder' and it appears to be segregated into 'tasks'...

FAST
MASTER/PRL
CHART
MASTER/POST

I also need to understand the Fast Counter, and it's relationship to the task called 'FAST' The PLC has an encoder connected to it's dedicated connection, which I believe drives the Fast Counter (FC31?) There is no user comments etc so I'm not clear what it's doing yet.

I am required to convert to AB Micrologix.

Any help / comments appreciated.

I'll leave it at that for now!

Rich
  Reply With Quote
Old February 28th, 2008, 05:24 PM   #2
Jim Dungar
Member
United States

Jim Dungar is offline
 
Join Date: Apr 2002
Location: WI
Posts: 1,132
Quote:
Originally Posted by rlmts
Hi!

Before I post too much detail... is anyone familiar with the programming structure of TSX17 programs?

I have a print-out of the 'ladder' and it appears to be segregated into 'tasks'...

FAST
MASTER/PRL
CHART
MASTER/POST

I also need to understand the Fast Counter, and it's relationship to the task called 'FAST' The PLC has an encoder connected to it's dedicated connection, which I believe drives the Fast Counter (FC31?) There is no user comments etc so I'm not clear what it's doing yet.

I am required to convert to AB Micrologix.

Any help / comments appreciated.

I'll leave it at that for now!

Rich
Good luck.

Your TSX17 is programmed in a Sequential Flow Chart (SFC) style of programming.

FAST is a subroutine that is called on a time basis. This timed execution allows you to predict when this logic will be executed rather than having it change with based on scan time (which can really vary with SFC). Tasks that are time dependent should be located in this area even if they are not "FAST".

MASTER/PRL is a portion of the program that is always scan prior to executing the SFC it often contains interlocks and permissives but, it can be left empty.

CHART is the actual SFC program

MASTER/POST is the portion of the program that is always scanned after the SFC. This area usually contains the actual "output" coils which are controlled by step bits from inside the SFC. Many times the interlocks are included in this section because it is programmed in ladder logic.
  Reply With Quote
Old February 29th, 2008, 01:38 AM   #3
rlmts
Member
Wales

rlmts is offline
 
rlmts's Avatar
 
Join Date: Jul 2003
Location: Newport, S.Wales, UK
Posts: 109
Question

Thanks Jim!

Very enlightening.

What does anyone know about the 'Fast Counter'? (FC31)

Rich
__________________
________________________________________________
"He who makes no mistakes cannot be making anything!"
(So I must be making loads of stuff!)
  Reply With Quote
Old February 29th, 2008, 05:43 AM   #4
rlmts
Member
Wales

rlmts is offline
 
rlmts's Avatar
 
Join Date: Jul 2003
Location: Newport, S.Wales, UK
Posts: 109
Oh dear! Not much known about this issue then?
That's reassuring! Shall I shoot myself now <LOL>
Rich.
  Reply With Quote
Old February 29th, 2008, 06:50 AM   #5
krk
Member
England

krk is offline
 
Join Date: Aug 2004
Location: Kent
Posts: 710
Found this in the manual...don't know if it's what you're looking for though:
Attached Files
File Type: pdf TSX17 fast counter-timer function.pdf (35.3 KB, 44 views)
  Reply With Quote
Old February 29th, 2008, 08:27 AM   #6
rlmts
Member
Wales

rlmts is offline
 
rlmts's Avatar
 
Join Date: Jul 2003
Location: Newport, S.Wales, UK
Posts: 109
Thanks KRK that looks very useful, will study that.

Here's a section of the code I have to convert, it's to do with the Fast Counter, any comments regarding anything anyone recognises in there will be very welcome!

Theres also a small Fast Task to do with it.

Rich
Attached Files
File Type: pdf FastCounter.pdf (205.9 KB, 32 views)
File Type: pdf FastTask.pdf (34.4 KB, 22 views)
  Reply With Quote
Old February 29th, 2008, 08:31 AM   #7
rlmts
Member
Wales

rlmts is offline
 
rlmts's Avatar
 
Join Date: Jul 2003
Location: Newport, S.Wales, UK
Posts: 109
By the way KRK, is that a complete TSX17 manual you have there?
Rich.
  Reply With Quote
Old February 29th, 2008, 09:20 AM   #8
krk
Member
England

krk is offline
 
Join Date: Aug 2004
Location: Kent
Posts: 710
Its from the PL7-2 V5 languages reference manual which can be found towards the bottom of this page:

PL7 Software Documentation


Other random TSX17 documentation can be found here:

TSX 17 Technical Documentation
  Reply With Quote
Old March 1st, 2008, 06:00 AM   #9
rlmts
Member
Wales

rlmts is offline
 
rlmts's Avatar
 
Join Date: Jul 2003
Location: Newport, S.Wales, UK
Posts: 109
Thanks krk, those links are very helpful.
Any comments on the posted code anyone?
Rich
  Reply With Quote
Old March 1st, 2008, 06:06 AM   #10
rlmts
Member
Wales

rlmts is offline
 
rlmts's Avatar
 
Join Date: Jul 2003
Location: Newport, S.Wales, UK
Posts: 109
Even with the helpful links from KRK I am struggling to find the wiring information for the I/O Extension Rack TSX DMF 342A Does anyone have a drawing and specs for this please? I believe it's 22 inputs and 12 relay outputs.
  Reply With Quote
Old March 1st, 2008, 06:32 AM   #11
504bloke
Member
England

504bloke is offline
 
504bloke's Avatar
 
Join Date: Jan 2005
Location: South Coast
Posts: 2,319
Quote:
Originally Posted by rlmts
Even with the helpful links from KRK I am struggling to find the wiring information for the I/O Extension Rack TSX DMF 342A Does anyone have a drawing and specs for this please? I believe it's 22 inputs and 12 relay outputs.
This may help
__________________
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 March 1st, 2008, 07:17 AM   #12
rlmts
Member
Wales

rlmts is offline
 
rlmts's Avatar
 
Join Date: Jul 2003
Location: Newport, S.Wales, UK
Posts: 109
Quote:
Originally Posted by 504bloke
This may help
Thanks Dave, I had actually looked at that one before, and assumed there would be something else somewhere that showed a connections drawing for the TSX DMS 342A Extension unit.

Although it is mentioned in the 'specs' there appears to be no drawing for it?

Must assume it is the same as this connection drawing towards the end of the document...

TSX 172 2028/172 3428 PLCs
c 110…240 V power supply, 12 (or 22) a 24 V isolated inputs, 8 (or 12) relay outputs

Will have to visit plant again and have a better look!

Rich


__________________
________________________________________________
"He who makes no mistakes cannot be making anything!"
(So I must be making loads of stuff!)
  Reply With Quote
Old March 1st, 2008, 10:37 AM   #13
krk
Member
England

krk is offline
 
Join Date: Aug 2004
Location: Kent
Posts: 710
Rich,

Had a (very) quick look at your posted code and have a couple of comments.

(Bear in mind that although I worked on a lot of TSX systems in the 80's I haven't done much with them since.)



Quote:
Originally Posted by Jim Dungar
FAST is a subroutine that is called on a time basis. This timed execution allows you to predict when this logic will be executed rather than having it change with based on scan time (which can really vary with SFC). Tasks that are time dependent should be located in this area even if they are not "FAST".
On any other TSX system Jim would be correct as the Fast Task was a synchronous periodic task with them, however with the TSX17-20 you have to work with, the Fast Task is event driven. In your case it will be executed when the fast counter (FC) actual value reaches the current preset value (FC,V = FC,P). The actual value FC,V is also reset by the system at this point.

It's difficult to reverse engineer this type of thing knowing absolutely nothing about the process it's controlling so the following comments are mostly WAG's....

* In Labels 110 to 112, W8 is compared to constant values which are 2x, 1x and 0x (well <1) the maximum theoretical count value, this in turn writes a corresponding value of 2, 1 or 0 to W10. Is the fast counter wired to an encoder?

* The first rung of Label 150 and Labels 160 to Label 191 are not relevant to the fast counter code. These look to be generating various fault codes which are then converted to ASCII, embedded in a string and squirted out of the programming port to some peripheral device - a display or a serial printer maybe?


Kevin H

Last edited by krk; March 1st, 2008 at 11:23 AM.
  Reply With Quote
Old March 1st, 2008, 01:45 PM   #14
rlmts
Member
Wales

rlmts is offline
 
rlmts's Avatar
 
Join Date: Jul 2003
Location: Newport, S.Wales, UK
Posts: 109
Thanks Kevin.

Yes, the Fast Counter is connected to an encoder, which is mounted on the wheel of a crane that taverses to numerous stacking positions where it lifts or lowers product, the encoder is 200 Impulses/Rev and I believe direct driven on a 12" dia traverse wheel (size guessed from brief visit at the moment!)

As for the other code which you mentioned as not relevent to the counter, yes, there is an XBT A801010 Telemec HMI on board, where I'm told they can preset a retrieval and stacking positions sequence for the product.

There is no documentation for any of the Telemec gear PLC / HMI ! So struggling a bit.

Thanks,
Rich.
  Reply With Quote
Old March 3rd, 2008, 06:35 AM   #15
rlmts
Member
Wales

rlmts is offline
 
rlmts's Avatar
 
Join Date: Jul 2003
Location: Newport, S.Wales, UK
Posts: 109
Question

Without the original supporting docs, is it possible to establish which PLC memory locations the XBT HMI writes to?

Also, the TSX 17 has it's 'Fast Inputs' 24 and 25 connected, I read that if one of these changes state, this also 'calls' the 'FAST' task. Is this correct? I am confused about the fact that the Fast Counter also 'calls' the same FAST task. There's not much code programmed in this FAST code (see previous post attachment)

There was also mention in one of the Telemec documents that the 'Fast Inputs' must be configured as such? Where can this be seen to establish if they are configured as 'Fast'?

So many questions! Sorry...

Rich.

Last edited by rlmts; March 3rd, 2008 at 06:43 AM. Reason: forgot something
  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
Telemecanique TSX17 PLC rlmts LIVE PLC Questions And Answers 9 March 8th, 2010 03:14 PM
Telemecanique with Siemens HMI-OP17 ccsPLCGuy LIVE PLC Questions And Answers 1 October 6th, 2005 02:26 AM
plc tsx17 telemecanique merci LIVE PLC Questions And Answers 1 August 21st, 2005 08:52 PM
plc Telemecanique TSX17 jlsd LIVE PLC Questions And Answers 6 May 26th, 2005 09:18 AM
Deleting Tasks in CL5k jimdi4 LIVE PLC Questions And Answers 1 May 10th, 2005 11:30 AM


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


.