APPENDIX D
4618-021
118
METAL DETECTOR SERIAL COMMUNICATIONS LINK
Introduction
This link is a three wire serial connection allowing information to be transferred to and from the detector.
Via the link it is possible for a host to monitor and change the detector settings, using a predefined set of commands.
The information obtained in this way may be used for Quality Control and Assurance records.
Host computer or intelligent equipment
The equipment to which the detector is connected must be programmed to recognise the received data which is in a
strict format and protocol. Information transmitted from the host to the detector must also be in the same format and
protocol for the detector to respond.
Specification of the serial link.
This is specified in accordance with the ISO ‘Open-Systems-Interconnection’ (OSI) layered model for
communications systems.
Physical layer specification (OSI layer 1)
The physical layer is based on the RS232 voltage levels.
3 wire connection with no hardware flow control.
1 start bit
7 data bits
1 odd parity bit
1 stop bit
Transmission rate 9600 baud
Note.
The maximum recommended RS232 cable length is 15 meters.
Data-link layer specification (OSI layer 2)
Here is the message representation as seen at the output of the data-link layer :-
(STX)
G
(VALUE)
M
(VALUE)(COMMAND)[(COMMAND)...](ETX)(CRC)
1. The message starts with STX (HEX 02) indicating start of message.
2. G and M are identifiers that are contained in every message.
3. (COMMAND) is made up of (IDENTIFIER)(VALUES LIST).
(IDENTIFIER) is one of a series of letter or letter-number combinations detailed in the tables below.
(VALUES LIST) are decimal values, with leading-zero suppression (unless otherwise specified),
separated by comma’s and terminated by the next command or ETX.
Note that more than one (COMMAND) may be sent in a single message.
4. The message ends with ETX (HEX 03) indicating end of message.
5. This is followed by a cyclic redundancy code (CRC) of the characters contained between STX and ETX
inclusive. Transmitted as a 4 digit hexadecimal number with leading zeros, high nibble first. See
separate " CRC Generation ".
On receiving a good packet of information the response of the receiving equipment is to send an ACK (HEX 06).
See figures D-1 to D-6.
On receiving a bad packet of information the response of the receiving equipment is to send a NAK (HEX 15).
Packets of information may be initiated by the Host at any time the serial link is idle. The serial link's idle state is
when any prior messages have been completed including all outstanding acknowledgements or timeouts.
Up to 10 retransmissions will be attempted if a NAK is received after each transmission. If no Acknowledgement is
made or received the retransmission will occur after a timeout period of 250 milliseconds. Again up to 10
retransmissions will be attempted.
Содержание Signature
Страница 16: ......
Страница 26: ...INSTALLATION 10 4618 021 Fig 5 Typical Metal Detector Conveyor ...
Страница 31: ...INSTALLATION 4618 021 15 Fig 10 Cable Gland Assemblies for Power Supply Unit ...
Страница 52: ...OPERATING INSTRUCTIONS 36 4618 021 Fig 14 Supervisor Mode Flow Chart ...
Страница 55: ...OPERATING INSTRUCTIONS 4618 021 39 Fig 15 Engineer Mode Flow Chart ...
Страница 71: ...OPERATING INSTRUCTIONS 4618 021 55 Fig 16 Pack Sensor Mode Flow Chart ...
Страница 82: ...OPERATING INSTRUCTIONS 66 4618 021 Fig 18 QA Inspector And Operator Flow Chart ...
Страница 92: ...OPERATING INSTRUCTIONS 76 4618 021 Fig 19 Viewing Mode Flow Chart ...