60
Serial Communications Section 4-1
4-1 Serial Communications
Both the MCW151-E as the MCW151-DRT-E provide serial ports for commu-
nication with host-computers, PCs, Programmable Terminals (PTs) and other
general-purpose devices. The MC Units are provided with the following proto-
cols.
• Motion Perfect protocol:
For connection to personal computer
• Host Link:
For connection to PCs, Programmable Terminals, other MC Units
• General-purpose:
For connection to general-purpose external devices
Note 1. The programming port 0 (RS-232C) can only be used for connection to a
personal computer with the Motion Perfect configuration software.
2. A 4-wire RS-422A connection must be used when using Host Link Com-
munication.
3. For connection to a PC (Host Link Slave), configure the MC Unit as a Host
Link Master. For connection to a Programmable Terminal (Host Link Mas-
ter), configure the MC Unit as a Host Link Slave. When using the Host Link
protocol to communicate between two (or more) MCW151, configure one
MC Unit as Host Link Master and the others as Host Link Slave.
4-1-1 Host Link Master
In Host Link Master mode, Host Link commands can be sent from the MC Unit
to a Host Link Slave such as a PC by using BASIC commands. The BASIC
task execution will be paused until the response has been received from the
other device. The following BASIC commands can be used:
MC Unit Serial Ports Motion Perfect
Protocol
Host Link Master
(note 3)
Host Link Slave
(note 3)
General Purpose
MCW151-E Port 0: RS-232C (See
note 1)
YesNoNoNo
Port 1: RS-232C No Yes Yes Yes
Port 2: RS-422A/485
(See note 2)
N o Ye s Ye s Ye s
MCW151-
DRT-E
Port 0: RS-232C (See
note 1)
YesNoNoNo
Port 1: RS-232C No Yes Yes Yes
Devices to connect Personal Com-
puter
PCs, MCW151s Programmable
Terminals,
MCW151s
General-purpose
external devices
BASIC Command Description
SETCOM SETCOM configures the serial communication port,
including enabling the Host Link protocols.
HLM_READ HLM_READ reads data from the Host Link Slave to
either VR or Table memory.
HLM_WRITE HLM_WRITE writes data to the Host Link Slave
from either VR or Table memory.
HLM_COMMAND HLM_COMMAND executes a specific Host Link
command to the Slave.
HLM_STATUS HLM_STATUS represents the status of the last
Host Link Master command.
HLM_TIMEOUT HLM_TIMEOUT defines the Host Link Master time-
out time.