background image

CL190/CL191 Lens Controller - User Manual

9

Configuration commands

You can configure the CL191 using its RS232 or I2C connections. Both of
these methods are described in this section.

9.1

I2C configuration

The I2C communication protocol is described in

Section 8 , I2C

communication

.

9.2

UART configuration

When using the UART to configure the CL191, the COM port should be set
to 115200baud, 8 data bits, no parity, 1 stop bit, no handshaking.

A carriage return (ASCII 13) character should be sent to terminate the
command line.

9.3

Command structure

Commands are sent by the host (a PC connected to the network). The
command is returned by the CL191, together with any reply generated by
that command, in UDP or TCP/IP packets followed by

<LF> <CR>

. The

last character sent is the

>

prompt. Once this has been received, the host

knows the command has been completed.

For example, sending the

VR

command might get this reply:

If there is an error, a typical reply might be:

It is recommend the host waits for the

>

prompt before sending the next

command; UDP communications are not guaranteed to arrive, so the host
software must be able to deal with lost messages.

When an error occurs, the host may request a reply message to be sent to
it by using the

GT

command.

Multiple commands can be entered on one line by separating them with a
semi-colon (

;

). The CL190 replies to the commands individually,

18

Содержание CL190

Страница 1: ...CL190 CL191 Lens Controller Issue 002 User manual www gardasoft com...

Страница 2: ...application The users must ensure that incorrect functioning of this equipment cannot cause any dangerous situation or significant financial loss to occur Deliberate acts of endangerment and vandalism...

Страница 3: ...1 10 7 General description 12 7 1 Triggering 12 7 1 1 Trigger input options 13 7 2 Flags 13 7 3 Factory settings 14 8 I2C communication 15 8 1 I2C command structure 15 9 Configuration commands 18 9 1...

Страница 4: ...CL190 CL191 Lens Controller User Manual 4...

Страница 5: ...n commands We recommend that you visit www gardasoft com for application notes on this product For any trouble shooting problems contact Gardasoft for support 1 1 C190 CL191 features a summary The CL1...

Страница 6: ...be taken 2 1 Electrical The user must ensure that the potential difference between any combination of applied signals does not exceed the supply voltage The CL191 does not have complete tracking isol...

Страница 7: ...ergreifenden Vorsichtsma nahmen 3 1 Elektrik Der Benutzer muss sicherstellen dass der Potenzialunterschied zwischen jeder beliebigen Kombination an angelegten Signalen die Versorgungsspannung nicht b...

Страница 8: ...mboles 4 1 lectricit L utilisateur doit s assurer que la diff rence de potentiel entre toute combinaison des signaux appliqu s ne d passe pas la tension de fourniture LeCL191 ne dispose pas de syst me...

Страница 9: ...anual 5 Mounting the CL191 The CL191 is mounted using a single M2 screw as shown in the illustration below 5 1 Environmental considerations The CL191 is a bare PCB and has no ingress rating It should...

Страница 10: ...d ratings for the ratings of the connections The CL191 s connections are shown below The CL191 s UART and manufacturing test connections are on the underside of the PCB as shown below The I2C connecti...

Страница 11: ...made through the lens connector although A1 Out and A2 Out are available from the PCB The lens connector terminations are as follows Connector pin Description 1 GND 2 A1 Out 3 A2 Out 4 SDA 5 SCL 6 3 3...

Страница 12: ...to reach stable focus depends on various conditions including how much the focus is changing by and the acceptable tolerance Depending on conditions the focus time is around 6ms to 10ms The set up is...

Страница 13: ...flag to 0 see Section 7 1 Triggering Analog signal A 0V to 10V analog signal is input to control the lens optical power when the controller is in Analog mode This can be linear or non linear see Secti...

Страница 14: ...Lens Controller User Manual 7 3 Factory settings You can clear the CL191 configuration to return it to its factory settings Clear the configuration by using the CL command see Section 9 Configuration...

Страница 15: ...o This should be followed by each individual byte of the command string and a terminating CR 0x0D The slave acknowledges A each byte sent On completion the master sends a stop condition P The followin...

Страница 16: ...CL190 CL191 Lens Controller User Manual 16...

