From: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: RE: [Emc-users] Classicladder counter
Date: Wed, 30 Jul 2008 06:22:22 +0000








Hi Terry

If you use use variable %C0.V in a  compare block  It will tell you what the 
current number is in the counter.
eg.    ---------[%C0.V=4}----------(Q1)

You can also set the value of the counter using the same variable in an equate 
block.
eg. |B1|-----------------------------[%C0.V=4]

You can export the counter number to a HAL component by using an equate block 
to assign it to a S32out word variable. But you have to set up the realtime 
module to create S32 in and out pins . ( I don"t think this was what you were 
asking though If it is then I will tell you how if you need)

If you want to reset the counter to zero then the reset pin is the way to go 
otherwise to set to another number (say 1) then use preset and assign 1 to the 
preset  property.
 
Have you read this?
 http://wiki.linuxcnc.org/cgi-bin/emcinfo.pl?ClassicLadder

Chris Morley




> From: [EMAIL PROTECTED]
> To: [email protected]
> Date: Tue, 29 Jul 2008 22:18:31 -0700
> Subject: [Emc-users] Classicladder
> 
> 
> 
> Hi,
> 
> I have a tool changer that needs to be homed each day(at least it
> did with the origional control),because it has no encoder--it counts
> revolutions on the gear motor that is driving the magazine,one rev of
> the motor is one tool station advanced.There will be a counter in classic
> that would watch this gear motor switch.
> 
> There is a prox switch for homing the magazine 
> 
> This is my plan for the homing:
> 
> A push button switch that the operator would hold down (or a timer to keep it 
> going after momentary closing) for at least one rev of the magazine,prox 
> switch
> gets made at some point on this one revolution.
> 
> Would the rung that reads the home prox switch go like:
> 
> a NO contact(home switch input) on the left side and this will go to
> the R (reset?) input on the counter block?
> This input needs to reset the counter
> 
> I looked through the examples in the download of classicladder on the 
> sourceforge and there was no examples of the counter being used that I saw
> 
> 
> and the switch on the gear motor doing the counting:
> 
> NO contact on the left and this hooks to the U(up counting) input on the 
> counter ?
> 
> Is the value of the counter usable in a compare block?
> 
> Thanks
> 
> Terry
> 
> 
> 
> ---- Msg sent via CableONE.net MyMail - http://www.cableone.net
> -------------------------------------------------------------------------
> This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
> Build the coolest Linux based applications with Moblin SDK & win great prizes
> Grand prize is a trip for two to an Open Source event anywhere in the world
> http://moblin-contest.org/redirect.php?banner_id=100&url=/
> _______________________________________________
> Emc-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/emc-users

 

_________________________________________________________________
If you like crossword puzzles, then you'll love Flexicon, a game which combines 
four overlapping crossword puzzles into one!
http://g.msn.ca/ca55/208
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Emc-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/emc-users

Reply via email to