Files
2026-08-20 06:17:39 +08:00

46 lines
2.9 KiB
Plaintext

#
# 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.
# Buffers
# Name Type Host size neut? (old) buffer# MP ---
# Top-level buffers to EMC
B emcCommand SHMEM localhost 8192 0 0 1 16 1001 TCP=5005 xdr queue confirm_write serial
B emcStatus SHMEM localhost 170000 0 0 2 16 1002 TCP=5005 xdr
B emcError SHMEM localhost 8192 0 0 3 16 1003 TCP=5005 xdr queue
# These are for the IO controller, EMCIO
B toolCmd SHMEM localhost 1024 0 0 4 16 1004 TCP=5005 xdr
# toolSts size made big enough to accommodate --enable-toolnml option (see linuxcnc_big.nml)
B toolSts SHMEM localhost 155648 0 0 5 16 1005 TCP=5005 xdr
# Processes
# Name Buffer Type Host Ops server? timeout master? cnum
P emc emcCommand LOCAL localhost RW 0 1.0 0 0
P emc emcStatus LOCAL localhost W 0 1.0 0 0
P emc emcError LOCAL localhost W 0 1.0 0 0
P emc toolCmd LOCAL localhost W 0 1.0 0 0
P emc toolSts LOCAL localhost R 0 1.0 0 0
P emcsvr emcCommand LOCAL localhost W 1 1.0 1 2
P emcsvr emcStatus LOCAL localhost R 1 1.0 1 2
P emcsvr emcError LOCAL localhost R 1 1.0 1 2
P emcsvr toolCmd LOCAL localhost W 1 1.0 1 2
P emcsvr toolSts LOCAL localhost R 1 1.0 1 2
P emcsvr default LOCAL localhost RW 1 1.0 1 2
P tool emcError LOCAL localhost W 0 1.0 0 3
P tool toolCmd LOCAL localhost RW 0 1.0 0 3
P tool toolSts LOCAL localhost W 0 1.0 0 3
P xemc emcCommand REMOTE localhost W 0 10.0 0 10
P xemc emcStatus REMOTE localhost R 0 10.0 0 10
P xemc emcError REMOTE localhost R 0 10.0 0 10
P xemc toolCmd REMOTE localhost W 0 10.0 0 10
P xemc toolSts REMOTE localhost R 0 10.0 0 10