
v2.0 3/21/11
8
APPENDIX: PELCO-D PROTOCOL
The ST-PTZMINI-540W uses the PELCO-D protocol. Below is a description of the protocol for
those installers or system integrators in need of the protocol’s details.
Data Form
: 1 beginning position, 8 pieces for data, 1 ending position, invalid checking point.
Baud Rate:
2400, 4800, 9600, 19200bps.
Command Form:
Byte 1
Byte 2
Byte 3
Byte 4
Byte 5
Byte 6
Byte 7
Synchronized
Byte
Address
Code
Command
Code 1
Command
Code 2
Data Code 1 Data Code 2 Confirmation
Code
All data in the protocol as HEX
Synchronization Byte is 0FFH
Address Code is the logical address number of cameras.
Address Range is 01H – 0FFH
Form of Command Code:
Bit 7
Bit 6
Bit 5
Bit 4
Bit 3
Bit 2
Bit 1
Bit 0
Command
Code 1
0
0
0
Auto
Scan
0
Iris
Close
Iris
Open
Focus
Near
Command
Code 2
Focus
Far
Zoom
Wide
Zoom
Tele
Down
Up
Left
Right
0
Command Code 1: Bit 7, Bit 6, Bit 5, Bit 3 is 0 without exception. Bit 4 is auto scanning
control points (1/0 ON/OFF). Bit 2 Iris Smaller (1 valid). Bit 1 Iris Larger (1 valid). Bit 0
Focus Nearer (1 valid).
Command Code 2: Bit 7 Focus Farther (1 valid). Bit 6 & Bit 5 for zoom control: Bit 6 far
away from the object (1 valid), Bit 5 near the object (1 valid). Bit 4, Bit 3, Bit 2, Bit 1
separately control the movement down, up, left, right (1 valid). Bit 0 is 0 without exception.
Data Code 1: Controls the horizontal direction of speed 00 – 3FH.
Data Code 2: Controls the vertical direction of speed 00 – 3FH.
Confirmation Code Index: [Byte 2 + Byte 3 + Byte 4 + Byte 5 + Byte 6 / 100H].
Confirmation Code = MOD [Byte 2 + Byte 3 + Byte 4 + Byte 5 + Byte 6 / 100H].
Setting and Transferring Preset Command
Set the Command for Preset Positions
Byte 1
Byte 2
Byte 3
Byte 4
Byte 5
Byte 6
Byte 7
Synchronized
Byte
Address
Code
00H
03H
00H
Present
Point #
Confirmation
Code
Transfer the Command of Preset Positions
Byte 1
Byte 2
Byte 3
Byte 4
Byte 5
Byte 6
Byte 7
Synchronized
Byte
Address
Code
00H
07H
00H
Present
Point #
Confirmation
Code
Preset Point # Range is 00 – FFH