Report of work

More
14 years 10 months ago - 14 years 10 months ago #15471 by ArcEye
Replied by ArcEye on topic Re:Report of work
Apologies, that's what you get for rushing.

Not using python myself I had not realised that it would not open a new file if the mode was set to 'rw'.
I changed the mode at some point after I had already created the file so didn't get any errors.

The axis files are now amended, tested and work.

The earlier axis file is 2.4.5 not 2.4.6, as I don't have that on my system.

regards

(see later post for updated zip)
Last edit: 14 years 10 months ago by ArcEye.

Please Log in or Create an account to join the conversation.

More
14 years 10 months ago #15472 by gois
Replied by gois on topic Re:Report of work
Good day!
The think I'm doing something wrong, they still did not work, I will explain step by step how I'm doing.

User terminal and alert by deleting the files am root axis and axis-remote that are in the folder / usr / bin.
Then I am sending to the / usr / bin files and axis axis-2.4.6-remote that you sent me.
Then I'm renaming the 2.4.6 to axis-axis and giving 755 permissions via chmod.

So I'm opening the axis, ... have had an evolution, the axis is now open normally, but does not save anything in / tmp / filename.txt


I did another test by adding code in the file M121 bash to see if it was running and I could confirm that it is running normally.

The problem I'm noticing is that the file filename.txt is not getting the file name. Ngc.



The only thing missing is to have the ngc file name is sent to open the filename.txt so I can use this information to my file using the M121.

Thanks for the help,

Evan F. Gois

Please Log in or Create an account to join the conversation.

More
14 years 10 months ago #15474 by ArcEye
Replied by ArcEye on topic Re:Report of work
Hi

See my last post, I had set the file mode to 'rw' not realising that python would not open a new file in that mode.

Download the revised zip and swap the axis-2.4.5 for your /usr/bin/axis and it should work now.

Don't forget that axis must have a file loaded before you use M121 P1 or it will fail because of that too.

regards

Please Log in or Create an account to join the conversation.

More
14 years 10 months ago #15477 by gois
Replied by gois on topic Re:Report of work
Hello, I have not had success, did not indicate more information on recording infirm filename.txt.
The result of what I have in my report joglog.txt is this:

JOB FILE NAME
*************
Started at: -
Thu Dec 8 11:14:03 EST 2011
Ended at: -
Thu Dec 8 11:14:35 EST 2011

grateful for the help.

Evan F. Gois

Please Log in or Create an account to join the conversation.

More
14 years 10 months ago - 14 years 10 months ago #15478 by ArcEye
Replied by ArcEye on topic Re:Report of work
Hi

Open a terminal and run 'emc'

Once homing is done choose the MDI tab and enter 'M121 P1'

If you get an error displayed in the terminal
cat: /tmp/filename.txt: No such file or directory

You have tried to get the loaded file name when there is NO file loaded

If you get an error to do with python quoting last call to
get_file_name(event=None):
and an error
f = open('/tmp/filename.txt','rw')

You are still using the old version of axis somehow

Either edit f = open('/tmp/filename.txt','rw') to f = open('/tmp/filename.txt','w') or copy the new version of axis-2.4.5 from the zip I posted.

regards

PS.
As I suspect the problem is probably no file was loaded, I have amended the axis file so that /tmp/filename.txt is created
whatever and if no file is loaded, "No File Loaded" is written to it.

File Attachment:

File Name: jobtimestamp3.zip
File Size:61.22 KB
Last edit: 14 years 10 months ago by ArcEye.

Please Log in or Create an account to join the conversation.

More
14 years 10 months ago #15485 by gois
Replied by gois on topic Re:Report of work
Good afternoon!
Here we go again ....
I did what you suggested, if I run the command directly on the M121 P1 MDI works correctly, but when I put the M121 P1 arquivo.ngc at the beginning of the following message appears on the terminal (axis can not accept remote command while running) and does not save .

Please Log in or Create an account to join the conversation.

Time to create page: 0.351 seconds
Powered by Kunena Forum