Omron TJ2-MC64 - PROGRAMMING Programming Manual page 223

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

Advertisement

Communication protocols
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
TJ2-MC64 memory
Host Link mapping
VR
CIO
TABLE
DM
You can use these BASIC commands:
/i
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.
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
Type
Header code
I/O memory read-
RR
ing
RD
PROGRAMMING MANUAL
Address range
0 to 1023
0 to 63999
Name
Function
CIO AREA
Reads the specified number of
READ
words from VR memory begin-
ning with the designated word.
DM AREA
Reads the specified number of
READ
words from TABLE memory
beginning with the designated
word.
Type
Header code
I/O memory
WR
writing
WD
Testing
TS
PC model code
MM
reading
I/O memory area
QQMR
registration and
reading
QQIR
Host Link
XZ
communications
processing
**
IC
End codes
These are the response end codes that are returned in the response frame:
/i
End code
Description
Probable cause
0
Normal
No problem exists.
completion
Name
Function
CIO AREA
Writes the specified data in word
WRITE
units to VR memory beginning
with the designated word.
DM AREA
Writes the specified data in word
WRITE
units to TABLE memory begin-
ning with the designated word.
TEST
Returns, unaltered, a single block
that was sent from the master.
PC MODEL
Reads the model code of the
READ
TJ2-MC64 as specified by the
HLS_MODEL parameter.
REGISTER I/O
Registers the I/O TABLE with the
MEMORY
contents of the actual I/O configu-
ration
READ I/O
Reads the registered I/O memory
MEMORY
words/bits all at once.
ABORT
Aborts the operation that is per-
(command only)
formed by a Host Link command,
and returns to the initial status.
INITIALIZE
Initializes the transfer control pro-
(command only)
cedures for all Host Link units.
Undefined com-
This is the response when the
mand (response
command header code is invalid.
only)
Solution
N/A
217

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

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

Table of Contents