![background image](http://html1.mh-extra.com/html/omron/r88a-mcw151-drt-e/r88a-mcw151-drt-e_operation-manual_742243163.webp)
148
Command, function and parameter description
Section 6-3
Description:
The HLM_TIMEOUT parameter specifies the fixed timeout time for the Host
Link Master protocol for both serial ports. A timeout error will occur when the
time needed to both send the command and receive the response from the
Slave is longer than the time specified with this parameter.
The parameter applies for the HLM_READ, HLM_WRITE and
HLM_COMMAND commands. The HLM_TIMEOUT parameter is specified in
servo periods.
See also:
HLM_COMMAND, HLM_READ, HLM_STATUS, HLM_WRITE,
SERVO_PERIOD
Example:
Consider the servo period of the MC Unit is set to 500 ms
(SERVO_PERIOD=500).
>> HLM_TIMEOUT=2000
For both serial ports the Host Link Master timeout time has been set to 1 s.
6-3-94
HLM_WRITE
Type:
Host Link Command
Syntax:
HLM_WRITE(
port, node, pc_area, pc_offset, length, mc_area, mc_offset
)
Description:
The HLM_WRITE command writes data from the MC Unit to 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 from
either VR or Table variables. Each variable will define on word of data which
will be transferred. The maximum data length is 29 words (single frame trans-
fer).
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:
port
The specified serial port.
node
The Slave node number to send the Host Link command to. Range: [0, 31].
Command
Response
Characters
@
....
*
↵
@
....
*
↵
Timeout
1
RS-232C serial port 1
2
RS-422A serial port 2