open-audiovisual
Search GitHub

American DJ

American DJ XS 400

American DJ XS 400, a moving head by American DJ, with 2 modes (16ch: 16 and 18ch: 18). Channel data from Open Fixture Library (MIT), converted to OAV’s fixture format and not checked on a light by this project.

  • from Open Fixture Library (MIT)
  • not checked on a unit yet
Kind
moving head
Manufacturer
American DJ
Modes
2 modes (16ch: 16 and 18ch: 18)
Protocol
DMX512
Pan / tilt
540° pan · 360° tilt
Strobe
no rate in the file: kept open under the 3 Hz cap
Licence
MIT
Verified
not checked on a unit yet

Try it

Drive American DJ XS 400 without the light

The sliders go through the same Patch and colour split a show uses, and the table is the bytes the light would receive, address by address. Nothing is sent anywhere.

What the light shows

The bytes it receives

ChChannelByteAt this value

Strobe is held to 3 flashes a second, as the engine holds it; this swatch never flashes, it says the rate.

DMX channels

Every channel of American DJ XS 400, mode by mode

Generated from the fixture file, so it is the table the patch reads. Channel numbers count from the fixture’s start address; values are bytes 0–255.

Mode 16ch · 16-channel 16 channels

ChChannelTypeDefaultWhat the values do
1panpan1280–255
2tilttilt1280–255
3tiltContinuousRotationother00–55 no function · 56–127 tilt continuous · 128–199 tilt continuous · 200–255 no function
4tiltContinuousRotationSpeedspeed00–255
5redcolour: red00–255
6greencolour: green00–255
7bluecolour: blue00–255
8whitecolour: white00–255
9colorMacrosEffectscontrol (written only on purpose)00–10 no function · 11–20 color preset (Red) · 21–30 color preset (Green) · 31–40 color preset (Red + Green) · 41–50 color preset (Blue) · 51–60 color preset (Red + Blue) · 61–70 color preset (Green + Blue) · 71–80 color preset (Red + Green + Blue) · 81–123 effect · 124–166 effect (Color mix) · 167–209 effect · 210–249 effect (Color change) · 250–255 effect (Sound control)
10strobingstrobe / shutter00–7 open · 8–139 strobe · 140–189 strobe (RampUp) · 190–239 strobe (RampDown) · 240–255 strobe
11masterDimmerdimmer00–255
12programscontrol (written only on purpose)00–15 no function · 16–40 effect (Program 1) · 41–65 effect (Program 2) · 66–90 effect (Program 3) · 91–115 effect (Program 4) · 116–140 effect (Program 5) · 141–165 effect (Program 6) · 166–190 effect (Program 7) · 191–215 effect (Program 8) · 216–240 effect (Random program playing 5 times each) · 241–255 effect (Random program 2min each)
13programSpeedspeed00–255
14panTiltSpeedspeed00–255
15specialFunctionscontrol (written only on purpose)00–69 no function · 70–79 maintenance (Blackout with Pan / Tilt movement) · 80–89 no function · 90–99 maintenance (Blackout with RGBW value change) · 100–199 no function · 200–209 maintenance (Reset all) · 210–255 no function
16dimmerCurvecontrol (written only on purpose)2550–20 maintenance (Standard) · 21–40 maintenance (Stage) · 41–60 maintenance (TV) · 61–80 maintenance (Architectural) · 81–100 maintenance (Theatre) · 101–255 maintenance (Default setting)

Mode 18ch · 18-channel 18 channels

