VR Milling v2 and v5 has the ability to pick a .fnc program and run it from remote commands sent via an RS232 interface.
Setup the software by following the screenshots below:
Setup the 'CIM' comm port to match the other PC comms settings, eg Com 2: 9600 baud, even parity, 7 data bits, 1 stop bit
Then send $$MACHINE FROM testprogram.fnc
If the program is found and executed, then the text EXEC will be sent back via RS232
If you send $STATUS to the VR Milling PC, then it will return something like this:
R01D00M01 where the R01 means the program is running and M01 means the machine is connected and ready to run (ie, in auto mode)
R00 or M00 would mean the software is not ready to auto-run programs
Open a .fnc file in the correct directory 1st, so the software knows where to look for them and keep the software into Auto mode.
Set up VR Milling to run .fnc from external RS232 commands
Moderators: Martin, Steve, Mr Magoo
- Denford Admin
- Site Admin
- Posts: 3649
- Joined: Fri 10 Feb , 2006 12:40 pm
- Hardware/Software: Go to User Control Panel > Profile
Enter as much information about your CNC hardware and software as you can - it makes it easier for everyone to know what you're talking about then. - Location: Sunny Brighouse
- Contact:
Set up VR Milling to run .fnc from external RS232 commands
- Attachments
-
- SettingUpCIMRS232.jpg (118.17 KiB) Viewed 4633 times
- Denford Admin
- Site Admin
- Posts: 3649
- Joined: Fri 10 Feb , 2006 12:40 pm
- Hardware/Software: Go to User Control Panel > Profile
Enter as much information about your CNC hardware and software as you can - it makes it easier for everyone to know what you're talking about then. - Location: Sunny Brighouse
- Contact:
Re: Set up VR Milling to run .fnc from external RS232 commands
Another command from PC to VR Milling:
$$BLOCK
Will return the currently active CNC program line
$$BLOCK
Will return the currently active CNC program line
- bradders
- CNC Guru
- Posts: 1251
- Joined: Mon 13 Feb , 2006 12:35 pm
- Location: Brighouse, England
- Contact:
Re: Set up VR Milling to run .fnc from external RS232 commands
Found this as well from some old notes
DNC
The Denford controller also recognises the commands “$$MACHINE”, “$$SCREEN” and “$$EXECUTE”. These commands initiate drip-feeding of a NC program.
$$MACHINE executes each block as it is received.
$$SCREEN simulates each block as it is received.
$$EXECUTE executes each block in the current machine mode (AUTO or SIMULATE).
To drip feed a program, put the line ‘$$MACHINE’ at the beginning of the file and the line ‘$$RESET’ at the end. The ‘$$RESET’ command flushes the RS232 buffer and resets the controller to its initial state.
DNC
The Denford controller also recognises the commands “$$MACHINE”, “$$SCREEN” and “$$EXECUTE”. These commands initiate drip-feeding of a NC program.
$$MACHINE executes each block as it is received.
$$SCREEN simulates each block as it is received.
$$EXECUTE executes each block in the current machine mode (AUTO or SIMULATE).
To drip feed a program, put the line ‘$$MACHINE’ at the beginning of the file and the line ‘$$RESET’ at the end. The ‘$$RESET’ command flushes the RS232 buffer and resets the controller to its initial state.
- Denford Admin
- Site Admin
- Posts: 3649
- Joined: Fri 10 Feb , 2006 12:40 pm
- Hardware/Software: Go to User Control Panel > Profile
Enter as much information about your CNC hardware and software as you can - it makes it easier for everyone to know what you're talking about then. - Location: Sunny Brighouse
- Contact:
Re: Set up VR Milling to run .fnc from external RS232 commands
NB - These commands are only valid for pre-VR Milling systems (ie the DOS control software) .... V2 and V5 milling don't support them.Found this as well from some old notes
DNC
The Denford controller also recognises the commands “$$MACHINE”, “$$SCREEN” and “$$EXECUTE”. These commands initiate drip-feeding of a NC program.
$$MACHINE executes each block as it is received.
$$SCREEN simulates each block as it is received.
$$EXECUTE executes each block in the current machine mode (AUTO or SIMULATE).
To drip feed a program, put the line ‘$$MACHINE’ at the beginning of the file and the line ‘$$RESET’ at the end. The ‘$$RESET’ command flushes the RS232 buffer and resets the controller to its initial state.
In fact, I've just learned that Ver 2 VR Milling only supports $$MACHINE FROM