Communication protocols
PROGRAMMING MANUAL
217
R
e
vi
si
o
n
1
.0
4.3.2
Host Link slave
If the TJ2-MC64 is the Host Link slave, a Host Link master (for example, a
programmable terminal) can read data from the TJ2-MC64 and write data to
it. The mapping between the slave and the master is:
/i
You can use these BASIC commands:
/i
Commands
The commands supported for the Host Link Slave protocol are given in the
table below. The protocol supports single frame transfer and multiple frame
transfer.
/i
End codes
These are the response end codes that are returned in the response frame:
/i
TJ2-MC64 memory
Host Link mapping
Address range
VR
CIO
0 to 1023
TABLE
DM
0 to 63999
BASIC command
Description
SETCOM
SETCOM
configures the serial communication port, and it enables
the Host Link protocols.
HLS_NODE
HLS_NODE
defines the slave unit number for the Host Link Slave
protocol.
HLS_MODEL
HLS_MODEL
defines the TJ2-MC64 model code for the Host Link
Slave protocol.
Type
Header code
Name
Function
I/O memory read-
ing
RR
CIO AREA
READ
Reads the specified number of
words from VR memory begin-
ning with the designated word.
RD
DM AREA
READ
Reads the specified number of
words from TABLE memory
beginning with the designated
word.
I/O memory
writing
WR
CIO AREA
WRITE
Writes the specified data in word
units to VR memory beginning
with the designated word.
WD
DM AREA
WRITE
Writes the specified data in word
units to TABLE memory begin-
ning with the designated word.
Testing
TS
TEST
Returns, unaltered, a single block
that was sent from the master.
PC model code
reading
MM
PC MODEL
READ
Reads the model code of the
TJ2-MC64 as specified by the
HLS_MODEL
parameter.
I/O memory area
registration and
reading
QQMR
REGISTER I/O
MEMORY
Registers the I/O TABLE with the
contents of the actual I/O configu-
ration
QQIR
READ I/O
MEMORY
Reads the registered I/O memory
words/bits all at once.
Host Link
communications
processing
XZ
ABORT
(command only)
Aborts the operation that is per-
formed by a Host Link command,
and returns to the initial status.
**
INITIALIZE
(command only)
Initializes the transfer control pro-
cedures for all Host Link units.
IC
Undefined com-
mand (response
only)
This is the response when the
command header code is invalid.
End code
Description
Probable cause
Solution
0
Normal
completion
No problem exists.
N/A
Type
Header code
Name
Function