0% found this document useful (0 votes)
51 views14 pages

Communication To PC by RS232C

Uploaded by

wahyu
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
51 views14 pages

Communication To PC by RS232C

Uploaded by

wahyu
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 14

Journal #:

Engineering Report
Makino Asia Pte Ltd ERP-V12-xxxx
Title: Prepared by:

Procedure of RS232C Connection for PS Series XIE YONGHUA


Date:
(PRO.P) 2010-03-26
Checked by Approved by

Marco Kikkawa Yasuhiko

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

No. ECO No. Content Remark


1 -

3.0 Revision History

Rev. Description of Change Author Date ECO No


00 Initial release. XIE YONGHUA 2006-09-12 MV07-1770

4.0 Details

This report is applicable for Fanuc OIMD controller for Professional P PS-series.

4.1 Equipment required

No. Equipment Quantity Remarks


1 RS232C cable 1
2 Personal Computer (PC) 1
3 Hyperterminal (recommended) 1 This software is available as
default feature in Microsoft
Windows

4.2 Hyperterminal setting

Hyperterminal serves as communication protocol software for RS232C connection


between PC and machine. Hyperterminal is available in Microsoft Windows operating
system. The picture below shows how to access hyperteminal in the case of Windows
XP.

DM#381132 Ver00 Pg 1 of 14
ENGINEERING REPORT

Start ? All Programs ? Accessories? Communications ? Hyperterminal

? Hyperterminal window will open as shown in next picture.


? Then key in the connection session name (for example: “Test”).
? Click OK

DM# 381132 Ver00 Pg 2 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”.

DM# 381132 Ver00 Pg 3 of 14


ENGINEERING REPORT

? The COM port setting window will then appear. Choose COM1.

? Then, set COM1 properties as shown in the following picture.

DM# 381132 Ver00 Pg 4 of 14


ENGINEERING REPORT

4.3 NC parameters setting

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)

DM# 381132 Ver00 Pg 5 of 14


ENGINEERING REPORT

4.4 Downloading NC programs from machine to PC

In the case of downloading NC programs from machine to PC (PC is receiving data), do


the following.

? 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).

DM# 381132 Ver00 Pg 6 of 14


ENGINEERING REPORT

DM# 381132 Ver00 Pg 7 of 14


ENGINEERING REPORT

? To start downloading, go to NC program screen under “EDIT” mode.


? Press “Program” on MDI keyboard, then press “DIR” soft key.

? Press soft key [OPRT]

? Press soft key [F OUTPUT]

DM# 381132 Ver00 Pg 8 of 14


ENGINEERING REPORT

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.

Alternatively NC also can output a range of NC program. Specify the NC programs


range to be downloaded. For example, we want to transfer O0030 to O0060. Key in
“O0030, O0060” (separated by a comma). Then press softkey [EXECUTE].

? 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.

DM# 381132 Ver00 Pg 9 of 14


ENGINEERING REPORT

Open text file “test1” to check the output data from NC

DM# 381132 Ver00 Pg 10 of 14


ENGINEERING REPORT

4.5 Uploading NC programs from PC to machine

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)

DM# 381132 Ver00 Pg 11 of 14


ENGINEERING REPORT

(Press soft key [F INPUT])

“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”.

DM# 381132 Ver00 Pg 12 of 14


ENGINEERING REPORT

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.

DM# 381132 Ver00 Pg 13 of 14


ENGINEERING REPORT

? Confirm on the machine that the NC programs have been transferred.


? Finish

4.6 Alarms for data transmission

1) SR0085 Overrun error

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

DM# 381132 Ver00 Pg 14 of 14

You might also like