Specifications
BASIC commands
PROGRAMMING MANUAL 98
Revision 5.0
/i
/i
/i
3.2.143 HLM_STATUS
/i
/i
/i
PLC_EM
(or value 6)
EM area RE
• plc_offset
The address of the specified PC memory area to read from. Range: [0,
9999].
• length
The number of words of data to be transferred. Range: [1, 30].
• mc_area
The memory selection of the TJ1-MC__ to read the send data from. See
the table below.
mc_area value Data area
MC_TABLE
(or value 8)
TABLE variable array
MC_VR
(or value 9)
Global (VR) variable array
• mc_offset
The address of the specified TJ1-MC__ memory area to write to. Range
for VR variables: [0, 1023]. Range for TABLE variables: [0, 63999].
Example HLM_READ(2,17,PLC_DM,120,20,MC_TABLE,4000)
This example shows how to read 20 words from the PLC DM area addresses
120-139 to TJ1-MC__ TABLE addresses 4000-4019. The PC has Slave node
address 17 and is connected to the RS-422A port.
See also HLM_COMMAND, HLM_STATUS, HLM_TIMEOUT, HLS_NODE,
HLM_WRITE, SETCOM.
pc_area value Data area Host link command
Type Communication parameter
Syntax HLM_STATUS PORT(n)
Description The HLM_STATUS parameter contains the status of the last Host Link Master
command sent to the specified port. The parameter will indicate the status for
the HLM_READ, HLM_WRITE and HLM_COMMAND commands. The sta-
tus bits are defined in the table below.
Bit Name Description
0 - 7 End code The end code can be either the end code which is defined by
the Host Link Slave (problem in sent command string) or an
end code defined because of a problem found by the Host Link
Master (problem in received response string).
8 Timeout error A timeout error will occur if no response has been received
within the timeout time. This indicates communication has been
lost.
9 Command not
recognized
This status indicates that the Slave did not recognize the com-
mand and has returned a IC response.
The HLM_STATUS will have value 0 when no problems did occur. In case of
a non-0 value, any appropriate action such as a re-try or emergency stop
needs to be programmed in the user BASIC program.
Each port has an HLM_STATUS parameter. The PORT modifier is required to
specify the port.
Arguments • n
The specified serial port. 1 = RS-232C serial port 1; 2 = RS-422A serial
port 2