ChChannelTypeDefaultWhat the values do
1panpan1280–255
2panFinefine byte of pan00–255
3tilttilt1280–255
4tiltFinefine byte of tilt00–255
5tiltContinuousRotationother00–55 no function · 56–127 tilt continuous · 128–199 tilt continuous · 200–255 no function
6tiltContinuousRotationSpeedspeed00–255
7redcolour: red00–255
8greencolour: green00–255
9bluecolour: blue00–255
10whitecolour: white00–255
11colorMacrosEffectscontrol (written only on purpose)00–10 no function · 11–20 color preset (Red) · 21–30 color preset (Green) · 31–40 color preset (Red + Green) · 41–50 color preset (Blue) · 51–60 color preset (Red + Blue) · 61–70 color preset (Green + Blue) · 71–80 color preset (Red + Green + Blue) · 81–123 effect · 124–166 effect (Color mix) · 167–209 effect · 210–249 effect (Color change) · 250–255 effect (Sound control)
12strobingstrobe / shutter00–7 open · 8–139 strobe · 140–189 strobe (RampUp) · 190–239 strobe (RampDown) · 240–255 strobe
13masterDimmerdimmer00–255
14programscontrol (written only on purpose)00–15 no function · 16–40 effect (Program 1) · 41–65 effect (Program 2) · 66–90 effect (Program 3) · 91–115 effect (Program 4) · 116–140 effect (Program 5) · 141–165 effect (Program 6) · 166–190 effect (Program 7) · 191–215 effect (Program 8) · 216–240 effect (Random program playing 5 times each) · 241–255 effect (Random program 2min each)
15programSpeedspeed00–255
16panTiltSpeedspeed00–255
17specialFunctionscontrol (written only on purpose)00–69 no function · 70–79 maintenance (Blackout with Pan / Tilt movement) · 80–89 no function · 90–99 maintenance (Blackout with RGBW value change) · 100–199 no function · 200–209 maintenance (Reset all) · 210–255 no function
18dimmerCurvecontrol (written only on purpose)2550–20 maintenance (Standard) · 21–40 maintenance (Stage) · 41–60 maintenance (TV) · 61–80 maintenance (Architectural) · 81–100 maintenance (Theatre) · 101–255 maintenance (Default setting)

Use it

American DJ XS 400 in your code

Paste it into a <script type="module"> on any page: it loads @openav/devices and @openav/dmx from this site, patches the light at address 1 in mode 18ch and prints the bytes it would send. Send them with dmxTransport() (Art-Net or sACN through the out-bridge, or an Enttec DMX USB Pro by Web Serial).

javascript
import { device } from 'https://openaudiovisual.com/packages/devices/index.js';
import { Patch, DmxEngine } from 'https://openaudiovisual.com/packages/dmx/index.js';

const light = await device('american-dj-xs-400');   // American DJ XS 400
const patch = new Patch();
light.patch(patch, { id: 'light1', address: 1, mode: '18ch' });   // 18 channels from address 1
const engine = new DmxEngine(patch);
engine.set('light1', { dimmer: 1, color: [1, 0.5, 0], pan: 0.5, tilt: 0.25 });
console.log(engine.render(0).bytes(1).slice(0, 18).join(' '));
// → 128 0 64 0 0 0 255 128 0 0 0 0 255 0 0 0 0 255

It prints the channels of mode 18ch, in order:

  1. pan 128
  2. panFine 0
  3. tilt 64
  4. tiltFine 0
  5. tiltContinuousRotation 0
  6. tiltContinuousRotationSpeed 0
  7. red 255
  8. green 128
  9. blue 0
  10. white 0
  11. colorMacrosEffects 0
  12. strobing 0
  13. masterDimmer 255
  14. programs 0
  15. programSpeed 0
  16. panTiltSpeed 0
  17. specialFunctions 0
  18. dimmerCurve 255

Files

Take the fixture with you

The fixture file (JSON, open-audiovisual/fixture@1): every mode and channel, the ranges, the sources and the licence. A show loads it with device() or passes it to a Patch.

Where it comes from

Sources, licence, verified

Channel data from Open Fixture Library (MIT), file fixtures/american-dj/xs-400.json at commit 849343f6, by Flo Edelmann. Converted by tools/import-ofl.mjs; the conversion keeps each channel’s job, default and ranges.

Licence: MIT. Nobody has checked this file on a light for this project yet: every value is as the source says it.

Sources

Notes in the file

Imported from the Open Fixture Library. Nobody has checked it on a light for this project. OFL asks for help: Tilt Continuous Rotation Speed: Is this pan rotation? If not, is it correct that channel 'Tilt Continuous Rotation' only sets direction and this channel the rotation speed? Color Macros & Effects: How does this differ from the other color effects? Color Macros & Effects: How does this differ from the other color effects? Strobing: Is the strobe speed controllable here? Strobing: Is the strobe speed controllable here?

GitHub

Wrong data?

Every value on this page comes from one file in the repository. Open an issue that says which value and where you read the right one, or change the file in a pull request.

Next step

Light it from a work

The DMX chapter: the patch, scenes, cues, effects, the 3 Hz flash cap and the three ways out of the computer. Example 28 lights a rig on screen, no hardware needed.