Go to Post Powerhouse teams aren't powerhouse because they build great robots, they are powerhouses because they build great teams. - couvillion [more]
Home
Go Back   Chief Delphi > Technical > Electrical > CAN
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Reply
Thread Tools Rate Thread Display Modes
  #16   Spotlight this post!  
Unread 08-02-2011, 12:22
Unsung FIRST Hero
Al Skierkiewicz Al Skierkiewicz is offline
Broadcast Eng/Chief Robot Inspector
AKA: Big Al WFFA 2005
FRC #0111 (WildStang)
Team Role: Engineer
 
Join Date: Jun 2001
Rookie Year: 1996
Location: Wheeling, IL
Posts: 10,795
Al Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond repute
Re: Why are Limit Switches outlawed with PWM, but not CAN?

Phil,
The limit switch rule was in place in 2009 not CAN bus use.
From 2009 Inspection Checklist
Custom Circuits, Sensors and Additional Electronics - cannot be attached to the cRIO’s serial port or Ethernet port 2 (except for the Axis 206 camera), cannot attach to Jaguar CAN or limit switch ports,...
__________________
Good Luck All. Learn something new, everyday!
Al
WB9UVJ
www.wildstang.org
________________________
Storming the Tower since 1996.

Last edited by Al Skierkiewicz : 08-02-2011 at 12:43.
Reply With Quote
  #17   Spotlight this post!  
Unread 08-02-2011, 13:07
Alan Anderson's Avatar
Alan Anderson Alan Anderson is offline
Software Architect
FRC #0045 (TechnoKats)
Team Role: Mentor
 
Join Date: Feb 2004
Rookie Year: 2004
Location: Kokomo, Indiana
Posts: 9,113
Alan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond repute
Re: Why are Limit Switches outlawed with PWM, but not CAN?

Quote:
Originally Posted by Al Skierkiewicz View Post
Phil,
The limit switch rule was in place in 2009 not CAN bus use.
From 2009 Inspection Checklist
Custom Circuits, Sensors and Additional Electronics - cannot be attached to the cRIO’s serial port or Ethernet port 2 (except for the Axis 206 camera), cannot attach to Jaguar CAN or limit switch ports,...
No wonder we're confused by what you're saying. That's not the rule we're talking about here. This year's <R55> J does permit limit switches when using CAN control.
Reply With Quote
  #18   Spotlight this post!  
Unread 08-02-2011, 13:09
Unsung FIRST Hero
Al Skierkiewicz Al Skierkiewicz is offline
Broadcast Eng/Chief Robot Inspector
AKA: Big Al WFFA 2005
FRC #0111 (WildStang)
Team Role: Engineer
 
Join Date: Jun 2001
Rookie Year: 1996
Location: Wheeling, IL
Posts: 10,795
Al Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond repute
Re: Why are Limit Switches outlawed with PWM, but not CAN?

I thought that Phil was asking about limit switches when using the PWM inputs in his first post.
__________________
Good Luck All. Learn something new, everyday!
Al
WB9UVJ
www.wildstang.org
________________________
Storming the Tower since 1996.
Reply With Quote
  #19   Spotlight this post!  
Unread 08-02-2011, 16:28
PhilBot's Avatar
PhilBot PhilBot is offline
Get a life? This IS my life!
AKA: Phil Malone
FRC #1629 (GaCo: The Garrett Coalition)
Team Role: Mentor
 
Join Date: Jan 2006
Rookie Year: 2006
Location: Maryland
Posts: 747
PhilBot has a reputation beyond reputePhilBot has a reputation beyond reputePhilBot has a reputation beyond reputePhilBot has a reputation beyond reputePhilBot has a reputation beyond reputePhilBot has a reputation beyond reputePhilBot has a reputation beyond reputePhilBot has a reputation beyond reputePhilBot has a reputation beyond reputePhilBot has a reputation beyond reputePhilBot has a reputation beyond repute
Re: Why are Limit Switches outlawed with PWM, but not CAN?

Allow me to restate my question now that we have a few more facts.

