Hlm_Read - Omron R88A-MCW151-DRT-E Operation Manual

Mcw151 series motion control option board
Table of Contents

Advertisement

Command, function and parameter description
6-3-91

HLM_READ

Type:
Syntax:
Description:
Arguments:
146
Host Link Command
HLM_READ( port, node, pc_area, pc_offset, length, mc_area, mc_offset )
The HLM_READ command reads data from a Host Link Slave by sending a
Host Link command string containing the specified node of the Slave to the
serial port. The received response data will be written to either VR or Table
variables. Each word of data will be transferred to one variable. The maximum
data length is 30 words (single frame transfer).
Program execution will be paused until the response string has been received
or the timeout time has elapsed. The timeout time is specified by using the
HLM_TIMEOUT parameter. The status of the transfer can be monitored with
the HLM_STATUS parameter.
Note
1. When using the HLM_READ, be sure to set-up the Host Link Master pro-
tocol by using the SETCOM command.
2. The Host Link Master commands are required to be executed from one
program task only to avoid any multi-task timing problems.
port
The specified serial port.
1
RS-232C serial port 1
2
RS-422A serial port 2
node
The Slave node number to send the Host Link command to. Range: [0, 31].
pc_area
The PC memory selection for the Host Link command.
pc_area
PLC_DM
( or value 0)
PLC_IR
(or value 1)
PLC_LR
(or value 2)
PLC_HR
(or value 3)
PLC_AR
(or value 4)
PLC_EM
(or value 6)
pc_offset
The address of the specified PC memory area to read from. Range: [0, 9999].
length
The number of words of data to be transfered. Range: [1, 30].
mc_area
The MC Unit's memory selection to write the received data to.
MC_area
MC_TABLE
(or value 8)
MC_VR
(or value 9)
Data area
DM area
RD
CIO/IR area
RR
LR area
RL
HR area
RH
AR area
RJ
EM area
RE
Data area
Table variable array
Global (VR) variable array
Section 6-3
Host Link
command

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

R88a-mcw151-e

Table of Contents