Skip to Content

CXXP Command - Digital Output Configuration

Configures the activation mode of digital outputs (XP) with support for blink and timing.


What is it for?

Use caseDescription
🚨 Light indicatorsConfigure LEDs with blinking
🔔 Sound alarmsGenerate beep patterns
⏱️ Timed pulsesActivate relays for limited time
📶 Visual feedbackIndicate system states

Description

Allows configuring digital outputs for:

  • Simple activation with non-volatile state (default)
  • Timing of light or sound indicators
  • Generation of blink patterns (square wave)

Rinho SPIDER has outputs XP01 and XP02 disabled in its initial configuration.


Commands

Configure

SCXXPaabbbbccccdddd

Query

QCXXP

Response

RCXXPaabbbbccccdddd

Parameters

ParameterDescriptionValuesDefault
aaOutput index00-02-
bbbbContext duration0000-9999 tenths of sec0000 (indefinite)
ccccBlink ON time0000-9999 tenths of sec0000 (no blink)
ddddBlink OFF time0000-9999 tenths of sec0000 (no blink)

Behavior

  • bbbb = 0000: No time limitation, maintains state according to cccc/dddd
  • cccc = 0000: No blink, state retained in non-volatile memory

Disable Output

To disable a digital output for compatibility:

>SCXXPaa999999999999<

The output will not respond to SSSXP commands.


Examples

1. 100ms flash

>SCXXP00000500010004<

When activated with >SSSXP0011< generates a 100ms flash.

2. Indefinite 5 Hz square wave

>SCXXP01000000010001<

When activated with >SSSXP0111< generates continuous 5 Hz square wave.

3. Alternating modes every 5 seconds

Mode A: 1s duration, 100ms ON / 100ms OFF
Mode B: 1s duration, 100ms ON / 400ms OFF

>STD00E00005< >STD01D00005< >SRL00E;TRG=TD00+;ACC={SCXXP00001000010001}{SSSXP0011}< >SRL01E;TRG=RL00+;ACC={STX A;@TRM}{STD00C}{STD01R}< >SRL10E;TRG=TD01+;ACC={SCXXP00001000010004}{SSSXP0011}< >SRL11E;TRG=RL10+;ACC={STX B;@TRM}{STD01C}{STD00R}<

4. Disable output

>SCXXP02999999999999<

The command >SSSXP0211< will have no effect on the hardware.

Compatibility

💾Firmware v1.08.00
SPLegacy
ULLegacy
MTLegacy
💾Firmware v1.00.00
SP-IOT
SM-IOT
Last updated