Omron TJ1-MC04 - PROGRAMMING 1 Programming Manual page 161

Hide thumbs Also See for TJ1-MC04 - PROGRAMMING 1:
Table of Contents

Advertisement

Communication protocols
Header
Name
code
IC
Undefined command
(response only)
Caution
You must execute the Host Link master commands from one pro-
gram task only to avoid any multi-task timing problems.
Caution
The Host Link master commands provide the tools to exchange
data with the Host Link slave. The user program must contain
proper error handling routines to deal with communication failure
and perform retries if necessary.
End codes
These are the end codes defined in the HLM_STATUS parameter:
/i
End code
Description
Probable cause
$00
Normal
No problem exists.
completion
$01
Not executable
The command that was sent can-
in RUN mode
not be executed when the PC is
in RUN mode.
$13
FCS error
The FCS is wrong.
PROGRAMMING MANUAL
BASIC command
RUN
MON
required
-
Valid
Valid
Solution
N/A
Check the relation
between the com-
mand and the PC
mode.
Influence from noise,
transfer the command
again.
PRG
End code
Description
$14
Format error
Valid
$15
Entry number
data error
$18
Frame length
error
$19
Not executable
$21
Not executable
due to CPU
error.
$100
Host Link slave
ACK timeout
$200
IC command
address error
Set up
You need the SETCOM command to set up the serial port of the TJ1-MC__
for the Host Link Master protocol. Set the command as follows:
SETCOM(baudrate, data_bits, stop_bits, parity, port, 6)
After you have set this command, you can use the HLM_READ,
HLM_WRITE and HLM_COMMAND commands to read and write data
using Host Link.
Probable cause
Solution
The command format is
Check the format and
wrong.
transfer the command
A command that cannot be
again.
divided has been divided.
The frame length is smaller
than the minimum length for
the applicable command.
The data is outside the specified
Correct the command
range or too long.
arguments and trans-
fer the command
again.
The maximum frame length of
Check the command
131 bytes is exceeded.
and transfer the com-
mand again.
You did not obtain access rights.
Obtain access rights.
The command cannot be exe-
Cycle the power sup-
cuted because a CPU error has
ply of the CPU.
occurred.
-
-
-
-
161

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Tj1-mc16 - programming 1Tj1-mc04 1

Table of Contents