EasyManuals Logo

Omron TJ2-MC64 - PROGRAMMING User Manual

Omron TJ2-MC64 - PROGRAMMING
362 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #224 background imageLoading...
Page #224 background image
Communication protocols
PROGRAMMING MANUAL 218
Revision 1.0
Set up
You need the SETCOM command to set up the serial port of the TJ2-MC64
for the Host Link Slave protocol. Set the command as follows:
SETCOM(baudrate, data_bits, stop_bits, parity, port, 5)
After you have set this command, the TJ2-MC64 responds to Host Link
commands from the master with the specified node number. You can set this
node number with the HLS_NODE parameter.
Example
In this example we assume this set-up:
A Trajexia system with a TJ2-MC64.
An NS8 programmable terminal.
A connection from the serial port of the TJ2-MC64 to the programmable
terminal. The serial port uses RS232C communication.
/i
13 FCS error The FCS is wrong. Check the FCS calcu-
lation method. If there
was influence from
noise, transfer the
command again.
14 Format error The command format is
wrong.
A command that cannot be
divided has been divided.
The frame length is smaller
than the minimum length for
the applicable command.
Check the format and
transfer the command
again.
15 Entry number
data error
The data is outside the specified
range or too long.
Correct the command
arguments and trans-
fer the command
again.
18 Frame length
error
The maximum frame length of
131 bytes is exceeded.
Check the data and
transfer the command
again.
19 Not executable An I/O memory batch was exe-
cuted when items to read were
not registered.
Register items to read
before attempting
batch read.
A3 Aborted due to
FCS error in
transmission
data
An FCS error occurred in the
second or later frame.
Correct the command
data and transfer the
command again.
A4 Aborted due to
format error in
transmission
data
The command format did not
match the number of bytes in the
second or later frame.
Correct the command
data and transfer the
command again.
A5 Aborted due to
entry number
data error in
transmission
data
There was an entry number data
error in the second or later frame
or a data length error.
Correct the command
data and transfer the
command again.
End code Description Probable cause Solution
A8 Aborted due to
frame length
error in trans-
mission data
The length of the second or later
frames exceeded the maximum
of 128 bytes.
Correct the command
data and transfer the
command again.
Example Configuration of the Host Link slave.
BASIC code ' Define Host Link slave node
HLS_NODE = 15
' Define Host Link slave model code
HLS_MODEL = $FA
' Set up Host Link slave for port 1
SETCOM(9600,7,2,2,1,5)
Result The TJ2-MC64 can communicate with the programmable terminal.
End code Description Probable cause Solution

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Omron TJ2-MC64 - PROGRAMMING and is the answer not in the manual?

Omron TJ2-MC64 - PROGRAMMING Specifications

General IconGeneral
BrandOmron
ModelTJ2-MC64 - PROGRAMMING
CategoryController
LanguageEnglish

Related product manuals