Trigger (relay) parameter structure.
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;
Structure size.
Trigger (relay) name.
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.
Trigger No. which can only be obtained.
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.
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.
External trigger status: 1-online, 2-offline.
External trigger address. For the extension module, it ranges from 1 to 253, 0xFFFF means invalid.
External trigger channel No., it starts from 1, and the maximum value depends on the module type, 0xFF means invalid.
Working mode: 1-link, 2-dynamic.
Output mode: 1-non-pulse mode, 2-pulse mode.
On time, value range: [1, 60], unit:second.
Off duration, value range: [1, 60], unit:second.
Reserved.
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.