Tytuł: NML Wiadomość wysłana przez: markcomp Stycznia 26, 2012, 11:20:05 NML
configs/common/client.nml Use this NML config on the computer running the GUI in a networked emc2 system. The host IP address should be changed to point to the computer that is running the realtime code. Change the NML_FILE in emc.ini to client.nml and (after the server side is running) run the GUI with: Kod: tcl/tkemc.tcl -ini emc.ini Note: tkemc.tcl does not need to be run as 'root'. Kod: # configs/common/server.nm Use this NML config on the computer running the realtime parts of emc2 in a networked system. The host address should point to the computer running the GUI (although this is not critical). Change the NML_FILE in emc.ini to server.nml. Start emc2 normally, and then run the GUI client. Kod: # Tytuł: Odp: NML Wiadomość wysłana przez: markcomp Stycznia 27, 2012, 08:06:03 http://www.wallacecompany.com/machine_shop/EMC2/remote_notes.html
Cytuj Notes on running the EMC GUI remotelyGoal: To run EMC on my Bridgeport with a PC mounted in a cabinet attached to the rear of the machine, and another small form factor or notebook mounted on a boom in the front. This way the parallel port connection from the control PC to the servo controller can be kept short and the GUI computer can be just about anywhere Ethernet can go. These notes may change over time. Any suggestions or corrections are welcome at kwallace AT wallacecompany D0T com. (Reference documents: See the Multiple UI's document above to see the different ways that EMC can be remotely operated. The method described below redirects (or actually directs to an additional stream?) NML messages between the GUI and the other EMC elements. EMC needs to have 1 through 4 running: This project will run only the GUI remotely.(At this time the AXIS GUI does not work, but tkemc does.) Additionally, EMC user files will be located on a file server in /common/EMC_Library, mounted to /home/user_name/emc2 on the server and client PC's. I have DHCP running but no local DNS so my configurations use IP addresses instead of computer names. Maybe some day I'll fix this. (It appears that other than the comments in my clientXX.nml and serverXX.nml files, they are the same, so only one file is needed. The files will be different if you use "localhost", as in other sample .nml files) Control or Server PC Setup 1. Connect to NFS file server 2. Redirect GUI NML 3. Activate the new .nml file
4. Connect EMC to the LAN Client or GUI PC Setup: 1. Install EMC2 2. Connect to NFS file server 3. Redirect GUI NML 4. Activate the new .nml file
Connecting: 1. Start EMC on the control (server) PC and select the configuration that matches the client IP address. 1. Start EMC on the client PC and select the configuration that matches the client IP address. Notes from Reference Documents: (tcl/tkemc.tcl -ini emc.ini - may be useful for a headless server, cleaned and optimized for real time control.) "When everthing is finally run xemc will send
messages via TCP to emcsvr which will then be placed in
shared memory buffers to be read by IO and TASK. TASK will
then forward messages as necessary to the MOTION kernel
module. (emcsvr will listen for any connection request on the net?) How I Set Up a Fedora EMC Client: The server/client system above was based on both PC's being EMC/Ubuntu systems. It would be much more convenient to be able to have any PC on the network be a client. I first copied tkemc.tcl from the server (/usr/share/emc/tcl/tkemc.tcl) to my home directory, /home/kwallace/emc_remote. From a terminal window, I invoked tkemc.tcl and corrected "missing file" errors until it ran. Here is a list of the files I copied to my home directory:
I created the directories called for in the error messages and copied the corresponding files to these locations: Somewhere in the process, I needed to create a clientXX.ini and clientXX.nml per the instructions above. You can make these before you start. tkemc seems to work properly but the colors are not the same as tkemc on the server, so I must be missing a configuration file or two. Here is the configuration file link - TkEmc. I found TkEmc on the server here - /etc/X11/app-defaults, so created the direcrtory and copied the file over. Now the screen looks normal.
|