![background image](http://html1.mh-extra.com/html/omron/r88a-mcw151-drt-e/r88a-mcw151-drt-e_operation-manual_742243159.webp)
144
Command, function and parameter description
Section 6-3
Arguments:
label
A valid label that occurs in the program. An invalid label will give a compilation
error before execution.
See also:
GOSUB
Example:
loop:
PRINT "Measured position = ";MPOS;CHR(13);
GOTO loop
6-3-89
HALT
Type:
System Command
Syntax:
HALT
Description:
The HALT command stops execution of all program tasks currently running.
The command can be used both on command line as in programs. The STOP
command can be used to stop a single program task.
See also:
PROCESS, STOP
6-3-90
HLM_COMMAND
Type:
Host Link Command
Syntax:
HLM_COMMAND(
command, port
[
, node
[
, mc_area/mode
[
, mc_offset
]]]
)
Description:
The HLM_COMMAND command performs a specific Host Link command
operation to one or to all Host Link Slaves on the selected port.
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.
Arguments:
command
The selection of the Host Link operation to perform:
HLM_MREAD
(or value 0)
This performs the Host Link PC MODEL READ (MM)
command to read the CPU Unit model code. The result
is written to the MC Unit variable specified by mc_area
and mc_offset.
HLM_TEST
(or value 1)
This performs the Host Link TEST (TS) command to
check correct communication by sending string
“MCW151 TEST STRING” and checking the echoed
string. Check the HLM_STATUS parameter for the
result.
HLM_ABORT
(or value 2)
This performs the Host Link ABORT (XZ) command to
abort the Host Link command that is currently being
processed. The ABORT command does not receive a
response.
HLM_INIT
(or value 3)
This performs the Host Link INITIALIZE (**) command
to initialize the transmission control procedure of all
Slave Units.
HLM_STWR
(or value 4)
This performs the Host Link STATUS WRITE (SC)
command to change the operating mode of the CPU
Unit.