66
Serial Communications
Section 4-1
End Code Summary
These are the response end codes that can be returned in the response
frame.
Set-up Host Link Slave
The SETCOM is required to set-up the serial communication port for the Host
Link Slave protocol. After setting the following command:
SETCOM(baudrate,data_bits,stop_bits,parity,port,5)
the MC Unit will respond to any Host Link command from the master with the
specified node number as set with the HLS_NODE parameter.
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 MC Unit 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 configuration
QQIR
READ I/O MEMORY
Reads the registered I/O memory words/bits all at
once.
Host Link communi-
cations processing
XZ
ABORT (command only)
Aborts the operation being performed by a Host Link
command, and returns to the initial status.
**
INITIALIZE (command only)
Initializes the transfer control procedures for all Host
Link Units.
IC
Undefined command
(response only)
This is the response when the command header code
is invalid.
Type
Header
Code
Name
Function
End
code
Contents
Probably cause
Corrective measures
00
Normal completion
No problem exists
---
13
FCS error
The FCS is wrong
Check the FCS calculation method.
If there was influence from noise,
transfer the command again.
14
Format error
The command format is wrong, or a
command that cannot be divided has
been divided, or 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 transfer the command again.
18
Frame length error
The maximum frame length of 131
bytes was exceeded.
Check the data and transfer the
command again.
19
Not executable
An I/O memory batch was executed
when items to read were not regis-
tered.
Register items to read before
attempting batch read.
A3
Aborted due to FCS error in trans-
mission 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 trans-
mission data
The command format did not match
the number of bytes in the second or
later frame.
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.
A8
Aborted due to frame length error in
transmission data
The length of the second or later
frames exceeded the maximum of
128 bytes.