Omron TJ2-MC64 - PROGRAMMING Programming Manual page 118

Hide thumbs Also See for TJ2-MC64 - PROGRAMMING:
Table of Contents

Advertisement

BASIC commands
3.2.153 HLM_STATUS
/i
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.
/i
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
This status indicates that the Slave did not recognize the com-
recognized
mand and has returned a IC response.
/i
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
PROGRAMMING MANUAL
Example
>> HLM_WRITE(1,28,PLC_EM,50,25,MC_VR,200)
>> PRINT HEX(HLM_STATUS PORT(1))
1
Apparently the CPU Unit is in RUN mode and does not accept the write oper-
ation.
Example
>> HLM_COMMAND(HLM_TEST,2,0)
>> PRINT HLM_STATUS PORT(2)
256.0000
A timeout error has occurred.
See also
HLM_READ, HLM_COMMAND, HLM_TIMEOUT, HLS_NODE,
HLM_WRITE, SETCOM.
112

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Tj1-prtTj1-drtTj1-cortTj1-mlGrt1-ml2Tj1-fl02

Table of Contents