User Manual

Copyright 2012 Page 24
5. CORE Command Set
5.1 CORE Commands for All Lens Types
Commands to a lens are in ASCII format and terminate with a carriage return
character. Responses from a lens are in either ASCII format or packed binary format and
terminate with the character pair, linefeed carriage-return: [l/f][c/r].
5.1.1 N Command:
Retrieve Fixed Data in ASCII Format: Typical Response (see exceptions by Lens type)
The first command a lens receives must be the N command. When sending data in response
to a command, a lens typically echoes back the command as the first character in the response
string.
Note: Some older lenses and S4
I
lenses have N command responses that vary slightly.
Please see Appendix A.1 for details. All 5
I
, Panchro
I
and Zoom lenses provide the following N
command response and will remain consistent for all lenses in the next development cycle.
Issue
N[C/R]
Tag = N
Response Prime Lens
NSs..sssOu..uuuLPNxxxMdddUbTffyyyyBv.vv [L/F][C/R]
Response-Zoom Lens
NSs..ssssOu..uuuLZNxxxMdddUbTffyyyyBv.vv [L/F][C/R]
Tag
Value
Definition
S
s .. sss
Serial Number 9 characters
O
u.. uuu
Owner Data 31 characters
L
t
Lens Type: t=P for Prime, Z for Zoom
N
xxx
Focal length (Primes) or minimum focal length (Zooms) [Tag=f for S4/i
Primes
M
ddd
Unspecified (Primes) or maximum focal length (Zooms)
U
b
Start-up units: I=imperial, M=metric, (b=metric or B=imperial when both
available).
T
ff
Transmission factor (not yet available in S4
I
Primes-see Appendix)
y..y
SPACE characters
B
v.vv
Firmware version number
Example: (Note: Two space before B5.03}
Issue: N[c/r]
Response: NS5/100-009OCooke Optics Electronic Lenses!LPF100N100UBt92 B5.03[l/f][c/r]