(I am having our team leader post this on the Q&A... but just let me clarify)

We've established that regardless of the control method you are using with the Jaguars (CAN or PWM), the Limit switch inputs perform the same control function... that is: they stop the motor running a specific direction if that limit switch circuit goes open-circuit.

This in no way compromises any safety/watchdog/loss-of-comms/FCS shutdown action. It actually adds a level of safety.

The only difference between the two interfaces is that CAN ALSO lets the cRIO read the state of the switches, in case it wants to take some other action (since the motor is already shut down)

So my question is: Why can we connect limit switches to the Jaguar if we are using CAN bus, but not if we are using PWM. The automatic limit control action is the same. Please let us use it!!!

Just because CAN can read the inputs, there is no requirment to do so, but having the automated limit switch is a COOL feature to provide a faster response AND it frees up DSC I/Os for other uses (my other reason for wanting this).

Phil.
__________________
Phil Malone
Garrett Engineering And Robotics Society (GEARS) founder.
http://www.GEARSinc.org

FRC1629 Mentor, FTC2818 Coach, FTC4240 Mentor, FLL NeXTGEN Mentor
Reply With Quote
  #20   Spotlight this post!  
Unread 08-02-2011, 22:42
Mr. Lim Mr. Lim is offline
Registered User
AKA: Mr. Lim
no team
Team Role: Leadership
 
Join Date: Jan 2004
Rookie Year: 1998
Location: Toronto, Ontario
Posts: 1,125
Mr. Lim has a reputation beyond reputeMr. Lim has a reputation beyond reputeMr. Lim has a reputation beyond reputeMr. Lim has a reputation beyond reputeMr. Lim has a reputation beyond reputeMr. Lim has a reputation beyond reputeMr. Lim has a reputation beyond reputeMr. Lim has a reputation beyond reputeMr. Lim has a reputation beyond reputeMr. Lim has a reputation beyond reputeMr. Lim has a reputation beyond repute
Re: Why are Limit Switches outlawed with PWM, but not CAN?

I currently see no downside - safety or otherwise - in allowing direct limit switch use with the Jaguars in PWM mode. Particularly if they've already been allowed in CAN mode.

Is there something we're missing here?
__________________
In life, what you give, you keep. What you fail to give, you lose forever...
Reply With Quote
  #21   Spotlight this post!  
Unread 09-02-2011, 02:46
jhersh jhersh is offline
National Instruments
AKA: Joe Hershberger
FRC #2468 (Appreciate)
Team Role: Mentor
 
Join Date: May 2008
Rookie Year: 1997
Location: Austin, TX
Posts: 1,006
jhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond repute
Re: Why are Limit Switches outlawed with PWM, but not CAN?

I'm guessing it's similar reasoning that almost outlawed closed-loop control on the Jaguar entirely. It's not founded in anything technical or safety related.

-Joe
Reply With Quote
  #22   Spotlight this post!  
Unread 09-02-2011, 07:49
Unsung FIRST Hero
Al Skierkiewicz Al Skierkiewicz is offline
Broadcast Eng/Chief Robot Inspector
AKA: Big Al WFFA 2005
FRC #0111 (WildStang)
Team Role: Engineer
 
Join Date: Jun 2001
Rookie Year: 1996
Location: Wheeling, IL
Posts: 10,795
Al Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond repute
Re: Why are Limit Switches outlawed with PWM, but not CAN?

Quote:
Originally Posted by PhilBot View Post
We've established that regardless of the control method you are using with the Jaguars (CAN or PWM), the Limit switch inputs perform the same control function... that is: they stop the motor running a specific direction if that limit switch circuit goes open-circuit.

The only difference between the two interfaces is that CAN ALSO lets the cRIO read the state of the switches,
Phil,
I am not a programmer so tender my answer with that. It is my understanding (from inspector training) that in the CAN implementation, the state of the limit must be read, passed on the CAN bus to the Crio which then generates motor command. Under FMS the Crio is controlled and the limit switch based commands are then enabled or inhibited by the FMS command. It is for this (and others) reason that we went through several firmware revisions in that first year. As each revision was released, it was necessary to determine that any and all motion could be stopped by the FMS. If it could not, then another release was generated. The safety of the participants, volunteers and field are still the highest priority in making decisions about the control system.

