Difference between revisions of "PelcoP/D"
(Created page with "== Pelco library == === Client === '''PELCO_P/D_GOTO_PRESET''' Send preset command to camera through Pelco P or Pelco D protocol. {| class="wikitable" |in |ADDR |UINT |Pel...") |
(→Pelco library) |
||
(2 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
+ | == [[Libraries for IEC 61131-3|Back to Libraries]] == | ||
== Pelco library == | == Pelco library == | ||
Line 21: | Line 22: | ||
|BAUDRATE | |BAUDRATE | ||
|UINT | |UINT | ||
− | |RS485 baudrate ( | + | |RS485 baudrate (recommend 4800) |
|- | |- | ||
|in | |in | ||
Line 41: | Line 42: | ||
|ERR_ID | |ERR_ID | ||
|WORD | |WORD | ||
− | |identifies occured error by unique code (see [[Error | + | |identifies occured error by unique code (see [[Error Codes|unique code]]) |
|- | |- | ||
|out | |out | ||
Line 48: | Line 49: | ||
|indicates success operation and valid output | |indicates success operation and valid output | ||
|} | |} | ||
+ | Note: Some cameras with Pelco D do not support feedback, so an error will be generated when filling in the timeout, even if the camera rotates to prepositions. |
Latest revision as of 08:52, 10 February 2021
Back to Libraries
Pelco library
Client
PELCO_P/D_GOTO_PRESET
Send preset command to camera through Pelco P or Pelco D protocol.
in | ADDR | UINT | Pelco device id |
in | BUS | STRING[255] | RS485 bus (eg. /dev/tty3) |
in | BAUDRATE | UINT | RS485 baudrate (recommend 4800) |
in | PRESET | UINT | Pelco preset number |
in | TMO | UINT | Timeout for reading Pelco reply (0 - don't wait for reply) |
out | ERR | BOOL | indicates some error occurs |
out | ERR_ID | WORD | identifies occured error by unique code (see unique code) |
out | VALID | BOOL | indicates success operation and valid output |
Note: Some cameras with Pelco D do not support feedback, so an error will be generated when filling in the timeout, even if the camera rotates to prepositions.