Страница 17: ...User Manual After sending an I2C message it is necessary to wait before reading the reply I2C messages typically take 100ms for the reply to be ready Some commands including the RL commands take 150ms...

Страница 18: ...d to the network The command is returned by the CL191 together with any reply generated by that command in UDP or TCP IP packets followed by LF CR The last character sent is the prompt Once this has b...

Страница 19: ...half is written as 0 5 and not 0 5 9 4 General commands Any changes you make using Ethernet commands are not saved permanently until you send the AW command Report the CL190 firmware version This com...

Страница 20: ...d turns the output off The results of any RS RU RA RE and AW commands are cleared This command shows the configuration of the CL190 Type in ST A typical reply to this command might be CH1 MD0 AF 3 95...

Страница 21: ...which are not available such as temperature compensation When the command has been used to set a lens with no EEPROM the TR CL180 will ignore the lens s EEPROM and will continue to ignore it until th...

Страница 22: ...e associated with each The commands are described below Set analog mode This command sets the output to analog mode so that the optical power is set by an analog input voltage The translation from inp...

Страница 23: ...put voltage f equivalent focal power for the input voltage The translation points are assumed to be valid Voltages below the first voltage are set to the focal power of the first point Voltages above...

Страница 24: ...t waveforms run for one cycle when a trigger input signal is received At the end of the cycle the focus is left as the last value of the waveform Continuous waveforms run independently of the trigger...

Страница 25: ...CL190 CL191 Lens Controller User Manual Mode 4 Step sequence run continuously trigger ignored Mode 5 Square wave run once per trigger pulse Mode 6 Square wave run continuously trigger ignored 25...

Страница 26: ...CL190 CL191 Lens Controller User Manual Mode 7 Triangle wave run once per trigger pulse Mode 8 Triangle wave run continuously trigger ignored Mode 9 Sawtooth wave run once per trigger pulse 26...

Страница 27: ...CL190 CL191 Lens Controller User Manual Mode 10 Sawtooth wave run continuously trigger ignored Mode 11 Sine wave run once per trigger pulse Mode 12 Sine wave run continuously trigger ignored 27...

Страница 28: ...red Waveform commands RN1 m p s Where m mode 3 to 14 refer to the illustrations shown previously p period in milliseconds 50ms to 3s s number of steps for staircase mode only 3 to 50 The following com...

Страница 29: ...from 0 to 2 diopters with a slow rise and fast fall 9 7 Programmable step commands Use this command to set up a sequence of steps where different optical powers can be set up for a programmed period o...

Страница 30: ...w CH1 MD2 AF 0 00 IF 0 00 IP1 FL14 Analog profile 1 00 4 00 1 90 3 50 2 80 3 20 3 70 2 00 4 6 0 1 50 5 40 1 50 6 30 2 00 7 20 3 20 8 10 3 50 9 00 4 00 Waveform period 0 050s No EEPROM range IF 0 00 XF...

Страница 31: ...to 6 5 diopters RA RA1 0 RA1 1 4 Set the lens to analog control mode Set 4 points in the non linear translation profile RN RN1 1 100 Set a continuous square wave at 10Hz RX RX1 0 5 Set the sequence to...

Страница 32: ...compatibility Compatible with Optotune EL 3 10 EL 10 30 and EL 16 40 lens ranges Full current calibration with lens temperature compensation Operating modes Single configurable optical power single sh...

Страница 33: ...CL190 CL191 Lens Controller User Manual CL191 Weight 10g Standards CE RoHS 10 2 Restrictions The maximum continuous output current is 250mA to 250mA 33...

Страница 34: ...f range and the value of that parameter has been adjusted Err 8 12 EEPROM corrupt The configuration has been cleared Err 9 20 Settings could not be saved to EEPROM Err 27 Serial number cannot be read...

Страница 35: ...CL190 CL191 Lens Controller User Manual This page is left blank for your notes 35...

Страница 36: ...018 Copyright 2018 Gardasoft Vision Ltd Gardasoft Vision Ltd Trinity Court Buckingway Business Park Cambridge CB24 4UQ UK tel 44 1954 234970 fax 44 1954 231567 Gardasoft LLC Oak Ridge Road Weare New H...

Отзывы: