EasyManua.ls Logo

Omron R88A-MCW151-DRT-E - Page 160

Omron R88A-MCW151-DRT-E
276 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
145
Command, function and parameter description Section 6-3
port
The specified serial port.
node (for HLM_MREAD, HLM_TEST, HLM_ABORT and HLM_STWR)
The Slave node number to send the Host Link command to. Range: [0, 31].
mode (for HLM_STWR)
The specified CPU Unit operating mode.
mc_area (for HLM_MREAD)
The MC Units memory selection to read the send data from.
mc_offset (for HLM_MREAD)
The address of the specified MC Unit memory area to read from. Range for
VR variables: [0, 250]. Range for Table variables: [0, 7999].
See also: HLM_READ, HLM_STATUS, HLM_TIMEOUT, HLM_WRITE, SETCOM
Examples: Example 1:
The following command will read the CPU Unit model code of the Host Link
Slave with node address 12 connected to the RS-232C port. The result is writ-
ten to VR(233).
HLM_COMMAND(HLM_MREAD,1,12,MC_VR,233)
If the connected Slave is a C200HX PC, the VR(233) will contain value 12
(hex) after successfull execution.
Example 2:
The following command will check the Host Link communication with the Host
Link Slave (node 23) connected to the RS-422A port.
HLM_COMMAND(HLM_TEST,2,23)
PRINT HLM_STATUS PORT(2)
If the HLM_STATUS parameter contains value zero, the communication is
functional.
Example 3:
The following two commands will perform the Host Link INITIALIZE and
ABORT operations on the RS-422A port 2. The Slave has node number 4.
HLM_COMMAND(HLM_INIT,2)
HLM_COMMAND(HLM_ABORT,2,4)
Example 4:
When data has to be written to a PC using Host Link, the CPU Unit can not be
in RUN mode. The HLM_COMMAND command can be used to set it to MON-
ITOR mode. The Slave has node address 0 and is connected to the RS-232C
port.
HLM_COMMAND(HLM_STWR,2,0,2)
1 RS-232C serial port 1
2 RS-422A serial port 2
0 PROGRAM mode
2 MONITOR mode
3 RUN mode
MC_area Data area
MC_TABLE
(or value 8)
Table variable array
MC_VR
(or value 9)
Global (VR) variable array

Table of Contents

Related product manuals