|
|
Description of special extended instructions for PelcoD PTZ protocol angle controlStandard PelcoD protocol absolute angle control command, its format is Horizontal FF ADD 00 4B DATA1 DATA2 SUM, the function is to reach a horizontal absolute position at a default speed. Vertical FF ADD 00 4D DATA1 DATA2 SUM, the function is to reach a vertical absolute position at a default speed. The angle calculation method is as follows: A. Horizontal absolute angle control Command format: FF ADD 00 4B DATA1 DATA2 SUM where (DATA1<<8) + DATA2=angle*100 For example, the current address of the PTZ is 1, the horizontal angle is 100°, and it is required to rotate to a position with an angle of 10°. Then send the command FF 01 00 4B 03 E8 37, where the angle is 10° and calculated as 10*100=1000=(0x03<<8)+0xE8[0x03 is DATA1, 0xE8 is DATA2]. B. Vertical absolute angle control Command format: FF ADD 00 4D DATA1 DATA2 SUM If the angle is negative, (DATA1<<8) + DATA2=angle*100; If the angle is positive, (DATA1<<8) + DATA2=36000-angle*100. For example, the current address of the PTZ is 1, the vertical angle is 10°, and it is required to rotate to the position of -10°. Then send the command FF 01 00 4D 03 E8 39, where because the angle is negative, The angle is -10°, calculated as 10*100=1000=(0x03<<8)+0xE8[0x03 is DATA1, 0xE8 is DATA2].
Article classification:
FAQ
|