Please ask the Q&A so everyone can be satisfied.
__________________
Good Luck All. Learn something new, everyday!
Al
WB9UVJ
www.wildstang.org
________________________
Storming the Tower since 1996.

Last edited by Al Skierkiewicz : 09-02-2011 at 07:51.
Reply With Quote
  #23   Spotlight this post!  
Unread 09-02-2011, 08:12
Alan Anderson's Avatar
Alan Anderson Alan Anderson is offline
Software Architect
FRC #0045 (TechnoKats)
Team Role: Mentor
 
Join Date: Feb 2004
Rookie Year: 2004
Location: Kokomo, Indiana
Posts: 9,113
Alan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond repute
Re: Why are Limit Switches outlawed with PWM, but not CAN?

Quote:
Originally Posted by Al Skierkiewicz View Post
I am not a programmer so tender my answer with that. It is my understanding (from inspector training) that in the CAN implementation, the state of the limit must be read, passed on the CAN bus to the Crio which then generates motor command. Under FMS the Crio is controlled and the limit switch based commands are then enabled or inhibited by the FMS command.
I'm pretty sure your understanding is faulty. From everything I have seen in action and read in the available documentation, the limit switch action is entirely independent of any commands to the Jaguar, either by CAN or PWM, whether FMS is involved or not.
Reply With Quote
  #24   Spotlight this post!  
Unread 09-02-2011, 09:39
dyanoshak dyanoshak is offline
Registered User
AKA: David Yanoshak
FRC #2158 (ausTIN CANs)
Team Role: Mentor
 
Join Date: Dec 2007
Rookie Year: 2007
Location: Austin, TX
Posts: 190
dyanoshak has a reputation beyond reputedyanoshak has a reputation beyond reputedyanoshak has a reputation beyond reputedyanoshak has a reputation beyond reputedyanoshak has a reputation beyond reputedyanoshak has a reputation beyond reputedyanoshak has a reputation beyond reputedyanoshak has a reputation beyond reputedyanoshak has a reputation beyond reputedyanoshak has a reputation beyond reputedyanoshak has a reputation beyond repute
Re: Why are Limit Switches outlawed with PWM, but not CAN?

Quote:
Originally Posted by Al Skierkiewicz View Post
Phil,
I am not a programmer so tender my answer with that. It is my understanding (from inspector training) that in the CAN implementation, the state of the limit must be read, passed on the CAN bus to the Crio which then generates motor command. Under FMS the Crio is controlled and the limit switch based commands are then enabled or inhibited by the FMS command.
The limit switch functionality is independent of commands; there is no way to override the limit switches in software.

There is a "Soft Limit" feature that uses the encoder or potentiometer to read the position, and stops the motors at a user defined position. However, motor movement will still be stopped by the hardware limit switch opening the circuit, even if it hasn't reached the soft limit yet.

When using CAN, it is entirely up to the user to read the limit switch states from the Jaguar. The cRIO does not issue motor commands based on the limit switch states. The cRIO issues standard commands and the Jaguar follows them to the best of its ability. If the cRIO is telling the Jaguar "move forward!" it will try to. If, however, the forward limit switch input is open-circuit, the Jaguar will not move forward, despite the cRIO continuing to send a forward command.

Quote:
Originally Posted by Al Skierkiewicz View Post
It is for this (and others) reason that we went through several firmware revisions in that first year. As each revision was released, it was necessary to determine that any and all motion could be stopped by the FMS. If it could not, then another release was generated.
The multiple Jaguar firmware updates last year were to fix bugs (a power-up bug, PID bugs, etc.), none of which had to do with the limit switches or the FMS. Actually, the FMS doesn't ever talk to a Jaguar; it tells the cRIO "Disable!", the cRIO stops sending motor commands, and the Jaguar times out.

