NET_DVR_ALARMOUT_PARAM

Trigger (relay) parameter structure.

Structure Definition

struct{
  DWORD          dwSize;
  BYTE           byName[NAME_LEN/*32*/];
  WORD           wDelay;
  WORD           wTriggerIndex;
  BYTE           byAssociateAlarmIn[MAX_ALARMHOST_ALARMIN_NUM/*512*/];
  BYTE           byModuleType;
  BYTE           byModuleStatus;
  WORD           wModuleAddress;
  BYTE           byModuleChan;
  BYTE           byWorkMode;
  BYTE           byAlarmOutMode;
  BYTE           byTimeOn;
  BYTE           byTimeOff;
  BYTE           byRes2[51];
}NET_DVR_ALARMOUT_PARAM,  *LPNET_DVR_ALARMOUT_PARAM;

Members

dwSize

Structure size.

byName

Trigger (relay) name.

wDelay

Output delay, unit: second, value range:

Network alarm host, trunk network alarm host, video alarm host: from 0 to 5999, 0 means output when alarm is triggered and no output when there is no alarm triggered. Power supply monitoring alarm host V2.0: 0 to 65535, 0 means continuous output. Power supply monitoring alarm host V1.0: 0 to 65535, 0 means continuous output. Self-service bank alarm host: 0 to 5999, 0 means continuous output when alarm is triggered.

wTriggerIndex

Trigger No. which can only be obtained.

byAssociateAlarmIn

Alarm input channel of the siren (multiple alarm inputs trigger the same siren to output simultaneously). The byAssociateAlarmIn[0] refers to alarm input 1, and so forth. For each array element, 0 means not triggering siren, 1 means triggering siren.

byModuleType

External trigger type: 1-local trigger, 2-4-channel trigger, 3-8-channel trigger, 4-single-zone trigger, 5-32-channel trigger, 6-1-door distributed access controller, 7-2-door distributed access controller, 8-4-door distributed access controller, 9-2-channel trigger.

byModuleStatus

External trigger status: 1-online, 2-offline.

wModuleAddress

External trigger address. For the extension module, it ranges from 1 to 253, 0xFFFF means invalid.

byModuleChan

External trigger channel No., it starts from 1, and the maximum value depends on the module type, 0xFF means invalid.

byWorkMode

Working mode: 1-link, 2-dynamic.

byAlarmOutMode

Output mode: 1-non-pulse mode, 2-pulse mode.

byTimeOn

On time, value range: [1, 60], unit:second.

byTimeOff

Off duration, value range: [1, 60], unit:second.

byRes2

Reserved.

Remarks

  • can only be obtained but cannot be modified.

    The wTriggerIndex, byModuleType, byModuleStatus, wModuleAddress, and byModuleChan of the local trigger cannot be edited.

  • The trigger parameters cannot be edited when the security control panel is in programming mode or pacing mode.

  • For the single-zone trigger, the zone channel No. is 1 and the trigger channel No. is 2.