logo Welcome, Guest. Please Login or Register.
August 17, 2017, 05:25:15 PM
Home Help Search Login Register
 News: Self-Registration temporarily suspended due to abuse.To Register as a member, please email to webmaster@triplc.com with your email and username.

  Internet PLC Forum
  General
  Technical support
(Moderator: support)
  Interupt and simulation
? previous next ?
Pages: [1] Go Down Reply Notify of replies Send the topic Print
   Author  Topic: Interupt and simulation  (Read 2254 times)
secs
Newbie
*

Posts: 25



I'm a llama!

View Profile
Interupt and simulation
« on: January 11, 2011, 07:54:23 AM »
Reply with quote

Hi.

I can program in various fileds. I use delphi for windows and used to use a Pascal based language for my pic stuff. But I am new to this type. I can read ladder logic but never sought of had to program any. Electrician by trade

So yes I am a newbie.

I am just playing with a simple interup counter. I did a 1st scan type ladder that calls cust func 1 where I did a INTRDEF 10,10,1 and a SETLCD 1,1,"TEST" just so when I run it as a simulate, I could see that its executing the code. It is.

In cust func 10 I did a simple A = A + 1

Now what I was expecting was when clicking on input 12 (intr pin 10) I would see A inrement but it doesnt. Neither do I get success using the provided sample program.

Currently I dont have the F2424 hooked up and I am just using the simulation. What am I missing?

It seems so simple but I have no idea

Report to moderator   Logged
support
Global Moderator
*****

Posts: 3028





View Profile WWW E-Mail
Re:Interupt and simulation
« Reply #1 on: January 11, 2011, 11:38:30 AM »
Reply with quote

Sorry input interrupt is not simulated on TRiLOGI. This is because different PLC have different input pins mapped to the interrupt channels.

To test your custom function in simulator, you could create a ladder program using the input defined as interrupt and call the custom function that you define as ISR. This allows you to "simulate" what the actual interrupt routine would work.
Report to moderator   Logged

Email: support@triplc.com
Tel: 1-877-TRI-PLCS
secs
Newbie
*

Posts: 25



I'm a llama!

View Profile
Re:Interupt and simulation
« Reply #2 on: January 11, 2011, 11:56:06 AM »
Reply with quote

Thats fine. I was hoping thats the issue. Great product. I work with Allan Bradley stuff every day but love what I can do with this.
Report to moderator   Logged
Pages: [1] Go Up Reply Notify of replies Send the topic Print 
? previous next ?
Jump to: 


Login with username, password and session length

Powered by MySQL Powered by PHP Internet PLC Forum | Powered by YaBB SE
© 2001-2004, YaBB SE Dev Team. All Rights Reserved.
Valid XHTML 1.0! Valid CSS!