commands:led
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| commands:led [2018/09/26 16:13] – vik | commands:led [2026/05/28 17:24] (current) – brandon | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| + | ====== Command:LED ====== | ||
| + | --> On Tiger with Two Axis Card ^ | ||
| + | |||
| + | |||
| + | ^Format | ||
| + | ^Type |Percentage between 0 and 100 | | ||
| + | ^Remembered |Using [Addr#]SS Z | | ||
| + | ^Firmware Required |STD_XY_LED| | ||
| + | Sets the brightness of ASIs LED illuminator by generating PWM through TTL out. TTL out mode should be set to ‘9’ (i.e. TTL Y=9). Enable out from the LED illuminator should be connected to TTL out on controller. This setting can be saved in non-volatile memory using the SAVESET command. The PWM frequency is 1.3KHz. It’s a Card-Addressed command. | ||
| + | |||
| + | The LED command has a slightly different format on a TGLED card. Refer to TGLED card user guide for more details. | ||
| + | |||
| + | <WRAP center round info 60%> | ||
| + | **Note:** If you are encountering flickering, try adjusting your shutter speed to integer multiples of the PWM period (0.77 ms). | ||
| + | </ | ||
| + | |||
| + | <-- | ||
| + | |||
| + | --> On Tiger and TGLED card ^ | ||
| + | |||
| + | |||
| + | ^Format | ||
| + | ^Type |Percentage between 0 and 100 | | ||
| + | ^Remembered |Using [Addr#]SS Z | | ||
| + | |||
| + | This command is “recycled” for a slightly different use in TGLED than for other cards . In the context of a TGLED card this command is used to set the individual brightness percentage of the LEDs connected to the card. Setting the brightness to 0% results in LED to be off. Setting the brightness to 50% results the in the LED being driven with PWM with 50% duty cycle. Setting the percentage to be 100% results in the LEDs to turn on fully. | ||
| + | |||
| + | X sets the brightness for LED connected to channel 1, | ||
| + | Y sets the brightness for LED connected to channel 2, | ||
| + | Z sets the brightness for LED connected to channel 3, and | ||
| + | F sets the brightness for LED connected to channel 4. | ||
| + | |||
| + | Default is 50. | ||
| + | |||
| + | **Example** | ||
| + | |||
| + | < | ||
| + | : | ||
| + | Sets the Brightness of LED connected to Channel #1 to be 10% , Channel #2 to be 50% and Channel #4 to OFF. Brightness of Channel #3 will be unchanged. | ||
| + | |||
| + | < | ||
| + | X=10 Y=50 Z=50 F=0 : | ||
| + | Queries the card for Brightness of LEDs connected to Channel #1,#2,#3 and #4 | ||
| + | |||
| + | <-- | ||
| + | |||
| + | --> On Tiger with Micro-mirror card ^ | ||
| + | |||
| + | |||
| + | ^Format | ||
| + | ^Type | Integer (see below) | | ||
| + | ^Remembered |Using [Addr#]SS Z | | ||
| + | ^Firmware Required |MM_LASER_TTL| | ||
| + | |||
| + | The LED commands are used to control the laser outputs of the card (Micro-mirror card backplane connectors, usually output by the Programmable Logic Card or TTL card in early versions). | ||
| + | |||
| + | //output// (**X**): selects which logical laser is on when the SPIM state machine is not running. | ||
| + | |||
| + | // | ||
| + | |||
| + | // | ||
| + | * Bits 0-2 form a code 0-7 selecting how the logical laser outputs are converted to physical TTL outputs. | ||
| + | * code 0 for individual laser shutters for the two sides (default until v3.01) | ||
| + | * code 1 for single laser with side switch (Side0 is laser shutter for both sides and Side1 is high when the second side is active) (default v3.01+) | ||
| + | * code 2 for Side0 high when the first side of SPIM is active, Side1 high when the second side of SPIM is active | ||
| + | * code 3 for single laser (Side0) automatically turned on during a FAST_CIRCLES move | ||
| + | * codes 4-7 are reserved for future use | ||
| + | * Bits 3-7 are reserved for future use and currently cannot be set | ||
| + | < | ||
| + | |||
| + | // | ||
| + | |||
| + | // | ||
| + | |||
| + | |||
| + | <-- | ||
| + | |||
| + | |||
| + | --> On MS2000 or RM2000 ^ | ||
| + | |||
| + | |||
| + | ^Format | ||
| + | ^Type |Percentage between 0 and 100 | | ||
| + | ^Remembered |Using SS Z | | ||
| + | ^Firmware Required |LED DIMMER | ||
| + | |||
| + | X argument sets the brightness of ASIs LED illuminator by generating PWM through TTL out. TTL out mode should be set to ‘9’ (i.e. TTL y=9). Enable out from the LED illuminator should be connected to TTL out on controller. This setting can be saved in non-volatile memory using the SAVESET command. | ||
| + | |||
| + | <WRAP center round info 60%> | ||
| + | **Note:** If you are encountering flickering in a live image, try adjusting your shutter speed to avoid aliasing with the LED PWM frequency. The PWM frequency is 1 KHz. | ||
| + | </ | ||
| + | |||
| + | |||
| + | Y, Z, and F arguments provide on/off control for additional LED lamp connectors on some controllers. Not PWM dimmable. | ||
| + | |||
| + | |||
| + | <-- | ||
| + | --> On MS2000 with Dual LED ^ | ||
| + | |||
| + | |||
| + | ^Format | ||
| + | ^Type |Percentage between 0 and 100 | | ||
| + | ^Remembered |Using SS Z | | ||
| + | ^Firmware Required |DUAL_LED | ||
| + | ^Default Values |X=20 Y=20 R=100 T=100 | | ||
| + | |||
| + | Dual LED is a modern two LED driver for MS2000. Instead of using PWM to dim the LED, DUAL LED varies the current applied to dim the LEDs (DC constant current driver) resulting in very little flicker even at high shutter speeds. The brightness of the two LEDs can be independently set using the X and Y arguments of the LED command. At 100% brightness about 900ma is applied to the connected LED. The DUAL LED board can supply up to 900mA to two LEDs simultaneously, | ||
| + | |||
| + | The DUAL LED command also has a current limiting feature, where the user can set the maximum allowed brightness of the two LEDs with R and T arguments. This setting is saved in a non volatile memory on the PCB , so this setting is preserved even after firmware upgrade. R and T are both defined as the upper-limit that X and Y can be set to. R corresponds to X and T corresponds to Y. | ||
| + | |||
| + | For example, an LED with maximum rated current of 100ma is attached to channel 1. | ||
| + | Then setting <wrap cmd> LED R=10 </ | ||
| + | |||
| + | |||
| + | X sets the brightness for LED connected to channel 1,\\ | ||
| + | Y sets the brightness for LED connected to channel 2,\\ | ||
| + | R sets the maximum brightness for LED connected to channel 1, and\\ | ||
| + | T sets the maximum brightness for LED connected to channel 2.\\ | ||
| + | |||
| + | |||
| + | **Example** | ||
| + | |||
| + | < | ||
| + | : | ||
| + | Sets the Brightness of LED connected to Channel #1 to be 10% , Channel #2 to be 50% . | ||
| + | |||
| + | < | ||
| + | X=10 Y=50 : | ||
| + | Queries the card for Brightness of LEDs connected to Channel #1,and #2. | ||
| + | |||
| + | |||
| + | |||
| + | <asi> | ||
| + | $ LED R=10 | ||
| + | :A | ||
| + | $ LED X=50 | ||
| + | :A | ||
| + | $ LED X? | ||
| + | X=10 : | ||
| + | User sets the maximum brightness of LED#1 to 10%. If the user tries to increase the brightness beyond 10%, its overwritten by maximum brightness settings and limited to 10%. | ||
| + | |||
| + | <-- | ||
| + | {{tag> | ||
Address: 29391 W Enid Rd. Eugene, OR 97402, USA | Phone: +1 (541) 461-8181
