> From: [EMAIL PROTECTED]
> To: emc-users@lists.sourceforge.net
> Date: Wed, 30 Jul 2008 12:39:42 -0700
> Subject: Re: [Emc-users] Classicladder
> 
> Thanks Chris that was VERY helpful.I have hope I can
> get this tool changer going now.
> Here is my next question,how do I get the tool_prep_number  
> to be a value I can use?
> My thinking was:
> linkps classicladder.0.in-xx tool-prepare
> 
> Am I on the right track?

Your close!

The tool-prep-number signal is a S32 integer pin and the classicladder 1--xx 
pin is a bit pin so that won't work.

Classicladder can input and output S32 pins but you need to do a little more 
work :)

You have to enable and specify how many pins you need when loading the 
classiclader realtime module.

so find the line that says something like this:



   loadrt classicladder_rt 


and change it to something like this:

loadrt classicladder_rt numS32in=5 numS32out=5

This causes classicladder to export S32 pins and map the first five word 
variables (%W0 - %W4) as S32in pins 
and the next five as S32out pins (%W5-%W9). Note that it also makes the regular 
(memory) word variables start 
at %W10 (in case you where already using word variables you would would have to 
change them).

Ok now link tool-prep-number to classicladder.o.s32in-00
now variable %W0 will hold the requested tool number.
When you get this working I hope you will post the ladder program so other can 
see a working example.

Cheers Chris Morley



_________________________________________________________________

-------------------------------------------------------------------------
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
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users

Reply via email to