-David
Reply With Quote
  #25   Spotlight this post!  
Unread 09-02-2011, 10:01
PhilBot's Avatar
PhilBot PhilBot is offline
Get a life? This IS my life!
AKA: Phil Malone
FRC #1629 (GaCo: The Garrett Coalition)
Team Role: Mentor
 
Join Date: Jan 2006
Rookie Year: 2006
Location: Maryland
Posts: 747
PhilBot has a reputation beyond reputePhilBot has a reputation beyond reputePhilBot has a reputation beyond reputePhilBot has a reputation beyond reputePhilBot has a reputation beyond reputePhilBot has a reputation beyond reputePhilBot has a reputation beyond reputePhilBot has a reputation beyond reputePhilBot has a reputation beyond reputePhilBot has a reputation beyond reputePhilBot has a reputation beyond repute
Re: Why are Limit Switches outlawed with PWM, but not CAN?

Quote:
Originally Posted by Al Skierkiewicz View Post
Phil,
Please ask the Q&A so everyone can be satisfied.
I have posted the question.

Whether everyone will be satisfied is a completely different issue

If nothing else, it will be interesting to hear the reasoning behind this rule.

Phil.
__________________
Phil Malone
Garrett Engineering And Robotics Society (GEARS) founder.
http://www.GEARSinc.org

FRC1629 Mentor, FTC2818 Coach, FTC4240 Mentor, FLL NeXTGEN Mentor
Reply With Quote
  #26   Spotlight this post!  
Unread 09-02-2011, 14:20
Unsung FIRST Hero
Al Skierkiewicz Al Skierkiewicz is offline
Broadcast Eng/Chief Robot Inspector
AKA: Big Al WFFA 2005
FRC #0111 (WildStang)
Team Role: Engineer
 
Join Date: Jun 2001
Rookie Year: 1996
Location: Wheeling, IL
Posts: 10,795
Al Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond repute
Re: Why are Limit Switches outlawed with PWM, but not CAN?

David,
I was speaking of the updates in 2009 when this control system was first introduced.
__________________
Good Luck All. Learn something new, everyday!
Al
WB9UVJ
www.wildstang.org
________________________
Storming the Tower since 1996.
Reply With Quote
  #27   Spotlight this post!  
Unread 09-02-2011, 15:53
Joe Ross's Avatar Unsung FIRST Hero
Joe Ross Joe Ross is offline
Registered User
FRC #0330 (Beachbots)
Team Role: Engineer
 
Join Date: Jun 2001
Rookie Year: 1997
Location: Los Angeles, CA
Posts: 8,582
Joe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond repute
Re: Why are Limit Switches outlawed with PWM, but not CAN?

Quote:
Originally Posted by Al Skierkiewicz View Post
David,
I was speaking of the updates in 2009 when this control system was first introduced.
There were no jaguar firmware updates in 2009 because no team had the capability of loading them.
Reply With Quote
  #28   Spotlight this post!  
Unread 09-02-2011, 17:55
Unsung FIRST Hero
Al Skierkiewicz Al Skierkiewicz is offline
Broadcast Eng/Chief Robot Inspector
AKA: Big Al WFFA 2005
FRC #0111 (WildStang)
Team Role: Engineer
 
Join Date: Jun 2001
Rookie Year: 1996
Location: Wheeling, IL
Posts: 10,795
Al Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond repute
Re: Why are Limit Switches outlawed with PWM, but not CAN?

OK,
There were Crio, driver's station and Lab View updates in 2009, parts of which addressed the inability to turn off Jaguars reliably at the end of a match. Not only was it not possible to update the Jaguar, there was no way to check it since CAN was not legal in 2009 nor was it legal to connect to the CAN bus connector on the Jaguar.
__________________
Good Luck All. Learn something new, everyday!
Al
WB9UVJ
www.wildstang.org
________________________
Storming the Tower since 1996.
Reply With Quote
Reply


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -5. The time now is 17:50.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi