3 communications, Introduction, Controller response to data – Yaskawa SMC–4000 User Manual

Page 45: Rs232 port

Advertising
background image

35

SMC–4000 User Manual

3 Communications

Introduction

The SMC–4000 has one RS232 port and one Ethernet port. The RS-232 is a standard serial link with
communication baud rates up to 19.2kbaud. The Ethernet port is a 10Base-T link.

Controller Response to Data

Most SMC–4000 instructions are represented by two characters followed by the appropriate parameters.
Each instruction must be terminated by a carriage return or semicolon.

Instructions are sent in ASCII, and the SMC–4000 decodes each ASCII character (one byte) one at a
time. It takes approximately 0.5 msec for the controller to decode each command.

After the instruction is decoded, the SMC–4000 returns a colon (:) if the instruction was valid or a
question mark (?) if the instruction was not valid or was not recognized.

For instructions requiring data, such at Tell Position (TP), the SMC–4000 will return the data followed by
a carriage return, line feed and : .

It is good practice to check for : after each command is sent to prevent errors. An echo function is
provided to enable associating the SMC–4000 response with the data sent. The echo is enabled by
sending the command EO 1 to the controller.

RS232 Port

The SMC–4000 has a single RS232 connection for sending and receiving commands from a PC or other
terminal. The pin connections for the RS232 connection are as follows.

Port 1

1 RTS – input

6 RTS – input

2 Transmit Data - output

7 CTS – output

3 Receive Data - input

8 RTS – input

4 CTS – output

9 No connection

5 Ground

Advertising