Communication To PC by RS232C
Communication To PC by RS232C
Engineering Report
Makino Asia Pte Ltd ERP-V12-xxxx
Title: Prepared by:
1.0 Objective
This report describes the procedure of connection between NC and personal computer
(PC) via RS232 cable. This procedure is prepared specifically for downloading and
uploading NC programs from PC.
2.0 Reference
4.0 Details
This report is applicable for Fanuc OIMD controller for Professional P PS-series.
DM#381132 Ver00 Pg 1 of 14
ENGINEERING REPORT
? The location information window (shown below) may/may not appear depending on
Windows version in use. If it appears, just click “Cancel”.
? The COM port setting window will then appear. Choose COM1.
There are some NC parameters need to be set before sending/receiving data to/from the
machine.
? N0020 (I/O Channel) = 0
? N0101#3 (ASI) = 1
? N0103 (Baudrate CH0) = 11 (It refers as 9600 bits/sec)
12 (It refers as 19200 bits/sec)
? A text file needs to be prepared to capture the data (click Transfer ? Capture Text).
? Determine the folder/directory to save the text file.
? Name the text file (for example test1.txt).
Input program
No. to copy
out, e.g.
O0008
? Press soft key [EXECUTE] (If you do not specify the program number, NC will output
the currently selected program, i.e. O0022)
For example we want to output “O0008”
After key in “O0008” in the input buffer and press softkey [EXECUTE], system will
automatically output the NC program “O0008” to PC.
? After the machine finishes outputting the data, stop the hyperterminal connection
session (click Transfer ? Capture Text ? Stop).
? You can now open the text file (test1.txt) to confirm that the downloading is
successful.
In the case of uploading NC programs from PC to machine (PC is sending data), do the
following (set NC mode to “EDIT”)
? Press “Program” on MDI keyboard, then press “DIR” soft key.
? Press “(OPRT)” and “+”. Press “F INPUT”
? Press “EXECUTE”. (Input request is on)
? On the PC side, send the intended file (click Transfer ? Send Text File)
“INPUT”
blinking
(Press soft key [EXECUTE]. When NC “input” is ready, the text “INPUT” is blinking on
the bottom will display).
For example, to input one NC program “O0026” from text file “test1.txt”.
Note: Before send the data, please confirm NC “input” request is on. (The text “input” is
blinking in the bottom)
After the transmission is finished, the new program “O0026” will be added into the list showed
below.
Cause: The next character was received from I/O device connected to reader/punch
interface 1 before it could read a previously received character.
Checking points: An overrun, parity error, or framing error occurs during the reading by
reader/punch interface 1. Check the RS232C communication setting, such as number of
data bits, the baud rate setting, parity check setting, or the I/O channel number.
2) SR0086 DR OFF
Cause: During I/O process by reader/punch interface 1, the data set ready input signal
of the I/O device (DR) was off.
Checking points: I/O device on/off status, a broken cable, and a defective printed circuit
board.
Note:
If after following all the settings above, you still cannot receive or send data, please
check whether RS232 cable is broken or connection is correct, such as the connector
pins are matched or not.
- End