Host Link Slave - Omron R88A-MCW151-DRT-E Operation Manual

Mcw151 series motion control option board
Table of Contents

Advertisement

Serial Communications
4-1-2

Host Link Slave

Host Link Slave
Commands
Type
Header
Code
I/O memory reading
RR
RD
I/O memory writing
WR
WD
HLM -> HLS: @13SC0250*
HLS -> HLM: @13SC0052*
Result:
The PC is running in MON mode. Note that this is necessary for writing data
to the PC using HLM_WRITE.
Reading PC model code using HLM_COMMAND (timeout)
BASIC program:
HLM_TIMEOUT=500
' Destination address:
HLM_COMMAND(HLM_MREAD,2,13,MC_VR,100)
Host Link Communication:
HLM -> HLS: @13MM42*
HLS -> HLM: no response
Result:
As no response has been received from the PC, after 500 servo cycles the
HLM_STATUS PORT(2) will have value 256 (bit 8 is set).
In Host Link Slave mode, a Host Link Master such as a Programmable Termi-
nal can read data from and write data to the MC Unit. The MC Unit will have
the following mapping for the Host Link Slave.
MCW151 Memory
VR
CIO
Table
DM
The following BASIC commands are used:
BASIC Command
SETCOM
HLS_NODE
HLS_MODEL
Refer to SECTION 6 BASIC Motion Control Programming Language for fur-
ther details on the commands.
The list of Host Link commands that are supported for the Host Link Slave are
listed here below. The protocol supports both single frame and multiple frame
transfer. A full description of the Host Link protocol can be found in SYSMAC
CS/CJ Series Communications Commands Reference Manual (W342).
Name
CIO AREA READ
DM AREA READ
CIO AREA WRITE
DM AREA WRITE
VR(100)
Host Link Mapping
Address Range
0 to 250
0 to 7999
SETCOM configures the serial communication port,
including enabling the Host Link protocols.
HLS_NODE defines the Slave unit number for the
Host Link Slave protocol.
HLS_MODEL defines the MC Unit model code for
the Host Link Slave protocol.
Reads the specified number of words from VR mem-
ory beginning with the designated word.
Reads the specified number of words from Table
memory beginning with the designated word.
Writes the specified data in word units to VR memory
beginning with the designated word.
Writes the specified data in word units to Table mem-
ory beginning with the designated word.
Section 4-1
Description
Function
65

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

R88a-mcw151-e

Table of Contents