NEWS
emc2_2.3.5 Release
A fresh bugfix release (Changelog). You can get it: as a source package from sourceforge, from Git , or as a precompiled package which works on Ubuntu as described here.
 
Ubuntu 8.04&EMC2 Live CD
The EMC2 team has a custom Live-CD (EU mirror) based on Ubuntu 8.04 with emc 2.3.x included, that will let you try out EMC2 before installing, and it's also the easiest way to install Ubuntu and EMC2 together. (more)
 
emc2_2.3.4-1 Release
A fresh bugfix release (Changelog). You can get it: as a source package from sourceforge , from Git , or as a precompiled package which works on Ubuntu as described here.
 
Site Search
Google
Web LinuxCNC
Login
Home arrow Forum

EMC Support Forum
Welcome, Guest
Please Login or Register.    Lost Password?
Timer variables TMn.P
(1 viewing) 1 Guest
Go to bottom
TOPIC: Timer variables TMn.P
#1760
rudydp (User)
Fresh Boarder
Posts: 3
User Offline Click here to see the profile of this user
Timer variables TMn.P 1 Month, 1 Week ago Karma: 0  
I am new to this list and hope to participate quite a bit in the future. I started moving over to EMC2 en of last year and still have a lot to learn.
I am a founder member of a new local interest group and we have about 10-15 new members who will become involved with EMC shortly. We are in Pretoria, South Africa.

I have successfully got a small lathe (EMCO C5 CNC) and milling machine (EMCO F1 CNC) converted and running. The milling machine is basically fully functional with spindle speed control using a PID loop and a MPG.

The lathe is giving me some problems with regard to the toolchanger, which I am setting up with classicladder. The following problem appeared:

The TMn.P variables seem to disappear after shutting down and restarting EMC. I use them to set variable count down times according to the number of the tool to be moved to. The WATCH window does not display them from the GUI. Only the %W0, %W1, etc variables are shown. I use an ASSIGMENT to calculate the value of TMn.P, which can be from 2 to 90 msecs.

When you set it up from within EMC and start it running it works fine. After shutting down EMC and restarting the setting of the TMn.P variable does not work - it seems to remain 0.

Any help to clarify will be appreciated. I am on the 8.04 Ubuntu system with the latest EMC2.
 
Logged Logged  
  The administrator has disabled public write access.
#1761
cmorley (Moderator)
Moderator
Posts: 61
User Offline Click here to see the profile of this user
Re:Timer variables TMn.P 1 Month, 1 Week ago Karma: 8  
Please post your classicladder file. Which version of EMC are you using.

Chris M
 
Logged Logged  
  The administrator has disabled public write access.
#1762
rudydp (User)
Fresh Boarder
Posts: 3
User Offline Click here to see the profile of this user
Re:Timer variables TMn.P 1 Month, 1 Week ago Karma: 0  
I am using emc2_2.3.4-1. I will post the .clp files later tonight.

As said before, I find it strange that the timer variables are not shown in the WATCH window, in accordance with the
Inegrator Manual. It would have helped to be able to see them.
 
Logged Logged  
  The administrator has disabled public write access.
#1773
rudydp (User)
Fresh Boarder
Posts: 3
User Offline Click here to see the profile of this user
Re:Timer variables TMn.P 1 Month, 1 Week ago Karma: 0  
Could not upload the classicladder file toolch.clp.

I found a way around the problem. By adding a small value to the case when M0.P should be have been zero, the
ladder program seems to work consistently, ie.

original: %M0.P = 18*(%W1 - %W0) - if this is zero the ladder program fails afterwards.

current:: %M0.P = 18*(%W1 - %W0) +1 - seems to work in all cases

maybe there is some logic behind it.

Rudy
 
Logged Logged  
 
Last Edit: 2010/02/05 10:15 By rudydp.
  The administrator has disabled public write access.
#1780
cmorley (Moderator)
Moderator
Posts: 61
User Offline Click here to see the profile of this user
Re:Timer variables TMn.P 1 Month, 1 Week ago Karma: 8  
rudydp wrote:
I am using emc2_2.3.4-1. I will post the .clp files later tonight.

As said before, I find it strange that the timer variables are not shown in the WATCH window, in accordance with the
Inegrator Manual. It would have helped to be able to see them.


To upload the ladder file change it's ending to .txt
To be able to see the timer variable change the %W0 to %TM0.P in the watch window
 
Logged Logged  
  The administrator has disabled public write access.
Go to top
© 2010 LinuxCNC.org
Joomla! is Free Software released under the GNU/GPL License.